public override void Submit_OnClick(object sender, EventArgs e) { if (Page.IsPostBack && Page.IsValid) { try { //base.PublishmentSystemInfo.Additional.WX_WebMenuColor = this.tbWebMenuColor.Text; //base.PublishmentSystemInfo.Additional.WX_IsWebMenuLeft = TranslateUtils.ToBool(this.rblIsWebMenuLeft.SelectedValue); var menuType = EWebMenuTypeUtils.GetEnumType(Request.Form["choose"]); PublishmentSystemInfo.Additional.WX_WebMenuType = EWebMenuTypeUtils.GetValue(menuType); DataProvider.PublishmentSystemDAO.Update(PublishmentSystemInfo); SuccessMessage("底部导航菜单风格配置成功!"); AddWaitAndRedirectScript(GetRedirectUrl(PublishmentSystemID)); } catch (Exception ex) { FailMessage(ex, "底部导航菜单风格配置失败!"); } } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } webMenuType = EWebMenuTypeUtils.GetEnumType(PublishmentSystemInfo.Additional.WX_WebMenuType); if (!IsPostBack) { InfoMessage("当前底部导航菜单风格:" + EWebMenuTypeUtils.GetText(webMenuType)); //this.tbWebMenuColor.Text = base.PublishmentSystemInfo.Additional.WX_WebMenuColor; //EBooleanUtils.AddListItems(this.rblIsWebMenuLeft, "左对齐", "右对齐"); //ControlUtils.SelectListItems(this.rblIsWebMenuLeft, base.PublishmentSystemInfo.Additional.WX_IsWebMenuLeft.ToString()); dlContents.DataSource = EWebMenuTypeUtils.GetList(); dlContents.ItemDataBound += dlContents_ItemDataBound; dlContents.DataBind(); } }