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
61d47a7e
Commit
61d47a7e
authored
Feb 10, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
someupdate
parent
0a1c5c46
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
AutomationOperateController.cs
...s/Siger.ApiACC/Controllers/AutomationOperateController.cs
+11
-2
SectionPropertyController.cs
...pis/Siger.ApiACC/Controllers/SectionPropertyController.cs
+4
-0
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationOperateController.cs
View file @
61d47a7e
...
...
@@ -556,7 +556,12 @@ namespace Siger.ApiACC.Controllers
var
taskNo
=
_automationTaskList
.
CrateTaskNumber
(
Automation
.
TaskTrigerType
.
Manual
);
var
action
=
lineMode
.
inspect
==
1
?
Automation
.
TaskAction
.
Step_LK_CJT
:
Automation
.
TaskAction
.
Step_LK_SXLW
;
var
toSection
=
0
;
var
invenSection
=
_sectionPropertyRepository
.
Get
(
f
=>
f
.
propertytype
==
5
);
if
(
invenSection
==
null
)
{
throw
new
BadRequestException
(
AccEnum
.
SectionPropertyNull
);
}
var
toSection
=
upload
.
sectionid
;
if
(
lineMode
.
inspect
==
1
)
{
var
QcProperty
=
_sectionPropertyRepository
.
Get
(
f
=>
f
.
propertytype
==
3
);
...
...
@@ -567,6 +572,9 @@ namespace Siger.ApiACC.Controllers
toSection
=
QcProperty
.
sectionid
;
}
var
tasklst
=
_automationTaskList
.
GetList
(
f
=>
f
.
sectionid
==
unloading
.
section
&&
f
.
action
==
action
&&
f
.
status
!=(
int
)
TaskResultStatus
.
Complated
);
if
(
tasklst
.
Any
())
{
...
...
@@ -592,12 +600,13 @@ namespace Siger.ApiACC.Controllers
sn
=
location
.
sn
,
ordercode
=
location
.
ordernumber
,
fixtureguid
=
location
.
fixturetools
,
fixturename
=
location
.
fixturename
,
locationid
=
location
.
locationid
,
productcode
=
location
.
productcode
,
processid
=
0
,
programnumber
=
""
,
remark
=
lineMode
.
inspect
==
1
?
"准备下料-》抽检台"
:
"准备下料"
,
extend1
=
u
nloading
.
section
.
ToStr
()
extend1
=
u
pload
.
sectionid
.
ToString
()
});
...
...
Server/Apis/Siger.ApiACC/Controllers/SectionPropertyController.cs
View file @
61d47a7e
...
...
@@ -73,6 +73,10 @@ namespace Siger.ApiACC.Controllers
{
throw
new
BadRequestException
(
CommonEnum
.
Fail
);
}
if
(
tasklist
.
status
!=(
int
)
Automation
.
TaskResultStatus
.
Complated
)
{
throw
new
BadRequestException
(
Siger
.
Middlelayer
.
Common
.
ModuleEnum
.
AccEnum
.
TaskProcessing
);
}
var
res
=
new
ResponseMonitorSnProduct
();
//var monitor = _fixtureMonitor.Get(q => q.section == sectionid);
...
...
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