Kevin Kok Khah Whey
2023-11-07 5ae534ab606e6f2ba5ea60914224d665b0447d5a
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
29
30
31
32
33
34
35
36
37
38
Quintiq file version 2.0
#parent: Panel700/btn_OK_FCOS
Response OnClick () id:Response_Panel700_btn_OK_FCOS_OnClick
{
  #keys: '[414724.0.294747709]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  QuillAction
  {
    Body:
    [*
      // 从订单进入拆行
      if( not isnull( dh_Paramer_FCOS.Data()))
      {
        // 将订单移除并添加到预拆行订单中
        JResult := S_FunctionClass::SM_OrderToSpliteOrder( MacroPlan,dh_Paramer_FCOS.Data(),ef_SpliteReason_FCOS.Text());
        if( JResult.Get( "Status").GetBoolean())
        {
          // 生成拆行订单
          FrmCustomOrderSpliteRow.Close();
          if( JResult.Get( "Msg").GetString().Length()>0)
          {
            WebMessageBox::Information(JResult.Get( "Msg").GetString());
          }
        }
        else
        {
          WebMessageBox::Warning(JResult.Get( "Msg").GetString());
        }
      }
      else
      {
        // 生成拆行订单  
      }
    *]
    GroupServerCalls: false
  }
}