| | |
| | | { |
| | | public partial class SysMenuAdd : DevExpress.XtraEditors.XtraForm |
| | | { |
| | | public SysMenuAdd() |
| | | public SysMenuAdd(string guid) |
| | | { |
| | | InitializeComponent(); |
| | | btnSave.Click += BtnSave_Click; |
| | | btnEsc.Click += BtnEsc_Click; |
| | | getTree(); |
| | | lbGuid.Text = guid; |
| | | } |
| | | |
| | | private void BtnEsc_Click(object sender, EventArgs e) |
| | |
| | | string json = JsonConvert.SerializeObject(_obj); |
| | | try |
| | | { |
| | | Utility.HttpPost("", "MenuAction/EditModel", json); |
| | | UtilityHelper.HttpPost("", "MenuAction/EditModel", json); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | string strReturn = ""; |
| | | try |
| | | { |
| | | |
| | | strReturn =Utility.HttpPost("", "MenuAction/GetListPage", json); |
| | | ReturnModel<PageListModel> dd = Utility.GetTableByJson(strReturn); |
| | | strReturn =UtilityHelper.HttpPost("", "MenuAction/GetListPage", json); |
| | | ReturnModel<PageListModel> dd = UtilityHelper.GetTableByJson(strReturn); |
| | | DataTable dt = dd.rtnData.list; |
| | | txtParentMenuName.Properties.DataSource = dt; |
| | | txtParentMenuName.Properties.DisplayMember = "name"; |
| | | txtParentMenuName.Properties.DataSource = dt; |
| | | txtParentMenuName.Properties.DisplayMember = "name"; |
| | | txtParentMenuName.Properties.TreeList.KeyFieldName = "guid"; |
| | | txtParentMenuName.Properties.TreeList.ParentFieldName = "upGuid"; |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | private void getModel() { |
| | | //_AppDomain |
| | | //string json = JsonConvert.SerializeObject(_obj); |
| | | //try |
| | | //{ |
| | | // Utility.HttpPost("", "MenuAction/GetModel", json); |
| | | //} |
| | | //catch (Exception ex) |
| | | //{ |
| | | // throw ex; |
| | | //} |
| | | } |
| | | } |
| | | } |