From 998a0389c282411a5ea583ba50428a46e014c01c Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期三, 25 十二月 2024 13:44:17 +0800 Subject: [PATCH] 委外补料 --- DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemCl.cs | 33 ++++++++++++++++++++++++--------- 1 files changed, 24 insertions(+), 9 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemCl.cs b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemCl.cs index 32f720f..4cb261e 100644 --- a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemCl.cs +++ b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemCl.cs @@ -54,8 +54,8 @@ txt_bl002.Text = txt_bl001.GetPrdNo(); txt_bl014.Text = txt_bl001.GetPrdName(); txt_bl015.Text = txt_bl001.GetPrdModel(); - txt_bl011.Text= txt_bl001.GetWorkName(); - txt_bl012.Text= txt_bl001.GetWorkXb(); + txt_bl011.Text = txt_bl001.GetWorkName(); + txt_bl012.Text = txt_bl001.GetWorkXb(); }; var _obj = new { @@ -207,9 +207,16 @@ return; } Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3); - List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); - gvList.Add(gvMx1); - UtilityHelper.ChangeEnableByControl(panel1.Controls, true, gvList); + if (xtraTabControl1.SelectedTabPageIndex == 1) + { + getModel(lbGuid.Text.Trim()); + } + else + { + List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); + gvList.Add(gvMx1); + UtilityHelper.ChangeEnableByControl(panel1.Controls, true, gvList); + } } /// <summary> /// 鏂板浜嬩欢 @@ -248,13 +255,19 @@ txt_bl010.Focus(); return; } + if (string.IsNullOrEmpty(txt_bl017.Text.Trim())) + { + Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨鍗曟嵁绫诲瀷锛�"); + txt_bl017.Focus(); + return; + } var _obj = new { guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //涓诲缓 inGdId = inGdId,//宸ュ崟鍙� inCkId = inCkId,//浠撳簱 inYy = txt_bl007.Text.Trim(),//鍘熷洜 - inType = "鐢熶骇瓒呴", + inType = txt_bl017.Text.Trim(), list = new List<dynamic>(), }; gvMx1.CloseEditor(); @@ -279,7 +292,7 @@ _obj.list.Add(new { Guid = _guid, - DabGuid= (row["dabGuid"].ToString()), + DabGuid = (row["dabGuid"].ToString()), ItemId = (row["bld012"].ToString()), Sqsl = (row["bld007"].ToString()), Bz = (row["bld010"].ToString()), @@ -295,7 +308,9 @@ { lbGuid.Text = _rtn.rtnData; toolBarMenu1.isSetBtn = true; - UtilityHelper.ChangeEnableByControl(this.panel1.Controls, false); + List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); + gvList.Add(gvMx1); + UtilityHelper.ChangeEnableByControl(this.panel1.Controls, false, gvList); } } catch (Exception ex) @@ -479,7 +494,7 @@ DataRowView SelectedDataRow = (DataRowView)LookupEdit.GetSelectedDataRow(); gvMx1.SetFocusedRowCellValue("bld002", SelectedDataRow["itemNo"]); gvMx1.SetFocusedRowCellValue("bld003", SelectedDataRow["itemName"]); - gvMx1.SetFocusedRowCellValue("bld004", SelectedDataRow["itemModel"]); + gvMx1.SetFocusedRowCellValue("bld004", SelectedDataRow["itemModel"]); gvMx1.SetFocusedRowCellValue("dabGuid", SelectedDataRow["dabGuid"]); } -- Gitblit v1.9.3