lazhen
2024-10-25 c76375269c3e221d4a02db906abd86bc0ec13bf2
库存更新detail可改quantity
已修改6个文件
已添加9个文件
244 ■■■■■ 文件已修改
_Main/BL/Type_InventoryInterfaceDataDetail/_ROOT_Type_InventoryInterfaceDataDetail.qbl 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_InventoryPointSelection/Attribute_Fac.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_InventoryPointSelection/Function_CalcQuantity.qbl 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointDetail/Component_pnlActions.def 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointDetail/Component_pnlContent.def 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointDetail/Method_EditQuantity.def 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointDetail/Method_OnOK.def 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointDetail/Response_pnlActions_btnCancel_OnClick.def 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointDetail/Response_pnlActions_btnOk_OnClick.def 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointDetail/_ROOT_Component_DialogInventoryPointDetail.def 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormInventoryInterfaceDataDetail/Component_ListInventoryInterfaceDataDetail.def 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormInventoryInterfaceDataDetail/Component_listContextMenuInventoryInterfaceDataDetail.def 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormInventoryInterfaceDataDetail/Response_ListInventoryInterfaceDataDetail_MenuEditQuantity_OnClick.def 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormInventoryPointSelection/Component_ListInventoryPointSelection.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Views/InvnetoryUpdate.vw 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_InventoryInterfaceDataDetail/_ROOT_Type_InventoryInterfaceDataDetail.qbl
@@ -7,10 +7,10 @@
  BaseType: Object
  OnCreate:
  [*
    ips := select( this, InventoryInterfaceData.InterfaceDataset.InventoryPointSelection, tempIPS, tempIPS.ProductID() = this.PartNumber() and tempIPS.InventoryPoint() = this.InventoryPoint() );
    ips := select( this, InventoryInterfaceData.InterfaceDataset.InventoryPointSelection, tempIPS, tempIPS.ProductID() = this.PartNumber() and tempIPS.InventoryPoint() = this.InventoryPoint() and this.Fac() = tempIPS.Fac() );
    
    if ( isnull( ips ) ) {
      ips := this.InventoryInterfaceData().InterfaceDataset().InventoryPointSelection( relnew, ProductID := this.PartNumber(), InventoryPoint := this.InventoryPoint() );
      ips := this.InventoryInterfaceData().InterfaceDataset().InventoryPointSelection( relnew, ProductID := this.PartNumber(), InventoryPoint := this.InventoryPoint(), Fac := this.Fac() );
    }
    
    this.InventoryPointSelection( relset, ips );
_Main/BL/Type_InventoryPointSelection/Attribute_Fac.qbl
对比新文件
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute Fac
{
  #keys: '3[415136.0.1245540896][415136.0.1245540895][415136.0.1245540897]'
  ValueType: String
}
_Main/BL/Type_InventoryPointSelection/Function_CalcQuantity.qbl
@@ -8,7 +8,7 @@
    
    value := 0.0;
    if( this.IsIncluded() ){
      value := sum( this, InventoryInterfaceDataDetail, detail, detail.Quantity() );
      value := sum( this, InventoryInterfaceDataDetail, detail, detail.Fac() = this.Fac() and detail.InventoryPoint() = this.InventoryPoint(), detail.Quantity() );
    }
    
    this.Quantity( value );
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointDetail/Component_pnlActions.def
对比新文件
@@ -0,0 +1,40 @@
Quintiq file version 2.0
Component pnlActions
{
  #keys: '[415136.0.1245102214]'
  BaseType: 'WebPanel'
  Children:
  [
    Component btnOk
    {
      #keys: '[415136.0.1245102218]'
      BaseType: 'WebButton'
      Properties:
      [
        Label: 'OK'
        Taborder: 0
      ]
    }
    Component btnCancel
    {
      #keys: '[415136.0.1245102220]'
      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_DialogInventoryPointDetail/Component_pnlContent.def
对比新文件
@@ -0,0 +1,26 @@
Quintiq file version 2.0
Component pnlContent
{
  #keys: '[415136.0.1245102212]'
  BaseType: 'WebPanel'
  Children:
  [
    Component efQuantity
    {
      #keys: '[415136.0.1247200387]'
      BaseType: 'WebEditField'
      Properties:
      [
        DataBinding: 'dhInventoryPointDetail.Data.Quantity'
        Label: 'Quantity'
        Mask: 'REAL'
        Taborder: 0
      ]
    }
  ]
  Properties:
  [
    Padding: 'true'
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointDetail/Method_EditQuantity.def
对比新文件
@@ -0,0 +1,17 @@
Quintiq file version 2.0
#parent: #root
Method EditQuantity (
  InventoryInterfaceDataDetail selection
) id:Method_DialogInventoryPointDetail_EditQuantity
{
  #keys: '[415136.0.1247200534]'
  Body:
  [*
    data          := shadow( selection );
    dhInventoryPointDetail.Data( &data );
    ApplicationMacroPlanner.ShowFormModal( this );
  *]
}
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointDetail/Method_OnOK.def
对比新文件
@@ -0,0 +1,16 @@
Quintiq file version 2.0
#parent: #root
Method OnOK () id:Method_DialogInventoryPointDetail_OnOK
{
  #keys: '[415136.0.1247200558]'
  Body:
  [*
    this.ApplyChanges();
    data     := dhInventoryPointDetail.Data();
    data.Commit();
    this.Close();
  *]
}
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointDetail/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: '[415136.0.1245102224]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      Form.Close();
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointDetail/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: '[415136.0.1245102223]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      Form.OnOK();
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogInventoryPointDetail/_ROOT_Component_DialogInventoryPointDetail.def
对比新文件
@@ -0,0 +1,32 @@
Quintiq file version 2.0
#root
#parent: MacroPlannerWebApp
OrphanComponent DialogInventoryPointDetail
{
  #keys: '[415136.0.1245102210]'
  BaseType: 'WebForm'
  Children:
  [
    #child: pnlContent
    #child: pnlActions
    Component dhInventoryPointDetail
    {
      #keys: '[415136.0.1247200437]'
      BaseType: 'WebDataHolder'
      Databinding: 'shadow[InventoryInterfaceDataDetail]*'
      Properties:
      [
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    Alignment: 'trailing'
    EnterButton: 'btnOk'
    EscapeButton: 'btnCancel'
    ExcludeFromActiveComponent: true
    Padding: 'false'
    Title: 'Inventory Point detail'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormInventoryInterfaceDataDetail/Component_ListInventoryInterfaceDataDetail.def
@@ -39,4 +39,22 @@
  [
    Taborder: 0
  ]
  ResponseDefinitions:
  [
    DelegatedResponseDefinition OnClick id:Responsedef_ListInventoryInterfaceDataDetail_WebMenu_OnClick
    {
      #keys: '[415136.0.1248380180]'
      Initiator: 'WebMenu'
      IsInherited: false
      ResponseType: 'OnClick'
      Arguments:
      [
        ResponseDefinitionArgument selection
        {
          #keys: '[1847.0.10867430]'
          Binding: 'this.Selection()'
        }
      ]
    }
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormInventoryInterfaceDataDetail/Component_listContextMenuInventoryInterfaceDataDetail.def
@@ -3,6 +3,19 @@
{
  #keys: '[413988.0.1227911961]'
  BaseType: 'listContextMenu'
  Children:
  [
    Component MenuEditQuantity
    {
      #keys: '[415136.0.1248380086]'
      BaseType: 'WebMenu'
      Properties:
      [
        Taborder: 3
        Title: 'Edit quantity'
      ]
    }
  ]
  Properties:
  [
    Taborder: 0
_Main/UI/MacroPlannerWebApp/Component_FormInventoryInterfaceDataDetail/Response_ListInventoryInterfaceDataDetail_MenuEditQuantity_OnClick.def
对比新文件
@@ -0,0 +1,25 @@
Quintiq file version 2.0
#parent: ListInventoryInterfaceDataDetail
Response OnClick (
  InventoryInterfaceDataDetail selection
) id:Response_ListInventoryInterfaceDataDetail_MenuEditQuantity_OnClick
{
  #keys: '[415136.0.1248380197]'
  CanBindMultiple: false
  DefinitionID => /ListInventoryInterfaceDataDetail/Responsedef_ListInventoryInterfaceDataDetail_WebMenu_OnClick
  Initiator: 'MenuEditQuantity'
  Precondition:
  [*
    return not isnull( MacroPlan );
  *]
  QuillAction
  {
    Body:
    [*
      dlg := construct( DialogInventoryPointDetail );
      dlg.EditQuantity( selection );
    *]
    GroupServerCalls: false
  }
}
_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"}}]'
        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"}}]'
        ContextMenu: 'listContextMenuInventoryPointSelection'
        Taborder: 2
      ]
_Main/UI/MacroPlannerWebApp/Views/InvnetoryUpdate.vw
@@ -146,7 +146,7 @@
          FormInventoryPointSelection_DataSetLevelInventoryPointSelection
          {
            groupDepth: -1
            sort: 'InventoryPoint'
            sort: 'DESC:Fac'
            column_ImgIsIncluded
            {
              columnId: 'ImgIsIncluded'
@@ -183,14 +183,14 @@
              subtotals: ''
              width: 150
            }
            column_Quantity
            column_Fac
            {
              columnId: 'Quantity'
              dataPath: 'Quantity'
              dataType: 'real'
              columnId: 'Fac'
              dataPath: 'Fac'
              dataType: 'string'
              index: 4
              subtotals: ''
              width: 150
              width: 89
            }
          }
        }