winform+dev的前后台分离标准项目
lg
2024-08-27 3aa008c8ce56cbd4cc981ba10a8b4c143208ad48
DevApp/Gs.DevApp/DevFrm/User/SysMenuAdd.cs
@@ -16,12 +16,13 @@
{
    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)
@@ -52,7 +53,7 @@
            string json = JsonConvert.SerializeObject(_obj);
            try
            {
                Utility.HttpPost("", "MenuAction/EditModel", json);
                UtilityHelper.HttpPost("", "MenuAction/EditModel", json);
            }
            catch (Exception ex)
            {
@@ -67,13 +68,11 @@
            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";
@@ -84,5 +83,18 @@
            }
        }
        private void getModel() {
            //_AppDomain
            //string json = JsonConvert.SerializeObject(_obj);
            //try
            //{
            //    Utility.HttpPost("", "MenuAction/GetModel", json);
            //}
            //catch (Exception ex)
            //{
            //    throw ex;
            //}
        }
    }
}