/// <summary>
        /// 关闭
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void BtnCustomerDelete_Click(object sender, EventArgs e)
        {
            DialogResult dr = MessageBox.Show("确认删除?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk);

            if (dr == DialogResult.Cancel)
            {
                return;
            }

            if (!CStaticClass.CheckPushService())
            {// 检查服务
                return;
            }

            QueryServiceClient proxy = new QueryServiceClient();

            try
            {
                //弹出窗口
                if (1 != this.DgvCustomer.SelectedRows.Count)
                {
                    MessageBox.Show("请选择单行!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    return;
                }
                struCustomerInfo Customer = (struCustomerInfo)this.DgvCustomer.SelectedRows[0].DataBoundItem;
                if (string.IsNullOrEmpty(Customer.strICCardID))
                {
                    MessageBox.Show("用户卡号不能为空", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    return;
                }

                EnmFaultType type = proxy.DeleteCustomer(Customer.strICCardID);

                switch (type)
                {
                case EnmFaultType.Success:
                {
                    DeleteDgvCustomerInfo(Customer);
                    MessageBox.Show("删除成功!", "成功", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                    break;
                }

                case EnmFaultType.NoICCardInfo:
                {
                    MessageBox.Show("没有制卡!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    break;
                }

                case EnmFaultType.CarInGarage:
                {
                    MessageBox.Show("当前卡有车存在车库", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    break;
                }

                case EnmFaultType.TaskOnICCard:
                {
                    MessageBox.Show("当前卡有作业正在操作", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    break;
                }

                case EnmFaultType.NoBoundCustomer:
                {
                    MessageBox.Show("当前卡没有绑定车主", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    break;
                }

                case EnmFaultType.NoCustomerInfo:
                {
                    MessageBox.Show("没有车主信息", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    break;
                }

                case EnmFaultType.FailToDelete:
                {
                    MessageBox.Show("删除数据库失败", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    break;
                }

                case EnmFaultType.Exception:
                {
                    MessageBox.Show(CStaticClass.GetExceptionInfo(null), "连接异常", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    break;
                }

                default:
                {
                    MessageBox.Show("删除失败", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    break;
                }
                }
            }
            catch (TimeoutException)
            {
                MessageBox.Show("The service operation timed out. ", "超时", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            catch (FaultException exception)
            {
                MessageBox.Show(CStaticClass.GetExceptionInfo(exception), "SOAP错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            catch (CommunicationException exception)
            {
                MessageBox.Show("There was a communication problem. " + CStaticClass.GetExceptionInfo(exception), "通信错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            catch (Exception exception)
            {
                MessageBox.Show(CStaticClass.GetExceptionInfo(exception), "应用程序异常", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            proxy.Close();
        }