_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
ÎļþÒÑɾ³ý