| | |
| | | erpData := "暂无"; |
| | | |
| | | // 根据pispip |
| | | result.MRPCalverNo( pispip.MRPCalverNo() ); |
| | | result.MRPCalverNo( ifexpr( pispip.MRPCalverNo() = "", "暂无", pispip.MRPCalverNo() ) ); |
| | | result.Quantity( pispip.NewSupplyQuantity() ); |
| | | |
| | | // 根据product |
| | |
| | | Date::Today(), (result.ProduceRequiredDate() - Duration::Days( 7 )).Date() ) ); |
| | | |
| | | // 根据 物料属性标签设定&物料计划策略 |
| | | result.IsPanelMaterial(); |
| | | result.IsGenericMaterial( matAttrSetting.FlagGeneric() ); |
| | | result.IsLongLeadItem( matAttrSetting.FlagLongTerm() ); |
| | | result.MaterialMRPType( ifexpr( matAttrSetting.PlanningStrategyCustom() <> "", matAttrSetting.PlanningStrategyCustom(), matAttrSetting.PlanningStrategyAuto() ) ); |
| | | result.IsPanelMaterial( "暂无" ); |
| | | if( isnull( matAttrSetting ) ) { |
| | | result.IsGenericMaterial( "暂无" ); |
| | | result.IsLongLeadItem( "暂无" ); |
| | | result.MaterialMRPType( "暂无" ); |
| | | } else { |
| | | result.IsGenericMaterial( matAttrSetting.FlagGeneric() ); |
| | | result.IsLongLeadItem( matAttrSetting.FlagLongTerm() ); |
| | | result.MaterialMRPType( ifexpr( matAttrSetting.PlanningStrategyCustom() <> "", matAttrSetting.PlanningStrategyCustom(), matAttrSetting.PlanningStrategyAuto() ) ); |
| | | } |
| | | |
| | | |
| | | // 根据product中间表 |
| | | result.BusinessType( mappingProduct.BusinessType() ); |
| | | result.OrganCode( mappingProduct.OrgCode() ); |
| | | result.UnitOfMeasure( mappingProduct.UnitOfMeasureName() ); |
| | | if( isnull( mappingProduct ) ) { |
| | | result.BusinessType( "暂无" ); |
| | | result.OrganCode( "暂无" ); |
| | | result.UnitOfMeasure( "暂无" ); |
| | | } else { |
| | | result.BusinessType( mappingProduct.BusinessType() ); |
| | | result.OrganCode( mappingProduct.OrgCode() ); |
| | | result.UnitOfMeasure( mappingProduct.UnitOfMeasureName() ); |
| | | } |
| | | |
| | | // 根据供应商能力中间表 |
| | | result.ProviderCode( mappingProviderCapacity ); |