3
This commit is contained in:
1 parent
e9f154bd06
commit
fa7b5814ba
22 files changed
+989
-168
No files matched your search
@@ -34,7 +34,7 @@ public class XWMSPTHController : BaseController
|
||||
[ActionDescription("Sys.Search")]
|
||||
public ActionResult Search(string address, string billno, string supply, string materialcode, string cgsh)
|
||||
{
|
||||
var sql = @"select * from QREQ3.XWMSPTH where 1=1";
|
||||
var sql = @"select * from QRE.XWMSPTH where 1=1";
|
||||
if (!string.IsNullOrEmpty(address))
|
||||
{
|
||||
sql += $" and PRHFCY_0 = '{address}'";
|
||||
@@ -111,6 +111,7 @@ public class XWMSPTHController : BaseController
|
||||
shipment.ShipTo = data.FirstOrDefault().BPSNUM_0;
|
||||
shipment.Type = "CGT";
|
||||
shipment.FirstStatus = 0;
|
||||
shipment.LastStatus = 0;
|
||||
shipment.AppointmentTime = data.FirstOrDefault().RCPDAT_0;
|
||||
shipment.UserDef1 = data.FirstOrDefault().PRHFCY_0;
|
||||
|
||||
@@ -128,6 +129,8 @@ public class XWMSPTHController : BaseController
|
||||
detail.MaterialCode = item.ITMREF_0;
|
||||
detail.MaterialName = HttpUtility.HtmlDecode(item.ITMDES1_0);
|
||||
detail.Lot = HttpUtility.HtmlDecode(item.ITMDES2_0);
|
||||
detail.SupplierCode = shipment.ShipTo;
|
||||
detail.SupplierName = item.BPSNAM_0;
|
||||
detail.Qty = item.THISQTYSTU;
|
||||
detail.Unit = item.STU_0;
|
||||
detail.PurchasQty = item.THISQTYUOM;
|
||||
|
||||
Reference in new issue
Block a user