1
lu
2025-01-07 c3d64db989453f715d27fccb7fb725456478b92c
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 "";
        }
    }
}