コード例 #1
0
        public WXMyBillsInfo WXGetMyBillsFromBigData(Guid userId, DateTime st, DateTime et, int pageIndex, int pageSize, int firstPageSize)
        {
            WXMyBillsInfo info   = new WXMyBillsInfo();
            string        getUrl = ConfigHelper.getConfigString("GetFtbTranListServerUrl") + "/member/master/queryUserTransactionRecords?userId=" + userId + "&startDate=" + st.ToString("yyyy-MM-dd 00:00:00") + "&endDate=" + et.ToString("yyyy-MM-dd 00:00:00") + "&type=-1&type1=-1&pageIndex=" + pageIndex + "&pageSize=" + pageSize + "&firstPageSize=" + firstPageSize;
            string        err    = "";
            string        resp   = HttpClient.HttpUtil.HttpGet(TdConfig.ApplicationName, getUrl, "", out err);

            if (!string.IsNullOrEmpty(resp))
            {
                ResponseBaseBills responseBase = JsonConvert.DeserializeObject <ResponseBaseBills>(resp);
                if (responseBase != null && responseBase.content != null && responseBase.content.Any())
                {
                    info.TotalCount = responseBase.totalElements;
                    info.List       = new List <WXMyBillDetialInfo>();
                    foreach (var item in responseBase.content)
                    {
                        WXMyBillDetialInfo detail = new WXMyBillDetialInfo();
                        detail.Amount        = item.amount;
                        detail.BillDate      = item.adddate;
                        detail.BillDesc      = item.desc;
                        detail.BillType      = item.type;
                        detail.FundProjectId = item.fundprojectid;
                        detail.Id            = item.id;
                        detail.InAmount      = item.inamount;
                        detail.PayOutAmount  = item.payoutamount;
                        info.List.Add(detail);
                    }
                }
            }
            return(info);
        }
コード例 #2
0
        private void GetData()
        {
            Guid       userId = WebUserAuth.UserId.Value;
            ProjectBLL bll    = new ProjectBLL();
            Guid       id     = Tool.SafeConvert.ToGuid(Tool.WEBRequest.GetQueryString("Id")).Value;

            model = bll.WXGetMyBillDetailInfo(id, userId);
            if (string.IsNullOrEmpty(model.Title) && model.FundProjectId.HasValue)
            {
                model.Title = GetZXTitleBySubId(model.FundProjectId.Value);
            }

            BannerList = new AdImageBLL().GetTuanDaiHot((int)ConstString.AdImageType.WEBImage, 1);
        }
コード例 #3
0
        //获取交易类型
        public static string GetBillType(WXMyBillDetialInfo item)
        {
            string billType = Tool.EnumHelper.GetDescriptionFromEnumValue(typeof(ConstString.FundDetailType1),
                                                                          item.BillType);

            if (item.BillDate > DateTime.Parse(webset.Param1Value))
            {
                if (billType.Contains("We计划相关"))
                {
                    billType = "We自动服务相关";
                }
                if (billType.Contains("复投宝"))
                {
                    billType = "We+自动服务";
                }
                if (billType.Contains("智享计划"))
                {
                    billType = "智享转让";
                }
            }
            return(billType);
        }
コード例 #4
0
 //获取标题
 public static string GetBillTitle(WXMyBillDetialInfo item)
 {
     if (item.BillType == 4)
     {
         if (item.BillDesc == "申购借出")
         {
             if (!item.Title.IsEmpty())
             {
                 return(item.Title.ToText());
             }
             else
             {
                 return(item.BillDesc);
             }
         }
         else
         {
             return(item.BillDesc);
         }
     }
     else if (item.BillType == 45)
     {
         if (item.PayOutAmount.HasValue && item.PayOutAmount.Value > 0)
         {
             if (item.BillDate > DateTime.Parse(webset.Param1Value))
             {
                 return("投资智享转让");
             }
             return("投资智享计划");
         }
         else if (item.InAmount.HasValue && item.InAmount.Value > 0)
         {
             if (item.BillDate > DateTime.Parse(webset.Param1Value))
             {
                 return("智享转让回款");
             }
             return("智享计划回款");
         }
         else
         {
             if (item.BillDate > DateTime.Parse(webset.Param1Value))
             {
                 return("智享转让相关");
             }
             return("智享计划相关");
         }
     }
     else if (item.BillType == 46)
     {
         if (item.PayOutAmount.HasValue && item.PayOutAmount.Value > 0)
         {
             if (item.BillDate > DateTime.Parse(webset.Param1Value))
             {
                 return("智享转让回购");
             }
             return("智享计划回购");
         }
         else if (item.InAmount.HasValue && item.InAmount.Value > 0)
         {
             if (item.BillDate > DateTime.Parse(webset.Param1Value))
             {
                 return("智享转让");
             }
             return("智享计划转让");
         }
         else
         {
             if (item.BillDate > DateTime.Parse(webset.Param1Value))
             {
                 return("智享转让相关");
             }
             return("智享计划相关");
         }
     }
     else
     {
         return(item.BillDesc);
     }
 }
コード例 #5
0
 protected static string GetBillDesc(WXMyBillDetialInfo item)
 {
     if (item.BillType == 45)
     {
         if (item.PayOutAmount.HasValue && item.PayOutAmount.Value > 0)
         {
             if (item.BillDate > DateTime.Parse(webset.Param1Value))
             {
                 return("投资智享转让");
             }
             return("投资智享计划");
         }
         else if (item.InAmount.HasValue && item.InAmount.Value > 0)
         {
             if (item.BillDate > DateTime.Parse(webset.Param1Value))
             {
                 return("智享转让回款");
             }
             return("智享计划回款");
         }
         else
         {
             if (item.BillDate > DateTime.Parse(webset.Param1Value))
             {
                 return("智享转让相关");
             }
             return("智享计划相关");
         }
     }
     else if (item.BillType == 46)
     {
         if (item.PayOutAmount.HasValue && item.PayOutAmount.Value > 0)
         {
             if (item.BillDate > DateTime.Parse(webset.Param1Value))
             {
                 return("智享转让回购");
             }
             return("智享计划回购");
         }
         else if (item.InAmount.HasValue && item.InAmount.Value > 0)
         {
             if (item.BillDate > DateTime.Parse(webset.Param1Value))
             {
                 return("智享转让");
             }
             return("智享计划转让");
         }
         else
         {
             if (item.BillDate > DateTime.Parse(webset.Param1Value))
             {
                 return("智享转让相关");
             }
             return("智享计划相关");
         }
     }
     else
     {
         return(item.BillDesc);
     }
 }