From 2066a7e10e20433f7445431d6d34a9026c29f663 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期一, 23 十二月 2024 08:43:43 +0800 Subject: [PATCH] 细节 --- DevApp/Gs.DevApp/UserControl/UcLookDaa.cs | 107 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 104 insertions(+), 3 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs index 19a95cc..94e319d 100644 --- a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs +++ b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs @@ -56,7 +56,10 @@ MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } } - + /// <summary> + /// 宸ュ崟guid + /// </summary> + /// <returns></returns> public string GetId() { var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; @@ -67,6 +70,10 @@ } return ""; } + /// <summary> + /// 宸ュ崟缂栧彿 + /// </summary> + /// <returns></returns> public string GetCode() { var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; @@ -77,12 +84,19 @@ } return ""; } + /// <summary> + /// 宸ュ崟鏂囨湰锛屽簲璇ユ槸缂栧彿 + /// </summary> + /// <returns></returns> public string GetName() { var name = lookSearchSupplier.Text.Trim(); return name; } - + /// <summary> + /// + /// </summary> + /// <param name="Code"></param> public void SetIdOrCode(string Code) { if (Code == "-1") @@ -92,6 +106,93 @@ } lookSearchSupplier.EditValue = (((Code.ToString().Trim()))); } - + + /// <summary> + /// 浜у搧id + /// </summary> + /// <returns></returns> + public string GetPrdId() + { + var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; + if (row != null) + { + string id = row["daa002"].ToString(); + return id; + } + return ""; + } + /// <summary> + /// 浜у搧鍚嶇О + /// </summary> + /// <returns></returns> + public string GetPrdName() + { + var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; + if (row != null) + { + string id = row["itemName"].ToString(); + return id; + } + return ""; + } + /// <summary> + /// 浜у搧瑙勬牸鍨嬪彿 + /// </summary> + /// <returns></returns> + public string GetPrdModel() + { + var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; + if (row != null) + { + string id = row["itemModel"].ToString(); + return id; + } + return ""; + } + /// <summary> + /// 浜у搧缂栫爜 + /// </summary> + /// <returns></returns> + public string GetPrdNo() + { + var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; + if (row != null) + { + string id = row["itemNo"].ToString(); + return id; + } + return ""; + } + + + /// <summary> + /// 杞﹂棿 + /// </summary> + /// <returns></returns> + public string GetWorkName() + { + var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; + if (row != null) + { + string id = row["dptnName"].ToString(); + return id; + } + return ""; + } + + /// <summary> + /// 绾垮埆 + /// </summary> + /// <returns></returns> + public string GetWorkXb() + { + var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; + if (row != null) + { + string id = row["xb"].ToString(); + return id; + } + return ""; + } } } -- Gitblit v1.9.3