Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
Laisi_AutoMES2
Overview
Overview
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
jiawei.su
Laisi_AutoMES2
Commits
4eae8a9e
Commit
4eae8a9e
authored
Feb 24, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedbug
parent
340bfa0b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+19
-1
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
View file @
4eae8a9e
...
...
@@ -445,6 +445,24 @@ namespace Siger.ApiACC.Controllers
machineStatusObj
.
status
=
(
int
)
Automation
.
MachineStatus
.
Produce
;
_automationMachineStatus
.
Update
(
machineStatusObj
);
}
var
_Property
=
_automationSectionProperty
.
Get
(
f
=>
f
.
sectionid
==
taskObj
.
sectionid
);
if
(
_Property
==
null
)
{
Logger
.
WriteLineInfo
(
$"PlCfeeback 未找到该工装储位信息"
);
throw
new
BadRequestException
(
AccEnum
.
MachineDisable
);
}
//上料中
if
(
_Property
.
upload
!=
0
)
{
_Property
.
upload
+=
1
;
_automationSectionProperty
.
Update
(
_Property
);
}
if
(
_Property
.
down
!=
0
)
{
_Property
.
down
+=
1
;
_automationSectionProperty
.
Update
(
_Property
);
}
}
}
...
...
@@ -528,7 +546,7 @@ namespace Siger.ApiACC.Controllers
_Property
.
upload
+=
1
;
_automationSectionProperty
.
Update
(
_Property
);
}
if
(
section
Property
.
down
!=
0
)
if
(
_
Property
.
down
!=
0
)
{
_Property
.
down
+=
1
;
_automationSectionProperty
.
Update
(
_Property
);
...
...
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