|
|
@@ -1564,10 +1564,21 @@ namespace Business.ResourceExamineManagement
|
|
|
if (master != null)
|
|
|
{
|
|
|
c.PurOrdRecID = master.RecID;
|
|
|
- if (master.FSTID == "3")
|
|
|
+ string location = "1001";
|
|
|
+ switch (master.USAGE)
|
|
|
{
|
|
|
- c.Location = "VMI01";
|
|
|
+ case "标准":
|
|
|
+ case "VMI":
|
|
|
+ location = "VMI01";
|
|
|
+ break;
|
|
|
+ case "研发":
|
|
|
+ location = "1101";
|
|
|
+ break;
|
|
|
+ case "ECR":
|
|
|
+ location = "1003";
|
|
|
+ break;
|
|
|
}
|
|
|
+ c.Location = location;
|
|
|
}
|
|
|
});
|
|
|
_purOrdDetail.Insert(poaction.poDetailList);
|
|
|
@@ -2584,12 +2595,25 @@ namespace Business.ResourceExamineManagement
|
|
|
|
|
|
polist.ForEach(a =>
|
|
|
{
|
|
|
+ string buyer = "110";
|
|
|
+ switch (a.supplier_type)
|
|
|
+ {
|
|
|
+ case "标准":
|
|
|
+ case "VMI":
|
|
|
+ break;
|
|
|
+ case "研发":
|
|
|
+ buyer = "130";
|
|
|
+ break;
|
|
|
+ case "ECR":
|
|
|
+ buyer = "170";
|
|
|
+ break;
|
|
|
+ }
|
|
|
purOrdMasters.Add(new PurOrdMaster
|
|
|
{
|
|
|
Domain = domain,
|
|
|
Potype = poType == 1 ? "po" : "pw",
|
|
|
PurOrd = a.po_billno,
|
|
|
- Buyer = a.po_purchaser_no,
|
|
|
+ Buyer = buyer,
|
|
|
OrdDate = a.po_ssend_date,
|
|
|
Curr = "CNY",
|
|
|
Supp = a.supplier_no,
|