hongji.li
2023-11-07 1a1ba3ad5ed9e4380185aa1ccad20204a0e5f115
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
  }
}