xiaoding721
2024-11-18 974cb705f74c43bd58cf5c78a61b50d9eade1f8b
更新 Method_Enable.qbl
已修改1个文件
19 ■■■■ 文件已修改
_Main/BL/Type_LockPeriod/Method_Enable.qbl 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_LockPeriod/Method_Enable.qbl
@@ -9,16 +9,15 @@
    // Akari Oct-30-2024 (created)
    offlinePlanRow := select( offlinePlanTable,Row,row,row.ProductID() = this.ProductInStockingPoint_MP().ProductID() and row.StockingPointID() = this.ProductInStockingPoint_MP().StockingPointID() );
    
    offlinePlanCells := selectset( offlinePlanRow, Cell,cell,cell.Column().TimeUnit() = "Day" );
    offlinePlanCellIndexTree := NamedValueTree::Create();
    for( i := 0; i< offlinePlanCells.Size(); i++ ){
      offlinePlanCell := offlinePlanCells.Element( i );
      offlinePlanCellHandle := offlinePlanCellIndexTree.GetHandle( offlinePlanCell.Column().StartDate().AsQUILL() );
      offlinePlanCellIndexTree.Root().AddChild( offlinePlanCellHandle,i );
    }
    if( not this.IsEnable() ){
    if( not this.IsEnable() and not isnull( offlinePlanRow )){
      offlinePlanCells := selectset( offlinePlanRow, Cell,cell,cell.Column().TimeUnit() = "Day" );
      offlinePlanCellIndexTree := NamedValueTree::Create();
      for( i := 0; i< offlinePlanCells.Size(); i++ ){
        offlinePlanCell := offlinePlanCells.Element( i );
        offlinePlanCellHandle := offlinePlanCellIndexTree.GetHandle( offlinePlanCell.Column().StartDate().AsQUILL() );
        offlinePlanCellIndexTree.Root().AddChild( offlinePlanCellHandle,i );
      }
      this.IsEnable( true );
      
      pispips := selectset( this,ProductInStockingPoint_MP.ProductInStockingPointInPeriod.astype( ProductInStockingPointInPeriodPlanningLeaf ),period,period.Period_MP().StartDate() <= this.LockDate() );