/// <summary>
 /// 提交查询
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnQuery_Click(object sender, EventArgs e)
 {
     //验证
     if (this.txt_IDCard.Text.Trim().Length == 0 && this.txt_ReadingCard.Text.Trim().Length == 0)
     {
         MessageBox.Show("请选择一个查询内容并输入查询条件", "查询提示");
         return;
     }
     if (this.rdoIDCard.Checked && this.txt_IDCard.Text.Trim().Length != 0)
     {
         this.objCurrentReader = readerService.GetReaderByIDCard(this.txt_IDCard.Text.Trim());
     }
     else
     {
         this.objCurrentReader = readerService.GetReaderByReadingCard(this.txt_ReadingCard.Text.Trim());
     }
     //判读是否查询到信息
     if (objCurrentReader != null)
     {
         if (objCurrentReader.StatusId != 0)
         {
             this.btnEnable.Enabled = true;
         }
         this.btnEdit.Enabled = true;
         //显示读者信息
         this.lblAddress.Text     = objCurrentReader.ReaderAddress;
         this.lblPhone.Text       = objCurrentReader.PhoneNumber;
         this.lblPostCode.Text    = objCurrentReader.PostCode;
         this.lblReaderName.Text  = objCurrentReader.ReaderName;
         this.lblRoleName.Text    = objCurrentReader.RoleName;
         this.lblReadingCard.Text = objCurrentReader.ReadingCard;
         this.lblGender.Text      = objCurrentReader.Gender;
         this.pbReaderImg.Image   = objCurrentReader.ReaderImage != "" ? (Image) new Common.SerializeObjectToString().DeserializeObject(objCurrentReader.ReaderImage) : null;
     }
     else
     {
         MessageBox.Show("当前读者不存在", "提示");
         this.btnEnable.Enabled = false;
         this.btnEnable.Enabled = false;
         return;
     }
 }
 //根据身份证查询会员信息
 public Reader GetReaderByIDCard(string iDCard)
 {
     return(objReaderService.GetReaderByIDCard(iDCard));
 }