Exemple #1
0
        /// <summary>
        /// 提交成功后,在HandlePnrOrderSubmitRt中处理保存
        /// </summary>
        private void btnSaveAndSubmit_Click(object sender, EventArgs e)
        {
            string pnr = txtPnr.Text.Trim();

            if (EagleString.BaseFunc.PnrValidate(pnr))
            {
                string cmd = m_pool.HandleCommand("rt" + pnr);
                m_pool.SetType(EagleString.ETERM_COMMAND_TYPE.PNR_ORDER_SUBMIT);
                m_socket.SendCommand(cmd, EagleProtocal.TypeOfCommand.Multi);
            }
            else
            {
                MessageBox.Show("PNR错误");
                return;
            }
        }