using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.BLL; using CY.Model; using CY.Infrastructure.Query; using CY.Infrastructure.Common; using CY.BLL.Sys; using CY.BLL.OA; using CY.BLL.EC; using CY.BLL.Inquiry; using CY.Model.Inquiry; namespace CY.WebForm.Pages.financial { public partial class OrderFinancialPrint : BasePage { EC_OrderBasicBLL _eC_OrderBasicBLL = null; OA_StaffBLL bll_OA_StaffBLL = null; public string ssshtml = ""; //初始化 public OrderFinancialPrint() { _eC_OrderBasicBLL = new EC_OrderBasicBLL(); bll_OA_StaffBLL = new OA_StaffBLL(); } protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindList(); } } //绑定列表 private void BindList() { Pagination pa = new Pagination(); pa.PageSize = 10000; pa.PageIndex = 1; Dictionary searchParam = new Dictionary(); Guid customeid = MyConvert.ConvertToGuid(Request["customeid"]); if (!Guid.Empty.Equals(customeid)) SetParamValue(searchParam, 0, customeid); SetParamValue(searchParam, 1, CurrentUser.MemberId); SetParamValue(searchParam, 2, Request["txtOrderId"].ToString2()); SetParamValue(searchParam, 3, Request["txtCustormerName"].ToString2()); SetParamValue(searchParam, 4, Request["txtBeginData"].ToString2()); SetParamValue(searchParam, 5, Request["txtEndDate"].ToString2()); SetParamValue(searchParam, 6, Request["selPrintTypes"].ToString2()); SetParamValue(searchParam, 7, Request["selOrderTypes"].ToString2()); SetParamValue(searchParam, 8, Request["selOrderStates"].ToString2()); SetParamValue(searchParam, 9, Request["selPayStates"].ToString2()); SetParamValue(searchParam, 10, Request["txtCreaterName"].ToString2()); SetParamValue(searchParam, 11, Request["selCustormerLevels"].ToString2()); SetParamValue(searchParam, 12, Request["selAccountManagerId"].ToString2()); SetParamValue(searchParam, 13, Request["selBusinessManagerId"].ToString2()); List result = _eC_OrderBasicBLL.SelectModelPage_Financial(pa, searchParam).ToList(); int aaa = 1; //List oA_DeliverPlans1 = oA_DeliverPlans.OrderBy(x => x.DriverId).ThenBy(x => x.Sort).ToList(); ssshtml = ""; ssshtml += "
"; ssshtml += ""; for (int i = 0; i < result.Count; i++) { ssshtml += ""; } ssshtml += "
编号订单号印件名称客户名称印刷类别订单状态支付状态订单类型印刷数量金额已收款未收款
" + (i+1) + "" + result[i].SellerOrderId + "" + result[i].DocumentName + "" + result[i].BuyerName + "" + result[i].PrintType.PrintName + "" + result[i].OrderStateObj.Name + "" + result[i].PayStateObj.Name + "" + result[i].OrderType.Name + "" + result[i].OrderExtend.PrintNum + " " + result[i].SumPrice + "" + result[i].TradingSingle.PayedMoney + "" + result[i].UnPayedMoney + "
"; // this.RepClientList.DataSource = //this.RepClientList.DataBind(); //UCPager1.AspNetPager.RecordCount = pa.RecordCount; } /// /// 设置查询参数方法 /// /// 设置目标 /// 键 /// 值 private static void SetParamValue(Dictionary 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); } } } }