| | |
| | | ShiftPattern shiftPattern, |
| | | Date startDate, |
| | | Date endDate, |
| | | Numbers weekdays |
| | | Numbers weekdays, |
| | | Number skipWeek |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | period_MP.EndDate() <= endDate and exists( weekdays, Elements,dayOfWeek,dayOfWeek = period_MP.StartDate().DayOfWeek() ),period_MP.StartDate()); |
| | | |
| | | if( dayPeriod_MPs.Size() > 0 ){ |
| | | unitPeriodTimes := selectset( unit,UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,exists( dayPeriod_MPs,Elements,period_MP,period_MP = unitPeriodTime.Period_MP()) and not isnull( unitPeriodTime.UnitAvailability())); |
| | | unitPeriodTimes := selectset( unit,UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,exists( dayPeriod_MPs,Elements,period_MP,period_MP = unitPeriodTime.Period_MP())); |
| | | if( unitPeriodTimes.Size() > 0 ){ |
| | | LocalTool::SetUnitShiftPattern( owner,unitPeriodTimes,shiftPattern ); |
| | | } |
| | | |
| | | } |
| | | if( weekPeriod_MPs.Size() <> 0 ){ |
| | | traverse( weekPeriod_MPs,Elements,period_MP ){ |
| | | unitPeriodTimes := selectset( unit,UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,period_MP = unitPeriodTime.Period_MP() and not isnull( unitPeriodTime.UnitAvailability())); |
| | | unitPeriodTimes := selectset( unit,UnitPeriod.astype( UnitPeriodTime ),unitPeriodTime,period_MP = unitPeriodTime.Period_MP()); |
| | | if( unitPeriodTimes.Size() > 0 ){ |
| | | LocalTool::SetUnitShiftPattern( owner,unitPeriodTimes,shiftPattern ); |
| | | } |
| | |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'å·æ°ä¸ææ¡' |
| | | Taborder: 3 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelDaily id:PanelDaily_478 |
| | | { |
| | | #keys: '[414996.1.127440897]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: PanelDaily819 |
| | | Component bApply568 id:bApply568_478 |
| | | { |
| | | #keys: '[414996.1.127821084]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'Apply' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | Title: 'Daily' |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelDaily819 |
| | | { |
| | | #keys: '[414996.1.126333417]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component efDaily |
| | | { |
| | | #keys: '[414996.1.126333418]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | Label: 'Recur every ' |
| | | Taborder: 0 |
| | | Text: '1' |
| | | ] |
| | | } |
| | | Component LabelDaily |
| | | { |
| | | #keys: '[414996.1.126333419]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: 'day(s)' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component bApply |
| | | { |
| | | #keys: '[414996.1.116470621]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'Apply' |
| | | Taborder: 11 |
| | | ] |
| | | } |
| | | Component ddlShiftPattern |
| | | { |
| | | #keys: '[414996.1.116430349]' |
| | |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component cbMonday |
| | | { |
| | | #keys: '[414996.1.117120493]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Monday' |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | Component cbTuesday |
| | | { |
| | | #keys: '[414996.1.117120516]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Tuesday' |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | | Component cbWednesday |
| | | { |
| | | #keys: '[414996.1.117120539]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Wednesday' |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component cbThursday |
| | | { |
| | | #keys: '[414996.1.117120576]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Thursday' |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | | Component cbFriday |
| | | { |
| | | #keys: '[414996.1.117120599]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Friday' |
| | | Taborder: 8 |
| | | ] |
| | | } |
| | | Component cbSaturday id:cbSaturday_682 |
| | | { |
| | | #keys: '[414996.1.117120636]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Saturday' |
| | | Taborder: 9 |
| | | ] |
| | | } |
| | | Component cbSunday |
| | | { |
| | | #keys: '[414996.1.117120659]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Sunday' |
| | | Taborder: 10 |
| | | ] |
| | | } |
| | | #child: PanelRight445 |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelRight445 |
| | | { |
| | | #keys: '[414996.1.127440860]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: PanelDaily_478 |
| | | #child: PanelWeekly_791 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'tab-top' |
| | | Taborder: 4 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelWeekly id:PanelWeekly_791 |
| | | { |
| | | #keys: '[414996.1.127440920]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component cbMonday |
| | | { |
| | | #keys: '[414996.1.127440921]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Monday' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component cbTuesday |
| | | { |
| | | #keys: '[414996.1.127440922]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Tuesday' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component cbWednesday |
| | | { |
| | | #keys: '[414996.1.127440923]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Wednesday' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component cbThursday |
| | | { |
| | | #keys: '[414996.1.127440924]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Thursday' |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | Component cbFriday |
| | | { |
| | | #keys: '[414996.1.127440925]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Friday' |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | | Component cbSaturday |
| | | { |
| | | #keys: '[414996.1.127440926]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Saturday' |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component cbSunday |
| | | { |
| | | #keys: '[414996.1.127440927]' |
| | | BaseType: 'WebCheckbox' |
| | | Properties: |
| | | [ |
| | | Label: 'Sunday' |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | | #child: PanelWeekly996 |
| | | Component bApply |
| | | { |
| | | #keys: '[414996.1.127910499]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'Apply' |
| | | Taborder: 8 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | Title: 'Weekly' |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelWeekly996 |
| | | { |
| | | #keys: '[414996.1.127820590]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component efWeekly id:efWeekly_637 |
| | | { |
| | | #keys: '[414996.1.127820639]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | Label: 'Recur every ' |
| | | Taborder: 0 |
| | | Text: '1' |
| | | ] |
| | | } |
| | | Component LabelWeekly |
| | | { |
| | | #keys: '[414996.1.127820645]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: 'week(s)' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelDaily_478/bApply568_478 |
| | | Response OnClick () id:Response_PanelDaily819_bApply568_OnClick_952 |
| | | { |
| | | #keys: '[414996.1.127821083]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | |
| | | skipDay := [Number]efDaily.Text(); |
| | | // LocalTool::BatchSetUnitShiftPattern( dhSelectUnit.Data(),ddlShiftPattern.Data(),dsStartDate.Date(),dsEndDate.Date(),weekdays ,skipWeek ); |
| | | WebMessageBox::Success( "Success"); |
| | | *] |
| | | } |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormProductionLineBatchSetShiftPattern/Response_PanelRight_bApply_OnClick.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelRight/bApply |
| | | Response OnClick () id:Response_PanelRight_bApply_OnClick |
| | | #parent: PanelWeekly_791/bApply |
| | | Response OnClick () id:Response_PanelWeekly996_bApply_OnClick |
| | | { |
| | | #keys: '[414996.1.117189721]' |
| | | #keys: '[414996.1.127910498]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | |
| | | if( cbSunday.Checked() ){ |
| | | weekdays.Add( 7 ); |
| | | } |
| | | LocalTool::BatchSetUnitShiftPattern( dhSelectUnit.Data(),ddlShiftPattern.Data(),dsStartDate.Date(),dsEndDate.Date(),weekdays ); |
| | | skipWeek := [Number]efWeekly.Text(); |
| | | LocalTool::BatchSetUnitShiftPattern( dhSelectUnit.Data(),ddlShiftPattern.Data(),dsStartDate.Date(),dsEndDate.Date(),weekdays ,skipWeek ); |
| | | WebMessageBox::Success( "Success"); |
| | | *] |
| | | } |