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

            this.userModel = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;
            if (!this.userModel.get_u_type().Trim().Equals("zj"))
            {
                base.Response.Redirect("../Quit.aspx", true);
                base.Response.End();
            }
            if (this.Session["child_user_name"] != null)
            {
                if (this.userModel.get_u_type().Trim().Equals("zj") && !RuleJudge.ChildOperateValid(this.userModel, "po_3_4", HttpContext.Current))
                {
                    base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                    base.Response.End();
                }
                this.clone = base.get_children_name();
            }
            this.lottery_master_id = base.get_current_master_id();
            if (LSRequest.qq("hdnadd").Equals("hdnadd"))
            {
                this.AddUser();
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = this.Session["user_name"].ToString();

            this.userModel = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;
            if (!this.userModel.get_u_type().Trim().Equals("zj"))
            {
                base.Response.Redirect("../Quit.aspx", true);
                base.Response.End();
            }
            if (this.Session["child_user_name"] != null)
            {
                if (this.userModel.get_u_type().Trim().Equals("zj") && !RuleJudge.ChildOperateValid(this.userModel, "po_3_4", HttpContext.Current))
                {
                    base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                    base.Response.End();
                }
                this.clone = base.get_children_name();
            }
            if (!FileCacheHelper.get_ManageZJProfit().Equals("1"))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            if ((this.userModel.get_users_child_session() != null) && !this.userModel.get_users_child_session().get_is_admin().Equals(1))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            DataTable zJInfo = CallBLL.cz_users_bll.GetZJInfo();

            this.zjName            = zJInfo.Rows[0]["u_name"].ToString();
            this.lottery_master_id = base.get_current_master_id();
            this.id = LSRequest.qq("id");
            if (!string.IsNullOrEmpty(this.id))
            {
                this.dataTable = CallBLL.cz_zj_profit_set_bll.GetProfitById(this.id);
                if (this.dataTable != null)
                {
                    this.id         = this.dataTable.Rows[0]["id"].ToString();
                    this.u_type     = this.dataTable.Rows[0]["u_type"].ToString();
                    this.u_name     = this.dataTable.Rows[0]["u_name"].ToString();
                    this.minRate    = this.dataTable.Rows[0]["minRate"].ToString();
                    this.maxRate    = this.dataTable.Rows[0]["maxRate"].ToString();
                    this.openTime   = this.dataTable.Rows[0]["openTime"].ToString();
                    this.lottery_id = this.dataTable.Rows[0]["lottery_id"].ToString();
                    this.id_ccms    = this.dataTable.Rows[0]["id_ccms"].ToString();
                    this.systemRate = this.dataTable.Rows[0]["systemRate"].ToString();
                }
            }
            if (!string.IsNullOrEmpty(LSRequest.qq("hdnid")))
            {
                if (this.userModel.get_users_child_session() != null)
                {
                    base.Response.Write(base.ShowDialogBox("子賬號不能保存數據!", "", 400));
                    base.Response.End();
                }
                this.Edit();
            }
        }
Exemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = this.Session["user_name"].ToString();

            this.userModel = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;
            if (!this.userModel.get_u_type().Trim().Equals("zj"))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
            }
            if (((this.Session["child_user_name"] != null) && this.userModel.get_u_type().Trim().Equals("zj")) && !RuleJudge.ChildOperateValid(this.userModel, "po_3_4", HttpContext.Current))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            if (!FileCacheHelper.get_ManageZJProfit().Equals("1") || (this.userModel.get_users_child_session() != null))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            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_zj_profit_set_log_bll.GetLogByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount);
        }
Exemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = this.Session["user_name"].ToString();
            agent_userinfo_session sessionInfo = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;

            if (!sessionInfo.get_u_type().Trim().Equals("zj"))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
            }
            if (((this.Session["child_user_name"] != null) && sessionInfo.get_u_type().Trim().Equals("zj")) && !RuleJudge.ChildOperateValid(sessionInfo, "po_3_4", HttpContext.Current))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            this.page = LSRequest.qq("page");
            if (string.IsNullOrEmpty(this.page))
            {
                this.page = "1";
            }
            if (int.Parse(this.page) < 1)
            {
                this.page = "1";
            }
            string str2 = LSRequest.qq("isdel");

            if (!string.IsNullOrEmpty(str2) && str2.Equals("1"))
            {
                string str3 = LSRequest.qq("adid");
                if (!string.IsNullOrEmpty(str3))
                {
                    bool   flag2 = CallBLL.cz_ad_bll.DeleteAd(Convert.ToInt32(str3));
                    string url   = "news_list.aspx?page=" + this.page;
                    if (!flag2)
                    {
                        base.Response.Write(base.ShowDialogBox("刪除站內消息失敗!", url, 400));
                        base.Response.End();
                    }
                    else
                    {
                        base.Response.Write(base.ShowDialogBox("刪除站內消息成功!", url, 0));
                        base.Response.End();
                    }
                }
            }
            int     num = base.get_current_master_id();
            DataSet set = CallBLL.cz_ad_bll.GetAdByPage(sessionInfo.get_u_type(), num, Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount);

            if (((set != null) && (set.Tables.Count > 0)) && (set.Tables[0].Rows.Count > 0))
            {
                this.newsTable = set.Tables[0];
            }
            this.CurUrl = string.Format("news_list.aspx?page={0}", this.page);
        }
Exemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = this.Session["user_name"].ToString();

            this.userModel = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;
            if (!this.userModel.get_u_type().Trim().Equals("zj"))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
            }
            if (((this.Session["child_user_name"] != null) && this.userModel.get_u_type().Trim().Equals("zj")) && !RuleJudge.ChildOperateValid(this.userModel, "po_3_4", HttpContext.Current))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            if (!FileCacheHelper.get_ManageZJProfit().Equals("1"))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            if ((this.userModel.get_users_child_session() != null) && !this.userModel.get_users_child_session().get_is_admin().Equals(1))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            this.dataTable = CallBLL.cz_zj_profit_set_bll.GetProfit();
        }