예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     wid = GetCurWebId();
     if (string.IsNullOrEmpty(wid))
     {
         return;
     }
     this.btnSaveSendSetting.Click += new EventHandler(this.btnSaveSendSetting_Click);
     if (!this.Page.IsPostBack)
     {
         if (VShopHelper.IsExistMessageTemplate(wid) <= 0)
         {
             //增加默认模板
             VShopHelper.AddMessageTemplate(wid);
         }
         this.rptList.DataSource = VShopHelper.GetMessageTemplates(wid);
         this.rptList.DataBind();
         SiteSettings masterSettings = SettingsManager.GetMasterSettings(false, wid);
         this.txtManageOpenID.Text = masterSettings.ManageOpenID;
     }
 }