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
8199fca5
Commit
8199fca5
authored
Feb 07, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedbug
parent
2d5fcb24
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
+14
-4
AutomationOperateController.cs
...s/Siger.ApiACC/Controllers/AutomationOperateController.cs
+2
-2
QmsCheckController.cs
Server/Apis/Siger.ApiACC/Controllers/QmsCheckController.cs
+2
-1
AutoMES.cs
Server/Apis/Siger.ApiACC/Tasks/AutoMES.cs
+1
-1
DBhelper.cs
Server/Apis/Siger.ApiACC/Tasks/DBhelper.cs
+9
-0
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationOperateController.cs
View file @
8199fca5
...
...
@@ -527,9 +527,9 @@ namespace Siger.ApiACC.Controllers
}
var
machineStatus
=
_automationMachineStatus
.
Get
(
f
=>
f
.
machineid
==
machineAttr
.
machine
);
if
(
machineStatus
.
status
!=
(
int
)
Automation
.
MachineStatus
.
Complated
)
if
(
machineStatus
.
status
!=
(
int
)
Automation
.
MachineStatus
.
Waiting
)
{
throw
new
BadRequestException
(
AccEnum
.
Machine
Disable
);
throw
new
BadRequestException
(
AccEnum
.
Machine
Busy
);
}
var
unixtime
=
UnixTimeHelper
.
GetNow
();
...
...
Server/Apis/Siger.ApiACC/Controllers/QmsCheckController.cs
View file @
8199fca5
...
...
@@ -343,7 +343,7 @@ namespace Siger.ApiACC.Controllers
no
=
taskNo
,
action
=
Automation
.
TaskAction
.
Step_CJT_SXLW
,
actiontype
=
Automation
.
ExcueType
.
None
,
triggertime
=
DateTime
.
MinValue
,
triggertime
=
DateTime
.
Now
,
tasktype
=
Automation
.
TaskActionType
.
Unload
,
operater
=
UserId
,
operatetime
=
DateTime
.
Now
,
...
...
@@ -352,6 +352,7 @@ namespace Siger.ApiACC.Controllers
status
=
1
,
completetime
=
DateTime
.
MinValue
,
trigger
=
Automation
.
TaskTrigerType
.
Manual
,
projectId
=
ProjectId
,
productid
=
productid
,
sn
=
sn
,
...
...
Server/Apis/Siger.ApiACC/Tasks/AutoMES.cs
View file @
8199fca5
...
...
@@ -50,7 +50,7 @@ namespace Siger.ApiACC.Tasks
//抽检台-》上料位特殊逻辑
if
(
task
.
action
==
Automation
.
TaskAction
.
Step_CJT_SXLW
)
{
section
=
task
.
extend1
.
ToInt
(
);
section
=
dbhelper
.
GetPreStation
(
task
);
}
var
levelsction
=
dbhelper
.
GetLevelsection
(
section
);
if
(
levelsction
==
null
)
...
...
Server/Apis/Siger.ApiACC/Tasks/DBhelper.cs
View file @
8199fca5
...
...
@@ -70,6 +70,15 @@ namespace Siger.ApiACC.Tasks
{
return
AccDbContext
.
siger_project_machine_attribution
.
FirstOrDefault
(
f
=>
f
.
station
==
section
&&
f
.
status
==
1
);
}
public
int
GetPreStation
(
siger_automation_task_list
task
)
{
//取抽检工位发起的上料位ID
var
preTask
=
AccDbContext
.
siger_automation_task_list
.
Where
(
f
=>
f
.
sn
==
task
.
sn
&&
f
.
extend1
==
task
.
sectionid
.
ToString
()
&&
f
.
action
==
TaskAction
.
Step_LK_CJT
).
OrderByDescending
(
d
=>
d
.
id
).
FirstOrDefault
();
if
(
preTask
!=
null
)
return
preTask
.
sectionid
;
else
return
0
;
}
public
siger_automation_fixture_tools
GetFixture
(
string
guid
)
{
return
AccDbContext
.
siger_automation_fixture_tools
.
FirstOrDefault
(
f
=>
f
.
guid
==
guid
&&
f
.
status
==
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