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.business { public partial class DeliverPlanPrint : BasePage { OA_DeliverPlanBLL _OA_DeliverPlanBLL = null; OA_StaffBLL bll_OA_StaffBLL = null; OA_CarManageBll _OA_CarManageBll = null; public string ssshtml = ""; //初始化 public DeliverPlanPrint() { _OA_DeliverPlanBLL = new OA_DeliverPlanBLL(); bll_OA_StaffBLL = new OA_StaffBLL(); _OA_CarManageBll = new OA_CarManageBll(); } protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindList(); } } //绑定列表 private void BindList() { Pagination pa = new Pagination(); pa.PageSize = 1000; pa.PageIndex = 1; string CarId = Request["CarId"].ToString2(); string DriverId = Request["DriverId"].ToString2(); string DeliverTime = Request["DeliverTime"].ToString2(); string CustormerName = Request["CustormerName"].ToString2(); string BusinessManager = Request["BusinessManager"].ToString2(); IEnumerable oA_DeliverPlans = _OA_DeliverPlanBLL.SelectModelPage(pa, CurrentUser.MemberId, DeliverTime, CarId, DriverId, "", CustormerName, BusinessManager ); 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< oA_DeliverPlans1.Count; i++) { if (i != 0 && oA_DeliverPlans1[i].DriverId != oA_DeliverPlans1[i - 1].DriverId) { ssshtml += "
顺序要求到达时间业务经理客户单位客户地址、联系人及联系电话货单数量车辆驾驶员注意事项
"; ssshtml += "

"; ssshtml += "
"; ssshtml += ""; aaa = aaa + 1; } ssshtml += ""; } ssshtml += "
顺序要求到达时间业务经理客户单位客户地址、联系人及联系电话货单数量车辆驾驶员注意事项
"+oA_DeliverPlans1[i].Sort+""+ oA_DeliverPlans1[i].DeliverTime.Value.ToString("yyyy-MM-dd")+""+ oA_DeliverPlans1[i].BusinessManager +""+ oA_DeliverPlans1[i].CompanyName + ""+ oA_DeliverPlans1[i].DizhiLianxirenDianhua +""+ oA_DeliverPlans1[i].shuliang +""+ oA_DeliverPlans1[i].CarName+" "+ oA_DeliverPlans1[i].DriverName +""+ oA_DeliverPlans1[i].Zhuyishixiang +"
"; // this.RepClientList.DataSource = //this.RepClientList.DataBind(); //UCPager1.AspNetPager.RecordCount = pa.RecordCount; } } }