/// <summary> /// 分页获取员工社保信息 /// </summary> /// <returns></returns> public List <SocialSecurityInfo> GetCusSocialSecurity(string customerid, int current) { DataTable dt = socialSecurityDal.GetCusSocialSecurity(customerid, current); List <SocialSecurityInfo> list = new List <SocialSecurityInfo>(); if (dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i++) { SocialSecurityInfo result = new SocialSecurityInfo(); result.rn = dt.Rows[i][0].ToString(); result.customerid = dt.Rows[i][1].ToString(); result.employeeid = dt.Rows[i][2].ToString(); result.realname = dt.Rows[i][3].ToString(); result.idnumber = dt.Rows[i][4].ToString(); result.customername = dt.Rows[i][5].ToString(); result.joinsscity = dt.Rows[i][6].ToString(); result.insuranceType = dt.Rows[i][7].ToString(); result.ssfees = dt.Rows[i][8].ToString(); result.gjtype = dt.Rows[i][9].ToString(); result.joingjjcity = dt.Rows[i][10].ToString(); result.gjjfee = dt.Rows[i][11].ToString(); result.companygjjFee = dt.Rows[i][12].ToString(); result.persongjjFee = dt.Rows[i][13].ToString(); list.Add(result); } } return(list); }
/// <summary> /// 个人参保信息查询 /// </summary> void QuerySocialSecurityInfo() { socialSecurityInfo = null; socialSecurityInfo = (SocialSecurityInfo)SocialSecurityAccess.QueryPensionGrantInfo <SocialSecurityInfo>(SysBLL.socialSecurityParam, ref recode, ref msg); if ("9999".Equals(recode)) { showInfo(msg); Thread.Sleep(1000 * 3); Util.JumpUtil.jumpCommonPage("FormSocialSecurity"); return; } else if ((socialSecurityInfo.data == null) || ("false".Equals(socialSecurityInfo.success))) { if (socialSecurityInfo.msg != null) { if (socialSecurityInfo.msg.Length >= 4) { showInfo(socialSecurityInfo.msg); } else { showInfo("未查到相关信息,请稍后再试..."); } } else { showInfo("未查到相关信息,请稍后再试..."); } Thread.Sleep(1000 * 3); Util.JumpUtil.jumpCommonPage("FormSocialSecurity"); return; } //输出info param.Add("info", socialSecurityInfo); Util.JumpUtil.jumpCommonPage("FormSocialSecurityInfo", param); }