Quintiq file version 2.0
|
#parent: #root
|
Method Update (
|
Unit owner,
|
String id,
|
String name,
|
RoutingStep routingstep,
|
Duration leadtime,
|
Duration standarddeviationleadtime,
|
Real throughput,
|
Boolean hasuserlotsize,
|
Real userminimumquantity,
|
Boolean hasusermaximumquantity,
|
Real usermaximumquantity,
|
Real userlotsize,
|
Real co2Emission,
|
Boolean isfromdb
|
) as Operation
|
{
|
Description: 'Update operation'
|
TextBody:
|
[*
|
// Update operation
|
this.UpdateTypeIndex( id );
|
|
/* Set to SystemName instead of Name
|
Name will declaratively refer to SystemName */
|
this.SystemName( name );
|
this.StandardDeviationLeadTimeOperation( standarddeviationleadtime );
|
this.Throughput( throughput );
|
this.HasUserLotSize( hasuserlotsize );
|
this.UserMinimumQuantity( userminimumquantity );
|
this.HasUserMaximumQuantity( hasusermaximumquantity );
|
this.UserMaximumQuantity( usermaximumquantity );
|
this.UserLotSize( userlotsize );
|
this.CO2Emission( co2Emission );
|
|
owner.Operation( relmove, this );
|
this.RoutingID( routingstep.Routing().ID() );
|
this.RoutingStepName( routingstep.Name() );
|
|
this.UpdateLeadTime( leadtime );
|
|
this.UpdateCommitLogic( owner );
|
|
this.IsManuallyConfigured( not isfromdb );
|
|
return this;
|
*]
|
}
|