Quintiq file version 2.0
#parent: ListPRData_844
Response OnClick (
  structured[PRData] selection
) id:Response_ListPRData_844_MenuCall_OnClick
{
  #keys: '[414384.0.793461398]'
  CanBindMultiple: false
  DefinitionID => /ListPRData_844/Responsedef_ListPRData_844_WebMenu_OnClick
  Initiator: 'MenuCall'
  Precondition:
  [*
    return PRData::CanCall( selection, feedback );
  *]
  QuillAction
  {
    Body:
    [*
      productIdsOver14Days := PRData::ProductIdOver14Days( selection );
      if( productIdsOver14Days <> "" ) {
        if( WebMessageBox::Question( "该批次中的物料号" + productIdsOver14Days + "订单应该在2周后释放，请确认是否现在释放？（已释放的将被跳过）" ) = 0 ) {
          PRData::DoCall( GlobalOTDTable, selection, ApplicationMacroPlanner.GetUserName() );
        }
      } else if( WebMessageBox::Question( "是否发送选中的数据？（已释放的将被跳过）" ) = 0 ) {
        PRData::DoCall( GlobalOTDTable, selection, ApplicationMacroPlanner.GetUserName() );
      }
    *]
    GroupServerCalls: false
  }
}
