lazhen
2024-06-05 a15127fd912276adab4682f273031869e16e0961
Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev-zlg
已添加13个文件
已修改2个文件
324 ■■■■■ 文件已修改
_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeStartingInventory.qbl 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_InventoryInterfaceData/StaticMethod_Test.qbl 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/Component_pnlActions.def 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/Component_pnlContent.def 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/Method_OnOK.def 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/Response_pnlActions_btnCancel_OnClick.def 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/Response_pnlActions_btnOk_OnClick.def 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/Response_pnlContent_dsDate_OnCreated.def 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/_ROOT_Component_DialogSynchronizeStartingInventory.def 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormActualInventories/Component_MatrixEditorActualInventories#537.def 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormActualInventories/Component_PanelActualInventoriesMatrix.def 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormActualInventories/Component_pHeader.def 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormActualInventories/Response_MacroPlanner_pHeader_bSynchronizeStartingInventory_OnClick.def 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormActualInventories/_ROOT_Component_FormActualInventories.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormInventoryPointSelection/Response_ListInventoryPointSelection_mEnable_OnClick.def 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeStartingInventory.qbl
对比新文件
@@ -0,0 +1,52 @@
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() );
  *]
}
_Main/BL/Type_InventoryInterfaceData/StaticMethod_Test.qbl
@@ -9,16 +9,9 @@
    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 );
  *]
}
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/Component_pnlActions.def
对比新文件
@@ -0,0 +1,40 @@
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
  ]
}
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/Component_pnlContent.def
对比新文件
@@ -0,0 +1,51 @@
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
  ]
}
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/Method_OnOK.def
对比新文件
@@ -0,0 +1,17 @@
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();
  *]
}
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/Response_pnlActions_btnCancel_OnClick.def
对比新文件
@@ -0,0 +1,15 @@
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();
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/Response_pnlActions_btnOk_OnClick.def
对比新文件
@@ -0,0 +1,15 @@
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
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/Response_pnlContent_dsDate_OnCreated.def
对比新文件
@@ -0,0 +1,16 @@
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
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogSynchronizeStartingInventory/_ROOT_Component_DialogSynchronizeStartingInventory.def
对比新文件
@@ -0,0 +1,23 @@
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'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormActualInventories/Component_MatrixEditorActualInventories#537.def
对比新文件
@@ -0,0 +1,8 @@
Quintiq file version 2.0
Component MatrixEditorActualInventories id:MatrixEditorActualInventories_537 #extension
{
  Properties:
  [
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormActualInventories/Component_PanelActualInventoriesMatrix.def
对比新文件
@@ -0,0 +1,9 @@
Quintiq file version 2.0
Component PanelActualInventoriesMatrix #extension
{
  Children:
  [
    #child: pHeader
    #child: MatrixEditorActualInventories_537
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormActualInventories/Component_pHeader.def
对比新文件
@@ -0,0 +1,27 @@
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
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormActualInventories/Response_MacroPlanner_pHeader_bSynchronizeStartingInventory_OnClick.def
对比新文件
@@ -0,0 +1,22 @@
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
  }
}
_Main/UI/MacroPlannerWebApp/Component_FormActualInventories/_ROOT_Component_FormActualInventories.def
对比新文件
@@ -0,0 +1,10 @@
Quintiq file version 2.0
#root
#parent: LibMacroPlannerWebUI
OrphanComponent FormActualInventories #extension
{
  Children:
  [
    #child: PanelActualInventoriesMatrix
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormInventoryPointSelection/Response_ListInventoryPointSelection_mEnable_OnClick.def
@@ -7,6 +7,10 @@
  #keys: '[413988.0.1235645466]'
  DefinitionID => /ListInventoryPointSelection/Responsedef_ListInventoryPointSelection_WebMenu_OnClick
  Initiator: 'mEnable'
  Precondition:
  [*
    return selection.StockpoingPoint() <> "";
  *]
  QuillAction
  {
    Body: