/// <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 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)); } }