public void GetTableData(HttpContext context) { try { string yjlxbm = context.Request.Params["yjlxbm"]; // 查询条件 int rows = Int32.Parse(context.Request.Params["rows"]); // 查询条件 int page = Int32.Parse(context.Request.Params["page"]); // 查询条件 string sfgx = context.Request.Params["sfgx"]; // 查询条件 string jdrjc = context.Request.Params["jdrjc"]; // 查询条件 string ry = context.Request.Params["ry"]; // 查询条件 string yjnr = context.Request.Params["yjnr"]; // 查询条件 string ywbh = context.Request.Params["ywbh"]; // 查询条件 userid = QsWebSoft.AppService.GetUserID(); res.result = true; res.msg = "预警表格加载完成"; int count; List <Get_Warning_Table_Service> list = new Interfaces.Service.GetWarningMenuListService().GetWarningTableDataServiceImpl(yjlxbm, userid, rows, page, sfgx, jdrjc, ry, yjnr, ywbh, out count); res.total = count; res.rows = list; } catch (Exception ex) { res.result = false; res.msg = ex.Message; } }
public void GetJdrData(HttpContext context) { try { userid = QsWebSoft.AppService.GetUserID(); Array jdrArr = new Interfaces.Service.GetWarningMenuListService().GetJdrListImpl(userid); res.rows = jdrArr; res.total = jdrArr.Length; res.result = true; res.msg = "获取应收对账账号设置相关的接单人下拉数据成功"; } catch (Exception ex) { res.result = false; res.msg = ex.Message; } }
/****预警信息***/ #region 菜单渲染 public void GetWarningMenuList(HttpContext context) { try { string parentid = context.Request.Params["parentId"];// 查询条件 userid = QsWebSoft.AppService.GetUserID(); int count; List <Get_Warning_Menu_List_Service> list = new Interfaces.Service.GetWarningMenuListService().GetWarningMenuListServiceImpl(userid, parentid, out count); res.result = true; res.total = count; res.rows = list; } catch (Exception ex) { res.result = false; res.msg = ex.Message; } }
public void GetYcyyListData(HttpContext context) { try { string yjlxbh = context.Request.Params["yjlxbh"];// 查询条件 userid = QsWebSoft.AppService.GetUserID(); res.result = true; res.msg = "获取异常原因下拉数据成功"; int count; List <ycyy_Select_List_Service> list = new Interfaces.Service.GetWarningMenuListService().GetYcyyListDataImpl(yjlxbh, out count); res.rows = list; res.total = count; } catch (Exception ex) { res.result = false; res.msg = ex.Message; } }
public void SaveYcyy(HttpContext context) { try { Interfaces.Service.GetWarningMenuListService GetWarningService = new Interfaces.Service.GetWarningMenuListService(); string id = context.Request.Params["id"]; string json = context.Request.Params["json"]; ycyy_Service model = JsonConvert.DeserializeObject <ycyy_Service>(json); GetWarningService.AddYcyyItem(model); res.msg = "新增异常原因记录成功"; res.result = true; } catch (Exception ex) { res.result = true; res.msg = ex.Message; } }