3
This commit is contained in:
1 parent
e9f154bd06
commit
fa7b5814ba
22 files changed
+989
-168
No files matched your search
@@ -32,7 +32,7 @@ public class XWMSPOHController : BaseController
|
||||
[ActionDescription("Sys.Search")]
|
||||
public ActionResult Search(string address, string billno, string supply, string materialcode)
|
||||
{
|
||||
var sql = @"select * from QREQ3.XWMSPOH where 1=1";
|
||||
var sql = @"select * from QRE.XWMSPOH where 1=1";
|
||||
if (!string.IsNullOrEmpty(address))
|
||||
{
|
||||
sql += $" and POHFCY_0 = '{address}'";
|
||||
@@ -106,6 +106,7 @@ public class XWMSPOHController : BaseController
|
||||
receipt.SupplierName = data.FirstOrDefault().BPRNAM_0;
|
||||
receipt.Type = "CGR";
|
||||
receipt.FirstStatus = 0;
|
||||
receipt.LastStatus = 0;
|
||||
receipt.AppointmentTime = data.FirstOrDefault().ORDDAT_0;
|
||||
receipt.UserDef2 = data.FirstOrDefault().POHFCY_0;
|
||||
|
||||
@@ -132,6 +133,8 @@ public class XWMSPOHController : BaseController
|
||||
detail.Batch = _unitwork.GetSerialNumber("HYB", 5).Remove(3, 2);
|
||||
detail.Status = 0;
|
||||
detail.CreateTime = DateTime.Now;
|
||||
detail.SupplierCode = receipt.SupplierCode;
|
||||
detail.SupplierName = receipt.SupplierName;
|
||||
detailList.Add(detail);
|
||||
}
|
||||
_unitwork.BatchAdd(detailList.ToArray());
|
||||
|
||||
Reference in new issue
Block a user