| | |
| | | period_MP.TimeUnit() = 'Week' and |
| | | period_MP.StartDate() >= startDate and |
| | | period_MP.EndDate() <= endDate and exists( weekdays, Elements,dayOfWeek,dayOfWeek = period_MP.StartDate().DayOfWeek() ),period_MP.StartDate()); |
| | | traverse( dayPeriod_MPs ,Elements,element ){ |
| | | info( element.StartDate().DayOfWeek() ); |
| | | } |
| | | |
| | | 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())); |
| | |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component dhMDSHandles |
| | | { |
| | | #keys: '[414996.1.116451655]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[internal[ExternalMDSHandle]]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | [* |
| | | componentmds := ApplicationScope.ComponentMDS(); |
| | | |
| | | dhMDSHandles.Data().Flush(); |
| | | |
| | | macroPlans := construct( MacroPlans ); |
| | | scemps := selectset( ScenarioManager,ScenarioMP,mp,mp.IsLoaded()); |
| | | traverse( scemps,Elements,scemp ){ |
| | | mdsinstance := select( componentmds, ComponentMDSKinds.ComponentMDSInstances, m, m.MDSID().MDSKey() = scemp.DatasetMDSID() ); |
| | | handle := mdsinstance.GetMDSHandle(); |
| | | dhMDSHandles.Data().Add( handle ); |
| | | demandMacroPlan := handle.AsMacroPlan(); |
| | | macroPlans.Add( demandMacroPlan ); |
| | | } |
| | |
| | | traverse( macroPlans,Elements,element ){ |
| | | info( element.MDSID() ); |
| | | } |
| | | info( dhMDSHandles.Data().Size() ); |
| | | traverse( dhMDSHandles.Data(),Elements,element ){ |
| | | info( element.AsMacroPlan().MDSMacroPlan().Description() ); |
| | | } |
| | | |
| | | this.Data( &offlinePlanTables ); |
| | | *] |
| | | GroupServerCalls: false |
| | |
| | | Properties: |
| | | [ |
| | | Description: 'FormProductionLineBatchData' |
| | | Title: '批量设置产线班次' |
| | | ] |
| | | } |