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;
                }

                if (context.Request["action"] == "totalFee")
                {
                    AgentRechargeBLL bll       = new AgentRechargeBLL(context, loginUser);
                    string           agentId   = context.Request["agentId"];
                    string           agentName = context.Request["agentName"];
                    string           startDate = context.Request["startDate"];
                    string           endDate   = context.Request["endDate"];
                    context.Response.Write(bll.GetTotalFee(agentId, agentName, startDate, endDate));
                    return;
                }
            }
            catch (Exception e)
            {
                Message.error(context, e.Message);
            }
        }