From 0533acdf031795dbe59f255de5f351b584001f34 Mon Sep 17 00:00:00 2001
From: kyy <3283105747@qq.com>
Date: 星期四, 16 十月 2025 14:53:07 +0800
Subject: [PATCH] 工单排产修改开工时间完工时间一起变化
---
DevApp/Gs.DevApp/UserControl/UcLookKw.cs | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/UcLookKw.cs b/DevApp/Gs.DevApp/UserControl/UcLookKw.cs
index 9127ce3..0542bcf 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookKw.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookKw.cs
@@ -31,28 +31,28 @@
}
/// <summary>
- /// 璇诲彇浠撳簱
+ /// 璇诲彇搴撲綅
/// </summary>
/// <param name="orgId"></param>
/// <param name="_dftVale"></param>
- public void getSuppler(string orgId, string _dftVale = "")
+ public void getSuppler(string orgId,string depotId, string _dftVale = "")
{
lookSearchSupplier.EditValue = null;
string _keyWhere = "";
- if (!string.IsNullOrEmpty(orgId))
- _keyWhere = " and a.FSubsidiary ='" + orgId + "'";
- var pgq = new PageQueryModel(1, 999999, "org.FNumber asc ,a.depot_code", "asc", "",
+ if (!string.IsNullOrEmpty(orgId) && !string.IsNullOrEmpty(depotId))
+ _keyWhere = " and a.FSubsidiary ='" + orgId + "' and b.depot_guid ='" + depotId + "'";
+ var pgq = new PageQueryModel(1, 999999, "b.xh", "asc", "",
" and is_ng='A'" + _keyWhere);
var json = JsonConvert.SerializeObject(pgq);
try
{
var strReturn = UtilityHelper.HttpPost("",
- "MesDepotsManager/GetListPage", json);
+ "MesDepotSectionsManager/GetListPage", json);
var rtn = UtilityHelper.ReturnToTablePage(strReturn);
- var dt = rtn.rtnData.list;
+ var dt = rtn.rtnData.list;
lookSearchSupplier.Properties.DataSource = dt;
- lookSearchSupplier.Properties.DisplayMember = "depotName";
- lookSearchSupplier.Properties.ValueMember = "depotId";
+ lookSearchSupplier.Properties.DisplayMember = "depotSectionCode";
+ lookSearchSupplier.Properties.ValueMember = "guid";
lookSearchSupplier.ForceInitialize();
lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup;
if (!string.IsNullOrEmpty(_dftVale))
@@ -69,7 +69,7 @@
var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
if (row != null)
{
- string id = row["DepotId"].ToString();
+ string id = row["Guid"].ToString();
return id;
}
return "";
@@ -79,7 +79,7 @@
var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
if (row != null)
{
- string id = row["DepotCode"].ToString();
+ string id = row["DepotSectionCode"].ToString();
return id;
}
return "";
@@ -98,7 +98,7 @@
return;
}
if (!string.IsNullOrEmpty(Code))
- lookSearchSupplier.EditValue = Int64.Parse(((Code.ToString().Trim())));
+ lookSearchSupplier.EditValue = (((Code.ToString().Trim())));
}
/// <summary>
--
Gitblit v1.9.3