protected void Page_Load(object sender, EventArgs e)
 {
     if (!int.TryParse(this.Page.Request.QueryString["GroupId"], out this.currentGroupId))
     {
         base.GotoResourceNotFound();
     }
     else
     {
         this.BtnAddMembers.Click       += new EventHandler(this.BtnAddMembers_Click);
         this.lkbDelectCheck.Click      += new EventHandler(this.lkbDelectCheck_Click);
         this.grdMemberList.RowDeleting += new GridViewDeleteEventHandler(this.grdMemberList_RowDeleting);
         if (!base.IsPostBack)
         {
             CustomGroupingInfo groupInfoById = CustomGroupingHelper.GetGroupInfoById(this.currentGroupId);
             if (groupInfoById != null)
             {
                 this.GroupName.Text = groupInfoById.GroupName;
                 this.BindData();
             }
             else
             {
                 base.Response.Redirect("CustomDistributorList.aspx");
             }
         }
     }
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.localUrl = base.Request.Url.ToString();
     if (!int.TryParse(this.Page.Request.QueryString["GroupId"], out this.currentGroupId))
     {
         base.GotoResourceNotFound();
     }
     else
     {
         this.btnSelect.Click += new EventHandler(this.btnSelect_Click);
         this.btnJoin.Click   += new EventHandler(this.btnJoin_Click);
         if (!base.IsPostBack)
         {
             CustomGroupingInfo groupInfoById = CustomGroupingHelper.GetGroupInfoById(this.currentGroupId);
             if (groupInfoById != null)
             {
                 this.GroupName.Text    = groupInfoById.GroupName;
                 this.resultDiv.Visible = false;
             }
             else
             {
                 this.ShowMsgAndReUrl("参数错误!", false, "CustomDistributorList.aspx");
             }
         }
     }
 }
Esempio n. 3
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     if (!int.TryParse(this.Page.Request.QueryString["GroupId"], out this.currentGroupId))
     {
         base.GotoResourceNotFound();
         return;
     }
     this.BtnAddMembers.Click       += new System.EventHandler(this.BtnAddMembers_Click);
     this.lkbDelectCheck.Click      += new System.EventHandler(this.lkbDelectCheck_Click);
     this.grdMemberList.RowDeleting += new System.Web.UI.WebControls.GridViewDeleteEventHandler(this.grdMemberList_RowDeleting);
     if (!base.IsPostBack)
     {
         CustomGroupingInfo groupInfoById = CustomGroupingHelper.GetGroupInfoById(this.currentGroupId);
         this.GroupName.Text = groupInfoById.GroupName;
         this.BindData();
     }
 }