xiaoding721
2024-11-14 da2ced12d8f7736f959b298538eb936d060fd578
修改锁定期
已重命名2个文件
已修改3个文件
已添加1个文件
已删除2个文件
107 ■■■■■ 文件已修改
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Component_pProduct#661.def 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Component_pStockingPoint.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Component_pnlContent.def 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Response_pProduct_cbAllProduct_OnChanged.def 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Response_pProduct_ddlProduct_OnSelectionChanged.def 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Response_pStockingPoint_ddlStockingPoint_OnSelectionChanged.def 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Response_pnlActions_btnOk_OnClick.def 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Response_pnlContent661_cbAllProductInStockingPoint_OnChanged.def 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Component_pProduct#661.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Component_pnlContent661.def ÐÞ¸Ä
@@ -1,27 +1,27 @@
Quintiq file version 2.0
Component pnlContent661
Component pProduct
{
  #keys: '[414996.1.206961946]'
  BaseType: 'WebPanel'
  Children:
  [
    Component ddlProductInStockingPoint
    Component ddlProduct
    {
      #keys: '[414996.1.206961947]'
      BaseType: 'WebDropDownList'
      Databinding: 'ProductInStockingPoint_MP'
      Databinding: 'Product_MP'
      Children:
      [
        Component deContent404
        Component deProduct
        {
          #keys: '[414996.1.206961948]'
          BaseType: 'WebDataExtractor'
          Properties:
          [
            DataType: 'StockingPoint_MP'
            Source: 'dhSelectStockingPoint'
            DataType: 'MacroPlan'
            Source: 'MacroPlan'
            Taborder: 0
            Transformation: 'ProductInStockingPoint_MP'
            Transformation: 'Product_MP'
          ]
        }
      ]
@@ -33,7 +33,7 @@
        Taborder: 0
      ]
    }
    Component cbAllProductInStockingPoint
    Component cbAllProduct
    {
      #keys: '[414996.1.206961949]'
      BaseType: 'WebCheckbox'
@@ -47,6 +47,6 @@
  [
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 2
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Component_pStockingPoint.def
@@ -12,7 +12,7 @@
      Databinding: 'StockingPoint_MP'
      Children:
      [
        Component deContent
        Component deStockingPoint
        {
          #keys: '[414996.1.206961944]'
          BaseType: 'WebDataExtractor'
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Component_pnlContent.def
@@ -12,21 +12,11 @@
      Properties:
      [
        Label: '锁定期至:'
        Taborder: 3
        Taborder: 2
      ]
    }
    #child: pStockingPoint
    #child: pnlContent661
    Component dhSelectStockingPoint
    {
      #keys: '[414996.1.206961950]'
      BaseType: 'WebDataHolder'
      Databinding: 'StockingPoint_MP'
      Properties:
      [
        Taborder: 1
      ]
    }
    #child: pProduct
  ]
  Properties:
  [
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Response_pProduct_cbAllProduct_OnChanged.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,20 @@
Quintiq file version 2.0
#parent: pProduct/cbAllProduct
Response OnChanged () id:Response_pProduct_cbAllProduct_OnChanged
{
  #keys: '[414996.1.206961937]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCheckbox_OnChanged'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      if( this.Checked() ){
        ddlProduct.Enabled( false,"" );
      }else{
        ddlProduct.Enabled( true,"" );
      }
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Response_pProduct_ddlProduct_OnSelectionChanged.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Response_pnlContent661_ddlProductInStockingPoint_OnSelectionChanged.def ÐÞ¸Ä
@@ -1,8 +1,8 @@
Quintiq file version 2.0
#parent: pnlContent661/ddlProductInStockingPoint
#parent: pProduct/ddlProduct
Response OnSelectionChanged (
  ProductInStockingPoint_MP selection
) id:Response_pnlContent661_ddlProductInStockingPoint_OnSelectionChanged
) id:Response_pProduct_ddlProduct_OnSelectionChanged
{
  #keys: '[414996.1.207063206]'
  CanBindMultiple: false
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Response_pStockingPoint_ddlStockingPoint_OnSelectionChanged.def
ÎļþÒÑɾ³ý
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Response_pnlActions_btnOk_OnClick.def
@@ -10,7 +10,7 @@
    Body:
    [*
      if( cbAllStockingPoint.Checked() ){
        if( cbAllProductInStockingPoint.Checked() ){
        if( cbAllProduct.Checked() ){
          // é”å®šå…¨éƒ¨äº§å“
          traverse( MacroPlan,Product_MP,product ){
            traverse( product,ProductInStockingPoint_MP,productInStockingPoint ){
@@ -19,13 +19,13 @@
          }
        }else{
          // é”å®šæŒ‡å®šäº§å“ä¸‹çš„全部库存点
          product := ddlProductInStockingPoint.Data().Product_MP();
          product := ddlProduct.Data();
          traverse( product,ProductInStockingPoint_MP,productInStockingPoint){
            LockPeriod::Create( productInStockingPoint,dsLockDate.Date() );
          }
        }
      }else{
        if( cbAllProductInStockingPoint.Checked() ){
        if( cbAllProduct.Checked() ){
          // é”å®šæŒ‡å®šåº“存点下的全部产品
          stockingPoint := ddlStockingPoint.Data();
          traverse( stockingPoint,ProductInStockingPoint_MP,productInStockingPoint ){
@@ -33,7 +33,10 @@
          }
        }else{
          // é”å®šæŒ‡å®šåº“存点的指定产品
          LockPeriod::Create( ddlProductInStockingPoint.Data(),dsLockDate.Date() );
          productInStockingPoint := select( ddlProduct.Data(),ProductInStockingPoint_MP,pisp,pisp.StockingPoint_MP() = ddlStockingPoint.Data() );
          if( not isnull( productInStockingPoint )){
            LockPeriod::Create( productInStockingPoint,dsLockDate.Date() );
          }
        } 
      }
      Form.Close();
_Main/UI/MacroPlannerWebApp/Component_DialogCreateLockPeriod/Response_pnlContent661_cbAllProductInStockingPoint_OnChanged.def
ÎļþÒÑɾ³ý