Пример #1
0
        public IActionResult list(FenYeModel fen)
        {
            string   firstKindId  = HttpContext.Session.GetString("firstKindId");
            string   secondKindId = HttpContext.Session.GetString("secondKindId");
            string   thirdKindId  = HttpContext.Session.GetString("thirdKindId");
            string   Major_kindId = HttpContext.Session.GetString("Major_kindId");
            string   Major_Id     = HttpContext.Session.GetString("Major_Id");
            DateTime starttime    = Convert.ToDateTime(HttpContext.Session.GetString("starttime"));
            DateTime endtime      = Convert.ToDateTime(HttpContext.Session.GetString("endtime"));


            string currentPage = Request.Form["currentPage"];

            fen.CurrentPage = int.Parse(currentPage.ToString());
            fen.PageSize    = 3;
            fen.Where       = $@" new_first_kind_id='{firstKindId}' and new_second_kind_id='{secondKindId}' and new_third_kind_id='{thirdKindId}' and major_kind_name='{Major_kindId}' and major_name='{Major_Id}' and regist_time>= '{starttime}' and check_time<= '{endtime}' and  check_status=1";
            //and regist_time>= '{starttime}' and check_time<= '{endtime}'
            fen.KeyName   = "mch_id";
            fen.TableName = "major_change";
            List <major_changeModel>    page = mc.FenYe(fen);
            Dictionary <string, object> di   = new Dictionary <string, object>();

            di["dt"]       = page;
            di["pages"]    = fen.Pages;
            di["rows"]     = fen.Rows;
            di["PageSize"] = fen.PageSize;
            return(Content(JsonConvert.SerializeObject(di)));
        }
Пример #2
0
        public IActionResult check_list(FenYeModel fen)
        {
            string currentPage = Request.Form["currentPage"];

            fen.CurrentPage = int.Parse(currentPage.ToString());
            fen.PageSize    = 3;
            fen.Where       = "check_status=0";
            fen.KeyName     = "mch_id";
            fen.TableName   = "major_change";
            List <major_changeModel>    page = mc.FenYe(fen);
            Dictionary <string, object> di   = new Dictionary <string, object>();

            di["dt"]       = page;
            di["pages"]    = fen.Pages;
            di["rows"]     = fen.Rows;
            di["PageSize"] = fen.PageSize;
            return(Content(JsonConvert.SerializeObject(di)));
        }