From 641ddf669ad57fb544e13a6433aa5905551b3bba Mon Sep 17 00:00:00 2001 From: CB2-20200827ONU\Administrator <liaoxujun@qq.com> Date: 星期三, 22 九月 2021 09:04:14 +0800 Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/chuanyin-group-project --- CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanList.aspx.cs | 30 +++++++++++++++++++++++++++--- 1 files changed, 27 insertions(+), 3 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanList.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanList.aspx.cs index 471d082..f739ebe 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanList.aspx.cs +++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanList.aspx.cs @@ -91,7 +91,7 @@ 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"); @@ -126,7 +126,14 @@ { 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) { @@ -200,6 +207,7 @@ 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) { @@ -210,6 +218,7 @@ 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) { @@ -220,6 +229,7 @@ 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) { @@ -230,6 +240,7 @@ 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) { @@ -240,6 +251,7 @@ 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) { @@ -250,6 +262,7 @@ 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) { @@ -260,8 +273,19 @@ 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(); -- Gitblit v1.9.1