/// <summary> /// 获取复投宝债仅信息 /// </summary> public void GetWeFtbObligatoryList() { Guid?productId = SafeConvert.ToGuid(WEBRequest.GetFormString("projectid")); int pageSize, pageIndex, totalCount; pageSize = 15; int.TryParse(Context.Request["pageIndex"], out pageIndex); WeFTBBLL weFtBll = new WeFTBBLL(); List <FTBInvestProjectInfo> ftbInvestProjectInfoList = weFtBll.GetFTBObligatoryList(productId.Value, pageSize, pageIndex, out totalCount); List <FTBInvestProjectInfo> newList = new List <FTBInvestProjectInfo>(); for (int i = 0; i < ftbInvestProjectInfoList.Count; i++) { var borrowerName = ftbInvestProjectInfoList[i].BorrowerName; var phone = ftbInvestProjectInfoList[i].TelNo; var IdentityCard = ftbInvestProjectInfoList[i].IdentityCard; var address = ftbInvestProjectInfoList[i].Address.ToText(); if (borrowerName.Length > 0) { borrowerName = borrowerName.Substring(0, 1) + "**"; } if (!phone.IsEmpty()) { if (phone.Length > 11) { phone = phone.Left(11); } phone = StringHandler.MaskTelNo(phone); } if (!string.IsNullOrWhiteSpace(IdentityCard)) { if (IdentityCard.Length > 18) { IdentityCard = IdentityCard.Left(18); } IdentityCard = StringHandler.MaskCardNo(IdentityCard); } if (address.Length > 5) { address = address.Substring(0, 6) + "..."; } FTBInvestProjectInfo tempModel = new FTBInvestProjectInfo(); tempModel.Address = address; tempModel.Amount = ftbInvestProjectInfoList[i].Amount; tempModel.BorrowerName = borrowerName; tempModel.Id = ftbInvestProjectInfoList[i].Id; tempModel.InvestDate = ftbInvestProjectInfoList[i].InvestDate; tempModel.ProductName = ftbInvestProjectInfoList[i].ProductName; tempModel.ProjectTitle = ftbInvestProjectInfoList[i].ProjectTitle; tempModel.ProjectId = ftbInvestProjectInfoList[i].ProjectId; tempModel.TelNo = phone; tempModel.IdentityCard = IdentityCard; newList.Add(tempModel); } this.Context.Response.Write(JsonConvert.SerializeObject( new { result = totalCount > 0 ? 1 : 0, totalcount = totalCount, msg = newList })); this.Context.Response.End(); }