using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Web;
|
using System.Web.UI;
|
using System.Web.UI.WebControls;
|
using CY.Infrastructure.Query;
|
using CY.BLL;
|
using CY.Model;
|
|
namespace CY.WebForm.Pages.member
|
{
|
public partial class PaymentRecordListShow : System.Web.UI.Page
|
{
|
EC_PaymentRecordBLL bll_EC_PaymentRecordBLL = new EC_PaymentRecordBLL();
|
|
public string PrintHtml = "";
|
|
public string StartDate
|
{
|
get
|
{
|
return Request.Params["StartDate"] == null ? string.Empty : Request.Params["StartDate"].ToString();
|
}
|
}
|
|
public string EndDate
|
{
|
get
|
{
|
string endDate=Request.Params["EndDate"] == null ? string.Empty : Request.Params["EndDate"].ToString();
|
if (!string.IsNullOrEmpty(endDate))
|
{
|
endDate = DateTime.Parse(endDate).AddDays(1).ToString();
|
}
|
return endDate;
|
}
|
}
|
|
public string Province
|
{
|
get
|
{
|
return Request.Params["Province"] == null ? string.Empty : Request.Params["Province"].ToString();
|
}
|
}
|
|
public string City
|
{
|
get
|
{
|
return Request.Params["City"] == null ? string.Empty : Request.Params["City"].ToString();
|
}
|
}
|
|
public string County
|
{
|
get
|
{
|
return Request.Params["County"] == null ? string.Empty : Request.Params["County"].ToString();
|
}
|
}
|
|
public string OrderType
|
{
|
get
|
{
|
return Request.Params["OrderType"] == null ? string.Empty : Request.Params["OrderType"].ToString();
|
}
|
}
|
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged;
|
if (!IsPostBack)
|
{
|
DataBindToPage();
|
}
|
}
|
|
//数据绑定
|
public void DataBindToPage()
|
{
|
Pagination pa = new Pagination();
|
pa.PageSize = UCPager1.AspNetPager.PageSize;
|
pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex;
|
this.RepClientList.DataSource = bll_EC_PaymentRecordBLL.SelectAllModelPage(pa, StartDate, EndDate, OrderType,Province,City,County);
|
this.RepClientList.DataBind();
|
UCPager1.AspNetPager.RecordCount = pa.RecordCount;
|
|
Pagination pa_All = new Pagination();
|
pa_All.PageSize = int.MaxValue;
|
pa_All.PageIndex = 1;
|
List<EC_PaymentRecord> m_Pay_PromotionRecord_List = bll_EC_PaymentRecordBLL.SelectAllModelPage(pa_All, StartDate, EndDate, OrderType, Province, City, County).ToList();
|
PrintHtml += "<tr><th>编号</th><th>订单类型</th><th>会员类型</th><th>会员名称</th><th>联系人</th><th>联系电话</th><th>订单金额</th><th>已收金额</th><th>制单人</th><th>制单时间</th></tr>";
|
if (m_Pay_PromotionRecord_List != null && m_Pay_PromotionRecord_List.Count > 0)
|
{
|
int i = 1;
|
foreach (var item in m_Pay_PromotionRecord_List)
|
{
|
PrintHtml += "<tr><td>" + i + "</td><td>" + item.PayType + "</td><td>" + item.PayRole + "</td><td>" + item.MemberName + "</td><td>" + item.Contact + "</td><td>" + item.CompanyPhone + "</td><td>" + item.PayAllMoney.Value.ToString("0.00") + "</td><td>" + item.PayMoney.Value.ToString("0.00") + "</td><td>" + item.Operator + "</td><td>" + item.LastUpdateTime + "</td></tr>";
|
i++;
|
}
|
}
|
}
|
|
//分页事件
|
protected void AspNetPager1_PageChanged(object src, EventArgs e)
|
{
|
DataBindToPage();
|
}
|
}
|
}
|