zoukankan      html  css  js  c++  java
  • 控制器

    Stubll bll = new Stubll();
    public static int pages;
    public static string TableName = "Stu";
    public static string IndexCol = "ID";
    public static int PageSize = 3;
    public static int PageIndex = 0;
    public static string OrderCol = "ID desc";
    public static string Where = "";
    public static string Columns = "*";

    public ActionResult Index()
    {
    ProcPrams p = new ProcPrams
    {
    TableName = TableName,
    IndexCol = IndexCol,
    PageSize = PageSize,
    PageIndex = PageIndex,
    OrderCol = OrderCol,
    Where = Where,
    Columns = Columns
    };

    PagesOut<Stu> li = bll.GetDataList(p);
    List<Stu> lis = li.list;

    int count = li.SumCount; //总行数
    pages = (count % PageSize > 0) ? count / PageSize + 1 : count / PageSize;
    return View(lis);
    }

  • 相关阅读:
    spider
    python 2.X
    django 创建项目
    NameError: name 'pip' is not defined
    异常捕获
    @property
    node-Telnet
    ES6-模块化
    高级排序算法之双路快速排序
    高级排序算法之快速排序
  • 原文地址:https://www.cnblogs.com/xiaoandong/p/9388654.html
Copyright © 2011-2022 走看看