|
|
@@ -89,6 +89,8 @@ namespace Business.ResourceExamineManagement
|
|
|
|
|
|
Random rnd = new Random();
|
|
|
|
|
|
+ public decimal ProductionTimeDay;
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 构造函数
|
|
|
/// </summary>
|
|
|
@@ -138,6 +140,7 @@ namespace Business.ResourceExamineManagement
|
|
|
public void CalcView(List<BomChildExamineDto> returnlist, long bangid, decimal count, DateTime
|
|
|
? plan_date, List<mo_ic_item_stockoccupy> sklist, crm_seorderentry sentrys, List<mo_ic_item> icitemlist)
|
|
|
{
|
|
|
+ ProductionTimeDay = 0;
|
|
|
//第一级
|
|
|
returnlist = returnlist.OrderBy(s => s.num_order).ToList();
|
|
|
var level1Dto = returnlist[0];
|
|
|
@@ -309,6 +312,7 @@ namespace Business.ResourceExamineManagement
|
|
|
{
|
|
|
LeadTime = Day;
|
|
|
}
|
|
|
+ ProductionTimeDay = LeadTime;
|
|
|
mes_Morders.moentry_sys_etime = mes_Morders.moentry_sys_stime.Value.AddDays((double)Day);
|
|
|
mes_Morders.morder_need_time = ProductiveDate;
|
|
|
//满足资源检查的时间需加上提前期
|