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
5f976c7d
Commit
5f976c7d
authored
Feb 01, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
someupdate
parent
be0071e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+3
-0
AutomationOperateController.cs
...s/Siger.ApiACC/Controllers/AutomationOperateController.cs
+14
-3
siger_automation_task_list.cs
...ayer.AccRepository/Entities/siger_automation_task_list.cs
+2
-0
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
View file @
5f976c7d
...
@@ -315,6 +315,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -315,6 +315,7 @@ namespace Siger.ApiACC.Controllers
location
.
ordernumber
=
taskObj
.
ordercode
;
location
.
ordernumber
=
taskObj
.
ordercode
;
location
.
productcode
=
taskObj
.
productcode
;
location
.
productcode
=
taskObj
.
productcode
;
location
.
productid
=
taskObj
.
productid
;
location
.
productid
=
taskObj
.
productid
;
location
.
routeid
=
taskObj
.
route
;
location
.
sn
=
taskObj
.
sn
;
location
.
sn
=
taskObj
.
sn
;
_automationLocation
.
Update
(
location
);
_automationLocation
.
Update
(
location
);
...
@@ -324,6 +325,8 @@ namespace Siger.ApiACC.Controllers
...
@@ -324,6 +325,8 @@ namespace Siger.ApiACC.Controllers
monitor
.
section
=
0
;
monitor
.
section
=
0
;
_automationFixtureMonitor
.
Update
(
monitor
);
_automationFixtureMonitor
.
Update
(
monitor
);
}
}
}
}
}
}
...
...
Server/Apis/Siger.ApiACC/Controllers/AutomationOperateController.cs
View file @
5f976c7d
...
@@ -41,9 +41,11 @@ namespace Siger.ApiACC.Controllers
...
@@ -41,9 +41,11 @@ namespace Siger.ApiACC.Controllers
private
readonly
IAutomationFixtureToolsRepository
_automationFixtureTools
;
private
readonly
IAutomationFixtureToolsRepository
_automationFixtureTools
;
private
readonly
IAutomationLocationRepository
_automationLocation
;
private
readonly
IAutomationLocationRepository
_automationLocation
;
private
readonly
IAutomationLineMode
_automationLine
;
private
readonly
IAutomationLineMode
_automationLine
;
private
readonly
IProductRouteRepository
_productRoute
;
public
AutomationOperateController
(
IUnitOfWork
unitOfWork
,
ISigerProjectLevelSectionRepository
sigerProjectLevelSection
,
ISigerDict
sigerDict
,
IAutomationMachineStatus
automationMachineStatus
,
ISigerProjectMachineAttributionRepository
sigerProjectMachineAttribution
,
IAutomationTaskListRepository
automationTaskList
,
public
AutomationOperateController
(
IUnitOfWork
unitOfWork
,
ISigerProjectLevelSectionRepository
sigerProjectLevelSection
,
ISigerDict
sigerDict
,
IAutomationMachineStatus
automationMachineStatus
,
ISigerProjectMachineAttributionRepository
sigerProjectMachineAttribution
,
IAutomationTaskListRepository
automationTaskList
,
IProductPlanDetails
planDetails
,
IProductPlanRepository
productPlan
,
IAutomationFixtureMonitor
automationFixtureMonitor
,
IAutomationFixtureToolsProductRepository
automationFixtureToolsProduct
,
IAutomationFixtureToolsRepository
automationFixtureTools
,
IAutomationLocationRepository
automationLocation
,
IAutomationLineMode
automationLine
)
IProductPlanDetails
planDetails
,
IProductPlanRepository
productPlan
,
IAutomationFixtureMonitor
automationFixtureMonitor
,
IAutomationFixtureToolsProductRepository
automationFixtureToolsProduct
,
IAutomationFixtureToolsRepository
automationFixtureTools
,
IAutomationLocationRepository
automationLocation
,
IAutomationLineMode
automationLine
,
IProductRouteRepository
productRoute
)
{
{
_unitOfWork
=
unitOfWork
;
_unitOfWork
=
unitOfWork
;
_sigerProjectLevelSection
=
sigerProjectLevelSection
;
_sigerProjectLevelSection
=
sigerProjectLevelSection
;
...
@@ -58,6 +60,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -58,6 +60,7 @@ namespace Siger.ApiACC.Controllers
_automationFixtureTools
=
automationFixtureTools
;
_automationFixtureTools
=
automationFixtureTools
;
_automationLocation
=
automationLocation
;
_automationLocation
=
automationLocation
;
_automationLine
=
automationLine
;
_automationLine
=
automationLine
;
_productRoute
=
productRoute
;
}
}
/// <summary>
/// <summary>
...
@@ -366,6 +369,11 @@ namespace Siger.ApiACC.Controllers
...
@@ -366,6 +369,11 @@ namespace Siger.ApiACC.Controllers
var
taskNo
=
_automationTaskList
.
CrateTaskNumber
(
Automation
.
TaskTrigerType
.
Manual
);
var
taskNo
=
_automationTaskList
.
CrateTaskNumber
(
Automation
.
TaskTrigerType
.
Manual
);
var
sn
=
_automationTaskList
.
CreateRandonSn
(
plan
.
product_code
);
var
sn
=
_automationTaskList
.
CreateRandonSn
(
plan
.
product_code
);
var
route
=
_productRoute
.
GetList
(
f
=>
f
.
productId
==
plan
.
product_id
,
"serialNumber"
,
false
).
FirstOrDefault
();
if
(
route
==
null
)
{
throw
new
BadRequestException
(
AccEnum
.
ProductRouteMissing
);
}
var
unixtime
=
UnixTimeHelper
.
GetNow
();
var
unixtime
=
UnixTimeHelper
.
GetNow
();
_automationTaskList
.
Insert
(
new
siger_automation_task_list
_automationTaskList
.
Insert
(
new
siger_automation_task_list
{
{
...
@@ -392,6 +400,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -392,6 +400,7 @@ namespace Siger.ApiACC.Controllers
processid
=
0
,
processid
=
0
,
programnumber
=
""
,
programnumber
=
""
,
remark
=
"手动任务-准备上料"
,
remark
=
"手动任务-准备上料"
,
route
=
route
.
id
,
extend1
=
unixtime
.
ToString
()
extend1
=
unixtime
.
ToString
()
});
});
...
@@ -411,11 +420,12 @@ namespace Siger.ApiACC.Controllers
...
@@ -411,11 +420,12 @@ namespace Siger.ApiACC.Controllers
updatetime
=
DateTime
.
Now
,
updatetime
=
DateTime
.
Now
,
status
=
(
int
)
Automation
.
MachineStatus
.
Produce
,
status
=
(
int
)
Automation
.
MachineStatus
.
Produce
,
productId
=
plan
.
product_id
,
productId
=
plan
.
product_id
,
productCode
=
plan
.
product_code
,
productCode
=
plan
.
product_code
,
productName
=
plan
.
product_name
,
productName
=
plan
.
product_name
,
ordernumber
=
plandts
.
OrderNumber
,
ordernumber
=
plandts
.
OrderNumber
,
locationId
=
fixtureToolsObj
.
Location
,
locationId
=
fixtureToolsObj
.
Location
,
unixtime
=
unixtime
unixtime
=
unixtime
,
route
=
route
.
id
});
});
}
}
else
else
...
@@ -430,6 +440,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -430,6 +440,7 @@ namespace Siger.ApiACC.Controllers
monitor
.
ordernumber
=
plandts
.
OrderNumber
;
monitor
.
ordernumber
=
plandts
.
OrderNumber
;
monitor
.
locationId
=
fixtureToolsObj
.
Location
;
monitor
.
locationId
=
fixtureToolsObj
.
Location
;
monitor
.
unixtime
=
unixtime
;
monitor
.
unixtime
=
unixtime
;
monitor
.
route
=
route
.
id
;
_automationFixtureMonitor
.
Update
(
monitor
);
_automationFixtureMonitor
.
Update
(
monitor
);
}
}
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Entities/siger_automation_task_list.cs
View file @
5f976c7d
...
@@ -103,5 +103,7 @@ namespace Siger.Middlelayer.AccRepository.Entities
...
@@ -103,5 +103,7 @@ namespace Siger.Middlelayer.AccRepository.Entities
public
string
remark
{
get
;
set
;
}
public
string
remark
{
get
;
set
;
}
public
string
extend1
{
get
;
set
;
}
public
string
extend1
{
get
;
set
;
}
public
int
route
{
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