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
daaefa58
Commit
daaefa58
authored
Jun 01, 2018
by
wangjunqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add FileClient Close
parent
d97d5f31
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
MDIBase.cs
GcDevicePc/MDIBase.cs
+16
-7
No files found.
GcDevicePc/MDIBase.cs
View file @
daaefa58
...
...
@@ -312,9 +312,7 @@ namespace GcDevicePc
if
(
globaldata
.
m_pcbuffer
.
gcpcinfo
.
pcworkinfo
.
RunType
==
2
)
{
hmiopt
.
WriteBatVal
();
hmiopt
.
WriteStartVal
();
WaitHMIWork
();
}
...
...
@@ -330,6 +328,7 @@ namespace GcDevicePc
{
hmiopt
.
WriteSTDBatVal
();
hmiopt
.
WriteStartVal
();
}
}
...
...
@@ -1186,8 +1185,13 @@ namespace GcDevicePc
FileServerClient
rtclient
=
new
FileServerClient
();
rtclient
.
WtClientInit
(
globaldata
.
connection_ip
,
globaldata
.
fileserverport
);
if
(
File
.
Exists
(
Path
.
Combine
(
folder
,
runtablename
)))
{
rtclient
.
WtClientCopytoServer
(
"RunMethod.ini"
,
Path
.
Combine
(
folder
,
runtablename
),
globaldata
.
remoteFolder
+
"运行表\\"
);
SendPCCMD
(
false
);
}
rtclient
.
WtClientClose
();
globaldata
.
m_pcbuffer
.
gcpcinfo
.
pcfileinfo
.
cur_RunTab
=
Path
.
Combine
(
folder
,
runtablename
);
//ret = true;
}
...
...
@@ -1209,9 +1213,14 @@ namespace GcDevicePc
FileServerClient
rtclient
=
new
FileServerClient
();
rtclient
.
WtClientInit
(
globaldata
.
connection_ip
,
globaldata
.
fileserverport
);
if
(
File
.
Exists
(
Path
.
Combine
(
folder
,
runtablename
)))
{
rtclient
.
WtClientCopytoServer
(
"RunMethodStd.ini"
,
Path
.
Combine
(
folder
,
runtablename
),
globaldata
.
remoteFolder
+
"运行表\\"
);
hmiopt
.
SetBatCount
(
count
);
SendSTDCMD
();
}
rtclient
.
WtClientClose
();
globaldata
.
m_pcbuffer
.
gcpcinfo
.
pcfileinfo
.
cur_RunTab
=
Path
.
Combine
(
folder
,
runtablename
);
//ret = true;
}
...
...
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