Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
ecc9183d
Commit
ecc9183d
authored
Dec 03, 2020
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、审核样例:节点渲染优化-增加激活颜色
parent
f62737b4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
22 deletions
+34
-22
ucAudit.cs
Tools/MyCommon/controls/ucAudit.cs
+1
-1
ucAuditNode.Designer.cs
Tools/MyCommon/controls/ucAuditNode.Designer.cs
+21
-19
ucAuditNode.cs
Tools/MyCommon/controls/ucAuditNode.cs
+12
-2
No files found.
Tools/MyCommon/controls/ucAudit.cs
View file @
ecc9183d
...
...
@@ -100,7 +100,7 @@ namespace Tools.MyCommon.controls
node
.
DataSource
=
dr
;
node
.
Index
=
index
;
node
.
AuditStateChanged
+=
Audit_AuditStateChanged
;
node
.
Location
=
new
Point
(
0
,
index
*
155
);
node
.
Location
=
new
Point
(
10
,
index
*
(
node
.
Height
+
5
));
//距左边框10像素。间隔5像素
node
.
Parent
=
this
.
NodeHome
;
this
.
NodeList
.
Add
(
node
);
...
...
Tools/MyCommon/controls/ucAuditNode.Designer.cs
View file @
ecc9183d
...
...
@@ -48,6 +48,7 @@
//
// panel1
//
this
.
panel1
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
panel1
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
FixedSingle
;
this
.
panel1
.
Controls
.
Add
(
this
.
lbAuditUser
);
this
.
panel1
.
Controls
.
Add
(
this
.
label8
);
...
...
@@ -66,13 +67,13 @@
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
41
9
,
153
);
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
41
1
,
134
);
this
.
panel1
.
TabIndex
=
0
;
//
// lbAuditUser
//
this
.
lbAuditUser
.
AutoSize
=
true
;
this
.
lbAuditUser
.
Location
=
new
System
.
Drawing
.
Point
(
2
85
,
40
);
this
.
lbAuditUser
.
Location
=
new
System
.
Drawing
.
Point
(
2
79
,
36
);
this
.
lbAuditUser
.
Name
=
"lbAuditUser"
;
this
.
lbAuditUser
.
Size
=
new
System
.
Drawing
.
Size
(
41
,
12
);
this
.
lbAuditUser
.
TabIndex
=
14
;
...
...
@@ -81,7 +82,7 @@
// label8
//
this
.
label8
.
AutoSize
=
true
;
this
.
label8
.
Location
=
new
System
.
Drawing
.
Point
(
2
14
,
40
);
this
.
label8
.
Location
=
new
System
.
Drawing
.
Point
(
2
08
,
36
);
this
.
label8
.
Name
=
"label8"
;
this
.
label8
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
12
);
this
.
label8
.
TabIndex
=
13
;
...
...
@@ -90,16 +91,17 @@
// tbAuditRemark
//
this
.
tbAuditRemark
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
FixedSingle
;
this
.
tbAuditRemark
.
Location
=
new
System
.
Drawing
.
Point
(
8
8
,
65
);
this
.
tbAuditRemark
.
Location
=
new
System
.
Drawing
.
Point
(
8
3
,
60
);
this
.
tbAuditRemark
.
Multiline
=
true
;
this
.
tbAuditRemark
.
Name
=
"tbAuditRemark"
;
this
.
tbAuditRemark
.
Size
=
new
System
.
Drawing
.
Size
(
31
6
,
56
);
this
.
tbAuditRemark
.
Size
=
new
System
.
Drawing
.
Size
(
31
5
,
41
);
this
.
tbAuditRemark
.
TabIndex
=
12
;
this
.
tbAuditRemark
.
Text
=
"#备注\r\n#备注\r\n#备注"
;
//
// label7
//
this
.
label7
.
AutoSize
=
true
;
this
.
label7
.
Location
=
new
System
.
Drawing
.
Point
(
1
6
,
65
);
this
.
label7
.
Location
=
new
System
.
Drawing
.
Point
(
1
0
,
60
);
this
.
label7
.
Name
=
"label7"
;
this
.
label7
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
12
);
this
.
label7
.
TabIndex
=
11
;
...
...
@@ -108,7 +110,7 @@
// rbRevert
//
this
.
rbRevert
.
AutoSize
=
true
;
this
.
rbRevert
.
Location
=
new
System
.
Drawing
.
Point
(
35
7
,
12
7
);
this
.
rbRevert
.
Location
=
new
System
.
Drawing
.
Point
(
35
1
,
10
7
);
this
.
rbRevert
.
Name
=
"rbRevert"
;
this
.
rbRevert
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
16
);
this
.
rbRevert
.
TabIndex
=
10
;
...
...
@@ -119,7 +121,7 @@
// rbNoPass
//
this
.
rbNoPass
.
AutoSize
=
true
;
this
.
rbNoPass
.
Location
=
new
System
.
Drawing
.
Point
(
2
92
,
12
7
);
this
.
rbNoPass
.
Location
=
new
System
.
Drawing
.
Point
(
2
86
,
10
7
);
this
.
rbNoPass
.
Name
=
"rbNoPass"
;
this
.
rbNoPass
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
16
);
this
.
rbNoPass
.
TabIndex
=
9
;
...
...
@@ -130,7 +132,7 @@
// rbPass
//
this
.
rbPass
.
AutoSize
=
true
;
this
.
rbPass
.
Location
=
new
System
.
Drawing
.
Point
(
22
7
,
12
7
);
this
.
rbPass
.
Location
=
new
System
.
Drawing
.
Point
(
22
1
,
10
7
);
this
.
rbPass
.
Name
=
"rbPass"
;
this
.
rbPass
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
16
);
this
.
rbPass
.
TabIndex
=
8
;
...
...
@@ -141,7 +143,7 @@
// rbInit
//
this
.
rbInit
.
AutoSize
=
true
;
this
.
rbInit
.
Location
=
new
System
.
Drawing
.
Point
(
15
6
,
12
7
);
this
.
rbInit
.
Location
=
new
System
.
Drawing
.
Point
(
15
0
,
10
7
);
this
.
rbInit
.
Name
=
"rbInit"
;
this
.
rbInit
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
16
);
this
.
rbInit
.
TabIndex
=
6
;
...
...
@@ -152,7 +154,7 @@
// lbAuditDateTime
//
this
.
lbAuditDateTime
.
AutoSize
=
true
;
this
.
lbAuditDateTime
.
Location
=
new
System
.
Drawing
.
Point
(
2
85
,
17
);
this
.
lbAuditDateTime
.
Location
=
new
System
.
Drawing
.
Point
(
2
79
,
12
);
this
.
lbAuditDateTime
.
Name
=
"lbAuditDateTime"
;
this
.
lbAuditDateTime
.
Size
=
new
System
.
Drawing
.
Size
(
119
,
12
);
this
.
lbAuditDateTime
.
TabIndex
=
5
;
...
...
@@ -161,7 +163,7 @@
// label5
//
this
.
label5
.
AutoSize
=
true
;
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
2
14
,
17
);
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
2
08
,
12
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
12
);
this
.
label5
.
TabIndex
=
4
;
...
...
@@ -170,7 +172,7 @@
// lbAuditState
//
this
.
lbAuditState
.
AutoSize
=
true
;
this
.
lbAuditState
.
Location
=
new
System
.
Drawing
.
Point
(
8
7
,
17
);
this
.
lbAuditState
.
Location
=
new
System
.
Drawing
.
Point
(
8
1
,
12
);
this
.
lbAuditState
.
Name
=
"lbAuditState"
;
this
.
lbAuditState
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
12
);
this
.
lbAuditState
.
TabIndex
=
3
;
...
...
@@ -179,7 +181,7 @@
// label3
//
this
.
label3
.
AutoSize
=
true
;
this
.
label3
.
Location
=
new
System
.
Drawing
.
Point
(
1
6
,
40
);
this
.
label3
.
Location
=
new
System
.
Drawing
.
Point
(
1
0
,
36
);
this
.
label3
.
Name
=
"label3"
;
this
.
label3
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
12
);
this
.
label3
.
TabIndex
=
2
;
...
...
@@ -188,7 +190,7 @@
// lbWaitAuditUser
//
this
.
lbWaitAuditUser
.
AutoSize
=
true
;
this
.
lbWaitAuditUser
.
Location
=
new
System
.
Drawing
.
Point
(
8
7
,
40
);
this
.
lbWaitAuditUser
.
Location
=
new
System
.
Drawing
.
Point
(
8
0
,
36
);
this
.
lbWaitAuditUser
.
Name
=
"lbWaitAuditUser"
;
this
.
lbWaitAuditUser
.
Size
=
new
System
.
Drawing
.
Size
(
41
,
12
);
this
.
lbWaitAuditUser
.
TabIndex
=
1
;
...
...
@@ -197,19 +199,19 @@
// label1
//
this
.
label1
.
AutoSize
=
true
;
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
1
6
,
17
);
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
1
0
,
12
);
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
12
);
this
.
label1
.
TabIndex
=
0
;
this
.
label1
.
Text
=
"审核状态:"
;
//
// ucAudit
// ucAudit
Node
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
Controls
.
Add
(
this
.
panel1
);
this
.
Name
=
"ucAudit"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
41
9
,
153
);
this
.
Name
=
"ucAudit
Node
"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
41
1
,
134
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
ucAudit_Load
);
this
.
panel1
.
ResumeLayout
(
false
);
this
.
panel1
.
PerformLayout
();
...
...
Tools/MyCommon/controls/ucAuditNode.cs
View file @
ecc9183d
...
...
@@ -168,8 +168,18 @@ namespace Tools.MyCommon.controls
/// </summary>
private
void
SetEnabled
()
{
this
.
Enabled
=
this
.
IsActive
&&
this
.
WaitAuditUser
.
IndexOf
(
$";
{
Utils
.
LoginUser
}
;"
)
>=
0
;
this
.
tbAuditRemark
.
Enabled
=
this
.
Enabled
&&
this
.
IsWaitAudit
;
bool
IsEnabled
=
this
.
IsActive
&&
this
.
WaitAuditUser
.
IndexOf
(
$";
{
Utils
.
LoginUser
}
;"
)
>=
0
;
//设定有效性
this
.
Enabled
=
IsEnabled
;
this
.
tbAuditRemark
.
Enabled
=
IsEnabled
&&
this
.
IsWaitAudit
;
//设定样式
this
.
panel1
.
BackColor
=
IsEnabled
?
Color
.
SkyBlue
:
Color
.
White
;
this
.
tbAuditRemark
.
BorderStyle
=
IsEnabled
?
BorderStyle
.
FixedSingle
:
BorderStyle
.
Fixed3D
;
//焦点处理
if
(
IsEnabled
)
{
this
.
tbAuditRemark
.
Focus
();
}
}
/// <summary>
/// 设置审批信息
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment