/// <summary> /// /// </summary> private void QueryPersonInfo() { try { SendUIMsg(UIMsg.Display, string.Format("正在查询个人电脑号:{0}的人员信息,请稍后......", this._indi_id)); InterfaceClass.HN.MZ.GetPersonInfoByFlag getPersonInfoByFlag = new InterfaceClass.HN.MZ.GetPersonInfoByFlag(baseInterfaceHN); List <InterfaceClass.HN.MZ.PersonInfo> listPersonInfo = getPersonInfoByFlag.GetPersonInfoByindi_id(this._indi_id, baseInterfaceHN.Oper_hospitalid, "11", baseInterfaceHN.Oper_centerid); if (listPersonInfo.Count == 1) { SendUIMsg(MZ_ChangeUIMsg.SetPersonInfoObject, listPersonInfo[0]); SendUIMsg(UIMsg.Close); return; } SendUIMsg(UIMsg.Close); SendUIMsg(UIMsg.MsgError, string.Format("个人电脑号:{0}获取的人员信息含有{1}条记录,请联系管理员!!!", this._indi_id, listPersonInfo.Count)); } catch (Exception ex) { SendUIMsg(UIMsg.Close); SendUIMsg(UIMsg.MsgError, ex.Message); } }
/// <summary> /// 线程查询人员信息 /// </summary> private void ThreadQueryPersonInfo() { try { SendUIMsg(UIMsg.Display, string.Format("正在查询个人电脑号{0}、业务类型{1}的基金信息,请稍后......", this._indi_id, this._biz_type)); InterfaceClass.HN.MZ.GetPersonInfoByFlag info = new InterfaceClass.HN.MZ.GetPersonInfoByFlag(baseInterfaceHN); InterfaceClass.HN.MZ.PersonInfoDetail personInfoDetail = info.GetPersonInfoDetailByindi_id(this._indi_id, baseInterfaceHN.Oper_hospitalid, this._biz_type, baseInterfaceHN.Oper_centerid); SendUIMsg(UIMsg.WriteMsg, "获取基金信息成功,正在处理,请稍后......"); if (personInfoDetail.ListPersonInfo.Count == 1) { SendUIMsg(UIMsg.WriteMsg, "正在将获取的个人基金冻结信息转换成数据表,请稍后......"); FreezeInfoToDataTable(personInfoDetail.ListFreezeinfo); } else { throw new Exception(string.Format("获取的人员信息记录数过多({0}条),请重试!!!", personInfoDetail.ListPersonInfo.Count)); } SendUIMsg(UIMsg.Close); } catch (Exception ex) { SendUIMsg(UIMsg.Close); SendUIMsg(UIMsg.MsgError, "基金状态查询发生错误,错误原因:" + ex.Message); } }
/// <summary> /// 查询人员信息 /// </summary> private void QueryPersonInfo() { try { SendUIMsg(UIMsg.Display, string.Format("正在从中心服务器获取个人电脑号{0}的人员信息,请稍后。。。。。。", this.Indi_id)); InterfaceClass.HN.MZ.GetPersonInfoByFlag info = new InterfaceClass.HN.MZ.GetPersonInfoByFlag(baseInterfaceHN); List <InterfaceClass.HN.MZ.PersonInfo> listPersonInfo = info.GetPersonInfoByindi_id(this.Indi_id, baseInterfaceHN.Oper_hospitalid, "12", baseInterfaceHN.Oper_centerid); if (listPersonInfo.Count == 1) { SendUIMsg(RegisterUIMsg.SetPersonInfo, listPersonInfo[0]); SendUIMsg(RegisterUIMsg.ReadCardSuccess); } else { throw new Exception(string.Format("通过个人电脑号{0}获取的人员信息记录数为{1},人员信息过多请重试!!!", this.Indi_id, listPersonInfo.Count)); } SendUIMsg(UIMsg.Close); } catch (Exception ex) { SendUIMsg(UIMsg.Close); SendUIMsg(RegisterUIMsg.ReadCardFailure); SendUIMsg(UIMsg.MsgError, string.Format("从中心服务器获取个人电脑号{0}的人员信息发生错误,错误原因:" + ex.Message, this.Indi_id)); } }
/// <summary> /// 查询个人基金冻结信息和个人业务累计信息 /// </summary> private void QueryFreezeInfoAndTotalbizInfoDetail() { try { SendUIMsg(UIMsg.Display, "正在查询个人基金冻结信息和个人业务累计信息,请稍后......"); InterfaceClass.HN.MZ.GetPersonInfoByFlag getPersonInfoByFlag = new InterfaceClass.HN.MZ.GetPersonInfoByFlag(baseInterfaceHN); InterfaceClass.HN.MZ.PersonInfoDetail personInfoDetail = getPersonInfoByFlag.GetPersonInfoDetailByindi_id(this._indi_id, this._hospitalID, this._bizType, this._centerID); SendUIMsg(UIMsg.WriteMsg, "获取人员详细信息成功,正在处理,请稍后......"); if (personInfoDetail == null) { throw new Exception("获取的人员详细信息为null,请联系管理员!!!"); } SendUIMsg(UIMsg.WriteMsg, "将获取的人员信息转换成数据表成功,请稍后......"); if (personInfoDetail.ListPersonInfo.Count == 1) { SendUIMsg(UIMsg.WriteMsg, "正在将获取的个人基金冻结信息转换成数据表,请稍后......"); FreezeInfoToDataTable(personInfoDetail.ListFreezeinfo); SendUIMsg(UIMsg.WriteMsg, "正在将获取的个人业务累计信息转换成数据表,请稍后......"); TotalBizInfoToDataTable(personInfoDetail.TotalbizInfo); } SendUIMsg(UIMsg.Close); } catch (Exception ex) { SendUIMsg(UIMsg.Close); SendUIMsg(UIMsg.MsgError, ex.Message); } }
/// <summary> /// 查询人员详细信息 /// </summary> private void QueryPersonInfoDetail() { try { SendUIMsg(UIMsg.Display, "正在从中心服务器通过个人标识取人员信息,请稍后......"); InterfaceClass.HN.MZ.GetPersonInfoByFlag getPersonInfoByFlag = new InterfaceClass.HN.MZ.GetPersonInfoByFlag(baseInterfaceHN); InterfaceClass.HN.MZ.PersonInfoDetail personInfoDetail = null; switch (this._flag) { case 1: SendUIMsg(UIMsg.WriteMsg, "正在通过参保人电脑号取人员信息,请稍后......"); personInfoDetail = getPersonInfoByFlag.GetPersonInfoDetailByindi_id(this._typeValue, this._hospitalID, this._bizType, this._centerID); break; case 2: SendUIMsg(UIMsg.WriteMsg, "正在通过参保人的姓名取人员信息,请稍后......"); personInfoDetail = getPersonInfoByFlag.GetPersonInfoDetailByname(this._typeValue, this._hospitalID, this._bizType, this._centerID); break; case 3: SendUIMsg(UIMsg.WriteMsg, "正在通过参保人的公民身份号码取人员信息,请稍后......"); personInfoDetail = getPersonInfoByFlag.GetPersonInfoDetailByidcard(this._typeValue, this._hospitalID, this._bizType, this._centerID); break; case 4: SendUIMsg(UIMsg.WriteMsg, "正在通过参保人的IC卡号取人员信息,请稍后......"); personInfoDetail = getPersonInfoByFlag.GetPersonInfoDetailByiccardno(this._typeValue, this._hospitalID, this._bizType, this._centerID); break; case 5: SendUIMsg(UIMsg.WriteMsg, "正在通过参保人的保险号取人员信息,请稍后......"); personInfoDetail = getPersonInfoByFlag.GetPersonInfoDetailByinsr_code(this._typeValue, this._hospitalID, this._bizType, this._centerID); break; default: break; } SendUIMsg(UIMsg.WriteMsg, "获取人员详细信息成功,正在处理,请稍后......"); if (personInfoDetail == null) { throw new Exception("获取的人员详细信息为null,请联系管理员!!!"); } SendUIMsg(UIMsg.WriteMsg, "正在将获取的人员信息转换成数据表,请稍后......"); PersonInfoListToDataTable(personInfoDetail.ListPersonInfo); SendUIMsg(UIMsg.WriteMsg, "将获取的人员信息转换成数据表成功,请稍后......"); if (personInfoDetail.ListPersonInfo.Count == 1) { SendUIMsg(UIMsg.WriteMsg, "正在将获取的个人基金冻结信息转换成数据表,请稍后......"); FreezeInfoToDataTable(personInfoDetail.ListFreezeinfo); SendUIMsg(UIMsg.WriteMsg, "正在将获取的个人业务累计信息转换成数据表,请稍后......"); TotalBizInfoToDataTable(personInfoDetail.TotalbizInfo); } SendUIMsg(UIMsg.Close); } catch (Exception ex) { SendUIMsg(UIMsg.Close); SendUIMsg(UIMsg.MsgError, ex.Message); } }