Exemplo n.º 1
0
        public ActionResult InitEnterDeatilData(int id)
        {
            string keyword              = RequestHelper.GetDeStrByName("keyword");//标题查询
            int    page                 = RequestHelper.GetIntByName("page");
            int    rows                 = RequestHelper.GetIntByName("rows");
            List <WGJG_ZXDetail> list   = operateContext.bllSession.T_EnterDetail.GetEnterDetailData(page, rows, id, keyword);
            TableModel           tModel = new TableModel()
            {
                rows  = list,
                total = operateContext.bllSession.T_EnterDetail.SelectCount(s => s.ed_title.Contains(keyword))
            };

            return(Json(tModel, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public ActionResult InitEnterTable()
        {
            string unitName = RequestHelper.GetDeStrByName("unitName");
            int    page     = RequestHelper.GetIntByName("page");
            int    rows     = RequestHelper.GetIntByName("rows");
            List <HCQ2_Model.WGJG_ZX> list = operateContext.bllSession.WGJG_ZX.SelectUnitDataByName(page, rows, unitName);
            TableModel tModel = new TableModel()
            {
                rows  = list,
                total = operateContext.bllSession.WGJG_ZX.SelCountData(unitName)
            };

            return(Json(tModel, JsonRequestBehavior.AllowGet));
        }