From fcbd3be5b8cff86da965eaee5f17bd3831cb9a80 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期四, 11 九月 2025 17:47:11 +0800 Subject: [PATCH] bug --- DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs index 17fb6e7..2dbd766 100644 --- a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs +++ b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs @@ -277,7 +277,7 @@ } else - MsgHelper.ShowError("鎻愮ず锛�" + _rtn.rtnMsg); + MsgHelper.ShowError("鎻愮ず锛�" + _rtn.rtnMsg); } catch (Exception ex) { @@ -343,7 +343,7 @@ txt_fRequireOrgId.IsReadly = true; txt_fOwnerIdHead.IsReadly = true; txt_fPurchaseDeptId.IsReadly = true; - // txt_fPurchaserId.IsReadly = true; + // txt_fPurchaserId.IsReadly = true; } /// <summary> /// 鏂板浜嬩欢 @@ -737,6 +737,9 @@ var rowhandle = gvMx1.FocusedRowHandle; if (rowhandle < 0) return; + var dr = gvMx1.GetDataRow(rowhandle); + var strItemId = dr["itemId"].ToString(); + var strOrgGuid = txt_thOrgId.GetId(); if (string.IsNullOrEmpty(strOrgGuid)) { @@ -744,13 +747,15 @@ return; } ; - SelectCk frm = new SelectCk(strOrgGuid); + SelectCk frm = new SelectCk(strOrgGuid, strItemId); frm.UpdateParent += (ss, ee) => { var lst = new List<dynamic>(); lst = ee.DynamicList; gvMx1.SetFocusedRowCellValue("depotName", lst[0].name); gvMx1.SetFocusedRowCellValue("depotId", lst[0].guid); + gvMx1.SetFocusedRowCellValue("kcQty", lst[0].kcQty); + gvMx1.BestFitColumns(); }; frm.ShowDialog(); } @@ -763,7 +768,7 @@ { layItem1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; layItem2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; - // layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; + // layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; layItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; } else -- Gitblit v1.9.3