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
218d7fcb
Commit
218d7fcb
authored
Feb 04, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedbug
parent
73e7b9f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+1
-4
AutomationOperateController.cs
...s/Siger.ApiACC/Controllers/AutomationOperateController.cs
+8
-9
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
View file @
218d7fcb
...
...
@@ -260,6 +260,7 @@ namespace Siger.ApiACC.Controllers
var
section
=
_sigerProjectLevelSection
.
Get
(
f
=>
f
.
id
==
taskObj
.
sectionid
);
if
(
section
!=
null
)
{
Logger
.
WriteLineInfo
(
$" 设备
{
section
.
title
}
任务编号:
{
taskObj
.
no
}
状态:
{
request
.
status
}
"
);
AutoProcess
(
section
.
parentid
,
stationDicts
,
taskObj
);
}
...
...
@@ -314,7 +315,6 @@ namespace Siger.ApiACC.Controllers
machineStatus
.
status
=
(
int
)
Automation
.
MachineStatus
.
Waiting
;
_automationMachineStatus
.
Update
(
machineStatus
);
}
}
if
(
monitor
!=
null
)
...
...
@@ -325,9 +325,6 @@ namespace Siger.ApiACC.Controllers
monitor
.
fixturename
=
taskObj
.
fixturename
;
_automationFixtureMonitor
.
Update
(
monitor
);
}
}
/// <summary>
...
...
Server/Apis/Siger.ApiACC/Controllers/AutomationOperateController.cs
View file @
218d7fcb
...
...
@@ -476,17 +476,12 @@ namespace Siger.ApiACC.Controllers
{
throw
new
BadRequestException
(
AccEnum
.
MachineDisable
);
}
if
(
machineStatus
.
status
==
(
int
)
Automation
.
MachineStatus
.
Waiting
)
{
throw
new
BadRequestException
(
AccEnum
.
MachineOnFree
);
}
if
(
machineStatus
.
status
==
(
int
)
Automation
.
MachineStatus
.
Complated
)
if
(
machineStatus
.
auto
==
0
)
{
throw
new
BadRequestException
(
AccEnum
.
MachineProCompalate
)
;
machineStatus
.
status
=
(
int
)
Automation
.
MachineStatus
.
Waiting
;
}
machineStatus
.
status
=
(
int
)
Automation
.
MachineStatus
.
Waiting
;
//创建 安装完成动作
var
monitor
=
_automationFixtureMonitor
.
Get
(
f
=>
f
.
projectId
==
ProjectId
&&
f
.
section
==
assemble
.
section
);
if
(
monitor
==
null
)
...
...
@@ -495,6 +490,7 @@ namespace Siger.ApiACC.Controllers
}
//移出 上料位
var
taskNo
=
_automationTaskList
.
CrateTaskNumber
(
Automation
.
TaskTrigerType
.
Manual
);
_automationTaskList
.
Insert
(
new
siger_automation_task_list
{
...
...
@@ -666,7 +662,10 @@ namespace Siger.ApiACC.Controllers
{
throw
new
BadRequestException
(
AccEnum
.
MachineDisable
);
}
if
(
machineStatus
.
auto
==
0
)
{
machineStatus
.
status
=
1
;
}
if
(!
_automationTaskList
.
CanTask
(
ProjectId
,
disassemble
.
section
))
{
throw
new
BadRequestException
(
AccEnum
.
TaskProcessing
);
...
...
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