/**
|
* OrderDeatil.aspx.cs
|
*
|
* 功 能: 订单详情
|
* 类 名: OrderDeatil
|
*
|
* Ver 变更日期 负责人 变更内容
|
* ───────────────────────────────────
|
* V0.01 2013-4-24 13:25 吴崎均 初版
|
* V0.02 2013-5-15 18:23 吴崎均 编辑界面样式
|
* V0.03 2013-5-15 15:58 吴崎均 完成数据获取
|
* V0.04 2013-5-21 14:38 吴崎均 增加订单进度
|
* V0.05 2013-5-23 9:33 吴崎均 修改继承类为默认类Page使显示信息不受登录控制
|
*
|
*
|
*
|
*
|
*
|
*
|
*/
|
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 UnpayOrderPrint : BasePage
|
{
|
EC_OrderBasicBLL _eC_OrderBasicBLL = new EC_OrderBasicBLL();
|
OA_KaipiaoshenqingBLL oA_KaipiaoshenqingBLL = new OA_KaipiaoshenqingBLL();
|
public static string SellerOrderId = "";
|
public static string PrintType = "";
|
EC_OrderBLL eC_OrderBLL = new EC_OrderBLL();
|
/// <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()
|
{
|
LoadOrderInfo();
|
}
|
|
/// <summary>
|
/// 加载订单信息
|
/// </summary>
|
private bool LoadOrderInfo()
|
{
|
string shoukuanshijian = Request["shoukuanshijian"] == null ? "" : Request["shoukuanshijian"];
|
|
|
string BuyerId = Request["BuyerId"] == null ? "" : Request["BuyerId"];
|
string Paytime = Request["Paytime"] == null ? "" : Request["Paytime"];
|
|
|
List<int?> OrderIds = eC_OrderBLL.GetshoukuantixingorderidList(CurrentUser.MemberId, shoukuanshijian, Paytime, BuyerId).Select(x=>x.OrderId).ToList(); ;
|
|
|
Dictionary<int, object> searchParam = new Dictionary<int, object>();
|
|
SetParamValue(searchParam, 1, CurrentUser.MemberId);
|
SetParamValue(searchParam, 2, "");
|
SetParamValue(searchParam, 3, "");
|
SetParamValue(searchParam, 4, "");
|
SetParamValue(searchParam, 5, "");
|
SetParamValue(searchParam, 6, "");
|
SetParamValue(searchParam, 7, "");
|
SetParamValue(searchParam, 8, "");
|
SetParamValue(searchParam, 9, "");
|
SetParamValue(searchParam, 10, "");
|
SetParamValue(searchParam, 11, "");
|
SetParamValue(searchParam, 12, "");
|
SetParamValue(searchParam, 13, "");
|
SetParamValue(searchParam, 14, "");
|
SetParamValue(searchParam, 15, "");
|
SetParamValue(searchParam, 16, "");
|
SetParamValue(searchParam, 18, 0);
|
SetParamValue(searchParam, 19, CurrentUser.TrueMemberId);
|
SetParamValue(searchParam, 20, CurrentUser.StaffId);
|
SetParamValue(searchParam, 21, CurrentUser.TrueName);
|
SetParamValue(searchParam, 27, BuyerId.ToGuid2());
|
SearchParam = searchParam;
|
|
|
/// UCPager1.AspNetPager.CurrentPageIndex = 1;//重置页数
|
//再次查询
|
// AspNetPager_PageChanged(UCPager1.AspNetPager, new EventArgs());
|
Infrastructure.Query.Pagination pagination = new Infrastructure.Query.Pagination()
|
{
|
PageSize = 10000,// UCPager1.AspNetPager.PageSize,
|
PageIndex = 1// UCPager1.AspNetPager.CurrentPageIndex
|
};
|
IEnumerable<EC_OrderBasic> result = _eC_OrderBasicBLL.SelectModelPage_Seller(pagination, SearchParam);//.Where(x=>x.Quchudingdan == 2);
|
result = result.Where(x => OrderIds.Contains(x.Keyid));
|
rptOrder.DataSource = result;
|
rptOrder.DataBind();
|
|
|
return true;
|
}
|
|
/// <summary>
|
/// 设置查询参数方法
|
/// </summary>
|
/// <param name="target">设置目标</param>
|
/// <param name="key">键</param>
|
/// <param name="value">值</param>
|
private static void SetParamValue(Dictionary<int, object> target, int key, object value)
|
{
|
if (string.IsNullOrEmpty(string.Format("{0}", value)))
|
return;
|
else
|
{
|
}
|
|
if (target.ContainsKey(key))
|
{
|
target[key] = value;
|
}
|
else
|
{
|
target.Add(key, value);
|
}
|
}
|
|
/// <summary>
|
/// 查询参数
|
/// </summary>
|
private Dictionary<int, object> SearchParam
|
{
|
get
|
{
|
return ViewState["SearchParam"] as Dictionary<int, object>;
|
}
|
set
|
{
|
ViewState["SearchParam"] = value;
|
}
|
}
|
}
|
}
|