|
|
@@ -618,7 +618,7 @@ namespace Business.ResourceExamineManagement
|
|
|
item.kitting_time = cilList.Max(s => s.kitting_time);
|
|
|
}
|
|
|
item.make_qty = item.lack_qty;
|
|
|
- //走自制
|
|
|
+ /*//走自制
|
|
|
ProdExamineParamDto prodExamine = new ProdExamineParamDto()
|
|
|
{
|
|
|
bom_number = item.bom_number,
|
|
|
@@ -630,17 +630,17 @@ namespace Business.ResourceExamineManagement
|
|
|
_productExamineAppService.tech_Processes = tech_Processes;
|
|
|
_productExamineAppService.tech_Proc_Workshops = tech_Proc_Workshops;
|
|
|
|
|
|
- /*if (param.checkflag)
|
|
|
+ *//*if (param.checkflag)
|
|
|
{
|
|
|
//todo:增加生成子工单后,这里需要加上生成的子工单的明细。
|
|
|
- }*/
|
|
|
+ }*//*
|
|
|
item.make_list = new List<moorder>();
|
|
|
var minute = _productExamineAppService.ProductiveExamine(prodExamine);
|
|
|
//系统建议完工日期为 开工日期+产能检查时间=完工日期
|
|
|
var Day = minute / (60 * 10); //返回的分钟除以十个小时得出工作天数;
|
|
|
var ktime = item.kitting_time.Value.AddDays((double)Day);
|
|
|
//item.kitting_time = ktime > mooccupylist[0].moo_etime ? ktime : mooccupylist[0].moo_etime;
|
|
|
- item.kitting_time = ktime;
|
|
|
+ item.kitting_time = ktime;*/
|
|
|
}
|
|
|
}
|
|
|
else if (item.erp_cls == 3)
|
|
|
@@ -1007,7 +1007,8 @@ namespace Business.ResourceExamineManagement
|
|
|
CalcIcitem(cilList, returnlist, bangid, sklist, plan_date, icitemlist, sentrys, childidList);
|
|
|
sct.kitting_time = cilList.Max(s => s.kitting_time);
|
|
|
}
|
|
|
- //走自制
|
|
|
+ sct.make_qty = sct.lack_qty;
|
|
|
+ /*//走自制
|
|
|
ProdExamineParamDto prodExamine = new ProdExamineParamDto()
|
|
|
{
|
|
|
bom_number = sct.bom_number,
|
|
|
@@ -1023,7 +1024,7 @@ namespace Business.ResourceExamineManagement
|
|
|
//系统建议完工日期为 开工日期+产能检查时间=完工日期
|
|
|
var Day = minute / (60 * 10); //返回的分钟除以十个小时得出工作天数;
|
|
|
sct.kitting_time = sct.kitting_time.Value.AddDays((double)Day);
|
|
|
- sct.make_qty = sct.lack_qty;
|
|
|
+ sct.make_qty = sct.lack_qty;*/
|
|
|
//todo:
|
|
|
sct.make_list = new List<moorder>();
|
|
|
}
|