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

                //加载DataGrid
                if (context.Request["action"] == "gridLoad")
                {
                    ClientAccDetailBLL bll = new ClientAccDetailBLL(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"] == "load")
                {
                    ClientAccDetailBLL bll = new ClientAccDetailBLL(context, loginUser);
                    long flowId            = long.Parse(context.Request["flowId"]);//编号
                    bll.Load(flowId);
                    return;
                }
                //用户查找分类
                if (context.Request["action"] == "clientQueryListLoad")
                {
                    Combobox com = new Combobox(context, loginUser);
                    com.ClientQueryCombobox();
                }
                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);
            }
        }
Esempio n. 2
0
        public void ProcessRequest(HttpContext context)
        {
            try
            {
                LoginUser     loginUser = new LoginUser(context, "WinningPointOrder");
                PointOrderBLL bll       = new PointOrderBLL(context, loginUser);
                if (!loginUser.Pass)//权限验证
                {
                    return;
                }

                //加载DataGrid
                if (context.Request["action"] == "gridLoad")
                {
                    int    page            = int.Parse(context.Request["page"]);
                    int    rows            = int.Parse(context.Request["rows"]);
                    string orderId         = context.Request["orderId"];                 //订单号
                    string period          = context.Request["period"];                  //期次
                    string srcType         = context.Request["srcType"];                 //来源方式
                    string orderStatus     = ((int)PointOrderStatus.Ticket).ToString();  //订单状态
                    string awardResult     = ((int)PointAwardResult.Winning).ToString(); //中奖状态
                    string clientQuery     = context.Request["clientQuery"];
                    string clientQueryText = context.Request["clientQueryText"];
                    string startDate       = context.Request["startDate"];
                    string endDate         = context.Request["endDate"];
                    bll.LoadGrid(page, rows, "", "", orderId, period, orderStatus, srcType, awardResult, clientQuery, clientQueryText, startDate, endDate);
                }
                //用户查找分类
                if (context.Request["action"] == "clientQueryListLoad")
                {
                    Combobox com = new Combobox(context, loginUser);
                    com.ClientQueryCombobox();
                }
                //来源方式下拉框信息
                if (context.Request["action"] == "ddlSrcTypeLoad")
                {
                    Combobox com = new Combobox(context, loginUser);
                    com.SrcTypeCombobox();
                    return;
                }
                //加载信息
                if (context.Request["action"] == "load")
                {
                    string orderId = context.Request["orderId"];//订单号
                    bll.Load(orderId);
                    return;
                }
            }
            catch (Exception e)
            {
                Message.error(context, e.Message);
            }
        }
Esempio n. 3
0
        public void ProcessRequest(HttpContext context)
        {
            try
            {
                LoginUser loginUser = new LoginUser(context, "WinningLotteryOrder");
                if (!loginUser.Pass)//权限验证
                {
                    return;
                }

                //加载DataGrid
                if (context.Request["action"] == "gridLoad")
                {
                    LotteryOrderBLL bll             = new LotteryOrderBLL(context, loginUser);
                    int             page            = int.Parse(context.Request["page"]);
                    int             rows            = int.Parse(context.Request["rows"]);
                    string          period          = context.Request["period"];      //期次
                    string          awardResult     = context.Request["awardResult"]; //中奖状态
                    string          clientQuery     = context.Request["clientQuery"];
                    string          clientQueryText = context.Request["clientQueryText"];
                    string          startDate       = context.Request["startDate"];
                    string          endDate         = context.Request["endDate"];
                    bll.WLoadGrid(page, rows, "", "", period, awardResult, clientQuery, clientQueryText, startDate, endDate);
                    return;
                }
                //用户查找分类
                if (context.Request["action"] == "clientQueryListLoad")
                {
                    Combobox com = new Combobox(context, loginUser);
                    com.ClientQueryCombobox();
                }
                //中奖状态下拉框信息
                if (context.Request["action"] == "ddlAwardResultLoad")
                {
                    Combobox com = new Combobox(context, loginUser);
                    com.WinnerLotteryCombobox();
                    return;
                }
                //加载信息
                if (context.Request["action"] == "load")
                {
                    LotteryOrderBLL bll     = new LotteryOrderBLL(context, loginUser);
                    string          orderId = context.Request["orderId"];//订单号
                    bll.Load(orderId);
                    return;
                }
            }
            catch (Exception e)
            {
                Message.error(context, e.Message);
            }
        }
Esempio n. 4
0
        public void ProcessRequest(HttpContext context)
        {
            LoginUser loginUser = new LoginUser(context, "ClientTakeCashToBank");

            if (!loginUser.Pass)//权限验证
            {
                return;
            }
            //加载DataGrid
            if (context.Request["action"] == "gridLoad")
            {
                ClientTakeCashToBankBLL bll = new ClientTakeCashToBankBLL(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);
            }
            //用户查找分类
            if (context.Request["action"] == "clientQueryListLoad")
            {
                Combobox com = new Combobox(context, loginUser);
                com.ClientQueryCombobox();
            }
            if (context.Request["action"] == "agentListLoad")
            {
                Combobox com = new Combobox(context, loginUser);
                com.AgentCombobox();
            }
            if (context.Request["action"] == "siteListLoad")
            {
                Combobox com     = new Combobox(context, loginUser);
                string   agentId = context.Request["agentId"];
                com.SiteByAgentCombobox(agentId);
            }
            if (context.Request["action"] == "TakeCash")
            {
                ClientTakeCashToBankBLL bll = new ClientTakeCashToBankBLL(context, loginUser);
                string flowid = context.Request["flowid"];
                bll.TakeCash(flowid, loginUser.UserName);
            }
        }
Esempio n. 5
0
        public void ProcessRequest(HttpContext context)
        {
            try
            {
                LoginUser loginUser = new LoginUser(context, "ChaseOrder");
                if (!loginUser.Pass)//权限验证
                {
                    return;
                }

                //加载DataGrid
                if (context.Request["action"] == "gridLoad")
                {
                    ChaseOrderBLL bll             = new ChaseOrderBLL(context, loginUser);
                    int           page            = int.Parse(context.Request["page"]);
                    int           rows            = int.Parse(context.Request["rows"]);
                    string        chaseOrderId    = context.Request["chaseOrderId"];
                    string        period          = context.Request["period"];
                    string        srcType         = context.Request["srcType"];//来源方式
                    string        chaseStatus     = context.Request["chaseStatus"];
                    string        clientQuery     = context.Request["clientQuery"];
                    string        clientQueryText = context.Request["clientQueryText"];
                    string        startDate       = context.Request["startDate"];
                    string        endDate         = context.Request["endDate"];
                    bll.LoadGrid(page, rows, "", "", chaseOrderId, period, srcType, chaseStatus, clientQuery, clientQueryText, startDate, endDate);
                    return;
                }
                //用户查找分类
                if (context.Request["action"] == "clientQueryListLoad")
                {
                    Combobox com = new Combobox(context, loginUser);
                    com.ClientQueryCombobox();
                }
                //追号状态下拉框信息
                if (context.Request["action"] == "ddlChaseStatusLoad")
                {
                    Combobox com = new Combobox(context, loginUser);
                    com.ChaseStatusCombobox();
                    return;
                }
                //彩种下拉框信息
                if (context.Request["action"] == "ddlLotteryTypeLoad")
                {
                    Combobox com = new Combobox(context, loginUser);
                    com.LotteryTypeCombobox();
                    return;
                }
                //来源方式下拉框信息
                if (context.Request["action"] == "ddlSrcTypeLoad")
                {
                    Combobox com = new Combobox(context, loginUser);
                    com.SrcTypeCombobox();
                    return;
                }
                //加载信息
                if (context.Request["action"] == "load")
                {
                    ChaseOrderBLL bll          = new ChaseOrderBLL(context, loginUser);
                    string        chaseOrderId = context.Request["chaseOrderId"];//追号订单号
                    bll.Load(chaseOrderId);
                    return;
                }
                //已追订单
                if (context.Request["action"] == "alreadyChaseDetail")
                {
                    ChasePlanBLL bll          = new ChasePlanBLL(context, loginUser);
                    string       chaseOrderId = context.Request["chaseOrderId"];
                    string       chaseStatus  = context.Request["chaseStatus"];
                    bll.LoadGrid(chaseOrderId, chaseStatus, "0", "");
                    return;
                }

                //未追订单
                if (context.Request["action"] == "notChaseDetail")
                {
                    ChasePlanBLL bll          = new ChasePlanBLL(context, loginUser);
                    string       chaseOrderId = context.Request["chaseOrderId"];
                    string       chaseStatus  = context.Request["chaseStatus"];
                    bll.LoadGrid(chaseOrderId, chaseStatus, "1", "");
                    return;
                }
            }
            catch (Exception e)
            {
                Message.error(context, e.Message);
            }
        }
Esempio n. 6
0
 public void ProcessRequest(HttpContext context)
 {
     try
     {
         LoginUser loginUser = new LoginUser(context, "Client");
         ClientBLL bll       = new ClientBLL(context, loginUser);
         if (!loginUser.Pass)//权限验证
         {
             return;
         }
         if (context.Request["action"] == "agentListLoad")
         {
             Combobox com = new Combobox(context, loginUser);
             com.AgentCombobox();
         }
         //用户查找分类
         if (context.Request["action"] == "clientQueryListLoad")
         {
             Combobox com = new Combobox(context, loginUser);
             com.ClientQueryCombobox();
         }
         if (context.Request["action"] == "siteListLoad")
         {
             string   agentId = context.Request["agentId"];
             Combobox com     = new Combobox(context, loginUser);
             com.SiteByAgentCombobox(agentId);
         }
         //加载DataGrid
         if (context.Request["action"] == "gridLoad")
         {
             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 status          = context.Request["status"];
             string startDate       = context.Request["startDate"];
             string endDate         = context.Request["endDate"];
             bll.LoadGrid(page, rows, agentId, siteId, clientQuery, clientQueryText, status, startDate, endDate);
             return;
         }
         //获取账户余额积分总计
         if (context.Request["action"] == "totalBalanceAndPoints")
         {
             string agentId         = context.Request["agentId"];
             string siteId          = context.Request["siteId"];
             string clientQuery     = context.Request["clientQuery"];
             string clientQueryText = context.Request["clientQueryText"];
             string status          = context.Request["status"];
             string startDate       = context.Request["startDate"];
             string endDate         = context.Request["endDate"];
             var    totalBalance    = bll.GetTotalBalanceOrPoints(1, agentId, siteId, clientQuery, clientQueryText, status, startDate, endDate);
             var    totalPoints     = bll.GetTotalBalanceOrPoints(2, agentId, siteId, clientQuery, clientQueryText, status, startDate, endDate);
             context.Response.Write("{\"totalBalance\":" + totalBalance + ",\"totalPoints\":" + totalPoints + "}");
         }
         //加载信息
         if (context.Request["action"] == "load")
         {
             long clientId = long.Parse(context.Request["clientId"]);//客户编号
             bll.Load(clientId);
             return;
         }
     }
     catch (Exception e)
     {
         Message.error(context, e.Message);
     }
 }