//获取We计划加入人员 protected void GetWeSubscribelist(Guid projectId) { WeOrderBLL webll = new WeOrderBLL(); int totalcount = GetOrderCount(projectId); List <WeOrderInfo> welist = GetOrderList(projectId, 1, 15); dataList = new List <SubscribeUserInfo>(); if (welist != null && welist.Count > 0) { foreach (WeOrderInfo weInfo in welist) { SubscribeUserInfo subInfo = new SubscribeUserInfo() { UserName = weInfo.UserName, NickName = weInfo.TelNo, OrderDate = weInfo.OrderDate, OrderType = GetWeTenderName(weInfo.DeviceType), Amount = weInfo.Amount ?? 0, IsAuto = false }; dataList.Add(subInfo); } } pageCount = GetPageCount(totalcount); }
private void GetData() { strType = Tool.WEBRequest.GetQueryString("type"); if (strType.ToLower() == "weplan") { //We计划 GetWeSubscribelist(projectId); } else if (strType.ToLower() == "zqzr") { //债权转让 GetZQZRSubscribelist(projectId); } else { int totalcount = 0; dataList = new List <SubscribeUserInfo>(); List <TuanDai.WXApiWeb.Common.WXSubscribeRecord_Bak> tempList = TuanDai.WXApiWeb.Common.WXInvest.WXGetSubscribeList(projectId, pageSize, 1, out totalcount); pageCount = GetPageCount(totalcount); foreach (TuanDai.WXApiWeb.Common.WXSubscribeRecord_Bak weInfo in tempList) { SubscribeUserInfo subInfo = new SubscribeUserInfo() { UserName = weInfo.UserName, NickName = weInfo.NickName, OrderDate = weInfo.AddDate, OrderType = "网站", Amount = weInfo.Amount ?? 0, IsAuto = weInfo.IsAuto }; subInfo.OrderType = GetProjectTenderName(weInfo.TenderMode); dataList.Add(subInfo); } } }