private void GrabTicket(RegDept regDept)
        {
            if (this.chkWaitforTime.Checked && this.m_allSelectDoctors.Count > 0)
            {
                foreach (SelectDoctor current in this.m_allSelectDoctors)
                {
                    object obj = regDept.ListDoctors[current.RowsIndex].Tags[current.CellIndex];
                    if (obj != null)
                    {
                        Log.WriteInfo(string.Format("获取预约票源网址:{0}",(string)obj));
                        OrderInfo queryRegTime = this.m_regHelper.GetQueryRegTime((string)obj);
                        if (queryRegTime.ResResult == ResponseReuslt.SUCCESS)
                        {
                            this.m_bIsSuccessGetTicket = true;
                            this.m_ResetEvent.Reset();

                            if (File.Exists(RegSetting.Instance.SoundPath))
                            {
                                this.m_sdPlayer.SoundLocation = RegSetting.Instance.SoundPath;
                                this.m_sdPlayer.Play();
                            }

                            OrderForm orderForm = new OrderForm(queryRegTime);
                            orderForm.TopMost = true;
                            orderForm.ShowDialog();
                            orderForm.Dispose();
                            this.cmbArea.Enabled = true;
                            this.cmbDepartment.Enabled = true;
                            this.cmbHospital.Enabled = true;

                            break;
                        }
                        else if (queryRegTime.ResResult == ResponseReuslt.NON_LOGIN)
                        {
                            this.m_bIsSuccessGetTicket = true;
                            this.m_ResetEvent.Reset();
                            MessageBoxEx.Show("请先登录后再预约", "提示", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Asterisk);
                            this.cmbArea.Enabled = true;
                            this.cmbDepartment.Enabled = true;
                            this.cmbHospital.Enabled = true;
                            break;
                        }
                        else
                        {
                            Log.WriteError(string.Format("获取预约票源网址失败", (string)obj));
                        }
                    }
                }
            }
        }
 private void dataGridViewX1_CellContentDoubleClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex <= 0 || e.RowIndex < 0)
     {
         return;
     }
     System.Windows.Forms.DataGridViewCell dataGridViewCell = this.dataGridViewX1.Rows[e.RowIndex].Cells[e.ColumnIndex];
     if (dataGridViewCell != null && dataGridViewCell.Tag != null)
     {
         if (!this.m_regHelper.IsLogin)
         {
             MessageBoxEx.Show("请先登录后再预约", "提示", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Asterisk);
             return;
         }
         OrderInfo queryRegTime = this.m_regHelper.GetQueryRegTime((string)dataGridViewCell.Tag);
         if (queryRegTime.ResResult == ResponseReuslt.SUCCESS)
         {
             OrderForm orderForm = new OrderForm(queryRegTime);
             orderForm.ShowDialog();
             orderForm.Dispose();
             return;
         }
         if (queryRegTime.ResResult == ResponseReuslt.NON_LOGIN)
         {
             MessageBoxEx.Show("请先登录后再预约", "提示", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Asterisk);
         }
     }
 }