lazhen
2024-06-12 c145c6e7b6b347031d0f82fccd44423e5fb5f255
Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev-zlg
已修改2个文件
8 ■■■■■ 文件已修改
_Main/BL/Type_ProductionLineBatchData/Method_Enable.qbl 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_ProductionLineBatchData/StaticMethod_Create.qbl 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_ProductionLineBatchData/Method_Enable.qbl
@@ -12,8 +12,8 @@
    shiftPattern2 := this.ShiftPattern2();
    tempShiftPattern := shiftPattern1;
    
    dayPeriod_MPs := selectsortedset( owner,Period_MP,period_MP, period_MP.TimeUnit() = 'Day' and period_MP.StartDate() >= this.StartDate() and period_MP.EndDate() < this.EndDate() ,period_MP.StartDate());
    weekPeriod_MPs := selectsortedset( owner,Period_MP,period_MP, period_MP.TimeUnit() = 'Week' and period_MP.StartDate() >= this.StartDate() and period_MP.EndDate() < this.EndDate() ,period_MP.StartDate());
    dayPeriod_MPs := selectsortedset( owner,Period_MP,period_MP, period_MP.TimeUnit() = 'Day' and period_MP.StartDate() >= this.StartDate() and period_MP.EndDate() <= this.EndDate() ,period_MP.StartDate());
    weekPeriod_MPs := selectsortedset( owner,Period_MP,period_MP, period_MP.TimeUnit() = 'Week' and period_MP.StartDate() >= this.StartDate() and period_MP.EndDate() <= this.EndDate() ,period_MP.StartDate());
    
    // period_MPs := selectsortedset( owner,Period_MP,period_MP, period_MP.StartDate() >= this.StartDate() and period_MP.EndDate() <= this.EndDate() ,period_MP.StartDate());
    if( dayPeriod_MPs.Size() > 0 ){
_Main/BL/Type_ProductionLineBatchData/StaticMethod_Create.qbl
@@ -8,7 +8,7 @@
  ShiftPattern shiftPattern2,
  Date startDate,
  Date endDate
)
) as ProductionLineBatchData
{
  TextBody:
  [*
@@ -36,5 +36,7 @@
                                           Unit2 := line2,
                                           StartDate := startDate,
                                           EndDate := endDate );
    return data;
  *]
}