| | |
| | | now := DateTime::Now(); |
| | | macroPlanName := macroPlan.MDSMacroPlan().Description(); |
| | | traverse( macroPlan,Unit.UnitPeriod.astype( UnitPeriodTime ).ShiftPlan,shiftPlan ,shiftPlan.UnitPeriodTime().Period_MP().StartDate() >= macroPlan.StartOfPlanning().Date()){ |
| | | factory := shiftPlan.UnitPeriodTime().Unit(); |
| | | while( factory.HasParent() ){ |
| | | temp1 := factory; |
| | | factory := factory.Parent(); |
| | | if( not factory.HasParent() ){ |
| | | factory := temp1; |
| | | } |
| | | } |
| | | factory := LocalTool::GetFactoryByUnit( shiftPlan.UnitPeriodTime().Unit() ); |
| | | |
| | | productLine := shiftPlan.UnitPeriodTime().Unit().ID(); |
| | | shiftDate := shiftPlan.UnitPeriodTime().Period_MP().StartDate(); |
| | | factoryName := factory.ID(); |