/// <summary> /// 债权融资页面初始化 /// </summary> public string FP20101(int pageSize) { //判断是否登录 if (session["userSN"] == null) { return("notLogin"); } string userSN = session["userSN"].ToString(); using (DBMA1DataContext dbma1 = new DBMA1DataContext()) { //判断是否有权限并且是否有逾期账单 var data1 = dbma1.U001s.Where(c => c.userSN == userSN).First(); bool ifBillOverdue = C201.FC20153(dbma1, userSN); if (data1.creditRightFinancingStatus != true || ifBillOverdue == true) { return("{\"status\":\"false\"}"); } //获取uip数据 string provinceData = C201.FC20121(dbma1).Replace("[", "").Replace("]", ""); string guaranteeType = C201.FC20117(dbma1).Replace("[", "").Replace("]", ""); string assetsType = C201.FC20151(dbma1).Replace("[", "").Replace("]", ""); string creditStatusType = C201.FC20105(dbma1).Replace("[", "").Replace("]", ""); string industryType = C201.FC20113(dbma1).Replace("[", "").Replace("]", ""); string repaymentType = C201.FC20114(dbma1).Replace("[", "").Replace("]", ""); string capitalPurposeType = C201.FC20115(dbma1).Replace("[", "").Replace("]", ""); string repaymentSourceType = C201.FC20116(dbma1).Replace("[", "").Replace("]", ""); string assetsSourceType = C201.FC20109(dbma1).Replace("[", "").Replace("]", ""); string useStatusType = C201.FC20110(dbma1).Replace("[", "").Replace("]", ""); string morgageType = C201.FC20112(dbma1).Replace("[", "").Replace("]", ""); string financierCancelReserveReasonType = C201.FC20130(dbma1).Replace("[", "").Replace("]", ""); string financierRefuseReserveReasonType = C201.FC20131(dbma1).Replace("[", "").Replace("]", ""); string financingParams = C201.FC20124(dbma1); //string res = string.Format("{{\"SltConfigData\":[{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10}],{11}}}", provinceData, guaranteeType, assetsType, creditStatusType, industryType, repaymentType, capitalPurposeType, repaymentSourceType, assetsSourceType, useStatusType, morgageType, financingParams); //获取已发布的债权 string crListStr = GetCrFirst(dbma1, userSN, pageSize); string userName = dbma1.U000s.Where(c => c.userSN == userSN).First().name; string res = string.Format("{{\"status\":\"true\",\"uipData\":{{\"SltConfigData\":[{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12}],{13}}},\"crData\":{14},\"maxDatetime\":\"{15}\",\"userName\":\"{16}\",\"userSN\":\"{17}\"}}", provinceData, guaranteeType, assetsType, creditStatusType, industryType, repaymentType, capitalPurposeType, repaymentSourceType, assetsSourceType, useStatusType, morgageType, financierCancelReserveReasonType, financierRefuseReserveReasonType, financingParams, crListStr, DateTime.Now, userName, userSN); return(res); } }
/// <summary> /// 初始化 /// </summary> public string FP30101(int pageSize) { //判断是否登录 if (session["userSN"] == null) { return("notLogin"); } string userSN = session["userSN"].ToString(); using (DBMA1DataContext dbma1 = new DBMA1DataContext()) { //判断是否有权限 var data = dbma1.U001s.Where(c => c.userSN == userSN).First(); bool ifBillOverdue = C201.FC20153(dbma1, userSN); if (data.assetsSellingStatus != true || ifBillOverdue == true) { return("{\"status\":\"false\"}"); } string userName = dbma1.U000s.Where(c => c.userSN == userSN).First().name; string provinceData = C201.FC20121(dbma1).Replace("[", "").Replace("]", ""); string assetsType = C201.FC20108(dbma1).Replace("[", "").Replace("]", ""); string assetsSourceType = C201.FC20109(dbma1).Replace("[", "").Replace("]", ""); string useStatusType = C201.FC20110(dbma1).Replace("[", "").Replace("]", ""); string RejectReason = C201.FC20138(dbma1); var vp401001List = (from c in dbma1.VP401001s where c.publisherUserSN == userSN orderby c.publishDate descending select c).Take(pageSize).ToList(); string vp401001ListStr = C101.FC10107(vp401001List); return(string.Format("{{\"status\":\"true\",\"userName\":\"{0}\",\"SltConfigData\":[{1},{2},{3},{4}],\"assetsDataList\":{5},\"maxDatetime\":\"{6}\",\"RejectReason\":{7},\"userSN\":\"{8}\"}}", userName, provinceData, assetsType, assetsSourceType, useStatusType, vp401001ListStr, DateTime.Now, RejectReason, userSN)); } }