xiaoding721
2024-11-18 974cb705f74c43bd58cf5c78a61b50d9eade1f8b
更新 Method_Enable.qbl
已修改1个文件
3 ■■■■ 文件已修改
_Main/BL/Type_LockPeriod/Method_Enable.qbl 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_LockPeriod/Method_Enable.qbl
@@ -9,6 +9,7 @@
    // Akari Oct-30-2024 (created)
    offlinePlanRow := select( offlinePlanTable,Row,row,row.ProductID() = this.ProductInStockingPoint_MP().ProductID() and row.StockingPointID() = this.ProductInStockingPoint_MP().StockingPointID() );
    
    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++ ){
@@ -17,8 +18,6 @@
      offlinePlanCellIndexTree.Root().AddChild( offlinePlanCellHandle,i );
    }
    
    if( not this.IsEnable() ){
      this.IsEnable( true );
      
      pispips := selectset( this,ProductInStockingPoint_MP.ProductInStockingPointInPeriod.astype( ProductInStockingPointInPeriodPlanningLeaf ),period,period.Period_MP().StartDate() <= this.LockDate() );