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
b12f3fbe
Commit
b12f3fbe
authored
Aug 09, 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
4e2bed0e
17dd8a1a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
33 deletions
+58
-33
UserCtl.cs
GcDevicePc/CK_UI/UserCtl.cs
+48
-25
FormUser.cs
GcDevicePc/FormUser.cs
+1
-7
MDIBase.cs
GcDevicePc/MDIBase.cs
+8
-1
Program.cs
GcDevicePc/Program.cs
+1
-0
CKVocAnalyzer.dll
dll/CKVocAnalyzer.dll
+0
-0
No files found.
GcDevicePc/CK_UI/UserCtl.cs
View file @
b12f3fbe
...
...
@@ -35,6 +35,8 @@ namespace GcDevicePc.CK_UI
}
private
void
UserCtl_Load
(
object
sender
,
EventArgs
e
)
{
try
{
Systemtype
=
CKVocAnalyzer
.
GlobalCKV
.
Systemtype
;
...
...
@@ -53,6 +55,14 @@ namespace GcDevicePc.CK_UI
break
;
}
}
catch
(
Exception
ex
)
{
Trace
.
Write
(
ex
);
}
}
private
void
UIVisible
(
bool
visible
)
...
...
@@ -228,7 +238,10 @@ namespace GcDevicePc.CK_UI
{
if
(
myPaneNmoc
==
null
||
myPaneCh4
==
null
||
myPaneThc
==
null
||
listNmoc
.
Count
<
1
||
listCH4
.
Count
<
1
||
listTHC
.
Count
<
1
)
{
// Trace.WriteLine("跳出", "sys");
// Trace.WriteLine(string.Format("NMHC-{0},ch4={1},thc-{2}",listNmoc.Count,listCH4.Count,listTHC.Count),"sys");
return
;
}
textBox1
.
Text
=
Math
.
Round
(
listNmoc
[
listNmoc
.
Count
-
1
].
Y
,
2
).
ToString
()
+
"ppm"
;
textBox2
.
Text
=
Math
.
Round
(
listTHC
[
listTHC
.
Count
-
1
].
Y
,
2
).
ToString
()
+
"ppm"
;
...
...
@@ -270,6 +283,7 @@ namespace GcDevicePc.CK_UI
zedGraphControl1
.
AxisChange
();
zedGraphControl1
.
Refresh
();
}
catch
(
Exception
ex
)
{
...
...
@@ -417,6 +431,7 @@ namespace GcDevicePc.CK_UI
}
}
// Trace.WriteLine(string.Format("读取个数{0}",sql.ReturnData.Count),"sys");
}
catch
(
Exception
ex
)
...
...
@@ -492,6 +507,8 @@ namespace GcDevicePc.CK_UI
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
try
{
switch
(
Systemtype
)
{
...
...
@@ -507,6 +524,12 @@ namespace GcDevicePc.CK_UI
datadisp2
();
break
;
}
// Trace.WriteLine("绘图","sys");
}
catch
(
Exception
ex
)
{
Trace
.
Write
(
ex
);
}
}
...
...
GcDevicePc/FormUser.cs
View file @
b12f3fbe
...
...
@@ -49,14 +49,8 @@ namespace GcDevicePc
}
//自动校准
private
void
buttonauto_Click
(
object
sender
,
EventArgs
e
)
{
if
(
CK_UI
.
LandIn
.
Island
)
{
}
else
{
}
DialogResult
dr
=
new
CK_UI
.
LandIn
(
"calibration"
).
ShowDialog
();
...
...
GcDevicePc/MDIBase.cs
View file @
b12f3fbe
...
...
@@ -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
1
{0}"
,
Formstr
);
this
.
Text
=
String
.
Format
(
"VOCs在线监测-1.1.3.0
5
{0}"
,
Formstr
);
if
(
LandIn
.
Island
)
{
HmiStatus
.
Text
=
String
.
Format
(
"状态:{0}"
,
statestr
);
...
...
@@ -1998,6 +1998,8 @@ namespace GcDevicePc
{
try
{
//Trace.WriteLine(string.Format("{0},{1}", SharedSpace.MControl.SetOut, SharedSpace.MControl.SetRun), "debug");
if
(
SharedSpace
.
MControl
.
SetOut
&&
SharedSpace
.
MControl
.
SetRun
==
false
)
//准备开始校准
{
SharedSpace
.
MControl
.
errstr
=
null
;
...
...
@@ -2029,6 +2031,11 @@ namespace GcDevicePc
SharedSpace
.
MControl
.
SetOut
=
false
;
}
}
//else if (SharedSpace.MControl.SetRun == false)
//{
// SharedSpace.MControl.errstr = "系统准备失败";
// SharedSpace.MControl.SetOut = false;
//}
//等待校准结束
if
(
DateTime
.
Now
>=
AutoAdjust
&&
SharedSpace
.
MControl
.
SetOut
&&
SharedSpace
.
MControl
.
SetRun
)
{
...
...
GcDevicePc/Program.cs
View file @
b12f3fbe
...
...
@@ -20,6 +20,7 @@ namespace GcDevicePc
if
(
createNew
)
{
Application
.
Run
(
new
StartForm
());
// Application.Run(new MDIBase());
}
else
{
...
...
dll/CKVocAnalyzer.dll
View file @
b12f3fbe
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