xiaoding721
2024-08-26 0090b5a24367caf194100ed356273bb5ee304017
修改加班时间
已修改4个文件
62 ■■■■■ 文件已修改
_Main/BL/Type_LocalCell_Default/Method_SetBreakDayOverTimeDurction.qbl 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_LocalCell_Default/Method_SetOvertimeDurction.qbl 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_LocalCell_Default/StaticMethod_GenerateStandardHoursReport.qbl 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_LocalCell_ScheduleSummary/StaticMethod_Create.qbl 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_LocalCell_Default/Method_SetBreakDayOverTimeDurction.qbl
@@ -9,21 +9,27 @@
    // rislai Jul-10-2024 (created)
    overtime := 0.0;
    nextDayOvertime := 0.0;
    if( outcome = "一班" ){
      overtime := 8.5;
    if( outcome = "1" ){
      overtime := 8;
      nextDayOvertime := 0.0;
    }else if( outcome = "二班" ){
      overtime := 16;
      nextDayOvertime := 0.5;
    }else if( outcome = "2" ){
      overtime := 15;
      nextDayOvertime := 1;
    }else if(outcome = "9+9"){
      overtime := 16;
      nextDayOvertime := 2.5;
      nextDayOvertime := 2;
    }else if(outcome = "10+10"){
      overtime := 16;
      nextDayOvertime := 4.5;
    }else if(outcome = "三班"){
      overtime := 16;
      nextDayOvertime := 8;
      overtime := 17;
      nextDayOvertime := 3;
    }else if(outcome = "1(9)" or outcome = "1(9)"){
      overtime := 9;
      nextDayOvertime := 0;
    }else if(outcome = "1(10)" or outcome = "1(10)"){
      overtime := 10;
      nextDayOvertime := 0;
    }else if(outcome = "3"){
      overtime := 15;
      nextDayOvertime := 7.5;
    }
    this.RealValue( this.RealValue() + overtime + nextDayOvertime );
  *]
_Main/BL/Type_LocalCell_Default/Method_SetOvertimeDurction.qbl
@@ -9,21 +9,27 @@
    // rislai Jul-10-2024 (created)
    overtime := 0.0;
    nextDayOvertime := 0.0;
    if( outcome = "一班" ){
      overtime := 0.5;
    if( outcome = "1" ){
      overtime := 0;
      nextDayOvertime := 0.0;
    }else if( outcome = "二班" ){
      overtime := 8;
      nextDayOvertime := 0.5;
    }else if( outcome = "2" ){
      overtime := 0;
      nextDayOvertime := 0.0;
    }else if(outcome = "9+9"){
      overtime := 8;
      nextDayOvertime := 2.5;
      overtime := 1;
      nextDayOvertime := 1;
    }else if(outcome = "10+10"){
      overtime := 8;
      nextDayOvertime := 4.5;
    }else if(outcome = "三班"){
      overtime := 8;
      nextDayOvertime := 8;
      overtime := 2;
      nextDayOvertime := 2;
    }else if(outcome = "1(9)" or outcome = "1(9)"){
      overtime := 1;
      nextDayOvertime := 0;
    }else if(outcome = "1(10)" or outcome = "1(10)"){
      overtime := 2;
      nextDayOvertime := 0;
    }else if(outcome = "3"){
      overtime := 0;
      nextDayOvertime := 0;
    }
    this.RealValue( this.RealValue() + overtime + nextDayOvertime );
  *]
_Main/BL/Type_LocalCell_Default/StaticMethod_GenerateStandardHoursReport.qbl
@@ -9,7 +9,7 @@
  Description: '标准工时制报表'
  TextBody:
  [*
    // rislai Jul-4-2024 (created)
     // rislai Jul-4-2024 (created)
    table := owner.LocalTable( relnew,Name := "标准工时制报表");
    
    //column1  := table.LocalColumn( relnew,Name := "工厂" ,CustomIndex := 1);
_Main/BL/Type_LocalCell_ScheduleSummary/StaticMethod_Create.qbl
@@ -29,7 +29,7 @@
    traverse( owner,Unit,unit,unit.HasCapacityTypeTime() and not unit.HasChild()){
      // unit.AsEntity().DisplayNameForSelection()
      row := table.MP_Row( relnew,CustomName := unit.ID(),Index := table.GetRowIndexCache() ); 
      throughput := sum( unit,Operation,operation,operation.Throughput() ) / unit.Operation( relsize );
      throughput := guard( sum( unit,Operation,operation,operation.Throughput() ) / unit.Operation( relsize ) , 0 );
      
      unitPeriodTimes := selectset( unit,UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,
                                        unitPeriodTime.Period_MP().StartDate() >= startDate