public JsonResult DistributeLog_FF(string str) { retValue ret = new retValue(); BLL.DistributeBLL _BLL = new DistributeBLL(); JObject o = null; if (!string.IsNullOrEmpty(str)) { o = JObject.Parse(str); UserModel userModel = Session["userModel"] as UserModel; string nianjuanqi = o["nianjuanqi"]._ToStrTrim(); string action = o["action"]._ToStrTrim(); //日志类型,0表示市,1表示县 int type = 0; if (action == "area") { type = 1; } string ids = o["ids"]._ToStrTrim(); ret = _BLL.insertLog(ids, nianjuanqi, userModel._ID, type); } var js = JsonConvert.SerializeObject(ret); return(Json(js, JsonRequestBehavior.AllowGet)); }
public JsonResult Check_FF(string str) { retValue ret = new retValue(); BLL.DistributeBLL _BLL = new DistributeBLL(); JObject o = null; if (!string.IsNullOrEmpty(str)) { o = JObject.Parse(str); string nianjuanqi = o["nianjuanqi"]._ToStrTrim(); string action = o["action"]._ToStrTrim(); //日志类型,0表示市,1表示县 int type = 0; if (action == "area") { type = 1; } string ids = o["ids"]._ToStrTrim(); if (_BLL.count(ids, type, nianjuanqi) > 0) { ret.result = false; ret.reason = "1000"; } else { ret.result = true; ret.data = ""; } } var js = JsonConvert.SerializeObject(ret); return(Json(js, JsonRequestBehavior.AllowGet)); }
public ActionResult Order_getCounts(string str) { retValue ret = new retValue(); PMS.Models.UserModel userModel = Session["UserModel"] as PMS.Models.UserModel; int userid = userModel._ID; BLL.DistributeBLL _BLL = new DistributeBLL(); JObject o = null; if (!string.IsNullOrEmpty(str)) { o = JObject.Parse(str); string test1 = o["test1"]._ToStrTrim(); string Group_Type = o["Group_Type"]._ToStrTrim(); string Province = o["Province"]._ToStrTrim(); string CompanyCity = o["CompanyCity"]._ToStrTrim(); string CompanyUnderCity = o["CompanyUnderCity"]._ToStrTrim(); string CompanyUnderArea = o["CompanyUnderArea"]._ToStrTrim(); string NewspaperName = o["NewspaperName"]._ToStrTrim(); string Roads = o["Roads"]._ToStrTrim(); string OrgID = ""; if (Province._ToInt32() > 0) { OrgID = Province; } if (CompanyCity._ToInt32() > 0) { OrgID = CompanyCity; } if (CompanyUnderCity._ToInt32() > 0) { OrgID = CompanyUnderCity; } if (CompanyUnderArea._ToInt32() > 0) { OrgID = CompanyUnderArea; } if (Roads._ToInt32() > 0) { OrgID = Roads; } ret = _BLL.GetCount(NewspaperName, OrgID, userModel.OrgID._ToStr(), Group_Type, test1); } var js = JsonConvert.SerializeObject(ret); return(Json(js, JsonRequestBehavior.AllowGet)); }
public ActionResult GetHistory(int page, int limit, string test1, string test2, string User, string tttttt) { PageModel ret = new PageModel(); BLL.DistributeBLL _BLL = new DistributeBLL(); UserModel userModel = Session["userModel"] as UserModel; JObject o = null; if (tttttt == "area") { ret = _BLL.getlog2(test1, test2, userModel.OrgID, User, limit, page - 1); } else { ret = _BLL.getlog1(test1, test2, userModel.OrgID, User, limit, page - 1); } var js = JsonConvert.SerializeObject(ret); return(Content(js)); }
public ActionResult GetDis(int page, int limit, string test1, string Group_Type, string NewspaperName, string Province, string CompanyCity, string CompanyUnderCity, string CompanyUnderArea , string Roads) { PageModel ret = new PageModel(); BLL.DistributeBLL _BLL = new DistributeBLL(); JObject o = null; UserModel userModel = Session["userModel"] as UserModel; string OrgID = ""; if (Province._ToInt32() > 0) { OrgID = Province; } if (CompanyCity._ToInt32() > 0) { OrgID = CompanyCity; } if (CompanyUnderCity._ToInt32() > 0) { OrgID = CompanyUnderCity; } if (CompanyUnderArea._ToInt32() > 0) { OrgID = CompanyUnderArea; } if (Roads._ToInt32() > 0) { OrgID = Roads; } ret = _BLL.GetTable(NewspaperName, OrgID, userModel.OrgID._ToStr(), Group_Type, test1, limit, page); var js = JsonConvert.SerializeObject(ret); return(Content(js)); }