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
7797ef44
Commit
7797ef44
authored
May 29, 2018
by
wangwanxh@sina.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改标志位
parent
c8656185
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
DataState.cs
GcDevicePc/DataState.cs
+1
-1
MDIBase.cs
GcDevicePc/MDIBase.cs
+5
-4
No files found.
GcDevicePc/DataState.cs
View file @
7797ef44
...
...
@@ -920,7 +920,7 @@ namespace GcDevicePc
if
(
CProfileDevice
.
m_DevParam
.
valve
.
u16ValveSetTime2
[
2
]
>
0
)
ModbusLib
.
Globaldata
.
tcpGlobaldata
.
ppmstate
=
0x03
;
//标定
else
if
(
CProfileDevice
.
m_DevParam
.
valve
.
u16ValveSetTime2
[
3
]
>
0
)
ModbusLib
.
Globaldata
.
tcpGlobaldata
.
ppmstate
=
0x0
2
;
//零气
ModbusLib
.
Globaldata
.
tcpGlobaldata
.
ppmstate
=
0x0
1
;
//零气
else
ModbusLib
.
Globaldata
.
tcpGlobaldata
.
ppmstate
=
0x01
;
}
...
...
GcDevicePc/MDIBase.cs
View file @
7797ef44
...
...
@@ -241,10 +241,10 @@ namespace GcDevicePc
timespan
=
System
.
DateTime
.
Now
-
startTime
;
toolStripStatusLabelusertime
.
Text
=
String
.
Format
(
"运行时间:{0}"
,
timespan
.
Days
.
ToString
()
+
"天"
+
timespan
.
Hours
.
ToString
()
+
"时"
+
timespan
.
Minutes
.
ToString
()
+
"分"
+
timespan
.
Seconds
.
ToString
()
+
"秒"
);
// Trace.WriteLine(string.Format("时间{0},状态{1}", getIdleTick(),LandIn.Island),"sys");
//监视界面活动
if
(
getIdleTick
()
/
1000
>
1000
*
60
*
30
&&
LandIn
.
Island
)
if
(
getIdleTick
()
>
60
*
30
&&
LandIn
.
Island
)
{
if
(
_userForm
!=
null
)
...
...
@@ -255,6 +255,7 @@ namespace GcDevicePc
}
LandIn
.
Island
=
false
;
SetMenu
(
LandIn
.
Island
);
Trace
.
WriteLine
(
"进入自动销户"
,
"sys"
);
}
}
[
StructLayout
(
LayoutKind
.
Sequential
)]
...
...
@@ -269,7 +270,7 @@ namespace GcDevicePc
public
static
extern
bool
GetLastInputInfo
(
ref
LASTINPUTINFO
plii
);
/// <summary>
/// 返回持续时间
m
s
/// 返回持续时间 s
/// </summary>
/// <returns></returns>
public
long
getIdleTick
()
...
...
@@ -277,7 +278,7 @@ namespace GcDevicePc
LASTINPUTINFO
vLastInputInfo
=
new
LASTINPUTINFO
();
vLastInputInfo
.
cbSize
=
Marshal
.
SizeOf
(
vLastInputInfo
);
if
(!
GetLastInputInfo
(
ref
vLastInputInfo
))
return
0
;
return
Environment
.
TickCount
-
(
long
)
vLastInputInfo
.
dwTime
;
return
(
Environment
.
TickCount
-
(
long
)
vLastInputInfo
.
dwTime
)/
1000
;
}
...
...
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