Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev
| | |
| | | o := select( macroPlan, Unit.Operation, tempO, tempO.ID() = cell.NewOfflinePlanRow().OperationID() ); |
| | | up := select( macroPlan, Unit.UnitPeriod, tempUP, tempUP.UnitID() = cell.NewOfflinePlanRow().ProductionLine() and tempUP.StartDate() = cell.NewOfflinePlanColumn().StartDate() ); |
| | | if ( not isnull( o ) and not isnull( up ) ) { |
| | | PeriodTaskOperation::Create( o, up, cell.Quantity(), false ); |
| | | PeriodTaskOperation::Create( o, up, cell.Quantity(), true ); |
| | | } |
| | | } else if ( not isnull( pto ) ) { |
| | | if ( [Number]cell.Quantity() <> [Number]pto.Quantity() ) { |
| | | pto.Update( cell.Quantity(), false ); |
| | | pto.Update( cell.Quantity(), true ); |
| | | } |
| | | } |
| | | |
| | |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF0066' |
| | | ConditionBody: 'object.Quantity() < 0.0' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation ShiftPatternEnd |
| | |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: 'Red' |
| | | ConditionBody: 'object.Quantity() < 0.0' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation ShiftPatternEnd |