|
|
@ -28,6 +28,7 @@ namespace TaskManager.Controllers |
|
|
|
{ |
|
|
|
if (plist.Count > 0) |
|
|
|
{ |
|
|
|
var requestDate = plist.First().RequestDate; |
|
|
|
//List<SUPPLIER_CON_DATE> list = new List<SUPPLIER_CON_DATE>();
|
|
|
|
//plist.ForEach(p =>
|
|
|
|
//{
|
|
|
@ -130,6 +131,7 @@ namespace TaskManager.Controllers |
|
|
|
itm.QuantityMeet30 = first.QuantityDemand30; |
|
|
|
itm.QuantityMeet31 = first.QuantityDemand31; |
|
|
|
itm.CreationTime = DateTime.Now; |
|
|
|
itm.RequestDate = requestDate; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -160,8 +162,8 @@ namespace TaskManager.Controllers |
|
|
|
con.VentureSpecific = ""; |
|
|
|
con.Measures = ""; |
|
|
|
con.StartDate = p.StartDate; |
|
|
|
con.QuantityMeet1 = p.QuantityDemand1 == null ? p.QuantityDemand1.Value : 0; |
|
|
|
con.QuantityMeet2 = p.QuantityDemand2 == null ? p.QuantityDemand2.Value : 0; |
|
|
|
con.QuantityMeet1 = p.QuantityDemand1 != null ? p.QuantityDemand1.Value : 0; |
|
|
|
con.QuantityMeet2 = p.QuantityDemand2 != null ? p.QuantityDemand2.Value : 0; |
|
|
|
con.QuantityMeet3 = p.QuantityDemand3; |
|
|
|
con.QuantityMeet4 = p.QuantityDemand4; |
|
|
|
con.QuantityMeet5 = p.QuantityDemand5; |
|
|
@ -192,6 +194,7 @@ namespace TaskManager.Controllers |
|
|
|
con.QuantityMeet30 = p.QuantityDemand30; |
|
|
|
con.QuantityMeet31 = p.QuantityDemand31; |
|
|
|
con.CreationTime = DateTime.Now; |
|
|
|
con.RequestDate = requestDate; |
|
|
|
list.Add(con); |
|
|
|
} |
|
|
|
|
|
|
|