| | |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-7-2024 (created) |
| | | owner := this.MacroPlan(); |
| | | |
| | | // è½®æ¢ç次ç¼å |
| | | shiftPattern1 := this.ShiftPattern1(); |
| | | shiftPattern2 := this.ShiftPattern2(); |
| | | shiftPattern3 := this.ShiftPattern3(); |
| | | 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()); |
| | | |
| | | // 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 ){ |
| | | |
| | | startDate := dayPeriod_MPs.Element( 0 ).StartDate(); |
| | | endDate := dayPeriod_MPs.Element( dayPeriod_MPs.Size() - 1 ).EndDate(); |
| | | |
| | | // æ¯ä¸å¤©è½®æ¢ç次 |
| | | for( i := startDate.StartOfWeek(); i < (endDate.StartOfWeek() - 1).StartOfNextWeek(); i := i.StartOfNextWeek()){ |
| | | tempStartDate := i; |
| | | tempEndDate := i.StartOfNextWeek(); |
| | | |
| | | tempPeriod_MPs := selectset( dayPeriod_MPs,Elements,period_MP,period_MP.StartDate() >= tempStartDate and period_MP.EndDate() <= tempEndDate ); |
| | | |
| | | unitPeriodTimes1 := selectset( this.Unit1(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,exists( tempPeriod_MPs,Elements,period_MP,period_MP = unitPeriodTime.Period_MP())); |
| | | unitPeriodTimes2 := selectset( this.Unit2(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,exists( tempPeriod_MPs,Elements,period_MP,period_MP = unitPeriodTime.Period_MP())); |
| | | unitPeriodTimes3 := selectset( this.Unit3(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,exists( tempPeriod_MPs,Elements,period_MP,period_MP = unitPeriodTime.Period_MP())); |
| | | if( unitPeriodTimes1.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes1,shiftPattern1 ); |
| | | } |
| | | if( unitPeriodTimes2.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes2,shiftPattern2 ); |
| | | } |
| | | if( unitPeriodTimes3.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes3,shiftPattern3 ); |
| | | } |
| | | |
| | | // æ¢ç次 |
| | | tempShiftPattern := shiftPattern1; |
| | | shiftPattern1 := shiftPattern2; |
| | | shiftPattern2 := shiftPattern3; |
| | | shiftPattern3 := tempShiftPattern; |
| | | } |
| | | if( not isnull( this.Unit3())){ |
| | | this.Enable3Lines(); |
| | | }else{ |
| | | this.Enable2Lines(); |
| | | } |
| | | |
| | | // è½®æ¢ç次ç¼å |
| | | shiftPattern1 := this.ShiftPattern1(); |
| | | shiftPattern2 := this.ShiftPattern2(); |
| | | shiftPattern3 := this.ShiftPattern3(); |
| | | tempShiftPattern := shiftPattern1; |
| | | if( weekPeriod_MPs.Size() <> 0 ){ |
| | | traverse( weekPeriod_MPs,Elements,period_MP ){ |
| | | unitPeriodTimes1 := selectset( this.Unit1(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,period_MP = unitPeriodTime.Period_MP()); |
| | | unitPeriodTimes2 := selectset( this.Unit2(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,period_MP = unitPeriodTime.Period_MP()); |
| | | unitPeriodTimes3 := selectset( this.Unit3(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,period_MP = unitPeriodTime.Period_MP()); |
| | | |
| | | if( unitPeriodTimes1.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes1,shiftPattern1 ); |
| | | } |
| | | if( unitPeriodTimes2.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes2,shiftPattern2 ); |
| | | } |
| | | if( unitPeriodTimes3.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes3,shiftPattern3 ); |
| | | } |
| | | |
| | | // æ¢ç次 |
| | | tempShiftPattern := shiftPattern1; |
| | | shiftPattern1 := shiftPattern2; |
| | | shiftPattern2 := shiftPattern3; |
| | | shiftPattern3 := tempShiftPattern; |
| | | } |
| | | } |
| | | |
| | | this.IsEnable( true ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Enable2Lines |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-7-2024 (created) |
| | | owner := this.MacroPlan(); |
| | | |
| | | // è½®æ¢ç次ç¼å |
| | | shiftPattern1 := this.ShiftPattern1(); |
| | | 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()); |
| | | |
| | | // 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 ){ |
| | | |
| | | startDate := dayPeriod_MPs.Element( 0 ).StartDate(); |
| | | endDate := dayPeriod_MPs.Element( dayPeriod_MPs.Size() - 1 ).EndDate(); |
| | | |
| | | // æ¯ä¸å¤©è½®æ¢ç次 |
| | | for( i := startDate.StartOfWeek(); i < (endDate.StartOfWeek() - 1).StartOfNextWeek(); i := i.StartOfNextWeek()){ |
| | | tempStartDate := i; |
| | | tempEndDate := i.StartOfNextWeek(); |
| | | |
| | | tempPeriod_MPs := selectset( dayPeriod_MPs,Elements,period_MP,period_MP.StartDate() >= tempStartDate and period_MP.EndDate() <= tempEndDate ); |
| | | |
| | | unitPeriodTimes1 := selectset( this.Unit1(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,exists( tempPeriod_MPs,Elements,period_MP,period_MP = unitPeriodTime.Period_MP())); |
| | | unitPeriodTimes2 := selectset( this.Unit2(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,exists( tempPeriod_MPs,Elements,period_MP,period_MP = unitPeriodTime.Period_MP())); |
| | | if( unitPeriodTimes1.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes1,shiftPattern1 ); |
| | | } |
| | | if( unitPeriodTimes2.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes2,shiftPattern2 ); |
| | | } |
| | | |
| | | // æ¢ç次 |
| | | tempShiftPattern := shiftPattern1; |
| | | shiftPattern1 := shiftPattern2; |
| | | shiftPattern2 := tempShiftPattern; |
| | | } |
| | | } |
| | | |
| | | // è½®æ¢ç次ç¼å |
| | | shiftPattern1 := this.ShiftPattern1(); |
| | | shiftPattern2 := this.ShiftPattern2(); |
| | | tempShiftPattern := shiftPattern1; |
| | | if( weekPeriod_MPs.Size() <> 0 ){ |
| | | traverse( weekPeriod_MPs,Elements,period_MP ){ |
| | | unitPeriodTimes1 := selectset( this.Unit1(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,period_MP = unitPeriodTime.Period_MP()); |
| | | unitPeriodTimes2 := selectset( this.Unit2(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,period_MP = unitPeriodTime.Period_MP()); |
| | | |
| | | if( unitPeriodTimes1.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes1,shiftPattern1 ); |
| | | } |
| | | if( unitPeriodTimes2.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes2,shiftPattern2 ); |
| | | } |
| | | |
| | | // æ¢ç次 |
| | | tempShiftPattern := shiftPattern1; |
| | | shiftPattern1 := shiftPattern2; |
| | | shiftPattern2 := tempShiftPattern; |
| | | } |
| | | } |
| | | |
| | | this.IsEnable( true ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Enable3Lines |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-7-2024 (created) |
| | | owner := this.MacroPlan(); |
| | | |
| | | // è½®æ¢ç次ç¼å |
| | | shiftPattern1 := this.ShiftPattern1(); |
| | | shiftPattern2 := this.ShiftPattern2(); |
| | | shiftPattern3 := this.ShiftPattern3(); |
| | | 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()); |
| | | |
| | | // 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 ){ |
| | | |
| | | startDate := dayPeriod_MPs.Element( 0 ).StartDate(); |
| | | endDate := dayPeriod_MPs.Element( dayPeriod_MPs.Size() - 1 ).EndDate(); |
| | | |
| | | // æ¯ä¸å¤©è½®æ¢ç次 |
| | | for( i := startDate.StartOfWeek(); i < (endDate.StartOfWeek() - 1).StartOfNextWeek(); i := i.StartOfNextWeek()){ |
| | | tempStartDate := i; |
| | | tempEndDate := i.StartOfNextWeek(); |
| | | |
| | | tempPeriod_MPs := selectset( dayPeriod_MPs,Elements,period_MP,period_MP.StartDate() >= tempStartDate and period_MP.EndDate() <= tempEndDate ); |
| | | |
| | | unitPeriodTimes1 := selectset( this.Unit1(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,exists( tempPeriod_MPs,Elements,period_MP,period_MP = unitPeriodTime.Period_MP())); |
| | | unitPeriodTimes2 := selectset( this.Unit2(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,exists( tempPeriod_MPs,Elements,period_MP,period_MP = unitPeriodTime.Period_MP())); |
| | | unitPeriodTimes3 := selectset( this.Unit3(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,exists( tempPeriod_MPs,Elements,period_MP,period_MP = unitPeriodTime.Period_MP())); |
| | | if( unitPeriodTimes1.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes1,shiftPattern1 ); |
| | | } |
| | | if( unitPeriodTimes2.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes2,shiftPattern2 ); |
| | | } |
| | | if( unitPeriodTimes3.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes3,shiftPattern3 ); |
| | | } |
| | | |
| | | // æ¢ç次 |
| | | tempShiftPattern := shiftPattern1; |
| | | shiftPattern1 := shiftPattern2; |
| | | shiftPattern2 := shiftPattern3; |
| | | shiftPattern3 := tempShiftPattern; |
| | | } |
| | | } |
| | | |
| | | // è½®æ¢ç次ç¼å |
| | | shiftPattern1 := this.ShiftPattern1(); |
| | | shiftPattern2 := this.ShiftPattern2(); |
| | | shiftPattern3 := this.ShiftPattern3(); |
| | | tempShiftPattern := shiftPattern1; |
| | | if( weekPeriod_MPs.Size() <> 0 ){ |
| | | traverse( weekPeriod_MPs,Elements,period_MP ){ |
| | | unitPeriodTimes1 := selectset( this.Unit1(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,period_MP = unitPeriodTime.Period_MP()); |
| | | unitPeriodTimes2 := selectset( this.Unit2(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,period_MP = unitPeriodTime.Period_MP()); |
| | | unitPeriodTimes3 := selectset( this.Unit3(),UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,period_MP = unitPeriodTime.Period_MP()); |
| | | |
| | | if( unitPeriodTimes1.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes1,shiftPattern1 ); |
| | | } |
| | | if( unitPeriodTimes2.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes2,shiftPattern2 ); |
| | | } |
| | | if( unitPeriodTimes3.Size() > 0 ){ |
| | | this.OnOK( unitPeriodTimes3,shiftPattern3 ); |
| | | } |
| | | |
| | | // æ¢ç次 |
| | | tempShiftPattern := shiftPattern1; |
| | | shiftPattern1 := shiftPattern2; |
| | | shiftPattern2 := shiftPattern3; |
| | | shiftPattern3 := tempShiftPattern; |
| | | } |
| | | } |
| | | |
| | | this.IsEnable( true ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Update ( |
| | | Unit line1, |
| | | Unit line2, |
| | | ShiftPattern shiftPattern1, |
| | | ShiftPattern shiftPattern2, |
| | | Date startDate, |
| | | Date endDate |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-7-2024 (created) |
| | | owner := this.MacroPlan(); |
| | | |
| | | if( isnull( shiftPattern1 ) or isnull( shiftPattern2 ) or isnull( line1 ) or isnull( line2 )){ |
| | | error( "æ°æ®ä¸è½ä¸ºç©ºï¼" ); |
| | | } |
| | | // ï¼1ï¼ æ°å¢äº§çº¿1å产线2ç¸åæ¶æ¥éâç¸åäº§çº¿æ æ³æ°å¢âï¼ |
| | | if( line1 = line2 ){ |
| | | error( "ç¸åäº§çº¿æ æ³æ°å¢" ); |
| | | } |
| | | |
| | | // ï¼2ï¼ ç¸åçäº§çº¿çæ¬¡ï¼çææ¶é´å¯ä»¥ç»´æ¤å¤ä¸ªï¼ä½æ¯çææ¶é´é夿¶æ¥éâè¯¥æ°æ®å·²ç»´æ¤âï¼ |
| | | verifyData := select( owner,ProductionLineBatchData,data,data.Unit1() = line1 and data.Unit2() = line2 and |
| | | data.ShiftPattern1() = shiftPattern1 and data.ShiftPattern2() = shiftPattern2 and |
| | | data.StartDate() = startDate and data.EndDate() = endDate and data <> this ); |
| | | if( not isnull( verifyData )){ |
| | | error( "è¯¥æ°æ®å·²ç»´æ¤" ); |
| | | } |
| | | |
| | | shiftPattern3 := null( ShiftPattern ); |
| | | line3 := null( Unit ); |
| | | |
| | | this.ShiftPattern1( relset, shiftPattern1 ); |
| | | this.ShiftPattern2( relset, shiftPattern2 ); |
| | | this.ShiftPattern3( relset, shiftPattern3 ); |
| | | this.Unit1( relset, line1 ); |
| | | this.Unit2( relset, line2 ); |
| | | this.Unit3( relset, line3 ); |
| | | this.StartDate( startDate ); |
| | | this.EndDate( endDate ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Create ( |
| | | MacroPlan owner, |
| | | Unit line1, |
| | | Unit line2, |
| | | ShiftPattern shiftPattern1, |
| | | ShiftPattern shiftPattern2, |
| | | Date startDate, |
| | | Date endDate |
| | | ) as ProductionLineBatchData |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-7-2024 (created) |
| | | if( isnull( shiftPattern1 ) or isnull( line1 ) ){ |
| | | error( "æ°æ®ä¸è½ä¸ºç©ºï¼" ); |
| | | } |
| | | // ï¼1ï¼ æ°å¢äº§çº¿1å产线2ç¸åæ¶æ¥éâç¸åäº§çº¿æ æ³æ°å¢âï¼ |
| | | if( line1 = line2 ){ |
| | | error( "ç¸åäº§çº¿æ æ³æ°å¢" ); |
| | | } |
| | | |
| | | // ï¼2ï¼ ç¸åçäº§çº¿çæ¬¡ï¼çææ¶é´å¯ä»¥ç»´æ¤å¤ä¸ªï¼ä½æ¯çææ¶é´é夿¶æ¥éâè¯¥æ°æ®å·²ç»´æ¤âï¼ |
| | | verifyData := select( owner,ProductionLineBatchData,data,data.Unit1() = line1 and data.Unit2() = line2 and |
| | | data.ShiftPattern1() = shiftPattern1 and data.ShiftPattern2() = shiftPattern2 and |
| | | data.StartDate() = startDate and data.EndDate() = endDate ); |
| | | if( not isnull( verifyData )){ |
| | | error( "è¯¥æ°æ®å·²ç»´æ¤" ); |
| | | } |
| | | |
| | | data := owner.ProductionLineBatchData( relnew, |
| | | ShiftPattern1 := shiftPattern1, |
| | | ShiftPattern2 := shiftPattern2, |
| | | Unit1 := line1, |
| | | Unit2 := line2, |
| | | StartDate := startDate, |
| | | EndDate := endDate ); |
| | | |
| | | return data; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pLine3 |
| | | { |
| | | #keys: '[414996.1.190660603]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddlLine3 id:ddlLine3_522 |
| | | { |
| | | #keys: '[414996.1.190660682]' |
| | | BaseType: 'WebDropDownList' |
| | | Databinding: 'Unit' |
| | | Children: |
| | | [ |
| | | Component deContent872 id:deContent872_106 |
| | | { |
| | | #keys: '[414996.1.190660683]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'structured[Unit]' |
| | | Source: 'ApplicationMacroPlanner.DataHolderUnit' |
| | | Taborder: 0 |
| | | Transformation: 'Elements.astype(Unit)' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DialogData.Data.Unit3' |
| | | DisplayField: 'Name' |
| | | Label: 'Line 3' |
| | | NumberOfColumns: 50 |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component cbLine3 |
| | | { |
| | | #keys: '[414996.1.190660695]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Checked: true |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 2 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pShiftPattern3 |
| | | { |
| | | #keys: '[414996.1.190660633]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddlShiftPattern3 id:ddlShiftPattern3_474 |
| | | { |
| | | #keys: '[414996.1.190660743]' |
| | | BaseType: 'WebDropDownList' |
| | | Databinding: 'ShiftPattern' |
| | | Children: |
| | | [ |
| | | Component deContent529 id:deContent529_265 |
| | | { |
| | | #keys: '[414996.1.190660744]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'ShiftPattern' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DialogData.Data.ShiftPattern3' |
| | | DisplayField: 'Name' |
| | | Label: 'Shift pattern 3' |
| | | NumberOfColumns: 50 |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component cbShiftPattern3 |
| | | { |
| | | #keys: '[414996.1.190660783]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Checked: true |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | |
| | | DataBinding: 'DialogData.Data.Unit1' |
| | | DisplayField: 'Name' |
| | | Label: 'Line 1' |
| | | NumberOfColumns: 50 |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | DataBinding: 'DialogData.Data.Unit2' |
| | | DisplayField: 'Name' |
| | | Label: 'Line 2' |
| | | NumberOfColumns: 50 |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | |
| | | DataBinding: 'DialogData.Data.ShiftPattern1' |
| | | DisplayField: 'Name' |
| | | Label: 'Shift pattern 1' |
| | | NumberOfColumns: 50 |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | |
| | | DataBinding: 'DialogData.Data.ShiftPattern2' |
| | | DisplayField: 'Name' |
| | | Label: 'Shift pattern 2' |
| | | NumberOfColumns: 50 |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | | Component ddlLine3 |
| | | { |
| | | #keys: '[414996.1.106189463]' |
| | | BaseType: 'WebDropDownList' |
| | | Databinding: 'Unit' |
| | | Children: |
| | | [ |
| | | Component deContent872 |
| | | { |
| | | #keys: '[414996.1.106189464]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'structured[Unit]' |
| | | Source: 'ApplicationMacroPlanner.DataHolderUnit' |
| | | Taborder: 0 |
| | | Transformation: 'Elements.astype(Unit)' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DialogData.Data.Unit3' |
| | | DisplayField: 'Name' |
| | | Label: 'Line 3' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component ddlShiftPattern3 |
| | | { |
| | | #keys: '[414996.1.108410230]' |
| | | BaseType: 'WebDropDownList' |
| | | Databinding: 'ShiftPattern' |
| | | Children: |
| | | [ |
| | | Component deContent529 |
| | | { |
| | | #keys: '[414996.1.108410231]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'ShiftPattern' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DialogData.Data.ShiftPattern3' |
| | | DisplayField: 'Name' |
| | | Label: 'Shift pattern 3' |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | | #child: pLine3 |
| | | #child: pShiftPattern3 |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pLine3/cbLine3 |
| | | Response OnChanged () id:Response_pLine3_cbLine3_OnChanged |
| | | { |
| | | #keys: '[414996.1.190690650]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebCheckbox_OnChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | ddlLine3.Enabled( cbLine3.Checked(),"" ); |
| | | cbShiftPattern3.Checked( cbLine3.Checked() ) |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pShiftPattern3/cbShiftPattern3 |
| | | Response OnChanged () id:Response_pShiftPattern3_cbShiftPattern3_OnChanged |
| | | { |
| | | #keys: '[414996.1.192162308]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebCheckbox_OnChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | ddlShiftPattern3.Enabled( cbShiftPattern3.Checked(),"" ); |
| | | cbLine3.Checked( cbShiftPattern3.Checked() ); |
| | | *] |
| | | } |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | if( not isnull( DialogData.Data( ))){ |
| | | DialogData.Data( ).Update( ddlLine1.Data(), |
| | | ddlLine2.Data(), |
| | | ddlLine3.Data(), |
| | | ddlShiftPattern1.Data(), |
| | | ddlShiftPattern2.Data(), |
| | | ddlShiftPattern3.Data(), |
| | | dsStartDate.Date(), |
| | | dsEndDate.Date()); |
| | | if( cbLine3.Checked() ){ |
| | | DialogData.Data( ).Update( ddlLine1.Data(), |
| | | ddlLine2.Data(), |
| | | ddlLine3.Data(), |
| | | ddlShiftPattern1.Data(), |
| | | ddlShiftPattern2.Data(), |
| | | ddlShiftPattern3.Data(), |
| | | dsStartDate.Date(), |
| | | dsEndDate.Date()); |
| | | }else{ |
| | | DialogData.Data( ).Update( ddlLine1.Data(), |
| | | ddlLine2.Data(), |
| | | ddlShiftPattern1.Data(), |
| | | ddlShiftPattern2.Data(), |
| | | dsStartDate.Date(), |
| | | dsEndDate.Date()); |
| | | } |
| | | |
| | | }else{ |
| | | ProductionLineBatchData::Create( MacroPlan, |
| | | ddlLine1.Data(), |
| | | ddlLine2.Data(), |
| | | ddlLine3.Data(), |
| | | ddlShiftPattern1.Data(), |
| | | ddlShiftPattern2.Data(), |
| | | ddlShiftPattern3.Data(), |
| | | dsStartDate.Date(), |
| | | dsEndDate.Date()); |
| | | if( cbLine3.Checked() ){ |
| | | ProductionLineBatchData::Create( MacroPlan, |
| | | ddlLine1.Data(), |
| | | ddlLine2.Data(), |
| | | ddlLine3.Data(), |
| | | ddlShiftPattern1.Data(), |
| | | ddlShiftPattern2.Data(), |
| | | ddlShiftPattern3.Data(), |
| | | dsStartDate.Date(), |
| | | dsEndDate.Date()); |
| | | }else{ |
| | | ProductionLineBatchData::Create( MacroPlan, |
| | | ddlLine1.Data(), |
| | | ddlLine2.Data(), |
| | | ddlShiftPattern1.Data(), |
| | | ddlShiftPattern2.Data(), |
| | | dsStartDate.Date(), |
| | | dsEndDate.Date()); |
| | | } |
| | | |
| | | } |
| | | |
| | | // Form.ApplyChanges(); |