예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         this.sltShopState.Value = "0";
         this.chkSMS.Checked     = PubFunction.curParameter.bolSms;
         this.bindSltList();
         this.txtIsSendCard.Value   = (PubFunction.curParameter.bolIsSendCard ? "1" : "0");
         this.txtSmsManage.Value    = (PubFunction.curParameter.bolShopSmsManage ? "1" : "0");
         this.txtPointManage.Value  = (PubFunction.curParameter.bolShopPointManage ? "1" : "0");
         this.txtIsSettlement.Value = (PubFunction.curParameter.bolIsSettlement ? "1" : "0");
         this.union.Value           = PubFunction.curParameter.UsingUnion.ToString();
         this.txtShopType.Value     = "3";
         this.NewMethod();
         PubFunction.BindProvinceSelect(this.sltProvince);
         Chain.BLL.SysShop bllShop = new Chain.BLL.SysShop();
         int count = bllShop.GetRecordCount("IsMain=1");
         if (this._UserGroupID == 1 && count == 0)
         {
             this.btnMainShopAdd.Visible = true;
         }
         else
         {
             this.btnMainShopAdd.Visible = false;
         }
     }
 }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         if (this.NeedBind)
         {
             PubFunction.BindProvinceSelect(this.sltProvince);
         }
     }
 }
예제 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         this.chkSMS.Checked = PubFunction.curParameter.bolSms;
         this.bindSltList();
         this.txtIsSendCard.Value   = (PubFunction.curParameter.bolIsSendCard ? "1" : "0");
         this.txtSmsManage.Value    = (PubFunction.curParameter.bolShopSmsManage ? "1" : "0");
         this.txtPointManage.Value  = (PubFunction.curParameter.bolShopPointManage ? "1" : "0");
         this.txtIsSettlement.Value = (PubFunction.curParameter.bolIsSettlement ? "1" : "0");
         this.union.Value           = PubFunction.curParameter.UsingUnion.ToString();
         this.txtShopType.Value     = "2";
         this.NewMethod();
         PubFunction.BindProvinceSelect(this.sltProvince);
     }
 }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         this.txtShopID.Value = "1";
         Chain.BLL.SysShop   bllSysShop = new Chain.BLL.SysShop();
         Chain.Model.SysShop modelShop  = bllSysShop.GetModel(1);
         this.txtShopName.Value = modelShop.ShopName;
         PubFunction.BindProvinceSelect(this.sltProvince);
         this.txtShopType.Value = "1";
         this.bindSltList();
         this.sltShopList.SelectedIndex = 0;
         this.trSltShop.Attributes.Add("style", "display:none;");
         this.trShopSms.Attributes.Add("style", "display:none;");
         this.trShopPoint.Attributes.Add("style", "display:none;");
     }
 }