Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute WoodenCratePriceReal |
| | | { |
| | | #keys: '3[415754.0.434001070][415754.0.434001069][415754.0.434001071]' |
| | | Description: 'æ¨ç®±åä»·ï¼Realï¼' |
| | | ValueType: Real |
| | | } |
| | |
| | | macroPlan.MachineLogisticsCostReportRow( relflush ); |
| | | macroPlan.MachineLogisticsCostReportColumn( relflush ); |
| | | |
| | | // åå§åä¸å¹´æ°æ®å |
| | | // åå»ºè¡ |
| | | categories := selectuniquevalues( macroPlan, Product_MP, tempPMP, tempPMP.IsLeaf() and |
| | | exists( tempPMP, AllParent.AsParent, tempPMP1, tempPMP1.ID() = "æºå ä»¶" ), |
| | | tempPMP.ParentID() ); |
| | | traverse ( categories, Elements, c ) { |
| | | macroPlan.MachineLogisticsCostReportRow( relnew, Factory := "大è¿å·¥å", Category := c ); |
| | | macroPlan.MachineLogisticsCostReportRow( relnew, Factory := "é¿æ¥å·¥å", Category := c ); |
| | | } |
| | | |
| | | // å建å |
| | | indexDate := macroPlan.StartOfPlanning().Date().StartOfMonth(); |
| | | for ( i := 0; i < 12; i++ ) { |
| | | macroPlan.MachineLogisticsCostReportColumn( relnew, StartDate := indexDate ); |
| | | indexDate := indexDate.StartOfNextMonth(); |
| | | } |
| | | |
| | | // æ¾åºææå¤§ç±»ï¼åå»ºæ°æ® |
| | | categories := selectuniquevalues( macroPlan, PackagingPlanRow, tempPPR, true, tempPPR.Category() ); |
| | | |
| | | traverse ( categories, Elements, c ) { |
| | | // å建åå
æ ¼ |
| | | traverse ( macroPlan, MachineLogisticsCostReportRow, mlcrr ) { // 循ç¯è¡ |
| | | info( "å½åéåçè¡ï¼", mlcrr.Factory(), " ", mlcrr.Category() ); |
| | | traverse ( macroPlan, MachineLogisticsCostReportColumn, mlcrc ) { // 循ç¯å |
| | | |
| | | // æºå ææ¬åæ° |
| | | lcm := select( macroPlan, LogisticsCostMachining, tempLCM, tempLCM.Factory() = factory and tempLCM.Product() = c ); |
| | | |
| | | // è¿è¾ææ¬åæ° |
| | | lct := select( macroPlan, LogisticsCostTransport, tempLCT, tempLCT.Origin() = ifexpr( factory = "大è¿å·¥å", "CC", "DL" ) and |
| | | tempLCT.Destination() = ifexpr( factory = "大è¿å·¥å", "DL", "CC" ) and |
| | | tempLCT.Product() = c ); |
| | | |
| | | // åå§åæºå ææ¬åæ°æ¥è¡¨è¡ |
| | | mlcrr := macroPlan.MachineLogisticsCostReportRow( relnew, Category := c, Factory := factory ); |
| | | |
| | | // å¾ªç¯æææ¶é´ååå»ºæ°æ® |
| | | traverse ( macroPlan, MachineLogisticsCostReportColumn, mlcrc ) { |
| | | cell := mlcrr.MachineLogisticsCostReportCell( relnew ); |
| | | // æºå ææ¬åæ° |
| | | lcm := select( macroPlan, LogisticsCostMachining, tempLCM, tempLCM.Factory() = mlcrr.Factory() and tempLCM.Product() = mlcrr.Category() |
| | | and tempLCM.StartDate() <= mlcrc.StartDate() and tempLCM.EndDate() >= mlcrc.StartDate().StartOfNextMonth() ); |
| | | |
| | | // è¿è¾ææ¬åæ° |
| | | lct := select( macroPlan, LogisticsCostTransport, tempLCT, tempLCT.Product() = mlcrr.Category() and |
| | | tempLCT.Origin() = "é¿æ¥å¤ç§åº" and tempLCT.Destination() = "CC åå
åº" ); |
| | | |
| | | cell := mlcrr.MachineLogisticsCostReportCell( relnew ); |
| | | |
| | | // 设置å
è£
è´¹ç¨ï¼å
è£
é * å
è£
åä»·ï¼ |
| | | packageQuantity := sum( macroPlan, PackagingPlanRow.PackagingPlanCell, tempPPC, |
| | | tempPPC.PackagingPlanRow().Category() = c and |
| | | tempPPC.PackagingPlanRow().Category() = mlcrr.Category() and |
| | | tempPPC.PackagingPlanRow().Factory() = factory and |
| | | tempPPC.PackagingPlanColumn().StartDate().Year() = mlcrc.StartDate().Year() and |
| | | tempPPC.PackagingPlanColumn().StartDate().Month() = mlcrc.StartDate().Month(), |
| | | tempPPC.Package() ); |
| | | // cell.PackingCharges( packageQuantity * guard( lcm.PackagePrice(), 1 ) ); |
| | | |
| | | cell.PackingCharges( packageQuantity * guard( lcm.PackagePrice(), 1 ) ); |
| | | |
| | | // 设置æå
è´¹ç¨ï¼æå
é * æå
åä»·ï¼ |
| | | unpackingQuantity := sum( macroPlan, PackagingPlanRow.PackagingPlanCell, tempPPC, |
| | | tempPPC.PackagingPlanRow().Category() = c and |
| | | tempPPC.PackagingPlanRow().Category() = mlcrr.Category() and |
| | | tempPPC.PackagingPlanRow().Factory() = factory and |
| | | tempPPC.PackagingPlanColumn().StartDate().Year() = mlcrc.StartDate().Year() and |
| | | tempPPC.PackagingPlanColumn().StartDate().Month() = mlcrc.StartDate().Month(), |
| | | tempPPC.Unpacking() ); |
| | | // cell.UnpackingCost( unpackingQuantity * guard( lcm.UnpackingPrice(), 1 ) ); |
| | | |
| | | cell.UnpackingCost( unpackingQuantity * guard( lcm.UnpackingPrice(), 1 ) ); |
| | | |
| | | // 设置ç¼å²çº¸è´¹ç¨ï¼å
è£
ç±» * ç¼å²çº¸åä»·ï¼ |
| | | // cell.BufferPaperCost( packageQuantity * guard( lcm.BufferPaperPrice(), 1 ) ); |
| | | |
| | | // 设置æ¨ç®±åä»· |
| | | // cell.UnitPriceOfWoodenCrate( guard( lcm.WoodenCratePrice(), 1 ) ); |
| | | |
| | | cell.BufferPaperCost( packageQuantity * guard( lcm.BufferPaperPrice(), 1 ) ); |
| | | |
| | | // 设置æ¨ç®±åä»· |
| | | cell.WoodenCratePriceReal( guard( lcm.WoodenCratePrice(), 1 ) ); |
| | | |
| | | // è®¾ç½®è°æ¨è´¹ç¨ï¼è°æ¨æ°é / å
è£
容é / è£
载容é * è¿è¾åä»·ï¼ |
| | | transferQuantity := sum( macroPlan, TransferPlanRow.TransferPlanCell, tempTPC, |
| | | tempTPC.TransferPlanRow().Category() = c and |
| | | tempTPC.TransferPlanRow().Category() = mlcrr.Category() and |
| | | tempTPC.TransferPlanRow().Name() = ifexpr( factory = "大è¿å·¥å", "CC to DL", "DL to CC" ) and |
| | | tempTPC.TransferPlanColumn().ColumnDate().Year() = mlcrc.StartDate().Year() and |
| | | tempTPC.TransferPlanColumn().ColumnDate().Month() = mlcrc.StartDate().Month(), |
| | | [Number]tempTPC.Value() ); |
| | | // cell.TransferCost( transferQuantity / guard( lcm.PackagingCapacity(), 1 ) / guard( lct.LoadingCapacity(), 1 ) * guard( lct.TransportPrice(), 1 ) ); |
| | | |
| | | cell.TransferCost( transferQuantity / guard( lcm.PackagingCapacity(), 1 ) / guard( lct.LoadingCapacity(), 1 ) * guard( lct.TransportPrice(), 1 ) ); |
| | | |
| | | // å¤ç§åºå
¥åºè´¹ç¨ï¼å
¥åºé[å
è£
é] / å
è£
容é * å
¥åºåä»·ï¼ |
| | | // cell.StorageFeesForRentedWarehouses( packageQuantity / guard( lcm.PackagingCapacity(), 1 ) * guard( lcm.WarehousingPrice(), 1 ) ); |
| | | |
| | | // cell.StorageFeesForRentedWarehouses( packageQuantity / guard( lcm.PackagingCapacity(), 1 ) * guard( lcm.WarehousingPrice(), 1 ) ); |
| | | |
| | | // å¤ç§åºåºåºè´¹ç¨ï¼åºåºé[æå
é] / å
è£
容é * åºåºåä»·ï¼ |
| | | // cell.OutboundExpensesForRentedWarehouses( unpackingQuantity / guard( lcm.PackagingCapacity(), 1 ) * guard( lcm.OutboundPrice(), 1 ) ); |
| | | |
| | | // cell.OutboundExpensesForRentedWarehouses( unpackingQuantity / guard( lcm.PackagingCapacity(), 1 ) * guard( lcm.OutboundPrice(), 1 ) ); |
| | | |
| | | // å¤ç§åºè¿è¾è´¹ç¨ï¼è¿è¾æ°é / å
è£
容é / è£
载容é * è¿è¾åä»·ï¼ |
| | | |
| | | cell.MachineLogisticsCostReportColumn( relset, mlcrc ); |
| | |
| | | ); |
| | | |
| | | u := select( macroPlan, Unit, tempU, tempU.ID() = pl ); |
| | | drainPs := selectset( u, UnitCalendar.Participation, tempP, guard( tempP.Event().Subject().Regex( "æç©º" ), false ) ); |
| | | drainPs := selectset( u, UnitCalendar.Participation, tempP, guard( tempP.Event().Subject().Regex( "æç©º" ) or tempP.Event().Subject().Regex( "æç©º" ), false ) ); |
| | | lineLyingPs := selectset( u, UnitCalendar.Participation, tempP, guard( tempP.Event().Subject().Regex( "éºçº¿" ), false ) ); |
| | | |
| | | // å¤çæç©º |
| | |
| | | traverse ( drainPs, Elements, p ) { |
| | | traverse ( p, ExplicitTimeInterval, eti ) { |
| | | // info( "å¼å§æ¶é´ï¼", eti.Start().Format( "Y-M2-D2" ), " ç»ææ¶é´ï¼", eti.End().Format( "Y-M2-D2" ) ); |
| | | naopc := select( macroPlan, NewAssemblyOnlinePlanColumn, tempNAOPC, tempNAOPC.StartDate() = ( eti.Start().Date() - 1 ) ); |
| | | |
| | | cell := maxselect( macroPlan, NewAssemblyOnlinePlanRow.NewAssemblyOnlinePlanCell, tempNAOPCell, |
| | | tempNAOPCell.NewAssemblyOnlinePlanRow().ProductionLine() = pl and |
| | | tempNAOPCell.NewAssemblyOnlinePlanColumn().StartDate() = ( eti.Start().Date() - 1 ) and |
| | | tempNAOPCell.NewAssemblyOnlinePlanRow().Type() = "1", |
| | | tempNAOPCell.NewAssemblyOnlinePlanRow().ProductionLine() = pl and |
| | | tempNAOPCell.NewAssemblyOnlinePlanColumn() = naopc and |
| | | tempNAOPCell.NewAssemblyOnlinePlanRow().Type() = "1" and |
| | | tempNAOPCell.Quantity() > 0, |
| | | tempNAOPCell.OrderNr() ); |
| | | |
| | | while ( isnull( cell ) and not isnull( naopc ) ){ |
| | | naopc := naopc.PreviousNAOPColumn(); |
| | | |
| | | cell := maxselect( macroPlan, NewAssemblyOnlinePlanRow.NewAssemblyOnlinePlanCell, tempNAOPCell, |
| | | tempNAOPCell.NewAssemblyOnlinePlanRow().ProductionLine() = pl and |
| | | tempNAOPCell.NewAssemblyOnlinePlanColumn() = naopc and |
| | | tempNAOPCell.NewAssemblyOnlinePlanRow().Type() = "1" and |
| | | tempNAOPCell.Quantity() > 0, |
| | | tempNAOPCell.OrderNr() ); |
| | | } |
| | | if ( not isnull( cell ) ) { |
| | | cell.Quantity( cell.Quantity() - targetQuantity ); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Package ( |
| | | MacroPlan macroPlan, |
| | | PackagingPlanRow ppr, |
| | | PackagingPlanColumn ppc, |
| | | output Number needPackagingQuantity |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // 计åå¼å§æ¶é´ |
| | | plannedStartDate := macroPlan.StartOfPlanning().Date(); |
| | | |
| | | traverse ( ppr, PackagingPlanCell, ppcell, ppcell.PackagingPlanColumn() = ppc ) { |
| | | // Product_MP |
| | | pmp := select( macroPlan, Product_MP, tempPMP, tempPMP.IsLeaf() and tempPMP.ID() = ppr.ProductID() ); |
| | | // å
è£
lotsize |
| | | ppls := select( macroPlan, PackagingPlanLotSize, tempPPLS, tempPPLS.Factory() = ppr.Factory() and |
| | | tempPPLS.ProductID() = ifexpr( exists( macroPlan, PackagingPlanLotSize, tempPPLS1, tempPPLS1.ProductID() = pmp.ID() ), |
| | | pmp.ID(), |
| | | pmp.ParentID() ) ); |
| | | // 䏿¥å
è£
容é |
| | | ppnc := select( macroPlan, PackagingPlanNewCapability, tempPPNC, tempPPNC.Factory() = ppr.Factory() and |
| | | tempPPNC.ProductID() = ifexpr( exists( macroPlan, PackagingPlanNewCapability, tempPPNC1, tempPPNC1.ProductID() = pmp.ID() ), |
| | | pmp.ID(), |
| | | pmp.ParentID() ) ); |
| | | // Unit |
| | | us := selectset( macroPlan, Unit, tempU, tempU.ID().Regex( ppr.FactoryAbbreviation() + " " + ppr.Category() ) ); |
| | | |
| | | // å
è£
åºååºç°è´å¼ï¼éè¦è®¾ç½®å
è£
é |
| | | if ( not isnull( ppls ) and not isnull( ppnc ) ) { |
| | | // å
è£
å¼å§çç´¢å¼ |
| | | indexPPCell := ppcell.Previous(); |
| | | |
| | | // info( "产线个æ°ï¼", us.Size(), " å¼å§æ¶é´ï¼", ppcell.StartDate().Format( "Y-M2-D2" ), " å
è£
åºåæ°éï¼", ppcell.PackagingInventory(), " éè¦å
è£
çæ°éï¼", needPackagingQuantity, |
| | | // " å
è£
lotsizeï¼",guard( ppls.LotSize(), 0 ), " æå¤§å
è£
容éï¼", ppnc.MaximumDailyPackagingQuantity() ); |
| | | |
| | | while ( not isnull( indexPPCell ) and |
| | | indexPPCell.StartDate() >= plannedStartDate and |
| | | exists( us, Elements.UnitPeriod.astype( UnitPeriodTime ).ShiftPlan, tempSP, |
| | | tempSP.UnitPeriodTime().StartDate() = indexPPCell.StartDate(), |
| | | tempSP.Outcome() <> "" ) and |
| | | needPackagingQuantity > 0 ) { |
| | | // è½å
è£
çæ°é |
| | | canPackagingQuantity := ifexpr( ceil( needPackagingQuantity / ppls.LotSize() ) < floor( ppnc.MaximumDailyPackagingQuantity() / ppls.LotSize() ), |
| | | ceil( needPackagingQuantity / ppls.LotSize() ), |
| | | floor( ppnc.MaximumDailyPackagingQuantity() / ppls.LotSize() ) ) * ppls.LotSize(); |
| | | // info( "å¼å§å
è£
çæ¥æï¼", indexPPCell.StartDate().Format( "Y-M2-D2" ), " è½å
è£
çæ°é:", canPackagingQuantity ); |
| | | |
| | | indexPPCell.Package( canPackagingQuantity ); |
| | | Transaction::Transaction().Propagate( attribute( PackagingPlanCell, PackagingInventory ) ); |
| | | Transaction::Transaction().Propagate( attribute( PackagingPlanCell, UnpackagedInventory ) ); |
| | | |
| | | needPackagingQuantity := needPackagingQuantity - canPackagingQuantity; |
| | | indexPPCell := indexPPCell.Previous(); |
| | | } |
| | | } |
| | | } |
| | | *] |
| | | } |
| | |
| | | { |
| | | TextBody: |
| | | [* |
| | | // 计åå¼å§æ¶é´ |
| | | plannedStartDate := macroPlan.StartOfPlanning().Date(); |
| | | |
| | | // 设置å
è£
å¼ï¼ç¬¦ålotsizeå䏿¥æå¤§å
è£
éï¼ |
| | | traverse ( macroPlan, PackagingPlanRow, ppr, ppr.Factory() = "大è¿å·¥å" and ppr.ProductID() = "06K103011CM" ) { |
| | | traverse ( ppr, PackagingPlanCell, ppcell, ppcell.StartDate() <= Date::Construct( 2025, 1, 3 ) ) { |
| | | traverse ( macroPlan, PackagingPlanRow, ppr/*, ppr.Factory() = "大è¿å·¥å" and ppr.ProductID() = "06K103011CM"*/ ) { |
| | | traverse ( ppr, PackagingPlanCell, ppcell/*, ppcell.StartDate() <= Date::Construct( 2025, 1, 4 )*/ ) { |
| | | // Product_MP |
| | | pmp := select( macroPlan, Product_MP, tempPMP, tempPMP.IsLeaf() and tempPMP.ID() = ppr.ProductID() ); |
| | | // å
è£
lotsize |
| | |
| | | pmp.ID(), |
| | | pmp.ParentID() ) ); |
| | | // Unit |
| | | u := select( macroPlan, Unit, tempU, tempU.ID().Regex( ppr.FactoryAbbreviation() + " " + ppr.Category() ) ); |
| | | us := selectset( macroPlan, Unit, tempU, tempU.ID().Regex( ppr.FactoryAbbreviation() + " " + ppr.Category() ) ); |
| | | |
| | | // å
è£
åºååºç°è´å¼ï¼éè¦è®¾ç½®å
è£
é |
| | | if ( ppcell.PackagingInventory() < 0 and not isnull( ppls ) and not isnull( ppnc ) ) { |
| | |
| | | // å
è£
å¼å§çç´¢å¼ |
| | | indexPPCell := ppcell.Previous(); |
| | | |
| | | info( "产线åï¼", u.ID(), " å¼å§æ¶é´ï¼", ppcell.StartDate().Format( "Y-M2-D2" ), " å
è£
åºåæ°éï¼", ppcell.PackagingInventory(), " éè¦å
è£
çæ°éï¼", needPackagingQuantity, |
| | | " å
è£
lotsizeï¼",guard( ppls.LotSize(), 0 ), " æå¤§å
è£
容éï¼", ppnc.MaximumDailyPackagingQuantity() ); |
| | | // info( "产线个æ°ï¼", us.Size(), " å¼å§æ¶é´ï¼", ppcell.StartDate().Format( "Y-M2-D2" ), " å
è£
åºåæ°éï¼", ppcell.PackagingInventory(), " éè¦å
è£
çæ°éï¼", needPackagingQuantity, |
| | | // " å
è£
lotsizeï¼",guard( ppls.LotSize(), 0 ), " æå¤§å
è£
容éï¼", ppnc.MaximumDailyPackagingQuantity() ); |
| | | |
| | | while ( not isnull( indexPPCell ) and needPackagingQuantity > 0 ) { |
| | | while ( not isnull( indexPPCell ) and |
| | | indexPPCell.StartDate() >= plannedStartDate and |
| | | exists( us, Elements.UnitPeriod.astype( UnitPeriodTime ).ShiftPlan, tempSP, |
| | | tempSP.UnitPeriodTime().StartDate() = indexPPCell.StartDate(), |
| | | tempSP.Outcome() <> "" ) and |
| | | needPackagingQuantity > 0 ) { |
| | | // è½å
è£
çæ°é |
| | | canPackagingQuantity := ifexpr( ceil( needPackagingQuantity / ppls.LotSize() ) < floor( ppnc.MaximumDailyPackagingQuantity() / ppls.LotSize() ), |
| | | ceil( needPackagingQuantity / ppls.LotSize() ), |
| | | floor( ppnc.MaximumDailyPackagingQuantity() / ppls.LotSize() ) ) * ppls.LotSize(); |
| | | info( "å¼å§å
è£
çæ¥æï¼", indexPPCell.StartDate().Format( "Y-M2-D2" ), " è½å
è£
çæ°é:", canPackagingQuantity ); |
| | | // info( "å¼å§å
è£
çæ¥æï¼", indexPPCell.StartDate().Format( "Y-M2-D2" ), " è½å
è£
çæ°é:", canPackagingQuantity ); |
| | | |
| | | indexPPCell.Package( canPackagingQuantity ); |
| | | Transaction::Transaction().Propagate( attribute( PackagingPlanCell, PackagingInventory ) ); |
| | | Transaction::Transaction().Propagate( attribute( PackagingPlanCell, UnpackagedInventory ) ); |
| | | |
| | | needPackagingQuantity := needPackagingQuantity - canPackagingQuantity; |
| | | indexPPCell := indexPPCell.Previous(); |
| | |
| | | } |
| | | } |
| | | |
| | | // 设置å
è£
å¼ï¼ç¬¦åå¤§ç±»ä¸ææäº§åå
è£
éå åä¸è½å¤§äºæå¤§å
è£
éï¼ |
| | | // 设置å
è£
å¼ï¼ç¬¦åå¤§ç±»ä¸ææäº§åéå
è£
éåºåå åä¸è½å¤§äºç³»ç»å¼ï¼ |
| | | factorys := selectuniquevalues( macroPlan, PackagingPlanRow, tempPPR, true, tempPPR.FactoryAbbreviation() ); |
| | | categorys := selectuniquevalues( macroPlan, PackagingPlanRow, tempPPR, true, tempPPR.Category() ); |
| | | traverse ( factorys, Elements, f/*, f = "DL"*/ ) { |
| | | traverse ( categorys, Elements, c/*, c = "ZKG"*/ ) { |
| | | // ç³»ç»è§å®çæå¤§éå
è£
åºåæ°é |
| | | ppmqReflection := Reflection::FindAttribute( "PackagingPlanMaximumQuantity", f + "_" + c ); |
| | | maxPackageQuantity := guard( ppmqReflection.GetNumber( macroPlan.PackagingPlanMaximumQuantity() ), 0 ); |
| | | // å½åå·¥åä¸ä¸ç±»äº§åè¡ |
| | | pprs := selectset( macroPlan, PackagingPlanRow, tempPPR, tempPPR.FactoryAbbreviation() = f and tempPPR.Category() = c ); |
| | | |
| | | // info( "å½åå·¥åï¼", f, " å½å大类ï¼", c, " 大类ä¸çæå¤§å
è£
æ°éï¼", maxPackageQuantity ); |
| | | traverse ( macroPlan, PackagingPlanColumn, ppc, ppc.StartDate() > plannedStartDate and maxPackageQuantity > 0 ) { |
| | | sumUnpackagedInventoryQuantity := sum( pprs, Elements.PackagingPlanCell, tempPPCell, tempPPCell.PackagingPlanColumn() = ppc, tempPPCell.UnpackagedInventory() ).Round( 0 ); |
| | | |
| | | // éè¦å
è£
|
| | | if ( sumUnpackagedInventoryQuantity > maxPackageQuantity ) { |
| | | // éè¦å
è£
çæ°é |
| | | needPackagingQuantity := [Number] ( sumUnpackagedInventoryQuantity - maxPackageQuantity ); |
| | | // æéå
è£
åºåæåºåçè¡ |
| | | itemPPRs := selectsortedset( pprs, Elements, tempPPR, true, |
| | | -select( tempPPR, PackagingPlanCell, tempPPCell, tempPPCell.PackagingPlanColumn() = ppc ).UnpackagedInventory() ); |
| | | |
| | | // info( "éè¦å
è£
æ¶é´ï¼", ppc.StartDate().Format( "Y-M2-D2" ), " éè¦å
è£
çæ°éï¼", needPackagingQuantity ); |
| | | traverse ( itemPPRs, Elements, ppr, needPackagingQuantity > 0 ) { |
| | | PackagingPlanCell::Package( macroPlan, ppr, ppc, needPackagingQuantity ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | TypeRepresentation MachineLogisticsCostReportCell |
| | | { |
| | | AttributeRepresentation BufferPaperCost |
| | | { |
| | | AttributeKey: '[413988.0.1462991459]' |
| | | Synonym: 'ç¼å²çº¸è´¹ç¨' |
| | | } |
| | | AttributeRepresentation Coefficient |
| | | { |
| | | AttributeKey: '[413988.0.1462991559]' |
| | | Synonym: 'ç³»æ°' |
| | | } |
| | | AttributeRepresentation EstimatedTotalCost |
| | | { |
| | | AttributeKey: '[413988.0.1462991539]' |
| | | Synonym: 'é¢è®¡æ»è´¹ç¨' |
| | | } |
| | | AttributeRepresentation ExternalRentalWarehouseTransportationCosts |
| | | { |
| | | AttributeKey: '[413988.0.1462991519]' |
| | | Synonym: 'å¤ç§åºè¿è¾è´¹ç¨' |
| | | } |
| | | AttributeRepresentation OutboundExpensesForRentedWarehouses |
| | | { |
| | | AttributeKey: '[413988.0.1462991509]' |
| | | Synonym: 'å¤ç§åºåºåºè´¹ç¨' |
| | | } |
| | | AttributeRepresentation PackingCharges |
| | | { |
| | | AttributeKey: '[413988.0.1462991439]' |
| | | Synonym: 'å
è£
è´¹ç¨' |
| | | } |
| | | AttributeRepresentation QuantityOfWoodenCrates |
| | | { |
| | | AttributeKey: '[413988.0.1462991469]' |
| | | Synonym: 'æ¨ç®±æ°é' |
| | | } |
| | | AttributeRepresentation RentalWarehouseStorageFees |
| | | { |
| | | AttributeKey: '[413988.0.1462991529]' |
| | | Synonym: 'å¤ç§åºä»å¨è´¹ç¨' |
| | | } |
| | | AttributeRepresentation StorageFeesForRentedWarehouses |
| | | { |
| | | AttributeKey: '[413988.0.1462991499]' |
| | | Synonym: 'å¤ç§åºå
¥åºè´¹ç¨' |
| | | } |
| | | AttributeRepresentation TotalCost |
| | | { |
| | | AttributeKey: '[413988.0.1462991549]' |
| | | Synonym: 'æ»è´¹ç¨' |
| | | } |
| | | AttributeRepresentation TransferCost |
| | | { |
| | | AttributeKey: '[413988.0.1462991489]' |
| | | Synonym: 'è°æ¨è´¹ç¨' |
| | | } |
| | | AttributeRepresentation UnpackingCost |
| | | { |
| | | AttributeKey: '[413988.0.1462991449]' |
| | | Synonym: 'æå
è´¹ç¨' |
| | | } |
| | | AttributeRepresentation WoodenCrateCost |
| | | { |
| | | AttributeKey: '[413988.0.1462991479]' |
| | | Synonym: 'æ¨ç®±è´¹ç¨' |
| | | } |
| | | RelationRepresentation MachineLogisticsCostReportColumn { RelationKey: '[413988.0.1462991383]' Visibility: 'Normal' } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: dhSelectedFactoryMCRR |
| | | Response OnCreated () id:Response_MacroPlanner_ApplicationMacroPlanner_dhSelectedFactoryMCRR_OnCreated |
| | | { |
| | | #keys: '[415754.0.430191699]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | this.Data( "大è¿å·¥å" ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Taborder: 59 |
| | | ] |
| | | } |
| | | Component dhSelectedFactoryMCRR |
| | | { |
| | | #keys: '[415754.0.434272020]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'String*' |
| | | Properties: |
| | | [ |
| | | Description: 'æºå ç©æµææ¬æ¥è¡¨å·¥ååæ°' |
| | | Taborder: 60 |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | MachineLogisticsCostReportCell::CreateData( MacroPlan, ddslFactory.Text() ); |
| | | |
| | | WebMessageBox::Success( Translations::A_VWED_Success() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pHeader/ddslFactory |
| | | Response OnCreated () id:Response_pHeader_ddslFactory_OnCreated |
| | | { |
| | | #keys: '[415754.0.425324701]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | this.Text( dhSelectedFactoryMCRR.Data() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pHeader/ddslFactory |
| | | Response OnUserSelectionChanged () id:Response_pHeader_ddslFactory_OnUserSelectionChanged |
| | | { |
| | | #keys: '[415754.0.425324931]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDropDownStringList_OnUserSelectionChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dhSelectedFactoryMCRR.Data( this.Text() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: 'æºå ç©æµææ¬æ¥è¡¨' |
| | | Title: 'MachineLogisticsCostReport' |
| | | ] |
| | | } |
| | |
| | | FormNewAssemblyOnlinePlan_MatrixEditor515 |
| | | { |
| | | gridColor: '#c4c4c4' |
| | | totalHeaderWidth: 530 |
| | | totalHeaderWidth: 335 |
| | | attributeHeaderWidthRatio: 0.6 |
| | | nameHeaderWidthRatio: 0.4 |
| | | columnWidth: 100 |
| | |
| | | FormNewAssemblyOnlinePlan_MatrixEditor583 |
| | | { |
| | | gridColor: '#c4c4c4' |
| | | totalHeaderWidth: 532 |
| | | totalHeaderWidth: 340 |
| | | attributeHeaderWidthRatio: 0.6 |
| | | nameHeaderWidthRatio: 0.4 |
| | | columnWidth: 100 |
| | |
| | | FormNewOfflinePlan_MatrixEditor515 |
| | | { |
| | | gridColor: '#c4c4c4' |
| | | totalHeaderWidth: 507 |
| | | totalHeaderWidth: 342 |
| | | attributeHeaderWidthRatio: 0.6 |
| | | nameHeaderWidthRatio: 0.4 |
| | | columnWidth: 100 |
| | |
| | | FormNewOfflinePlan_MatrixEditor583 |
| | | { |
| | | gridColor: '#c4c4c4' |
| | | totalHeaderWidth: 509 |
| | | totalHeaderWidth: 342 |
| | | attributeHeaderWidthRatio: 0.6 |
| | | nameHeaderWidthRatio: 0.4 |
| | | columnWidth: 100 |