示例#1
0
 public PersonInfoDetail(List <PersonInfo> listPersonInfo, List <FreezeInfo> listFreezeInfo, TotalbizInfo totalbizInfo)
 {
     this.ListPersonInfo = listPersonInfo;
     this.ListFreezeinfo = listFreezeInfo;
     this.TotalbizInfo   = totalbizInfo;
 }
示例#2
0
        /// <summary>
        /// 从接口获取个人业务累计信息
        /// </summary>
        /// <param name="datasetName"></param>
        /// <param name="inter"></param>
        /// <returns></returns>
        private TotalbizInfo GetInterfaceTotalbizInfo(string datasetName, Interface inter)
        {
            string errorInfo = inter.GetMessage();

            try
            {
                TotalbizInfo totalbizInfo = new TotalbizInfo();

                string str = string.Empty;

                inter.SetResultset(datasetName);

                str = string.Empty;
                inter.GetByName("biz_year", ref str);
                totalbizInfo.biz_year = str;

                str = string.Empty;
                inter.GetByName("drug_year", ref str);
                totalbizInfo.drug_year = str;

                str = string.Empty;
                inter.GetByName("diag_year", ref str);
                totalbizInfo.diag_year = str;

                str = string.Empty;
                inter.GetByName("inhosp_year", ref str);
                totalbizInfo.inhosp_year = str;

                str = string.Empty;
                inter.GetByName("special_year", ref str);
                totalbizInfo.special_year = str;

                str = string.Empty;
                inter.GetByName("fee_year", ref str);
                totalbizInfo.fee_year = str;

                str = string.Empty;
                inter.GetByName("fund_year", ref str);
                totalbizInfo.fund_year = str;

                str = string.Empty;
                inter.GetByName("acct_year", ref str);
                totalbizInfo.acct_year = str;

                str = string.Empty;
                inter.GetByName("additional_year", ref str);
                totalbizInfo.additional_year = str;

                str = string.Empty;
                inter.GetByName("retire_year", ref str);
                totalbizInfo.retire_year = str;

                str = string.Empty;
                inter.GetByName("official_year", ref str);
                totalbizInfo.official_year = str;

                str = string.Empty;
                inter.GetByName("qfx_year", ref str);
                totalbizInfo.qfx_year = str;

                str = string.Empty;
                inter.GetByName("declare_year", ref str);
                totalbizInfo.declare_year = str;

                return(totalbizInfo);
            }
            catch (Exception ex)
            {
                throw new Exception(errorInfo + "\n" + ex.Message);
            }
        }