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
1316c4ab
Commit
1316c4ab
authored
Feb 04, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
someupdate
parent
95d151e8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
3 deletions
+20
-3
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+0
-1
AutomationOperateController.cs
...s/Siger.ApiACC/Controllers/AutomationOperateController.cs
+7
-1
AutoMES.cs
Server/Apis/Siger.ApiACC/Tasks/AutoMES.cs
+8
-1
DBhelper.cs
Server/Apis/Siger.ApiACC/Tasks/DBhelper.cs
+4
-0
RequestPLC.cs
...ies/Siger.Middlelayer.AccRepository/Request/RequestPLC.cs
+1
-0
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
View file @
1316c4ab
...
...
@@ -101,7 +101,6 @@ namespace Siger.ApiACC.Controllers
{
if
(
request
.
status
==
(
int
)
Automation
.
MachineStatus
.
Waiting
||
request
.
status
==
(
int
)
Automation
.
MachineStatus
.
Complated
)
{
var
stationDicts
=
_sigerDict
.
GetDataByCat
(
AccDictCost
.
Automation
,
PID
);
if
(!
stationDicts
.
Any
())
{
...
...
Server/Apis/Siger.ApiACC/Controllers/AutomationOperateController.cs
View file @
1316c4ab
...
...
@@ -210,11 +210,17 @@ namespace Siger.ApiACC.Controllers
{
throw
new
BadRequestException
(
CommonEnum
.
Fail
);
}
var
fixture
=
_automationFixtureTools
.
Get
(
f
=>
f
.
guid
==
taskobj
.
fixtureguid
);
if
(
fixture
==
null
)
{
throw
new
BadRequestException
(
AccEnum
.
FixtureToolsIsNone
);
}
var
sendToPLC
=
new
RequestPLC
{
ProductCode
=
taskobj
.
productcode
,
LineID
=
levelsection
.
parentid
,
RStation
=
attr
.
machine
,
Fixture
=
taskobj
.
fixtureguid
,
Fixture
=
fixture
.
code
,
RequestForm
=
taskobj
.
no
,
RobotStep
=
(
int
)
taskobj
.
action
,
StorageNo
=
taskobj
.
locationid
,
...
...
Server/Apis/Siger.ApiACC/Tasks/AutoMES.cs
View file @
1316c4ab
...
...
@@ -50,11 +50,18 @@ namespace Siger.ApiACC.Tasks
if
(
attr
==
null
)
return
;
var
fixtrue
=
dbhelper
.
GetFixture
(
task
.
fixtureguid
);
if
(
fixtrue
==
null
)
{
Logger
.
WriteLineError
(
$"自动工装未找到"
);
return
;
}
var
sendToPLC
=
new
RequestPLC
{
ProductCode
=
task
.
productcode
,
LineID
=
levelsction
.
parentid
,
RStation
=
attr
.
machine
,
Fixture
=
task
.
fixtureguid
,
Fixture
=
fixtrue
.
code
,
RequestForm
=
task
.
no
,
RobotStep
=
(
int
)
task
.
action
,
StorageNo
=
task
.
locationid
,
...
...
Server/Apis/Siger.ApiACC/Tasks/DBhelper.cs
View file @
1316c4ab
...
...
@@ -70,6 +70,10 @@ namespace Siger.ApiACC.Tasks
{
return
AccDbContext
.
siger_project_machine_attribution
.
FirstOrDefault
(
f
=>
f
.
station
==
section
&&
f
.
status
==
1
);
}
public
siger_automation_fixture_tools
GetFixture
(
string
guid
)
{
return
AccDbContext
.
siger_automation_fixture_tools
.
FirstOrDefault
(
f
=>
f
.
guid
==
guid
&&
f
.
status
==
1
);
}
public
void
Dispose
()
{
CncDbContext
?.
Dispose
();
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Request/RequestPLC.cs
View file @
1316c4ab
...
...
@@ -6,6 +6,7 @@ namespace Siger.Middlelayer.AccRepository.Request
{
public
class
RequestPLC
{
public
string
ProductCode
{
get
;
set
;
}
/// <summary>
/// 工件唯一识别SN
/// </summary>
...
...
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