Exemple #1
0
 public void ProcessRequest(HttpContext context)
 {
     try
     {
         LoginUser loginUser = new LoginUser(context, "AgentRechargeDetail");
         if (!loginUser.Pass)//权限验证
         {
             return;
         }
         //加载DataGrid
         if (context.Request["action"] == "gridLoad")
         {
             AgentRechargeBLL bll = new AgentRechargeBLL(context, loginUser);
             int    page          = int.Parse(context.Request["page"]);
             int    rows          = int.Parse(context.Request["rows"]);
             string agentId       = context.Request["agentId"];
             string agentName     = context.Request["agentName"];
             string startDate     = context.Request["startDate"];
             string endDate       = context.Request["endDate"];
             bll.LoadGrid(page, rows, agentId, agentName, startDate, endDate);
             return;
         }
     }
     catch (Exception e)
     {
         Message.error(context, e.Message);
     }
 }
Exemple #2
0
 public void ProcessRequest(HttpContext context)
 {
     try
     {
         LoginAgentUser loginAgentUser = new LoginAgentUser(context, "AgentRecharge");
         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  = "";
         if (roleType == "0")
         {
             agentId = loginAgentUser.UserId;
         }
         else
         {
             agentId = staffBll.Get(loginAgentUser.UserId).agentId;
         }
         //加载DataGrid
         if (context.Request["action"] == "gridLoad")
         {
             AgentRechargeBLL bll = new AgentRechargeBLL(context, loginAgentUser);
             int    page          = int.Parse(context.Request["page"]);
             int    rows          = int.Parse(context.Request["rows"]);
             string startDate     = context.Request["startDate"];
             string endDate       = context.Request["endDate"];
             bll.LoadGrid(page, rows, agentId, "", startDate, endDate);
             return;
         }
     }
     catch (Exception e)
     {
         Message.error(context, e.Message);
     }
 }