示例#1
0
        private void btnSave_Click(object sender, System.EventArgs e)
        {
            string str           = base.Request.Form["CheckBoxGroup"];
            int    distributorId = base.Request.QueryString["distributorId"].ToInt();

            if (string.IsNullOrEmpty(str))
            {
                this.ShowMsg("请先选择要添加的街道", false);
            }
            else
            {
                if (SalesHelper.AddDistributorRegions(distributorId, str))
                {
                    this.ShowMsgAndReUrl("成功添加了选择的区域", true, Request.Url.AbsoluteUri);
                }
                else
                {
                    this.ShowMsg("添加失败,未知错误", false);
                }
            }
        }