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
607a5b88
Commit
607a5b88
authored
Jan 30, 2021
by
xin.yang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://test.siger-data.com:9000/jiawei.su/Laisi_AutoMES2
parents
e106c4a7
021992cb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
AutomationOperateController.cs
...s/Siger.ApiACC/Controllers/AutomationOperateController.cs
+5
-13
AutomationLocationRepository.cs
...ccRepository/Repositories/AutomationLocationRepository.cs
+11
-3
requestAutoLoad.cs
...iger.Middlelayer.AccRepository/Request/requestAutoLoad.cs
+1
-1
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationOperateController.cs
View file @
607a5b88
...
@@ -523,19 +523,8 @@ namespace Siger.ApiACC.Controllers
...
@@ -523,19 +523,8 @@ namespace Siger.ApiACC.Controllers
[
HttpPost
]
[
HttpPost
]
public
IActionResult
Unloading
([
FromBody
]
requestAutomationUnloading
unloading
)
public
IActionResult
Unloading
([
FromBody
]
requestAutomationUnloading
unloading
)
{
{
//var monitor = _automationFixtureMonitor.Get(f => f.section == unloading.section);
//if (monitor == null)
//{
// Logger.WriteLineInfo($"AutoProcess 找不到CNC监控信息");
// return new ObjectResult(CommonEnum.RecordNotFound);
//}
//if (string.IsNullOrEmpty( monitor.sn))
//{
// Logger.WriteLineInfo($"AutoProcess 找不到CNC监控SN信息");
// return new ObjectResult(CommonEnum.RecordNotFound);
//}
var
location
=
_automationLocation
.
Get
(
f
=>
f
.
id
==
unloading
.
location
id
);
var
location
=
_automationLocation
.
Get
(
f
=>
f
.
id
==
unloading
.
id
);
if
(
location
==
null
)
if
(
location
==
null
)
{
{
throw
new
BadRequestException
(
CommonEnum
.
RecordNotFound
);
throw
new
BadRequestException
(
CommonEnum
.
RecordNotFound
);
...
@@ -551,7 +540,10 @@ namespace Siger.ApiACC.Controllers
...
@@ -551,7 +540,10 @@ namespace Siger.ApiACC.Controllers
{
{
throw
new
BadRequestException
(
AccEnum
.
LineModeNotfound
);
throw
new
BadRequestException
(
AccEnum
.
LineModeNotfound
);
}
}
if
(!
_automationTaskList
.
CanTask
(
ProjectId
,
unloading
.
section
))
{
throw
new
BadRequestException
(
AccEnum
.
TaskProcessing
);
}
//TODO
//TODO
//1. 有检验状态 (立库-》检验工位)
//1. 有检验状态 (立库-》检验工位)
//2. 无检验状态 (立库-》上下料工位)
//2. 无检验状态 (立库-》上下料工位)
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationLocationRepository.cs
View file @
607a5b88
...
@@ -240,17 +240,25 @@ namespace Siger.Middlelayer.AccRepository.Repositories
...
@@ -240,17 +240,25 @@ namespace Siger.Middlelayer.AccRepository.Repositories
{
{
var
query
=
from
q
in
_context
.
siger_automation_location
var
query
=
from
q
in
_context
.
siger_automation_location
join
t
in
_context
.
siger_automation_fixture_tools
on
q
.
fixturetools
equals
t
.
guid
join
t
in
_context
.
siger_automation_fixture_tools
on
q
.
fixturetools
equals
t
.
guid
where
q
.
projectId
==
projectId
&&
!
string
.
IsNullOrEmpty
(
q
.
sn
)
join
l
in
_context
.
siger_wms_storage_location
on
q
.
location_cid
equals
l
.
id
join
w
in
_context
.
siger_wms_storage
on
l
.
storageid
equals
w
.
id
where
q
.
projectId
==
projectId
select
new
ResponseAutomationLocationList
select
new
ResponseAutomationLocationList
{
{
id
=
q
.
id
,
id
=
q
.
id
,
typeid
=
t
.
id
,
typeid
=
t
.
id
,
fixtureguid
=
t
.
guid
,
fixtureguid
=
t
.
guid
,
locationid
=
q
.
locationid
,
locationid
=
l
.
locationid
,
location
=
l
.
realname
,
locationcode
=
l
.
serial_number
,
wavehouseid
=
w
.
id
,
wavehouse
=
w
.
name
,
wavehousecode
=
w
.
serial_number
,
fixturetoolid
=
t
.
id
,
fixturetoolid
=
t
.
id
,
code
=
t
.
code
,
code
=
t
.
code
,
name
=
t
.
name
,
name
=
t
.
name
,
materialsn
=
q
.
sn
materialsn
=
q
.
sn
??
""
};
};
Expression
<
Func
<
ResponseAutomationLocationList
,
bool
>>
locationidExpression
=
f
=>
true
;
Expression
<
Func
<
ResponseAutomationLocationList
,
bool
>>
locationidExpression
=
f
=>
true
;
if
(
full
!=
0
)
if
(
full
!=
0
)
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Request/requestAutoLoad.cs
View file @
607a5b88
...
@@ -31,7 +31,7 @@ namespace Siger.Middlelayer.AccRepository.Request
...
@@ -31,7 +31,7 @@ namespace Siger.Middlelayer.AccRepository.Request
{
{
public
int
section
{
get
;
set
;
}
public
int
section
{
get
;
set
;
}
public
int
location
id
{
get
;
set
;
}
public
int
id
{
get
;
set
;
}
}
}
...
...
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