| Quintiq file version 2.0 | 
| #parent: PanelPRHistoryButton/ButtonResendPR | 
| Response OnClick () id:Response_PanelPRHistoryButton_ButtonResendPR_OnClick | 
| { | 
|   #keys: '[414384.0.799483155]' | 
|   CanBindMultiple: false | 
|   DefinitionID: 'Responsedef_WebButton_OnClick' | 
|   Precondition: | 
|   [* | 
|     info( DataHolderChecked.Data().Size() ); | 
|     return DataHolderChecked.Data().Size() > 0; | 
|   *] | 
|   QuillAction | 
|   { | 
|     Body: | 
|     [* | 
|       productIdsOver14Days := PRHistoryData::ProductIdOver14Days( DataHolderChecked.Data() ); | 
|       if( productIdsOver14Days <> "" ) { | 
|         if( WebMessageBox::Question( "该批次中的物料号" + productIdsOver14Days + "订单应该在2周后释放,请确认是否重新释放?" ) = 0 ) { | 
|           PRHistoryData::ReCall( DataHolderChecked.Data(), ApplicationMacroPlanner.GetUserName() ); | 
|         } | 
|       } else if( WebMessageBox::Question( "是否重新释放选中的内容?" ) = 0 ) { | 
|         PRHistoryData::ReCall( DataHolderChecked.Data(), ApplicationMacroPlanner.GetUserName() ); | 
|       } | 
|     *] | 
|     GroupServerCalls: false | 
|   } | 
| } |