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
5fd3417b
Commit
5fd3417b
authored
Feb 06, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedbug
parent
42b56de5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+4
-0
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
View file @
5fd3417b
...
@@ -271,6 +271,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -271,6 +271,7 @@ namespace Siger.ApiACC.Controllers
location
.
productcode
=
taskObj
.
productcode
;
location
.
productcode
=
taskObj
.
productcode
;
location
.
productid
=
taskObj
.
productid
;
location
.
productid
=
taskObj
.
productid
;
location
.
routeid
=
taskObj
.
route
;
location
.
routeid
=
taskObj
.
route
;
location
.
route
=
taskObj
.
route
.
ToString
();
location
.
sn
=
taskObj
.
sn
;
location
.
sn
=
taskObj
.
sn
;
location
.
status
=
(
int
)
LocationStatus
.
In
;
location
.
status
=
(
int
)
LocationStatus
.
In
;
_automationLocation
.
Update
(
location
);
_automationLocation
.
Update
(
location
);
...
@@ -283,6 +284,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -283,6 +284,7 @@ namespace Siger.ApiACC.Controllers
location
.
productid
=
taskObj
.
productid
;
location
.
productid
=
taskObj
.
productid
;
location
.
productname
=
taskObj
.
productname
;
location
.
productname
=
taskObj
.
productname
;
location
.
route
=
taskObj
.
route
.
ToString
();
location
.
route
=
taskObj
.
route
.
ToString
();
location
.
routeid
=
taskObj
.
route
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
_automationLocation
.
Update
(
location
);
_automationLocation
.
Update
(
location
);
}
}
...
@@ -298,6 +300,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -298,6 +300,7 @@ namespace Siger.ApiACC.Controllers
throw
new
BadRequestException
(
AccEnum
.
ProductRouteMissing
);
throw
new
BadRequestException
(
AccEnum
.
ProductRouteMissing
);
}
}
location
.
routeid
=
route
.
id
;
location
.
routeid
=
route
.
id
;
location
.
route
=
route
.
id
.
ToString
();
location
.
status
=
(
int
)
LocationStatus
.
Out
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
_automationLocation
.
Update
(
location
);
_automationLocation
.
Update
(
location
);
...
@@ -335,6 +338,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -335,6 +338,7 @@ namespace Siger.ApiACC.Controllers
Logger
.
WriteLineInfo
(
$"PlCfeeback 工装储位
{
taskObj
.
locationid
}
工序
{
location
.
routeid
}
-
{
location
.
routenum
}
完成"
);
Logger
.
WriteLineInfo
(
$"PlCfeeback 工装储位
{
taskObj
.
locationid
}
工序
{
location
.
routeid
}
-
{
location
.
routenum
}
完成"
);
//最后一道工序
//最后一道工序
location
.
routeid
=
0
;
location
.
routeid
=
0
;
location
.
route
=
"0"
;
location
.
status
=
(
int
)
LocationStatus
.
In
;
location
.
status
=
(
int
)
LocationStatus
.
In
;
_automationLocation
.
Update
(
location
);
_automationLocation
.
Update
(
location
);
}
}
...
...
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