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
c970c015
Commit
c970c015
authored
Jan 20, 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
675e0852
0185fb08
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
3 deletions
+46
-3
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+45
-0
DB.script
Server/Infrastructure/Script/DB.script
+1
-1
test
test
+0
-2
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
0 → 100644
View file @
c970c015
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Microsoft.AspNetCore.Mvc
;
using
Siger.Middlelayer.AccRepository.Request
;
// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace
Siger.ApiACC.Controllers
{
public
class
AutomationController
:
BaseController
{
/// <summary>
/// 设备状态接口 用于 保存 设备当前可用状态
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[
HttpPost
]
public
IActionResult
MachineStatus
([
FromBody
]
RequestAutomationMachine
request
)
{
return
new
ObjectResult
(
"1"
);
}
/// <summary>
/// 任务状态接口 用于保存PLC 实时任务状态
/// </summary>
/// <returns></returns>
public
IActionResult
TaskResult
([
FromBody
]
RequestAutomationTaskResult
request
)
{
return
new
ObjectResult
(
"1"
);
}
/// <summary>
/// 产线模式 0:手动模式 /1:自动模式(产生自动任务)
/// </summary>
/// <param name="mode"></param>
/// <returns></returns>
public
IActionResult
LineMode
(
int
mode
)
{
return
new
ObjectResult
(
"1"
);
}
}
}
Server/Infrastructure/Script/DB.script
View file @
c970c015
...
@@ -366,7 +366,7 @@ CREATE TABLE `siger_automation_line_mode` (
...
@@ -366,7 +366,7 @@ CREATE TABLE `siger_automation_line_mode` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id` int(11) NOT NULL AUTO_INCREMENT,
`section` int(11) NOT NULL DEFAULT 0 COMMENT '产线ID',
`section` int(11) NOT NULL DEFAULT 0 COMMENT '产线ID',
`projectid` int(11) NOT NULL DEFAULT 0,
`projectid` int(11) NOT NULL DEFAULT 0,
`mode` int(11) NOT NULL DEFAULT 1 COMMENT '
1:手动模式 2
:自动模式',
`mode` int(11) NOT NULL DEFAULT 1 COMMENT '
0:手动模式 1
:自动模式',
`updatetime` datetime(0) NULL DEFAULT NULL COMMENT '操作时间',
`updatetime` datetime(0) NULL DEFAULT NULL COMMENT '操作时间',
PRIMARY KEY (`id`) USING BTREE
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
...
...
test
deleted
100644 → 0
View file @
675e0852
test.html
\ No newline at end of file
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