Quintiq file version 2.0
|
#parent: #root
|
Method VerificationData (
|
GlobalOTDSOP globalOTDSOP
|
)
|
{
|
TextBody:
|
[*
|
info( "策略个数:", globalOTDSOP.MatAttrSettingAndPlanStrategy( relsize ) );
|
traverse ( globalOTDSOP, MatAttrSettingAndPlanStrategy, masaps ) {
|
if ( masaps.PlanningStrategyCustom() <> "安全库存" and masaps.PlanningStrategyCustom() <> "JIT" and masaps.PlanningStrategyCustom() <> "M/A" and
|
masaps.PlanningStrategyCustom() <> "PO拉料" and masaps.PlanningStrategyCustom() <> "VMI" ) {
|
error( "手动设置策略错误:", masaps.MatCode() );
|
}
|
|
if ( ( masaps.PlanningStrategyAuto() <> "" and masaps.PlanningStrategyAuto() = "JIT" ) or
|
( masaps.PlanningStrategyCustom() <> "" and masaps.PlanningStrategyCustom() = "JIT" )
|
) {
|
if ( masaps.MinimumNumberOfDaysInStock() > 0 or masaps.MaximumNumberOfDaysInInventory() > 0 ) {
|
error( "JIT策略存在最小和最大库存天数:", masaps.MatCode() );
|
}
|
}
|
}
|
*]
|
}
|