public void ProcessRequest(HttpContext context) { try { LoginUser loginUser = new LoginUser(context, "ClientRecharge"); if (!loginUser.Pass)//权限验证 { return; } //加载DataGrid if (context.Request["action"] == "gridLoad") { ClientRechargeBLL bll = new ClientRechargeBLL(context, loginUser); int page = int.Parse(context.Request["page"]); int rows = int.Parse(context.Request["rows"]); string clientId = context.Request["clientId"]; string agentId = context.Request["agentId"]; string siteId = context.Request["siteId"]; string cardId = context.Request["cardId"]; string clientName = context.Request["clientName"]; bll.LoadGrid(page, rows, clientId, agentId, siteId, cardId, clientName); return; } if (context.Request["action"] == "totalFee") { ClientRechargeBLL bll = new ClientRechargeBLL(context, loginUser); string clientId = context.Request["clientId"]; string agentId = context.Request["agentId"]; string siteId = context.Request["siteId"]; string cardId = context.Request["cardId"]; string clientName = context.Request["clientName"]; context.Response.Write(bll.GetTotalFee(clientId, agentId, siteId, cardId, clientName)); return; } //加载信息 if (context.Request["action"] == "load") { ClientRechargeBLL bll = new ClientRechargeBLL(context, loginUser); long flowId = long.Parse(context.Request["flowId"]);//编号 bll.Load(flowId); return; } if (context.Request["action"] == "agentListLoad") { ClientBLL bll = new ClientBLL(context, loginUser); bll.AgentCombobox(); } if (context.Request["action"] == "siteListLoad") { ClientBLL bll = new ClientBLL(context, loginUser); string agentId = context.Request["agentId"]; bll.SiteCombobox(agentId); } } catch (Exception e) { Message.error(context, e.Message); } }
public void ProcessRequest(HttpContext context) { try { LoginUser loginUser = new LoginUser(context, "ClientRecharge"); if (!loginUser.Pass)//权限验证 { return; } //加载DataGrid if (context.Request["action"] == "gridLoad") { ClientRechargeBLL bll = new ClientRechargeBLL(context, loginUser); int page = int.Parse(context.Request["page"]); int rows = int.Parse(context.Request["rows"]); string agentId = context.Request["agentId"]; string siteId = context.Request["siteId"]; string clientQuery = context.Request["clientQuery"]; string clientQueryText = context.Request["clientQueryText"]; string startDate = context.Request["startDate"]; string endDate = context.Request["endDate"]; bll.LoadGrid(page, rows, agentId, siteId, clientQuery, clientQueryText, startDate, endDate); return; } if (context.Request["action"] == "totalFee") { ClientRechargeBLL bll = new ClientRechargeBLL(context, loginUser); string agentId = context.Request["agentId"]; string siteId = context.Request["siteId"]; string clientQuery = context.Request["clientQuery"]; string clientQueryText = context.Request["clientQueryText"]; string startDate = context.Request["startDate"]; string endDate = context.Request["endDate"]; context.Response.Write(bll.GetTotalFee(agentId, siteId, clientQuery, clientQueryText, startDate, endDate)); return; } //用户查找分类 if (context.Request["action"] == "clientQueryListLoad") { Combobox com = new Combobox(context, loginUser); com.ClientQueryCombobox(); } //加载信息 if (context.Request["action"] == "load") { ClientRechargeBLL bll = new ClientRechargeBLL(context, loginUser); long flowId = long.Parse(context.Request["flowId"]);//编号 bll.Load(flowId); return; } if (context.Request["action"] == "agentListLoad") { Combobox com = new Combobox(context, loginUser); com.AgentCombobox(); } if (context.Request["action"] == "siteListLoad") { string agentId = context.Request["agentId"]; Combobox com = new Combobox(context, loginUser); com.SiteByAgentCombobox(agentId); } } catch (Exception e) { Message.error(context, e.Message); } }
public void ProcessRequest(HttpContext context) { try { LoginAgentUser loginAgentUser = new LoginAgentUser(context, "ClientRecharge"); AgentRoleBLL agentRoleBLL = new AgentRoleBLL(context, loginAgentUser); StaffBLL staffBll = new StaffBLL(context, loginAgentUser); if (!loginAgentUser.Pass)//权限验证 { return; } //获取用户登录的角色类型 0为 代理商 1 为员工 string roleType = agentRoleBLL.GetRoleType(loginAgentUser.RoleIds); string agentId = ""; string siteId = context.Request["siteId"]; if (roleType == "0") { agentId = loginAgentUser.UserId; } if (roleType != "0") { siteId = staffBll.Get(loginAgentUser.UserId).siteId; } //加载DataGrid if (context.Request["action"] == "gridLoad") { ClientRechargeBLL bll = new ClientRechargeBLL(context, loginAgentUser); int page = int.Parse(context.Request["page"]); int rows = int.Parse(context.Request["rows"]); string clientId = context.Request["clientId"]; string cardId = context.Request["cardId"]; string clientName = context.Request["clientName"]; bll.LoadGrid(page, rows, clientId, agentId, siteId, cardId, clientName); return; } //加载信息 if (context.Request["action"] == "load") { ClientRechargeBLL bll = new ClientRechargeBLL(context, loginAgentUser); long flowId = long.Parse(context.Request["flowId"]);//编号 bll.Load(flowId); return; } if (context.Request["action"] == "siteListLoad") { ClientBLL bll = new ClientBLL(context, loginAgentUser); bll.SiteCombobox(loginAgentUser.UserId, roleType); } if (context.Request["action"] == "totalFee") { ClientRechargeBLL bll = new ClientRechargeBLL(context, loginAgentUser); string clientId = context.Request["clientId"]; string cardId = context.Request["cardId"]; string clientName = context.Request["clientName"]; context.Response.Write(bll.GetTotalFee(clientId, agentId, siteId, cardId, clientName)); return; } } catch (Exception e) { Message.error(context, e.Message); } }