From 0cda77328c5e7e818a2c0f7f03a2d738c338634c Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期一, 09 十二月 2024 15:01:36 +0800 Subject: [PATCH] 修改模版 --- DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.cs | 23 ++++++++++++----------- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.cs b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.cs index c73d317..ec4a34e 100644 --- a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.cs +++ b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.cs @@ -26,14 +26,16 @@ toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; + Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); + Gs.DevApp.ToolBox.UtilityHelper.SetGridSearMx(gvMx1); getPageList(1); pageBar1.PagerEvent += PageBar1_PagerEvent; - Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); + txt_supplier.getSuppler(""); } - private async void GridView1_ColumnFilterChanged(object sender, EventArgs e) + private void GridView1_ColumnFilterChanged(object sender, EventArgs e) { _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns); - await Task.Delay(100); + Task.Delay(100); getPageList(1); } /// <summary> @@ -111,16 +113,15 @@ /// </summary> /// <param name="curPage">绗嚑椤�</param> /// <param name="pageSize">姣忛〉鍑犳潯</param> - private async void getPageList(int curPage) + private void getPageList(int curPage) { - UcLoading _loading = new UcLoading(); var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "create_date", "asc", "", _sbSqlWhere.ToString()); var json = JsonConvert.SerializeObject(pgq); try { - var strReturn = await UtilityHelper.HttpPostAsync("", + var strReturn = UtilityHelper.HttpPost("", _webServiceName + "GetListPage", json); var dd = UtilityHelper.ReturnToTablePage(strReturn); if (dd.rtnCode > 0) @@ -149,9 +150,9 @@ { MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } - _loading.Stop(); + } - private async void getModel(string strGuid, bool isEdit, int tabIdx) + private void getModel(string strGuid, bool isEdit, int tabIdx) { if (string.IsNullOrEmpty(strGuid)) { @@ -160,14 +161,14 @@ } UtilityHelper.JumpToTab(xtraTabControl1, tabIdx); - UcLoading _loading = new UcLoading(); + var _obj = new { guid = strGuid //涓诲缓 }; try { - var strJson = await UtilityHelper.HttpPostAsync("", + var strJson = UtilityHelper.HttpPost("", _webServiceName + "GetModel", JsonConvert.SerializeObject(_obj)); var _rtn = UtilityHelper.ReturnToDynamic(strJson); @@ -205,7 +206,7 @@ { MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } - _loading.Stop(); + } } } \ No newline at end of file -- Gitblit v1.9.3