public JsonResult GetAllOrderPeopleInfos(string str) { PageModel ret = new PageModel(); Models.UserModel user = Session["UserModel"] as Models.UserModel; BLL.SubscriberBLL _SubscriberBLL = new SubscriberBLL(); PageModel pg = _SubscriberBLL.GetSubscriber(0, "", "", "", "", "", "", user.OrgID._ToStr(), 0, 0); var js = JsonConvert.SerializeObject(pg); return(Json(js, JsonRequestBehavior.AllowGet)); }
/// <summary> /// 初始化订户新增修改界面 /// </summary> /// <returns></returns> public ActionResult OrderPeopleInfo_AddEdit() { Models.UserModel user = Session["UserModel"] as Models.UserModel; int addeditcode = Request["addeditcode"]._ToInt32(); if (addeditcode > 0) { BLL.SubscriberBLL _SubscriberBLL = new SubscriberBLL(); PageModel pg = _SubscriberBLL.GetSubscriber(addeditcode, "", "", "", "", "", "", user.OrgID._ToStr()); ViewData.Model = pg; } else { ViewData.Model = null; } return(View()); }
public ActionResult OrderPeopleInfos(int page, int limit, string test1, string test2, string Province, string CompanyCity, string CompanyUnderCity, string CompanyUnderArea, string OrderNo, string Name) { PageModel ret = new PageModel(); BLL.SubscriberBLL _SubscriberBLL = new SubscriberBLL(); JObject o = null; string content = string.Empty; Models.UserModel user = Session["UserModel"] as Models.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; } PageModel pg = _SubscriberBLL.GetSubscriber(0, OrderNo, Name, "", OrgID, test1, test2, user.OrgID._ToStr(), limit, page); var js = JsonConvert.SerializeObject(pg); return(Content(js)); }