Commit 74cb1182 authored by tr's avatar tr

1、任务看板:渲染及刷新优化

parent 800c7b7d
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<appSettings> <appSettings>
<add key="UpdateTime" value="2021-06-25 18:26:16.350" /> <add key="UpdateTime" value="2021-06-30 09:49:36.600" />
</appSettings> </appSettings>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
// //
// panel1 // panel1
// //
this.panel1.BackColor = System.Drawing.Color.White;
this.panel1.Controls.Add(this.btnRefresh); this.panel1.Controls.Add(this.btnRefresh);
this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.cbTaskState); this.panel1.Controls.Add(this.cbTaskState);
...@@ -71,10 +72,11 @@ ...@@ -71,10 +72,11 @@
// //
// btnRefresh // btnRefresh
// //
this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnRefresh.Location = new System.Drawing.Point(665, 13); this.btnRefresh.Location = new System.Drawing.Point(665, 13);
this.btnRefresh.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.btnRefresh.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btnRefresh.Name = "btnRefresh"; this.btnRefresh.Name = "btnRefresh";
this.btnRefresh.Size = new System.Drawing.Size(117, 26); this.btnRefresh.Size = new System.Drawing.Size(93, 26);
this.btnRefresh.TabIndex = 6; this.btnRefresh.TabIndex = 6;
this.btnRefresh.Text = "刷新数据"; this.btnRefresh.Text = "刷新数据";
this.btnRefresh.UseVisualStyleBackColor = true; this.btnRefresh.UseVisualStyleBackColor = true;
......
...@@ -122,13 +122,14 @@ namespace Tools.UI ...@@ -122,13 +122,14 @@ namespace Tools.UI
private void cb_SelectedIndexChanged(object sender, EventArgs e) private void cb_SelectedIndexChanged(object sender, EventArgs e)
{ {
this._dt.DefaultView.RowFilter = $"[项目名称] like '%{this.ProjectName}%' and [负责人] like '%{this.InChargeUser}%' and 状态 like '%{this.TaskState}%'"; this._dt.DefaultView.RowFilter = $"[项目名称] like '%{this.ProjectName}%' and [负责人] like '%{this.InChargeUser}%' and 状态 like '%{this.TaskState}%'";
this.SetGridForeColor();
} }
//按钮事件:刷新数据 //按钮事件:刷新数据
private void btnRefresh_Click(object sender, EventArgs e) private void btnRefresh_Click(object sender, EventArgs e)
{ {
this.Initialize(); this.Initialize();
//初始化前景色 //附加过滤条件
this.SetGridForeColor(); this.cb_SelectedIndexChanged(null, null);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment