| | |
| | | //加载查询条件 |
| | | protected void InitialSelectData() |
| | | { |
| | | this.selDriverId.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null).Where(x => x.SM_Post.Equals("驾驶员")) ; |
| | | this.selDriverId.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null).Where(x => x.BF_IsDriver == true);//.Where(x => x.SM_Post.Equals("驾驶员")) ; |
| | | this.selDriverId.DataTextField = "Name"; |
| | | this.selDriverId.DataValueField = "Keyid"; |
| | | this.selDriverId.DataBind(); |
| | |
| | | this.selCarId.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | |
| | | this.selDriverIddo.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null).Where(x => x.SM_Post.Equals("驾驶员")); |
| | | this.selDriverIddo.DataTextField = "Name"; |
| | | this.selDriverIddo.DataValueField = "Keyid"; |
| | | this.selDriverIddo.DataBind(); |
| | | this.selDriverIddo.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | this.selCarIddo.DataSource = _OA_CarManageBll.SelectListByFirmId(CurrentUser.MemberId); |
| | | this.selCarIddo.DataTextField = "CarNumber"; |
| | | this.selCarIddo.DataValueField = "Keyid"; |
| | | this.selCarIddo.DataBind(); |
| | | this.selCarIddo.Items.Insert(0, new ListItem("全部", "")); |
| | | this.selBusinessManager.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, true, false); |
| | | this.selBusinessManager.DataTextField = "Name"; |
| | | this.selBusinessManager.DataValueField = "Keyid"; |
| | | this.selBusinessManager.DataBind(); |
| | | this.selBusinessManager.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | |
| | | //this.selDriverIddo.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null).Where(x => x.BF_IsDriver == true);//.Where(x => x.SM_Post.Equals("驾驶员")); |
| | | //this.selDriverIddo.DataTextField = "Name"; |
| | | //this.selDriverIddo.DataValueField = "Keyid"; |
| | | //this.selDriverIddo.DataBind(); |
| | | //this.selDriverIddo.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | //this.selCarIddo.DataSource = _OA_CarManageBll.SelectListByFirmId(CurrentUser.MemberId); |
| | | //this.selCarIddo.DataTextField = "CarNumber"; |
| | | //this.selCarIddo.DataValueField = "Keyid"; |
| | | //this.selCarIddo.DataBind(); |
| | | //this.selCarIddo.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | this.Button0.Text = "逾期"; |
| | | this.Button1.Text = DateTime.Now.ToString("yyyy-MM-dd"); |
| | | this.Button2.Text = DateTime.Now.AddDays(1).ToString("yyyy-MM-dd"); |
| | | this.Button3.Text = DateTime.Now.AddDays(2).ToString("yyyy-MM-dd"); |
| | |
| | | { |
| | | BindList(); |
| | | } |
| | | |
| | | protected void btn_Search_Click0(object sender, EventArgs e) |
| | | { |
| | | |
| | | this.txtDeliveryTime.Value = this.Button0.Text; |
| | | |
| | | BindList(); |
| | | } |
| | | |
| | | protected void btn_Search_Click1(object sender, EventArgs e) |
| | | { |
| | | |
| | |
| | | this.Button5.BorderColor = Color.LightBlue; |
| | | this.Button6.BorderColor = Color.LightBlue; |
| | | this.Button7.BorderColor = Color.LightBlue; |
| | | this.Button0.BorderColor = Color.LightBlue; |
| | | } |
| | | else if (this.txtDeliveryTime.Value == this.Button2.Text) |
| | | { |
| | |
| | | this.Button5.BorderColor = Color.LightBlue; |
| | | this.Button6.BorderColor = Color.LightBlue; |
| | | this.Button7.BorderColor = Color.LightBlue; |
| | | this.Button0.BorderColor = Color.LightBlue; |
| | | } |
| | | else if (this.txtDeliveryTime.Value == this.Button3.Text) |
| | | { |
| | |
| | | this.Button5.BorderColor = Color.LightBlue; |
| | | this.Button6.BorderColor = Color.LightBlue; |
| | | this.Button7.BorderColor = Color.LightBlue; |
| | | this.Button0.BorderColor = Color.LightBlue; |
| | | } |
| | | else if (this.txtDeliveryTime.Value == this.Button4.Text) |
| | | { |
| | |
| | | this.Button5.BorderColor = Color.LightBlue; |
| | | this.Button6.BorderColor = Color.LightBlue; |
| | | this.Button7.BorderColor = Color.LightBlue; |
| | | this.Button0.BorderColor = Color.LightBlue; |
| | | } |
| | | else if (this.txtDeliveryTime.Value == this.Button5.Text) |
| | | { |
| | |
| | | this.Button1.BorderColor = Color.LightBlue; |
| | | this.Button6.BorderColor = Color.LightBlue; |
| | | this.Button7.BorderColor = Color.LightBlue; |
| | | this.Button0.BorderColor = Color.LightBlue; |
| | | } |
| | | else if (this.txtDeliveryTime.Value == this.Button6.Text) |
| | | { |
| | |
| | | this.Button5.BorderColor = Color.LightBlue; |
| | | this.Button1.BorderColor = Color.LightBlue; |
| | | this.Button7.BorderColor = Color.LightBlue; |
| | | this.Button0.BorderColor = Color.LightBlue; |
| | | } |
| | | else if (this.txtDeliveryTime.Value == this.Button7.Text) |
| | | { |
| | |
| | | this.Button5.BorderColor = Color.LightBlue; |
| | | this.Button6.BorderColor = Color.LightBlue; |
| | | this.Button1.BorderColor = Color.LightBlue; |
| | | this.Button0.BorderColor = Color.LightBlue; |
| | | } |
| | | |
| | | else if (this.txtDeliveryTime.Value == this.Button0.Text) |
| | | { |
| | | this.Button0.BorderColor = Color.Black; |
| | | this.Button2.BorderColor = Color.LightBlue; |
| | | this.Button3.BorderColor = Color.LightBlue; |
| | | this.Button4.BorderColor = Color.LightBlue; |
| | | this.Button5.BorderColor = Color.LightBlue; |
| | | this.Button6.BorderColor = Color.LightBlue; |
| | | this.Button1.BorderColor = Color.LightBlue; |
| | | this.Button7.BorderColor = Color.LightBlue; |
| | | } |
| | | |
| | | |
| | | Pagination pa = new Pagination(); |
| | |
| | | CurrentUser.MemberId, |
| | | this.txtDeliveryTime.Value, |
| | | this.selCarId.Value, |
| | | this.selDriverId.Value |
| | | this.selDriverId.Value, |
| | | "", |
| | | this.txtCustormerName.Value.Trim(), |
| | | this.selBusinessManager.Value |
| | | ); |
| | | |
| | | |