From d35bb711f8d3d267b44b4a80c20e31dabf309ae7 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期二, 14 一月 2025 08:17:18 +0800 Subject: [PATCH] 其它入库 --- DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs index 3056435..fbc9833 100644 --- a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs +++ b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs @@ -43,9 +43,9 @@ pageBar1.PagerEvent += PageBar1_PagerEvent; txt_depotId.getSuppler(""); txt_suppId.getSuppler(""); - txt_org.EditChanged += (s, e) => + txt_thOrgId.EditChanged += (s, e) => { - var orgId = txt_org.GetId(); + var orgId = txt_thOrgId.GetId(); if (string.IsNullOrEmpty(orgId)) return; txt_suppId.getSuppler(orgId); @@ -59,7 +59,7 @@ Gs.DevApp.ToolBox.MsgHelper.ShowError("璇峰厛閫夋嫨渚涘簲鍟嗭紝鎵嶈兘閫夋嫨鏉ユ枡鏄庣粏锛�"); return; } - var frm = new SelectMesCgthSq(this.txt_suppId.GetId()); + var frm = new SelectMesCgthSq(this.txt_suppId.GetId(),this.txt_suppId.GetId(), (txt_isOut.Checked == true ? 2 : 1).ToString()); //璧嬪�肩粰鏄庣粏琛� frm.UpdateParent += (ss, ee) => { @@ -91,8 +91,6 @@ frm.ShowDialog(); }; } - - private async void GridView1_ColumnFilterChanged(object sender, EventArgs e) { _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns); @@ -277,11 +275,11 @@ toolBarMenu1.isSetBtn = false; var _ckId = txt_depotId.GetId(); //浠撳簱缂栧彿 depots_code var _gysId = txt_suppId.GetId(); //渚涘簲鍟嗙紪鍙� - string _orgId = txt_org.GetId(); + string _orgId = txt_thOrgId.GetId(); if (string.IsNullOrEmpty(_orgId)) { MsgHelper.Warning("璇烽�夋嫨缁勭粐锛�"); - txt_org.Focus(); + txt_thOrgId.Focus(); return; } if (string.IsNullOrEmpty(_gysId)) @@ -390,6 +388,7 @@ { gcMain.DataSource = dt; gcMain.ForceInitialize(); + gridView1.BestFitColumns(); } else UtilityHelper.SetDefaultTable(gcMain, gridView1); @@ -445,6 +444,7 @@ gcMx1.BindingContext = new BindingContext(); gcMx1.DataSource = dt; gcMx1.ForceInitialize(); + gvMx1.BestFitColumns(); } else { @@ -459,7 +459,6 @@ ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } } - /// <summary> /// 宸ュ叿鏉′簨浠� /// </summary> @@ -512,7 +511,6 @@ } } - private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { gvMx1.CloseEditor(); -- Gitblit v1.9.3