lazhen
2024-09-23 408145f1c2cb8c721be7638f96320e0966e813c9
Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev-zlg
已修改1个文件
11 ■■■■■ 文件已修改
_Main/BL/Type_OfflinePlanCell/StaticMethod_RefreshOfflinePlan.qbl 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_OfflinePlanCell/StaticMethod_RefreshOfflinePlan.qbl
@@ -13,7 +13,7 @@
    // 生成下线计划表
    traverse ( macroPlan, Unit, u, u.HasCapacityTypeTime() 
    //           and u.Name() = "eMotor Assy (France)" // 测试本地场景时可以过滤
    //           and u.Name() = "CC-MoMo"              // 测试实际场景时可以过滤
    //           and u.Name() = "DL-MoMo"              // 测试实际场景时可以过滤
              ) {
      // 创建产线行
      opt.OfflinePlanRow( relnew, ProductionLine := u.ID(), ProductID := "", Type := "0" );
@@ -145,9 +145,12 @@
      previousColumn := indexColumn.PreviousColumn();
      nextColumn     := indexColumn.NextColumn();
      
      while ( not isnull( indexColumn.NextColumn() ) ) {
      while ( not isnull( indexColumn.NextColumn() )
    //          and indexColumn.ColumnDate() <= Date::Construct( 2024, 4, 16 ) // 测试实际场景时可以过滤
             ) {
        productionSerialNumber := 1;
        opcs                   := selectsortedset( indexColumn, OfflinePlanCell, tempOPC, tempOPC.FindType( "2", pl ), tempOPC.InventoryWeight() );
        initialSize            := opcs.Size();
        if ( opcs.Size() > 0 ) {
          // 判定1
          previousOPC := maxselect( previousColumn, OfflinePlanCell, tempOPC, tempOPC.FindType( "2", pl ), tempOPC.ProductionSerialNumber() );
@@ -172,8 +175,8 @@
                                 exists( nextColumn, OfflinePlanCell, nextOPC, nextOPC.FindType( "2", pl ) and nextOPC.OfflinePlanRow().ProductID() = tempOPC.OfflinePlanRow().ProductID() ) );
          if ( nextOPCs.Size() = 1 ) {
            opc := nextOPCs.Element( 0 );
            opc.Value( "#" + opcs.Size().Format( "N(LPad0(2))" ) );
            opc.ProductionSerialNumber( opcs.Size() );
            opc.Value( "#" + initialSize.Format( "N(LPad0(2))" ) );
            opc.ProductionSerialNumber( initialSize );
            opcs.Remove( opc );
          }