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
  }
}
