Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = this.Session["user_name"].ToString();

            this.login_name  = str;
            this.master_name = str;
            agent_userinfo_session model = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;

            base.Permission_Aspx_ZJ(model, "po_2_1");
            base.Permission_Aspx_DL(model, "po_6_1");
            this.u_type  = model.get_u_type().Trim();
            this.zj_name = model.get_zjname().Trim();
            if (this.Session["child_user_name"] != null)
            {
                this.isCloneUser = true;
                this.cloneName   = this.Session["child_user_name"].ToString();
                this.login_name  = this.cloneName;
            }
            if (!this.u_type.Equals("zj"))
            {
                this.levelList.Add(model.get_fgs_name());
                this.levelList.Add(model.get_zd_name());
                this.levelList.Add(model.get_gd_name());
                this.levelList.Add(model.get_dl_name());
            }
            this.u_id = LSRequest.qq("uid");
            if (string.IsNullOrEmpty(this.u_id))
            {
                base.Response.End();
            }
            this.u_name = CallBLL.cz_users_bll.GetUserNameByUid(this.u_id, ref this.isChild);
            if (string.IsNullOrEmpty(this.u_name))
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            if (CallBLL.cz_users_bll.GetUserInfoByUID(this.u_id) == null)
            {
                cz_users_child userByUID = CallBLL.cz_users_child_bll.GetUserByUID(this.u_id);
                if ((userByUID != null) && userByUID.get_parent_u_name().Equals(model.get_u_name()))
                {
                    if (!base.IsUpperLowerLevels(userByUID.get_parent_u_name(), model.get_u_type(), model.get_u_name()))
                    {
                        base.Response.Redirect("/MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                        base.Response.End();
                    }
                }
                else
                {
                    base.Response.Redirect("/MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                    base.Response.End();
                }
            }
            else if (!base.IsUpperLowerLevels(this.u_name, model.get_u_type(), model.get_u_name()))
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            this.lotteryDT = base.GetLotteryList();
            DataRow[] source = this.lotteryDT.Select(string.Format(" id=100 ", new object[0]));
            string    str2   = "";

            if (source.Count <DataRow>() <= 0)
            {
                str2 = "200,300";
            }
            else if (this.lotteryDT.Rows.Count > 1)
            {
                str2 = "100,200,300";
            }
            else
            {
                str2 = "100,300";
            }
            this.page = LSRequest.qq("page");
            if (string.IsNullOrEmpty(this.page))
            {
                this.page = "1";
            }
            if (int.Parse(this.page) < 1)
            {
                this.page = "1";
            }
            this.dataTable  = CallBLL.cz_user_change_log_bll.get_log_table(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.u_name.Trim(), str2, ref this.isAll);
            this.FiledValue = new string[] { this.u_id };
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = this.Session["user_name"].ToString();

            this.login_name  = str;
            this.master_name = str;
            agent_userinfo_session model = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;

            base.Permission_Aspx_DL(model, "po_5_2");
            this.zj_name = model.get_zjname().Trim();
            this.u_type  = model.get_u_type().Trim();
            if (this.Session["child_user_name"] != null)
            {
                this.isCloneUser = true;
                this.cloneName   = this.Session["child_user_name"].ToString();
            }
            if (!this.u_type.Equals("zj"))
            {
                this.levelList.Add(model.get_fgs_name());
                this.levelList.Add(model.get_zd_name());
                this.levelList.Add(model.get_gd_name());
                this.levelList.Add(model.get_dl_name());
            }
            this.u_id = LSRequest.qq("uid");
            if (string.IsNullOrEmpty(this.u_id))
            {
                this.u_id = model.get_u_id();
            }
            if (string.IsNullOrEmpty(this.u_id))
            {
                base.Response.End();
            }
            this.backUrl        = string.Format("", new object[0]);
            this.cz_users_model = CallBLL.cz_users_bll.GetUserInfoByUID(this.u_id);
            if (string.IsNullOrEmpty(this.cz_users_model.get_u_name()))
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            if (!base.IsUpperLowerLevels(this.cz_users_model.get_u_name(), model.get_u_type(), model.get_u_name()))
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            this.mId       = LSRequest.qq("mid");
            this.lotteryId = LSRequest.qq("lid");
            if (string.IsNullOrEmpty(this.lotteryId))
            {
                this.lotteryId = "";
            }
            int num = 1;

            if (this.mId.Equals(num.ToString()))
            {
                this.lotteryId = 100.ToString();
            }
            this.lotteryDT = base.GetLotteryList();
            base.IsLotteryExistForSysLog(this.lotteryId, "u100032", "1", "");
            string    lotteryId = "";
            ArrayList list      = new ArrayList();

            if (this.lotteryId == "")
            {
                foreach (DataRow row in this.lotteryDT.Rows)
                {
                    int num3 = 100;
                    if (!row["id"].ToString().Equals(num3.ToString()))
                    {
                        list.Add(row["id"].ToString());
                    }
                }
                lotteryId = string.Join(",", list.ToArray());
            }
            else
            {
                lotteryId = this.lotteryId;
            }
            this.page = LSRequest.qq("page");
            if (string.IsNullOrEmpty(this.page))
            {
                this.page = "1";
            }
            if (int.Parse(this.page) < 1)
            {
                this.page = "1";
            }
            this.dataTable  = CallBLL.cz_autosale_log_bll.get_log_table(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.cz_users_model.get_u_name().Trim(), lotteryId, ref this.isAll);
            this.FiledValue = new string[] { this.u_id, this.lotteryId };
            int num4 = 100;

            if (this.lotteryId.Equals(num4.ToString()))
            {
                this.backUrl = string.Format("/AutoLet/AutoLet_Show_six.aspx?uid={0}&mid={1}", this.u_id, 1);
            }
            else
            {
                this.backUrl = string.Format("/AutoLet/AutoLet_Show_kc.aspx?uid={0}&mid={1}", this.u_id, 2);
            }
        }