using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Web;
|
using System.Web.UI;
|
using System.Web.UI.WebControls;
|
using CY.BLL.EC;
|
using CY.Infrastructure.Common;
|
using CY.Model;
|
using CY.BLL;
|
using CY.Model.Inquiry;
|
using CY.BLL.Sys;
|
using CY.Infrastructure.Query;
|
|
|
namespace CY.WebForm.Pages.business
|
{
|
public partial class xiaoshouyejiPrint : BasePage
|
{
|
EC_OrderBLL bll_EC_OrderBLL = new EC_OrderBLL();
|
|
string txtchaxuntime = "";
|
/// <summary>
|
/// 页面加载事件
|
/// </summary>
|
/// <param name="sender"></param>
|
/// <param name="e"></param>
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
try
|
{
|
switch (Request["Target"])
|
{
|
case "GetCommunication":
|
break;
|
case "print":
|
break;
|
default:
|
Page_Load_Default();
|
return;
|
}
|
}
|
catch (Exception ex)
|
{
|
PAGEHandleException(ex);
|
Response.Clear();
|
Response.Write("-1");
|
}
|
Response.End();
|
}
|
|
/// <summary>
|
/// 默认加载事件方法
|
/// </summary>
|
private void Page_Load_Default()
|
{
|
DateTime date = DateTime.Now;
|
if (!DateTime.TryParse(Request["txtchaxuntime"] + "-01", out date))
|
{
|
JavaScript.MessageBox("必须填写查询时间", this);
|
return;
|
}
|
|
LoadOrderInfo();
|
}
|
|
/// <summary>
|
/// 加载订单信息
|
/// </summary>
|
private bool LoadOrderInfo()
|
{
|
|
|
|
txtchaxuntime = Request["txtchaxuntime"] == null ? "" : Request["txtchaxuntime"];
|
this.labchaxuntime.InnerText = txtchaxuntime+"月";
|
string selBusinessManagerId = Request["selBusinessManagerId"] == null ? "" : Request["selBusinessManagerId"];
|
|
|
|
|
|
|
|
Infrastructure.Query.Pagination pagination = new Infrastructure.Query.Pagination()
|
{
|
PageSize = 1000,
|
PageIndex = 1
|
};
|
|
|
|
this.rptOrder.DataSource = bll_EC_OrderBLL.GetxiaoshouyejiList(pagination,
|
CurrentUser.MemberId,
|
|
selBusinessManagerId,
|
txtchaxuntime+"-01"
|
|
);
|
this.rptOrder.DataBind();
|
|
|
|
|
|
|
return true;
|
}
|
}
|
}
|