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
634de4fb
Commit
634de4fb
authored
Aug 27, 2018
by
wangjunqiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wang_master' of
https://gitee.com/wangwanxh/Vocs
into wang_master
parents
1181eac7
f548e085
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
13 deletions
+18
-13
UserCtl.cs
GcDevicePc/CK_UI/UserCtl.cs
+11
-10
MDIBase.cs
GcDevicePc/MDIBase.cs
+7
-3
CKVocAlgorithm.dll
dll/CKVocAlgorithm.dll
+0
-0
CKVocAnalyzer.dll
dll/CKVocAnalyzer.dll
+0
-0
SpaceM.dll
dll/SpaceM.dll
+0
-0
No files found.
GcDevicePc/CK_UI/UserCtl.cs
View file @
634de4fb
...
...
@@ -33,7 +33,7 @@ namespace GcDevicePc.CK_UI
/// <summary>
/// true ppm false mg/m³
/// </summary>
public
bool
isppm
=
fals
e
;
public
bool
isppm
=
tru
e
;
/// <summary>
/// 系统故障
...
...
@@ -58,6 +58,7 @@ namespace GcDevicePc.CK_UI
{
Systemtype
=
CKVocAnalyzer
.
GlobalCKV
.
Systemtype
;
switch
(
Systemtype
)
{
default
:
//非甲烷总烃
...
...
@@ -273,7 +274,7 @@ namespace GcDevicePc.CK_UI
}
else
{
textBox1
.
Text
=
Math
.
Round
(
listNmoc
[
listNmoc
.
Count
-
1
].
Y
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
textBox1
.
Text
=
Math
.
Round
(
listNmoc
[
listNmoc
.
Count
-
1
].
Y
/
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
12
)
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
}
if
(
listNmoc
[
listNmoc
.
Count
-
1
].
Y
>=
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
WaringValue
)
...
...
@@ -292,7 +293,7 @@ namespace GcDevicePc.CK_UI
}
else
{
textBox2
.
Text
=
Math
.
Round
(
listTHC
[
listTHC
.
Count
-
1
].
Y
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
textBox2
.
Text
=
Math
.
Round
(
listTHC
[
listTHC
.
Count
-
1
].
Y
/
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
12
)
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
}
if
(
listTHC
[
listTHC
.
Count
-
1
].
Y
>=
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
WaringValue
)
...
...
@@ -311,7 +312,7 @@ namespace GcDevicePc.CK_UI
}
else
{
textBox3
.
Text
=
Math
.
Round
(
listCH4
[
listCH4
.
Count
-
1
].
Y
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
textBox3
.
Text
=
Math
.
Round
(
listCH4
[
listCH4
.
Count
-
1
].
Y
/
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
12
)
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
}
if
(
listCH4
[
listCH4
.
Count
-
1
].
Y
>=
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
WaringValue
)
...
...
@@ -402,7 +403,7 @@ namespace GcDevicePc.CK_UI
}
else
{
textBox1
.
Text
=
Math
.
Round
(
listNmoc
[
listNmoc
.
Count
-
1
].
Y
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
textBox1
.
Text
=
Math
.
Round
(
listNmoc
[
listNmoc
.
Count
-
1
].
Y
/
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
12
)
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
}
if
(
listNmoc
[
listNmoc
.
Count
-
1
].
Y
>=
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
WaringValue
)
...
...
@@ -421,7 +422,7 @@ namespace GcDevicePc.CK_UI
}
else
{
textBox2
.
Text
=
Math
.
Round
(
listTHC
[
listTHC
.
Count
-
1
].
Y
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
textBox2
.
Text
=
Math
.
Round
(
listTHC
[
listTHC
.
Count
-
1
].
Y
/
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
12
)
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
}
if
(
listTHC
[
listTHC
.
Count
-
1
].
Y
>=
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
WaringValue
)
...
...
@@ -440,7 +441,7 @@ namespace GcDevicePc.CK_UI
}
else
{
textBox3
.
Text
=
Math
.
Round
(
listCH4
[
listCH4
.
Count
-
1
].
Y
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
textBox3
.
Text
=
Math
.
Round
(
listCH4
[
listCH4
.
Count
-
1
].
Y
/
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
12
)
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
}
if
(
listCH4
[
listCH4
.
Count
-
1
].
Y
>=
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
WaringValue
)
...
...
@@ -460,7 +461,7 @@ namespace GcDevicePc.CK_UI
}
else
{
textBox4
.
Text
=
Math
.
Round
(
listben
[
listben
.
Count
-
1
].
Y
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
textBox4
.
Text
=
Math
.
Round
(
listben
[
listben
.
Count
-
1
].
Y
/
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
12
)
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
}
if
(
listben
[
listben
.
Count
-
1
].
Y
>=
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
WaringValue
)
...
...
@@ -479,7 +480,7 @@ namespace GcDevicePc.CK_UI
}
else
{
textBox5
.
Text
=
Math
.
Round
(
listjiaben
[
listjiaben
.
Count
-
1
].
Y
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
textBox5
.
Text
=
Math
.
Round
(
listjiaben
[
listjiaben
.
Count
-
1
].
Y
/
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
12
)
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
}
if
(
listjiaben
[
listjiaben
.
Count
-
1
].
Y
>=
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
WaringValue
)
...
...
@@ -498,7 +499,7 @@ namespace GcDevicePc.CK_UI
}
else
{
textBox6
.
Text
=
Math
.
Round
(
listerjiaben
[
listerjiaben
.
Count
-
1
].
Y
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
textBox6
.
Text
=
Math
.
Round
(
listerjiaben
[
listerjiaben
.
Count
-
1
].
Y
/
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
12
)
*
(
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
MWeight
/
22.4
),
2
).
ToString
()
+
"mg/m³"
;
}
if
(
listerjiaben
[
listerjiaben
.
Count
-
1
].
Y
>=
CKVocAnalyzer
.
GlobalCKV
.
vocparamlist
[
i
].
WaringValue
)
...
...
GcDevicePc/MDIBase.cs
View file @
634de4fb
...
...
@@ -398,7 +398,7 @@ namespace GcDevicePc
float
fDetvalueold
=
0.0f
;
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
this
.
Text
=
String
.
Format
(
"VOCs在线监测-1.1.3.0
8
{0}"
,
Formstr
);
this
.
Text
=
String
.
Format
(
"VOCs在线监测-1.1.3.0
9
{0}"
,
Formstr
);
if
(
LandIn
.
Island
)
{
HmiStatus
.
Text
=
String
.
Format
(
"状态:{0}"
,
statestr
);
...
...
@@ -1185,11 +1185,13 @@ namespace GcDevicePc
uint
ret
=
0
;
uint
count
=
0
;
CKVocAnalyzer
.
GlobalCKV
.
tcpservice
.
stop
();
_debugForm
.
CloseThread
();
if
(
dr
==
DialogResult
.
OK
)
//停止系统并退出
{
CKVocAnalyzer
.
GlobalCKV
.
tcpservice
.
stop
();
_debugForm
.
CloseThread
();
Stop_Thread
();
if
(!
String
.
IsNullOrEmpty
(
globaldata
.
connection_ip
))
{
...
...
@@ -1247,6 +1249,8 @@ namespace GcDevicePc
if
(
dr
==
DialogResult
.
Yes
)
//仅退出
{
CKVocAnalyzer
.
GlobalCKV
.
tcpservice
.
stop
();
_debugForm
.
CloseThread
();
if
(!
String
.
IsNullOrEmpty
(
globaldata
.
connection_ip
))
{
conmre
.
Set
();
...
...
dll/CKVocAlgorithm.dll
View file @
634de4fb
No preview for this file type
dll/CKVocAnalyzer.dll
View file @
634de4fb
No preview for this file type
dll/SpaceM.dll
View file @
634de4fb
No preview for this file type
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