hongjli
2025-01-02 bd4d6f71a3b2745956c82cc8ac3d55d779d65d0a
库存更新添加DTYPE
已修改6个文件
已添加1个文件
54 ■■■■ 文件已修改
_Main/BL/Type_InventoryInterfaceData/StaticMethod_Test.qbl 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_InventoryInterfaceDataDetail/_ROOT_Type_InventoryInterfaceDataDetail.qbl 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_InventoryPointSelection/Attribute_Dtype.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointSelection/Component_pnlContent.def 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointSelection/Method_InventoryPointSelection.def 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormInventoryPointSelection/Component_ListInventoryPointSelection.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Views/InvnetoryUpdate.vw 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_InventoryInterfaceData/StaticMethod_Test.qbl
@@ -11,8 +11,8 @@
    
    iid1 := interfaceDataset.InventoryInterfaceData( relnew, Date := Date::Construct( 2020, 1, 28 ), 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 );
    iid1.InventoryInterfaceDataDetail( relnew, Date := Date::Construct( 2020, 1, 28 ), PartNumber := "BLEU EV2 Sports", InventoryPoint := "PXSN", Quantity := 900, Dtype := "APS" );
    iid1.InventoryInterfaceDataDetail( relnew, Date := Date::Construct( 2020, 1, 28 ), PartNumber := "BLEU EV2 Sports", InventoryPoint := "LPLE", Quantity := 800, Dtype := "HTTP" );
    iid1.InventoryInterfaceDataDetail( relnew, Date := Date::Construct( 2020, 1, 28 ), PartNumber := "BLEU EV2 Sports", InventoryPoint := "3PLE", Quantity := 3100, Dtype := "eee" );
  *]
}
_Main/BL/Type_InventoryInterfaceDataDetail/_ROOT_Type_InventoryInterfaceDataDetail.qbl
@@ -7,10 +7,18 @@
  BaseType: Object
  OnCreate:
  [*
    ips := select( this, InventoryInterfaceData.InterfaceDataset.InventoryPointSelection, tempIPS, tempIPS.ProductID() = this.PartNumber() and tempIPS.InventoryPoint() = this.InventoryPoint() and this.Fac() = tempIPS.Fac() );
    ips := select( this, InventoryInterfaceData.InterfaceDataset.InventoryPointSelection, tempIPS,
                   tempIPS.ProductID() = this.PartNumber() and
                   tempIPS.InventoryPoint() = this.InventoryPoint() and
                   this.Fac() = tempIPS.Fac() and
                   this.Dtype() = tempIPS.Dtype() );
    
    if ( isnull( ips ) ) {
      ips := this.InventoryInterfaceData().InterfaceDataset().InventoryPointSelection( relnew, ProductID := this.PartNumber(), InventoryPoint := this.InventoryPoint(), Fac := this.Fac() );
      ips := this.InventoryInterfaceData().InterfaceDataset().InventoryPointSelection( relnew,
                                                                                       ProductID := this.PartNumber(),
                                                                                       InventoryPoint := this.InventoryPoint(),
                                                                                       Fac := this.Fac(),
                                                                                       Dtype := this.Dtype() );
    }
    
    this.InventoryPointSelection( relset, ips );
_Main/BL/Type_InventoryPointSelection/Attribute_Dtype.qbl
对比新文件
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute Dtype
{
  #keys: '3[416456.0.19351383][416456.0.19351382][416456.0.19351384]'
  ValueType: String
}
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointSelection/Component_pnlContent.def
@@ -51,6 +51,17 @@
      [
        DisplayField: 'Name'
        Label: 'StockingPoint'
        Taborder: 3
      ]
    }
    Component eDtype
    {
      #keys: '[416456.0.20811940]'
      BaseType: 'WebEditField'
      Properties:
      [
        Enabled: false
        Label: 'Dtype'
        Taborder: 2
      ]
    }
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointSelection/Method_InventoryPointSelection.def
@@ -11,6 +11,7 @@
    
    efProductID.Text( dhInventoryPointSelection.Data().ProductID() );
    efInventoryPoint.Text( dhInventoryPointSelection.Data().InventoryPoint() );
    eDtype.Text( dhInventoryPointSelection.Data().Dtype() );
    
    spmp := select( MacroPlan, StockingPoint_MP, tempSPMP, tempSPMP.ID() = inventoryPointSelection.StockpoingPoint() );
    ddlStockingPoint.Data( spmp );
_Main/UI/MacroPlannerWebApp/Component_FormInventoryPointSelection/Component_ListInventoryPointSelection.def
@@ -29,7 +29,7 @@
      ]
      Properties:
      [
        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ImgIsIncluded","title":"ImgIsIncluded","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ImgIsIncluded"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"ProductID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"InventoryPoint","title":"InventoryPoint","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"InventoryPoint"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockpoingPoint","title":"StockpoingPoint","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StockpoingPoint"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Fac","title":"Fac","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Fac"}}]'
        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ImgIsIncluded","title":"ImgIsIncluded","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ImgIsIncluded"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"ProductID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"InventoryPoint","title":"InventoryPoint","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"InventoryPoint"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockpoingPoint","title":"StockpoingPoint","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StockpoingPoint"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Fac","title":"Fac","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Fac"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Dtype","title":"Dtype","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Dtype"}}]'
        ContextMenu: 'listContextMenuInventoryPointSelection'
        Taborder: 2
      ]
_Main/UI/MacroPlannerWebApp/Views/InvnetoryUpdate.vw
@@ -181,14 +181,23 @@
              dataType: 'string'
              index: 2
              subtotals: ''
              width: 150
              width: 114
            }
            column_Dtype
            {
              columnId: 'Dtype'
              dataPath: 'Dtype'
              dataType: 'string'
              index: 3
              subtotals: ''
              width: 81
            }
            column_StockpoingPoint
            {
              columnId: 'StockpoingPoint'
              dataPath: 'StockpoingPoint'
              dataType: 'string'
              index: 3
              index: 4
              subtotals: ''
              width: 150
            }
@@ -197,7 +206,7 @@
              columnId: 'Fac'
              dataPath: 'Fac'
              dataType: 'string'
              index: 4
              index: 5
              subtotals: ''
              width: 89
            }