Quintiq file version 2.0
|
#parent: #root
|
Method UpdateValue (
|
String attrName,
|
Real value
|
)
|
{
|
TextBody:
|
[*
|
if ( attrName = "Package" ) { // 包装
|
this.Package( value );
|
}
|
|
if ( attrName = "Unpacking" ) { // 拆包
|
this.Unpacking( value );
|
}
|
|
if ( attrName = "Out" ) { // 调出
|
unitID := ifexpr( this.PackagingPlanRow().Factory() = "大连工厂", "DL to CC", "CC to DL" ) + " " + this.PackagingPlanRow().Category() + " Transport";
|
|
pit := select( this.PackagingPlanRow().MacroPlan(), Unit.Lane.LaneLeg.Trip.ProductInTrip, tempPIT,
|
tempPIT.Trip().LaneLeg().Lane().UnitID() = unitID and
|
tempPIT.Trip().Departure().Date() = this.PackagingPlanColumn().StartDate() and
|
tempPIT.ProductID() = this.PackagingPlanRow().ProductID() );
|
|
pit.Update( value, true );
|
this.Out( value );
|
|
cell := select( this.PackagingPlanRow().MacroPlan(), PackagingPlanRow.PackagingPlanCell, tempPPCell,
|
tempPPCell.PackagingPlanRow().Factory() = ifexpr( this.PackagingPlanRow().Factory() = "大连工厂", "长春工厂", "大连工厂" ) and
|
tempPPCell.PackagingPlanRow().ProductID() = this.PackagingPlanRow().ProductID() and
|
tempPPCell.PackagingPlanColumn().StartDate() = pit.Trip().Arrival().Date() );
|
cell.TransferIn( value );
|
}
|
*]
|
}
|