Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
GC_Branch
Project
Project
Details
Activity
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
周磊
GC_Branch
Commits
d0bb5a63
Commit
d0bb5a63
authored
Aug 27, 2019
by
liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改功率显示问题,主界面部分显示问题
parent
7b0a1056
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
58 deletions
+38
-58
DataState.cs
GcDevicePc/DataState.cs
+19
-21
MDIBase.cs
GcDevicePc/MDIBase.cs
+19
-37
No files found.
GcDevicePc/DataState.cs
View file @
d0bb5a63
...
@@ -1019,8 +1019,8 @@ namespace GcDevicePc
...
@@ -1019,8 +1019,8 @@ namespace GcDevicePc
double
bDetvalueold
=
0
;
double
bDetvalueold
=
0
;
ListViewItem
tempshow
;
ListViewItem
tempshow
;
float
[]
temp
=
new
float
[
7
]{
0
,
0
,
0
,
0
,
0
,
0
,
0
};
float
[]
temp
=
new
float
[
7
]
{
0
,
0
,
0
,
0
,
0
,
0
,
0
};
int
[]
timea
=
new
int
[
7
]
{
10
,
10
,
10
,
10
,
10
,
10
,
10
};
int
[]
timea
=
new
int
[
7
]
{
10
,
10
,
10
,
10
,
10
,
10
,
10
};
private
void
dataupdate_Tick
(
object
sender
,
EventArgs
e
)
private
void
dataupdate_Tick
(
object
sender
,
EventArgs
e
)
{
{
...
@@ -1179,8 +1179,6 @@ namespace GcDevicePc
...
@@ -1179,8 +1179,6 @@ namespace GcDevicePc
}
}
tempshow
=
new
ListViewItem
();
tempshow
=
new
ListViewItem
();
this
.
datalist
.
Items
.
Add
(
tempshow
);
this
.
datalist
.
Items
.
Add
(
tempshow
);
...
@@ -1206,7 +1204,7 @@ namespace GcDevicePc
...
@@ -1206,7 +1204,7 @@ namespace GcDevicePc
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPActualTemp
<
globaldata
.
m_hwconfig
.
hwconfiginfo
.
u16InjPortFPTemp
+
1
)
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPActualTemp
<
globaldata
.
m_hwconfig
.
hwconfiginfo
.
u16InjPortFPTemp
+
1
)
{
{
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPActualTemp
>
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPSetTemp
-
1
&&
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPActualTemp
<
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPSetTemp
+
1
)
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPActualTemp
>
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPSetTemp
-
1
&&
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPActualTemp
<
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPSetTemp
+
1
)
{
{
tempshow
.
BackColor
=
Color
.
White
;
tempshow
.
BackColor
=
Color
.
White
;
}
}
...
@@ -1679,7 +1677,7 @@ namespace GcDevicePc
...
@@ -1679,7 +1677,7 @@ namespace GcDevicePc
if
(
valveflag
)
if
(
valveflag
)
{
{
tempshow
=
new
ListViewItem
();
tempshow
=
new
ListViewItem
();
tempshow
.
Text
=
(
i
==
5
?
"IO口"
:
"阀"
+
(
i
+
1
)
+
"(min)"
);
tempshow
.
Text
=
(
i
==
5
?
"IO口"
:
"阀"
+
(
i
+
1
)
+
"(min)"
);
//tempshow.SubItems.Add(openflag ? "开" : "关");
//tempshow.SubItems.Add(openflag ? "开" : "关");
tempshow
.
SubItems
.
Add
((
CProfileDevice
.
m_DevParam
.
valve
.
u16ValveSetTime1
[
i
]
/
100.0f
).
ToString
(
"0.00"
)
+
" / "
+
(
CProfileDevice
.
m_DevParam
.
valve
.
u16ValveSetTime2
[
i
]
/
100.0f
).
ToString
(
"0.00"
));
tempshow
.
SubItems
.
Add
((
CProfileDevice
.
m_DevParam
.
valve
.
u16ValveSetTime1
[
i
]
/
100.0f
).
ToString
(
"0.00"
)
+
" / "
+
(
CProfileDevice
.
m_DevParam
.
valve
.
u16ValveSetTime2
[
i
]
/
100.0f
).
ToString
(
"0.00"
));
tempshow
.
SubItems
[
0
].
BackColor
=
openflag
?
Color
.
LightGreen
:
Color
.
White
;
tempshow
.
SubItems
[
0
].
BackColor
=
openflag
?
Color
.
LightGreen
:
Color
.
White
;
...
@@ -2165,6 +2163,7 @@ namespace GcDevicePc
...
@@ -2165,6 +2163,7 @@ namespace GcDevicePc
this
.
datalist
.
Items
.
Add
(
tempshow
);
this
.
datalist
.
Items
.
Add
(
tempshow
);
}
}
tempshow
=
new
ListViewItem
();
tempshow
.
SubItems
.
Add
(
""
);
tempshow
.
SubItems
.
Add
(
""
);
this
.
datalist
.
Items
.
Add
(
tempshow
);
this
.
datalist
.
Items
.
Add
(
tempshow
);
...
@@ -2173,7 +2172,6 @@ namespace GcDevicePc
...
@@ -2173,7 +2172,6 @@ namespace GcDevicePc
tempshow
.
Font
=
new
Font
(
tempshow
.
Font
,
tempshow
.
Font
.
Style
|
FontStyle
.
Bold
);
tempshow
.
Font
=
new
Font
(
tempshow
.
Font
,
tempshow
.
Font
.
Style
|
FontStyle
.
Bold
);
tempshow
.
SubItems
.
Add
(
""
);
tempshow
.
SubItems
.
Add
(
""
);
this
.
datalist
.
Items
.
Add
(
tempshow
);
this
.
datalist
.
Items
.
Add
(
tempshow
);
;
tempshow
=
new
ListViewItem
();
tempshow
=
new
ListViewItem
();
tempshow
.
Text
=
GettempName
(
"前检测器功率"
);
tempshow
.
Text
=
GettempName
(
"前检测器功率"
);
...
...
GcDevicePc/MDIBase.cs
View file @
d0bb5a63
...
@@ -420,6 +420,7 @@ namespace GcDevicePc
...
@@ -420,6 +420,7 @@ namespace GcDevicePc
//private bool a;
//private bool a;
private
void
PictureMenu1_PMSysBtnClicked
(
object
sender
,
EventArgs
e
)
private
void
PictureMenu1_PMSysBtnClicked
(
object
sender
,
EventArgs
e
)
{
{
#
region
//PictureBox picturebtn = (PictureBox)sender;
//PictureBox picturebtn = (PictureBox)sender;
//int tagnum = Convert.ToInt32(picturebtn.Tag);
//int tagnum = Convert.ToInt32(picturebtn.Tag);
//a = !a;
//a = !a;
...
@@ -474,7 +475,7 @@ namespace GcDevicePc
...
@@ -474,7 +475,7 @@ namespace GcDevicePc
// globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.system_Statue = false;
// globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.system_Statue = false;
// globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.work_Statue = 0;
// globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.work_Statue = 0;
//}
//}
#
endregion
if
(!
String
.
IsNullOrEmpty
(
globaldata
.
connection_ip
))
if
(!
String
.
IsNullOrEmpty
(
globaldata
.
connection_ip
))
{
{
if
(!
OSflag
)
if
(!
OSflag
)
...
@@ -488,6 +489,7 @@ namespace GcDevicePc
...
@@ -488,6 +489,7 @@ namespace GcDevicePc
{
{
if
(
globaldata
.
m_pcbuffer
.
gcpcinfo
.
pcworkinfo
.
RunType
==
2
)
if
(
globaldata
.
m_pcbuffer
.
gcpcinfo
.
pcworkinfo
.
RunType
==
2
)
{
{
hmiopt
.
WriteBatVal
();
hmiopt
.
WriteBatVal
();
}
}
...
@@ -1461,25 +1463,7 @@ namespace GcDevicePc
...
@@ -1461,25 +1463,7 @@ namespace GcDevicePc
{
{
(
this
.
title
.
Controls
.
Find
(
"pictureMenu1"
,
true
)[
0
]
as
PictureMenu
).
PMOptbtnstatus
=
0
;
(
this
.
title
.
Controls
.
Find
(
"pictureMenu1"
,
true
)[
0
]
as
PictureMenu
).
PMOptbtnstatus
=
0
;
}
}
//if (!String.IsNullOrEmpty(globaldata.connection_ip))
//{
// if (globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.work_Statue == 0 && globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.RunType == 0)
// {
// //(this.title.Controls.Find("pictureMenu1", true)[0] as PictureMenu).PMOptbtnstatus = 4;
// }
// else
// {
// }
//}
//else
//{
// (this.title.Controls.Find("pictureMenu1", true)[0] as PictureMenu).PMOptbtnstatus = 0;
//}
//tips_Show();
if
(
globaldata
.
IsStopOs
)
if
(
globaldata
.
IsStopOs
)
{
{
...
@@ -1721,26 +1705,26 @@ namespace GcDevicePc
...
@@ -1721,26 +1705,26 @@ namespace GcDevicePc
//Console.WriteLine(flag.ToString());
//Console.WriteLine(flag.ToString());
if
(
flag
!=
10
&&
flag
!=
0
)
//
if (flag!=10 && flag != 0)
{
//
{
OSflag
=
true
;
//
OSflag = true;
(
this
.
title
.
Controls
.
Find
(
"pictureMenu1"
,
true
)[
0
]
as
PictureMenu
).
PMOptbtnstatus
=
4
;
//
(this.title.Controls.Find("pictureMenu1", true)[0] as PictureMenu).PMOptbtnstatus = 4;
(
this
.
title
.
Controls
.
Find
(
"pictureMenu1"
,
true
)[
0
]
as
PictureMenu
).
PMSysbtnstatus
=
1
;
//
(this.title.Controls.Find("pictureMenu1", true)[0] as PictureMenu).PMSysbtnstatus = 1;
//globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.system_Statue = true;
//
//globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.system_Statue = true;
//globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.work_Statue = 0;
//
//globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.work_Statue = 0;
}
//
}
else
//
else
{
//
{
OSflag
=
false
;
//
OSflag = false;
(
this
.
title
.
Controls
.
Find
(
"pictureMenu1"
,
true
)[
0
]
as
PictureMenu
).
PMOptbtnstatus
=
0
;
//
(this.title.Controls.Find("pictureMenu1", true)[0] as PictureMenu).PMOptbtnstatus = 0;
(
this
.
title
.
Controls
.
Find
(
"pictureMenu1"
,
true
)[
0
]
as
PictureMenu
).
PMSysbtnstatus
=
0
;
//
(this.title.Controls.Find("pictureMenu1", true)[0] as PictureMenu).PMSysbtnstatus = 0;
//globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.system_Statue = false;
//
//globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.system_Statue = false;
//globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.work_Statue = 0;
//
//globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.work_Statue = 0;
}
//
}
if
(
oldflag
!=
flag
)
if
(
oldflag
!=
flag
)
...
@@ -3289,8 +3273,6 @@ namespace GcDevicePc
...
@@ -3289,8 +3273,6 @@ namespace GcDevicePc
CKVocAnalyzer
.
FormulaTips
ft
;
CKVocAnalyzer
.
FormulaTips
ft
;
private
void
单位换算
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
private
void
单位换算
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
{
if
(
ft
==
null
)
if
(
ft
==
null
)
{
{
ft
=
new
CKVocAnalyzer
.
FormulaTips
();
ft
=
new
CKVocAnalyzer
.
FormulaTips
();
...
...
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