Пример #1
0
 public ActionResult DataLoad()
 {
     string MonthTime = Request.Form["MonthTime"].ToString();
     string BalanceType = Request.Form["BalanceType"].ToString();
     int pageSize = int.Parse(Request.Form["rows"]);
     int pageIndex = int.Parse(Request.Form["page"]);
     int rowCounts = 0;
     var list = new I_BalanceBLLExt().GetBalanceList(pageIndex, pageSize, MonthTime, BalanceType, ref rowCounts);
     return Json(new { total = rowCounts, rows = list }, "appliction/json", JsonRequestBehavior.AllowGet);
 }
Пример #2
0
 public ActionResult SelectBalanceReport()
 {
     string mType = Request.Form["MType"].ToString();
     string reportTime = Request.Form["reportTime"].ToString();
     string errorMsg = "";
     var list = new I_BalanceBLLExt().GetI_BalanceNewList(reportTime, mType, ref errorMsg);
     if (list != null)
     {
         if (list.Count > 0)
             return Json(new { success = true, list = list, msg = "" }, "appliction/json", JsonRequestBehavior.AllowGet);
         else
             return Json(new { success = false, list = list, msg = errorMsg }, "appliction/json", JsonRequestBehavior.AllowGet);
     }
     else
     {
         return Json(new { success = false, list = list, msg = errorMsg }, "appliction/json", JsonRequestBehavior.AllowGet);
     }
 }