| | |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 工单guid |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public string GetId() |
| | | { |
| | | var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; |
| | |
| | | } |
| | | return ""; |
| | | } |
| | | /// <summary> |
| | | /// 工单编号 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public string GetCode() |
| | | { |
| | | var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; |
| | |
| | | } |
| | | 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") |
| | |
| | | } |
| | | 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 ""; |
| | | } |
| | | } |
| | | } |