예제 #1
0
        /// <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);
            }
        }
예제 #2
0
        /// <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);
            }
        }
예제 #3
0
        /// <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);
            }
        }