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
35cce8c8
Commit
35cce8c8
authored
Feb 07, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedbug
parent
8199fca5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+14
-6
AutoMES.cs
Server/Apis/Siger.ApiACC/Tasks/AutoMES.cs
+5
-5
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
View file @
35cce8c8
...
...
@@ -261,23 +261,31 @@ namespace Siger.ApiACC.Controllers
// 业务入口: 上料位-》 入库 如果是上料工装 安装完成 ,绑定 储位与装配
if
(
sectionProperty
.
propertytype
==
1
)
{
var
download
=
false
;
if
(
sectionProperty
.
down
>
2
)
{
// 是拆卸
download
=
true
;
}
//绑定SN 工件到立库储位
if
(
taskObj
.
action
==
TaskAction
.
Step_SXLW_LK
)
{
location
.
fixturetools
=
taskObj
.
fixtureguid
;
location
.
fixturename
=
taskObj
.
fixturename
;
location
.
ordernumber
=
taskObj
.
ordercode
;
location
.
productcode
=
taskObj
.
productcode
;
location
.
productid
=
taskObj
.
productid
;
location
.
routeid
=
taskObj
.
route
;
location
.
route
=
taskObj
.
route
.
ToString
();
location
.
sn
=
taskObj
.
sn
;
location
.
status
=
(
int
)
LocationStatus
.
In
;
location
.
productcode
=
download
?
""
:
taskObj
.
productcode
;
location
.
productid
=
download
?
0
:
taskObj
.
productid
;
location
.
routeid
=
download
?
0
:
taskObj
.
route
;
location
.
route
=
download
?
""
:
taskObj
.
route
.
ToString
();
location
.
sn
=
download
?
""
:
taskObj
.
sn
;
location
.
status
=(
int
)
LocationStatus
.
In
;
_automationLocation
.
Update
(
location
);
sectionProperty
.
upload
=
0
;
sectionProperty
.
down
=
0
;
_automationSectionProperty
.
Update
(
sectionProperty
);
}
//从立库储位拿SN 工件到上料位
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_SXLW
)
...
...
Server/Apis/Siger.ApiACC/Tasks/AutoMES.cs
View file @
35cce8c8
...
...
@@ -36,11 +36,11 @@ namespace Siger.ApiACC.Tasks
return
;
}
//
if (!dbhelper.CanTask(projectId))
//
{
//
return;
//
}
if
(!
dbhelper
.
CanTask
(
projectId
))
{
return
;
}
var
tasks
=
tasklist
.
OrderBy
(
s
=>
s
.
actiontype
);
var
task
=
tasks
.
FirstOrDefault
();
if
(
task
.
send
==
1
)
...
...
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