Exemple #1
0
 private ZentCloud.BLLPermission.Model.MenuInfo GetControlData(ZentCloud.BLLPermission.Model.MenuInfo menu)
 {
     menu.NodeName = this.txtNodeName.Text;
     menu.Url      = this.txtUrl.Text.ToLower();
     menu.PreID    = this.wucPreMenu.SelectValue;
     menu.MenuSort = int.Parse(this.txtMenuSort.Text);
     menu.ICOCSS   = this.txtICOCSS.Text;
     return(menu);
 }
Exemple #2
0
 protected void grvData_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
 {
     this.ViewState["MenuID"] = this.grvData.DataKeys[e.NewSelectedIndex].Value;
     this.ViewState["op"]     = "update";
     ZentCloud.BLLPermission.Model.MenuInfo menu = menuBll.Get <ZentCloud.BLLPermission.Model.MenuInfo>(string.Format(" MenuID = {0} ", this.ViewState["MenuID"].ToString()));
     this.txtNodeName.Text       = menu.NodeName;
     this.txtUrl.Text            = menu.Url;
     this.wucPreMenu.SelectValue = menu.PreID;
     this.txtMenuSort.Text       = menu.MenuSort.ToString();
     this.txtICOCSS.Text         = menu.ICOCSS;
 }