¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Test ( |
| | | MacroPlan macroPlan, |
| | | InterfaceDataset interfaceDataset, |
| | | Archive archive |
| | | ) |
| | | { |
| | | Description: 'æµè¯æ¹æ³ï¼æµè¯ä¸ç¨' |
| | | TextBody: 'info( 123 );' |
| | | } |
| | |
| | | tempPISPIP.ProductInStockingPoint_MP().Product_MP().MQBMLB() = dlerr.MLB_MQB() and |
| | | tempPISPIP.Start().Date() >= dlerc.StartDate() and |
| | | tempPISPIP.End().Date() <= lastDayOfThisMonth, |
| | | tempPISPIP.PlannedInventoryLevelEnd() ); |
| | | tempPISPIP.PlannedInventoryLevelEnd() ) / ( lastDayOfThisMonth - dlerc.StartDate() ); |
| | | cell.PackagingCapacity( guard( lce.PackagingCapacity(), 1 ) ); |
| | | cell.PlannedInventory( plannedInventory ); |
| | | cell.NumberOfEmptyShelves( [Number] guard( ( cell.TotalQuantityOfMaterialRacks() - guard( cell.PlannedInventory() / cell.PackagingCapacity(), 0 ) - guard( mrcc.Quantity(), 0 ) ) * guard( mrpc.Quantity(), 1 ), 0 ) ); |
| | |
| | | tempPIT.Trip().LaneLeg().AsDestinationStockingPointLeg().StockingPoint_MP().ID() = ifexpr( mlcrr.Factory() = "大è¿å·¥å", "DL", "CC" ) + " " + mlcrr.Category() + "线边åº", |
| | | tempPIT.Quantity() |
| | | ); |
| | | |
| | | cell.ExternalRentalWarehouseTransportationCosts( transportationQuantity / guard( lcm.PackagingCapacity(), 1 ) / guard( lct.LoadingCapacity(), 1 ) * guard( lct.TransportPrice(), 1 ) ); |
| | | |
| | | // å¤ç§åºä»å¨è´¹ç¨ï¼ä»å¨æ°é/å
è£
容é*ä»å¨åä»· |
| | |
| | | tempPISPIP.PlannedInventoryLevelEnd() ); |
| | | cell.RentalWarehouseStorageFees( plannedInventory / guard( lcm.PackagingCapacity(), 1 ) * guard( lcm.StoragePrice(), 1 ) ); |
| | | |
| | | |
| | | |
| | | // 大è¿å·¥åï¼å¤ç§åºå
¥åºè´¹ç¨ãå¤ç§åºåºåºè´¹ç¨ãå¤ç§åºè¿è¾è´¹ç¨ãå¤ç§åºä»å¨è´¹ç¨ï¼ä¸º0 |
| | | if ( mlcrr.Factory() = "大è¿å·¥å" ) { |
| | | cell.StorageFeesForRentedWarehouses( 0 ); |
| | | cell.OutboundExpensesForRentedWarehouses( 0 ); |
| | | cell.ExternalRentalWarehouseTransportationCosts( 0 ); |
| | | cell.RentalWarehouseStorageFees( 0 ); |
| | | } |
| | | |
| | | // é¢è®¡æ»è´¹ç¨ |
| | | cell.EstimatedTotalCost( cell.PackingCharges() + cell.UnpackingCost() + cell.BufferPaperCost() + cell.WoodenCrateCost() + cell.TransferCost() + |
| | | cell.StorageFeesForRentedWarehouses() + cell.OutboundExpensesForRentedWarehouses() + cell.ExternalRentalWarehouseTransportationCosts() + |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute A_Attribute1 |
| | | { |
| | | #keys: '3[413988.1.66825227][413988.1.66825226][413988.1.66825228]' |
| | | Description: 'ä¸çº¿è®¡å屿§' |
| | | ValueType: String |
| | | } |
| | |
| | | pls := selectuniquevalues( macroPlan, NewAssemblyOnlinePlanRow, tempNAOPR, true, tempNAOPR.ProductionLine() ); |
| | | |
| | | // æ¯å¦æ§è¡å¤çæ å¿ |
| | | isFlag := false; |
| | | isFlag := true; |
| | | |
| | | traverse ( pls, Elements, pl |
| | | // , pl = "CC MoMo" |
| | | // , pl = "DL ZKM" |
| | | ) { |
| | | traverse ( macroPlan, NewAssemblyOnlinePlanColumn, naopc |
| | | // , naopc.StartDate() <= Date::Construct( 2025, 2, 15 ) |
| | | // , naopc.StartDate() <= Date::Construct( 2025, 1, 11 ) |
| | | ) { |
| | | // éè¦å¤ççæ°é |
| | | targetQuantity := ifexpr( pl = "CC MoMo", guard( macroPlan.AssemblyOnlineQuantity().CCMoMo(), 0 ), |
| | |
| | | } |
| | | |
| | | // å¤çéºçº¿åç»å¤ç |
| | | info( "å¤çéºçº¿åç»å¤ç-----------------------------" ); |
| | | NewAssemblyOnlinePlanCell::PostLayingProcessing( macroPlan ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod UpdateOrder ( |
| | | NewOfflinePlanCell nopc, |
| | | String value, |
| | | String attrName |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | if ( value.Length() <> 3 ) { |
| | | error( "å符é¿åº¦ä¸çäº3" ); |
| | | } |
| | | |
| | | if ( value.SubString( 0, 1 ) <> "#" ) { |
| | | error( "å符没æä»¥â# âå¼å¤´" ); |
| | | } |
| | | |
| | | if ( guard( [Number]value.SubString( 1, 2 ) <= 0, true ) ) { |
| | | error( "ä¸ç¬¦åæ ¼å¼" ); |
| | | }; |
| | | |
| | | nopc.Order( value ); |
| | | nopc.OrderNr( [Number]value.SubString( 1, 2 ) ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod UpdateQuantity ( |
| | | NewOfflinePlanCell nopc, |
| | | Real value, |
| | | String attrName |
| | | ) |
| | | { |
| | | TextBody: 'nopc.Quantity( value );' |
| | | } |
| | |
| | | Component MenuWholeShift { #keys: '[413988.0.1263894682]' BaseType: 'Menu' Properties: [ Image: 'FISH_BOWL' Text: 'æµè¯æ´ç' ] } |
| | | Component menuSeparator604 { #keys: '[413988.0.1559834087]' BaseType: 'Menu' Properties: [ Separator: true ] } |
| | | Component ComponentMenu710 { #keys: '[413988.0.1559834106]' BaseType: 'ComponentMenu' Properties: [ ComponentType: 'frmStandardAnalysis627' Text: '' ] } |
| | | Component MenuTest2 { #keys: '[413988.1.66484180]' BaseType: 'Menu' Properties: [ Image: 'OSZILLOGRAPH' Text: 'æµè¯ä¸ç¨ãArchive::Testã' ] } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | c: menuSeparator891 |
| | | c: MenuWholeShift |
| | | c: menuSeparator604 |
| | | c: MenuTest2 |
| | | } |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: mbMainMenu/MenuTest2 |
| | | Response OnClick () id:Response_MacroPlanner_mbMainMenu_MenuTest2_OnClick |
| | | { |
| | | #keys: '[413988.1.66484197]' |
| | | Body: |
| | | [* |
| | | Archive::Test( MacroPlan, InterfaceDataset, Archive ); |
| | | *] |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_Menu_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ) and not isnull( InterfaceDataset ) and not isnull( Archive ); |
| | | *] |
| | | } |
| | |
| | | EnterButton: 'btnOk' |
| | | EscapeButton: 'btnCancel' |
| | | ExcludeFromActiveComponent: true |
| | | MinimumColumns: 100 |
| | | Padding: 'false' |
| | | Title: 'Attribute configuration' |
| | | ] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlActions |
| | | { |
| | | #keys: '[413988.1.68081947]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component btnOk |
| | | { |
| | | #keys: '[413988.1.68081951]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'OK' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component btnCancel |
| | | { |
| | | #keys: '[413988.1.68081953]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'Cancel' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | Border: true |
| | | ExcludeFromActiveComponent: true |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Padding: 'true' |
| | | Style: 'footer' |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlContent |
| | | { |
| | | #keys: '[413988.1.68081945]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component efAttribute id:efAttribute_969 |
| | | { |
| | | #keys: '[413988.1.68082211]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'MacroPlan.A_Attribute1' |
| | | Label: 'Attribute' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Padding: 'true' |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlActions/btnCancel |
| | | Response OnClick () id:Response_pnlActions_btnCancel_OnClick |
| | | { |
| | | #keys: '[413988.1.68081957]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | Form.Close(); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlActions/btnOk |
| | | Response OnClick () id:Response_pnlActions_btnOk_OnClick |
| | | { |
| | | #keys: '[413988.1.68081956]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | Form.ApplyChanges(); |
| | | Form.Close(); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent DialogAttributeConfiguration1 |
| | | { |
| | | #keys: '[413988.1.68081943]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: pnlContent |
| | | #child: pnlActions |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | EnterButton: 'btnOk' |
| | | EscapeButton: 'btnCancel' |
| | | ExcludeFromActiveComponent: true |
| | | MinimumColumns: 100 |
| | | Padding: 'false' |
| | | ] |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Attributes: 'TotalQuantityOfMaterialRacks;NumberOfEmptyShelves;CCStorageFeesForRentedWarehouses;CCOutboundExpensesForRentedWarehouses;CCRentalWarehouseStorageFees;CCShortDistanceTransportationCosts;CCCleaningCost;DLStorageFeesForRentedWarehouses;DLOutboundExpensesForRentedWarehouses;DLExternalRentalWarehouseTransportationCosts;DLRentalWarehouseStorageFees;CleaningCost;DLRentalWarehouseMaterialRackCost;CCExternalRentalWarehouseDLMaterialRackCost;CCLineHaulCost;EstimatedTotalCost;Coefficient;TotalCost' |
| | | Attributes: 'TotalQuantityOfMaterialRacks;NumberOfEmptyShelves;CCStorageFeesForRentedWarehouses;CCOutboundExpensesForRentedWarehouses;CCShortDistanceTransportationCosts;CCCleaningCost;DLStorageFeesForRentedWarehouses;DLOutboundExpensesForRentedWarehouses;DLExternalRentalWarehouseTransportationCosts;DLRentalWarehouseStorageFees;CleaningCost;DLRentalWarehouseMaterialRackCost;CCExternalRentalWarehouseDLMaterialRackCost;CCLineHaulCost;EstimatedTotalCost;Coefficient;TotalCost' |
| | | Column: 'DL_EngineRackColumn' |
| | | Row: 'DL_EngineRackRow' |
| | | Taborder: 0 |
| | |
| | | Title: 'è¦çæçäº§çº¿ï¼æµè¯ä¸ç¨ï¼' |
| | | ] |
| | | } |
| | | Component mAttributeConfiguration id:mAttributeConfiguration_549 |
| | | { |
| | | #keys: '[413988.1.66911936]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Image: 'ATTRIBUTE' |
| | | Taborder: 5 |
| | | Title: '屿§é
ç½®' |
| | | ] |
| | | } |
| | | Component mAttributeConfirm id:mAttributeConfirm_715 |
| | | { |
| | | #keys: '[413988.1.66912077]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Image: 'EDITOR_ACCESSIBILITY_WORLD' |
| | | Taborder: 6 |
| | | Title: '屿§ç¡®è®¤' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: matrixeditorContextMenu229_1/mAttributeConfiguration_549 |
| | | Response OnClick () id:Response_matrixeditorContextMenu229_mAttributeConfiguration_OnClick_593 |
| | | { |
| | | #keys: '[413988.1.66911935]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMenu_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if ( MacroPlan.A_Attribute1() = "" ) { |
| | | MacroPlan.A_Attribute1( "Quantity;Order" ); |
| | | } |
| | | |
| | | dlg := construct( DialogAttributeConfiguration1 ); |
| | | |
| | | ApplicationMacroPlanner.ShowFormModal( dlg ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: matrixeditorContextMenu229_1/mAttributeConfirm_715 |
| | | Response OnClick () id:Response_matrixeditorContextMenu229_mAttributeConfirm_OnClick_844 |
| | | { |
| | | #keys: '[413988.1.66912076]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMenu_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if ( MacroPlan.A_Attribute1() = "" ) { |
| | | MacroPlan.A_Attribute1( "Quantity;Order" ); |
| | | } |
| | | |
| | | MatrixEditor515.Attributes( MacroPlan.A_Attribute1() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: MatrixEditor515 |
| | | Response OnUpdateValue ( |
| | | NewOfflinePlanCell cell, |
| | | Real value |
| | | ) id:Response_MatrixEditor515_OnUpdateValue_14 |
| | | { |
| | | #keys: '[413988.1.64671632]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMatrixEditor_OnUpdateValue' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | NewOfflinePlanCell::UpdateQuantity( cell, value, focusedattribute ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: MatrixEditor515 |
| | | Response OnUpdateValue ( |
| | | NewOfflinePlanCell cell, |
| | | String value |
| | | ) id:Response_MatrixEditor515_OnUpdateValue |
| | | { |
| | | #keys: '[413988.1.64691773]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMatrixEditor_OnUpdateValue' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | NewOfflinePlanCell::UpdateOrder( cell, value, focusedattribute ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |