Esempio n. 1
0
        public void ProcessRequest(HttpContext context)
        {
            try
            {
                LoginUser loginUser = new LoginUser(context, "AgentTakeCashDetail");
                if (!loginUser.Pass)//权限验证
                {
                    return;
                }

                //加载DataGrid
                if (context.Request["action"] == "gridLoad")
                {
                    AgentTakeCashBLL bll = new AgentTakeCashBLL(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);
            }
        }
Esempio n. 2
0
        public void ProcessRequest(HttpContext context)
        {
            try
            {
                LoginUser loginUser = new LoginUser(context, "AgentTakeCash");
                if (!loginUser.Pass)//权限验证
                {
                    return;
                }

                //加载DataGrid
                if (context.Request["action"] == "gridLoad")
                {
                    AgentBLL bll = new AgentBLL(context, loginUser);
                    //加载DataGrid
                    int    page        = int.Parse(context.Request["page"]);
                    int    rows        = int.Parse(context.Request["rows"]);
                    string auditStauts = context.Request["auditStauts"];
                    string agentId     = context.Request["agentId"];
                    string agentName   = context.Request["agentName"];
                    string bankCardId  = context.Request["bankCardId"];
                    bll.LoadGrid(page, rows, agentName, agentId, bankCardId, auditStauts);
                    return;
                }

                if (context.Request["action"] == "handleModeListLoad")
                {
                    AgentTakeCashBLL bll = new AgentTakeCashBLL(context, loginUser);
                    bll.HandleModeCombobox();
                }
                else if (context.Request["action"] == "load")
                {
                    AgentBLL bll = new AgentBLL(context, loginUser);
                    //加载信息
                    bll.Load(context.Request["agentId"]);
                }
                //增加
                if (context.Request["action"] == "add")
                {
                    AgentTakeCashBLL bll             = new AgentTakeCashBLL(context, loginUser);
                    TTAgentTakeCash  ttAgentTakeCash = new TTAgentTakeCash();
                    ttAgentTakeCash.agentId       = context.Request["agentId"];                   //代理商编号
                    ttAgentTakeCash.fee           = double.Parse(context.Request["fee"]);         //发生金额
                    ttAgentTakeCash.operatorId    = loginUser.UserId;;                            //操作人编号
                    ttAgentTakeCash.operatorName  = loginUser.UserName;                           //操作人名称
                    ttAgentTakeCash.createTime    = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); //创建时间
                    ttAgentTakeCash.handleMode    = context.Request["handleMode"];                //充值方式
                    ttAgentTakeCash.bankAccountId = context.Request["bankCardId"];                //银行账号
                    ttAgentTakeCash.bankFlowId    = context.Request["bankFlowId"];                //银行流水号
                    ttAgentTakeCash.description   = context.Request["description"];               //说明
                    //bll.Add(ttAgentTakeCash);暂去
                    return;
                }
            }
            catch (Exception e)
            {
                Message.error(context, e.Message);
            }
        }
Esempio n. 3
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")
                {
                    AgentTakeCashBLL bll = new AgentTakeCashBLL(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);
            }
        }