Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev-zlg
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SynchronizeStartingInventory ( |
| | | MacroPlan macroPlan, |
| | | Product_MPs products, |
| | | const InterfaceDataset interfaceDataset, |
| | | Date date |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // 鑾峰彇鎸囧畾鏃ユ湡搴撳瓨鏁版嵁 |
| | | iids := selectset( interfaceDataset, InventoryInterfaceData, tempIID, tempIID.Date() = date ); |
| | | |
| | | traverse ( iids, Elements.InventoryInterfaceDataDetail, iidd, iidd.InventoryPointSelection().IsIncluded() ) { |
| | | product_MP := select( products, Elements, tempPMP, tempPMP.ID() = iidd.PartNumber() ); |
| | | pisp := guard( select( product_MP, ProductInStockingPoint_MP, tempPISPMP, tempPISPMP.StockingPointID() = iidd.InventoryPointSelection().StockpoingPoint() ), |
| | | null( ProductInStockingPoint_MP ) ); |
| | | |
| | | if ( not isnull( pisp ) ) { |
| | | |
| | | } |
| | | // if ( not isnull( product_MP ) and not isnull( stockpoing_MP ) ) { |
| | | // apispip := select( targetMacroPlan, Actual.astype( ActualProductInStockingPointInPeriod ), tempA, |
| | | // tempA.ProductID() = product_MP.ID() and |
| | | // tempA.StockingPointID() = stockpoing_MP.ID() and |
| | | // tempA.Date() = ici.DateTime().Date() and |
| | | // tempA.ManufacturedDate() = Date::MinDate() ); |
| | | // if ( isnull( apispip ) ) { |
| | | // ActualProductInStockingPointInPeriod::Create( targetMacroPlan, product_MP, stockpoing_MP, ici.DateTime().Date(), |
| | | // Date::MinDate(), [Real]ici.ActualInventoryLevelEnd(), "", false ); |
| | | // } else { |
| | | // apispip.Update( apispip.ActualInventoryLevelEnd() + [Real]ici.ActualInventoryLevelEnd(), "", false ); |
| | | // } |
| | | // } |
| | | // } else if ( guard( lisp.StockingPointID() = "HQ-鎬讳粨RF寰呰繑", false ) or |
| | | // guard( lisp.StockingPointID() = "HQ-鎬讳粨2D寰呰繑", false ) ) { |
| | | // // 鍒涘缓缈绘柊搴撳瓨 |
| | | // product_MP := select( targetMacroPlan, Product_MP, tempPMP, tempPMP.ID() = ici.ProductID() ); |
| | | // stockpoing_MP := select( targetMacroPlan, StockingPoint_MP, tempSPMP, tempSPMP.ID() = "寰呯炕鏂板簱瀛樹粨" ); |
| | | // |
| | | // if ( not isnull( product_MP ) and not isnull( stockpoing_MP ) ) { |
| | | // InventorySupply::Create( OS::GenerateGUIDAsString(), product_MP, stockpoing_MP, ici.DateTime().Date(), |
| | | // Date::MinDate(), guard( [Real]ici.ActualInventoryLevelEnd(), 0.0 ), "", false ); |
| | | // } |
| | | // } |
| | | // } |
| | | } |
| | | |
| | | //info( "涓暟: ", icis.Size() ); |
| | | *] |
| | | } |
| | |
| | | interfaceDataset.InventoryInterfaceData( relflush ); |
| | | interfaceDataset.InventoryPointSelection( relflush ); |
| | | |
| | | interfaceDataset.InventoryPointSelection( relnew, ProductID := "065100010N", InventoryPoint := "PXSN" ); |
| | | |
| | | iid1 := interfaceDataset.InventoryInterfaceData( relnew, Date := Date::ActualDate() + 1, PartNumber := "065100010N" ); |
| | | iid1.InventoryInterfaceDataDetail( relnew, Date := Date::ActualDate() + 1, PartNumber := "065100010N", InventoryPoint := "PXSN", Quantity := 900 ); |
| | | iid1.InventoryInterfaceDataDetail( relnew, Date := Date::ActualDate() + 1, PartNumber := "065100010N", InventoryPoint := "LPLE", Quantity := 800 ); |
| | | iid1.InventoryInterfaceDataDetail( relnew, Date := Date::ActualDate() + 1, PartNumber := "065100010N", InventoryPoint := "3PLE", Quantity := 3100 ); |
| | | |
| | | iid2 := interfaceDataset.InventoryInterfaceData( relnew, Date := Date::ActualDate() - 1, PartNumber := "065100010S" ); |
| | | iid2.InventoryInterfaceDataDetail( relnew, Date := Date::ActualDate() - 1, PartNumber := "065100010S", InventoryPoint := "ABCD", Quantity := 234 ); |
| | | iid2.InventoryInterfaceDataDetail( relnew, Date := Date::ActualDate() - 1, PartNumber := "065100010S", InventoryPoint := "EIOI", Quantity := 454 ); |
| | | iid2.InventoryInterfaceDataDetail( relnew, Date := Date::ActualDate() - 1, PartNumber := "065100010S", InventoryPoint := "SDNL", Quantity := 232 ); |
| | | iid1 := interfaceDataset.InventoryInterfaceData( relnew, Date := Date::ActualDate(), PartNumber := "BLEU EV2 Sports" ); |
| | | iid1.InventoryInterfaceDataDetail( relnew, Date := Date::Construct( 2020, 1, 28 ), PartNumber := "BLEU EV2 Sports", InventoryPoint := "PXSN", Quantity := 900 ); |
| | | iid1.InventoryInterfaceDataDetail( relnew, Date := Date::Construct( 2020, 1, 28 ), PartNumber := "BLEU EV2 Sports", InventoryPoint := "LPLE", Quantity := 800 ); |
| | | iid1.InventoryInterfaceDataDetail( relnew, Date := Date::Construct( 2020, 1, 28 ), PartNumber := "BLEU EV2 Sports", InventoryPoint := "3PLE", Quantity := 3100 ); |
| | | *] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | Component pnlActions |
| | | { |
| | | #keys: '[413988.0.1235980439]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component btnOk |
| | | { |
| | | #keys: '[413988.0.1235980443]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'OK' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component btnCancel |
| | | { |
| | | #keys: '[413988.0.1235980445]' |
| | | 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.0.1235980437]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddlProduct_MP |
| | | { |
| | | #keys: '[413988.0.1238312575]' |
| | | BaseType: 'WebDropDownList' |
| | | Databinding: 'Product_MP' |
| | | Children: |
| | | [ |
| | | Component deContent |
| | | { |
| | | #keys: '[413988.0.1238312577]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'Product_MP' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | DisplayField: 'ID' |
| | | Label: 'Product' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component dsDate |
| | | { |
| | | #keys: '[413988.0.1238312655]' |
| | | BaseType: 'WebDateSelector' |
| | | Properties: |
| | | [ |
| | | Label: 'Date' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Padding: 'true' |
| | | Taborder: 0 |
| | | ] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method OnOK () id:Method_DialogSynchronizeStartingInventory_OnOK |
| | | { |
| | | #keys: '[413988.0.1239043906]' |
| | | Body: |
| | | [* |
| | | Form.ApplyChanges(); |
| | | |
| | | InventoryInterfaceData::SynchronizeStartingInventory( MacroPlan, |
| | | selectset( ddlProduct_MP.Data(), AllChildren.AsChildren, tempPMP, tempPMP.IsLeaf() ), |
| | | InterfaceDataset, |
| | | dsDate.Date() ); |
| | | |
| | | Form.Close(); |
| | | *] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlActions/btnCancel |
| | | Response OnClick () id:Response_pnlActions_btnCancel_OnClick |
| | | { |
| | | #keys: '[413988.0.1235980449]' |
| | | 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.0.1235980448]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | Form.OnOK(); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlContent/dsDate |
| | | Response OnCreated () id:Response_pnlContent_dsDate_OnCreated |
| | | { |
| | | #keys: '[413988.0.1239043849]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | this.Date( Date::ActualDate() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent DialogSynchronizeStartingInventory |
| | | { |
| | | #keys: '[413988.0.1235980435]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: pnlContent |
| | | #child: pnlActions |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | EnterButton: 'btnOk' |
| | | EscapeButton: 'btnCancel' |
| | | ExcludeFromActiveComponent: true |
| | | MinimumRows: 30 |
| | | Padding: 'false' |
| | | Title: 'Synchronize Starting Inventory' |
| | | ] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | Component MatrixEditorActualInventories id:MatrixEditorActualInventories_537 #extension |
| | | { |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelActualInventoriesMatrix #extension |
| | | { |
| | | Children: |
| | | [ |
| | | #child: pHeader |
| | | #child: MatrixEditorActualInventories_537 |
| | | ] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | Component pHeader |
| | | { |
| | | #keys: '[413988.0.1238563747]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component bSynchronizeStartingInventory |
| | | { |
| | | #keys: '[413988.0.1235991035]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'STAR_BLUE' |
| | | Label: 'Synchronize Starting Inventory' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Border: true |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | ] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pHeader/bSynchronizeStartingInventory |
| | | Response OnClick () id:Response_MacroPlanner_pHeader_bSynchronizeStartingInventory_OnClick |
| | | { |
| | | #keys: '[413988.0.1235901581]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ) and not isnull( InterfaceDataset ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dlg := construct( DialogSynchronizeStartingInventory ); |
| | | |
| | | ApplicationMacroPlanner.ShowFormModal( dlg ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: LibMacroPlannerWebUI |
| | | OrphanComponent FormActualInventories #extension |
| | | { |
| | | Children: |
| | | [ |
| | | #child: PanelActualInventoriesMatrix |
| | | ] |
| | | } |
| | |
| | | #keys: '[413988.0.1235645466]' |
| | | DefinitionID => /ListInventoryPointSelection/Responsedef_ListInventoryPointSelection_WebMenu_OnClick |
| | | Initiator: 'mEnable' |
| | | Precondition: |
| | | [* |
| | | return selection.StockpoingPoint() <> ""; |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |