Esempio n. 1
0
 /// <summary>
 /// 新增Panel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btn_Pn_new_Click(object sender, EventArgs e)
 {
     SysNavPanel pn = new SysNavPanel();
     pn.Group = cbl_pn_group.GetValues();
     pn.Icon = ddl_ph_icon.SelectedValue;
     pn.OrderIndex = txt_pn_orderindex.Text.ToInt32();
     pn.Title = txt_pn_title.Text;
     DataEntities ent = new DataEntities();
     ent.AddToSysNavPanel(pn);
     ent.SaveChanges();
     ent.Dispose();
     Js.AlertAndChangUrl("新增成功", "SysmenuManagement.aspx");
 }