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
587d9cca
Commit
587d9cca
authored
Feb 24, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedbug
parent
7c623c3d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+5
-3
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
View file @
587d9cca
...
...
@@ -45,10 +45,11 @@ namespace Siger.ApiACC.Controllers
private
readonly
IAutomationSectionPropertyRepository
_automationSectionProperty
;
private
readonly
IAutomationProduceHistoryRepository
_automationProduceHistory
;
private
readonly
ISigerProjectProductReport
_sigerProjectProduct
;
private
readonly
IProductPlanDetails
_planDetails
;
public
AutomationController
(
IUnitOfWork
unitOfWork
,
ISigerProjectLevelSectionRepository
sigerProjectLevelSection
,
IAutomationLineMode
automationLineMode
,
IAutomationMachineStatus
automationMachineStatus
,
ISigerDict
sigerDict
,
IAutomationTaskListRepository
automationTaskList
,
ISigerProjectMachineAttributionRepository
sigerProjectMachineAttribution
,
IAutomationFixtureMonitor
automationFixtureMonitor
,
IAutomationLocationRepository
automationLocation
,
IProductionBeatSetRepository
productionBeatSet
,
IAutomationFixtureToolsProductRepository
automationFixtureToolsProduct
,
IAutomationFixtureToolsRepository
automationFixtureTools
,
IProductRouteRepository
productRoute
,
IAutomationSectionPropertyRepository
automationSectionProperty
,
IAutomationProduceHistoryRepository
automationProduceHistory
,
ISigerProjectProductReport
sigerProjectProduct
)
IAutomationFixtureToolsRepository
automationFixtureTools
,
IProductRouteRepository
productRoute
,
IAutomationSectionPropertyRepository
automationSectionProperty
,
IAutomationProduceHistoryRepository
automationProduceHistory
,
ISigerProjectProductReport
sigerProjectProduct
,
IProductPlanDetails
planDetails
)
{
_unitOfWork
=
unitOfWork
;
_sigerProjectLevelSection
=
sigerProjectLevelSection
;
...
...
@@ -66,6 +67,7 @@ namespace Siger.ApiACC.Controllers
_automationSectionProperty
=
automationSectionProperty
;
_automationProduceHistory
=
automationProduceHistory
;
_sigerProjectProduct
=
sigerProjectProduct
;
}
/// <summary>
...
...
@@ -311,7 +313,7 @@ namespace Siger.ApiACC.Controllers
if
(
sectionProperty
.
propertytype
==
1
)
{
//上下料位状态 为后台控制
var
machineStatusObj
=
_automationMachineStatus
.
Get
(
f
=>
f
.
section
==
taskObj
.
sectionid
);
var
machineStatusObj
=
_automationMachineStatus
.
Get
(
f
=>
f
.
section
==
taskObj
.
extend1
.
ToInt
()
);
var
download
=
false
;
if
(
sectionProperty
.
down
>
2
)
...
...
@@ -395,7 +397,7 @@ namespace Siger.ApiACC.Controllers
}
if
(
taskObj
.
action
==
TaskAction
.
Step_JGZX_QXJ
)
{
var
planDts
=
_
//插入报工记录
var
entity
=
new
siger_project_product_report
{
...
...
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