lihongji
2024-12-10 a520b98f6d6951245266e7b80ad3b3e22aa8af72
换型损失优化
已修改2个文件
7 ■■■■ 文件已修改
_Main/BL/Type_NewOfflinePlanCell/StaticMethod_DeductionOfReplacementLoss.qbl 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormNewOfflinePlan/Response_pHeader_bDeductChangeoverLoss_OnClick.def 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_NewOfflinePlanCell/StaticMethod_DeductionOfReplacementLoss.qbl
@@ -2,7 +2,8 @@
#parent: #root
StaticMethod DeductionOfReplacementLoss (
  MacroPlan macroPlan,
  NewOfflinePlanTable nopt
  NewOfflinePlanTable nopt,
  Entitys entitys
)
{
  TextBody:
@@ -15,6 +16,7 @@
    
    traverse ( allProductionLines, Elements, pl
    //           , pl = "CC ZKG" 
               , exists( entitys, Elements.astype( Unit ), tempU, tempU.Name() = pl )
             ) 
    {
      // 下线计划当前产线下的行
_Main/UI/MacroPlannerWebApp/Component_FormNewOfflinePlan/Response_pHeader_bDeductChangeoverLoss_OnClick.def
@@ -13,7 +13,8 @@
  {
    Body:
    [*
      NewOfflinePlanCell::DeductionOfReplacementLoss( MacroPlan, dhNewOfflinePlanTable.Data() );
      NewOfflinePlanCell::DeductionOfReplacementLoss( MacroPlan, dhNewOfflinePlanTable.Data(),
                                                      DataHolderCheckedEntities.Data() );
      
      opt := maxselect( MacroPlan, NewOfflinePlanTable, tempNOPT, true, tempNOPT.SaveDateTime() );
      dhNewOfflinePlanTable.Data( opt );