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
0960ff7a
Commit
0960ff7a
authored
Feb 25, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedbug
parent
57a9f688
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
QmsCheckController.cs
Server/Apis/Siger.ApiACC/Controllers/QmsCheckController.cs
+9
-8
No files found.
Server/Apis/Siger.ApiACC/Controllers/QmsCheckController.cs
View file @
0960ff7a
...
@@ -278,8 +278,13 @@ namespace Siger.ApiACC.Controllers
...
@@ -278,8 +278,13 @@ namespace Siger.ApiACC.Controllers
return
new
ObjectResult
(
CommonEnum
.
Succefull
);
return
new
ObjectResult
(
CommonEnum
.
Succefull
);
}
}
var
tasklist
=
_automationTaskList
.
GetList
(
f
=>
f
.
sectionid
==
req
.
sectionid
&&
f
.
action
==
Automation
.
TaskAction
.
Step_LK_CJT
).
LastOrDefault
();
CreateTaskList
(
req
.
sectionid
,
req
.
productid
,
product
.
code
,
req
.
sn
,
req
.
routeid
.
ToInt
());
if
(
tasklist
==
null
)
{
throw
new
BadRequestException
(
CommonEnum
.
Fail
);
}
inspection
.
workorder
=
tasklist
.
ordercode
;
CreateTaskList
(
tasklist
,
req
.
sectionid
,
req
.
productid
,
product
.
code
,
req
.
sn
,
req
.
routeid
.
ToInt
());
AddSnList
(
req
.
materialid
.
ToInt
(),
inspection
,
product
.
code
,
section
.
parentid
);
//把二维码插入到 sn_list表
AddSnList
(
req
.
materialid
.
ToInt
(),
inspection
,
product
.
code
,
section
.
parentid
);
//把二维码插入到 sn_list表
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
@@ -335,13 +340,9 @@ namespace Siger.ApiACC.Controllers
...
@@ -335,13 +340,9 @@ namespace Siger.ApiACC.Controllers
}
}
}
}
private
void
CreateTaskList
(
int
section
,
int
productid
,
string
productcode
,
string
sn
,
int
routeid
)
private
void
CreateTaskList
(
siger_automation_task_list
tasklist
,
int
section
,
int
productid
,
string
productcode
,
string
sn
,
int
routeid
)
{
{
var
tasklist
=
_automationTaskList
.
GetList
(
f
=>
f
.
sectionid
==
section
&&
f
.
action
==
Automation
.
TaskAction
.
Step_LK_CJT
).
LastOrDefault
();
if
(
tasklist
==
null
)
{
throw
new
BadRequestException
(
CommonEnum
.
Fail
);
}
//找到上下料位
//找到上下料位
...
...
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