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
4421750a
Commit
4421750a
authored
Jan 20, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
someupdate
parent
008aad20
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
137 additions
and
1 deletion
+137
-1
Siger.ApiACC.csproj
Server/Apis/Siger.ApiACC/Siger.ApiACC.csproj
+1
-0
AccRegistry.cs
Server/Apis/Siger.ApiACC/Tasks/AccRegistry.cs
+1
-1
AutoMES.cs
Server/Apis/Siger.ApiACC/Tasks/AutoMES.cs
+30
-0
DBhelper.cs
Server/Apis/Siger.ApiACC/Tasks/DBhelper.cs
+41
-0
Automation.cs
...mon/Siger.Middlelayer.Share/Enum/ModuleEnum/Automation.cs
+64
-0
No files found.
Server/Apis/Siger.ApiACC/Siger.ApiACC.csproj
View file @
4421750a
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
<ProjectReference Include="..\..\Common\Siger.Middlelayer.Common\Siger.Middlelayer.Common.csproj" />
<ProjectReference Include="..\..\Common\Siger.Middlelayer.Common\Siger.Middlelayer.Common.csproj" />
<ProjectReference Include="..\..\Common\Siger.Middlelayer.Log\Siger.Middlelayer.Log.csproj" />
<ProjectReference Include="..\..\Common\Siger.Middlelayer.Log\Siger.Middlelayer.Log.csproj" />
<ProjectReference Include="..\..\Infrastructure\Repositories\Siger.Middlelayer.AccRepository\Siger.Middlelayer.AccRepository.csproj" />
<ProjectReference Include="..\..\Infrastructure\Repositories\Siger.Middlelayer.AccRepository\Siger.Middlelayer.AccRepository.csproj" />
<ProjectReference Include="..\..\Infrastructure\Repositories\Siger.Middlelayer.CncRepository\Siger.Middlelayer.CncRepository.csproj" />
<ProjectReference Include="..\..\Infrastructure\Siger.Middlelayer.Dapper\Siger.Middlelayer.Dapper.csproj" />
<ProjectReference Include="..\..\Infrastructure\Siger.Middlelayer.Dapper\Siger.Middlelayer.Dapper.csproj" />
<ProjectReference Include="..\Siger.ApiCommon\Siger.ApiCommon.csproj" />
<ProjectReference Include="..\Siger.ApiCommon\Siger.ApiCommon.csproj" />
</ItemGroup>
</ItemGroup>
...
...
Server/Apis/Siger.ApiACC/Tasks/AccRegistry.cs
View file @
4421750a
...
@@ -9,7 +9,7 @@ namespace Siger.ApiACC.Tasks
...
@@ -9,7 +9,7 @@ namespace Siger.ApiACC.Tasks
public
AccRegistry
()
public
AccRegistry
()
{
{
//Logger.RegisterLogEngine(Module.Acc);
//Logger.RegisterLogEngine(Module.Acc);
Schedule
<
AccCalculateTraceJob
>().
ToRunNow
().
AndEvery
(
30
).
Minutes
();
//
Schedule<AccCalculateTraceJob>().ToRunNow().AndEvery(30).Minutes();
}
}
...
...
Server/Apis/Siger.ApiACC/Tasks/AutoMES.cs
0 → 100644
View file @
4421750a
using
FluentScheduler
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
namespace
Siger.ApiACC.Tasks
{
public
class
AutoMES
:
IJob
,
IDisposable
{
public
void
Execute
()
{
throw
new
NotImplementedException
();
}
public
void
Dispose
()
{
throw
new
NotImplementedException
();
}
//获取TaskList
private
List
<
int
>
GetTaskList
()
{
return
new
List
<
int
>();
}
}
}
Server/Apis/Siger.ApiACC/Tasks/DBhelper.cs
0 → 100644
View file @
4421750a
using
Siger.Middlelayer.AccRepository
;
using
Siger.Middlelayer.CncRepository
;
using
Siger.Middlelayer.Repository
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
namespace
Siger.ApiACC.Tasks
{
public
class
DBhelper
{
private
static
DBhelper
_helper
;
public
static
DBhelper
Instance
=
_helper
??
(
_helper
=
new
DBhelper
());
public
ApiCncDbContext
CncDbContext
;
public
ApiAccDbContext
AccDbContext
;
public
ApiConfigDbContext
ConfigDbContext
;
static
DBhelper
()
{
}
public
void
LoadDbContext
()
{
CncDbContext
=
new
ApiCncDbContext
();
AccDbContext
=
new
ApiAccDbContext
();
ConfigDbContext
=
new
ApiConfigDbContext
();
}
public
List
<
int
>
GetTaskList
()
{
return
new
List
<
int
>();
}
public
void
Dispose
()
{
CncDbContext
?.
Dispose
();
AccDbContext
?.
Dispose
();
ConfigDbContext
?.
Dispose
();
}
}
}
Server/Common/Siger.Middlelayer.Share/Enum/ModuleEnum/Automation.cs
0 → 100644
View file @
4421750a
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Siger.Middlelayer.Share.Enum.ModuleEnum
{
public
class
Automation
{
/// <summary>
/// 任务触发类型
/// </summary>
public
enum
TaskTrigerType
{
/// <summary>
/// 手动任务
/// </summary>
Manual
=
1
,
/// <summary>
/// 自动任务
/// </summary>
Auto
=
2
}
/// <summary>
/// Task任务状态结果
/// </summary>
public
enum
TaskResultStatus
{
/// <summary>
/// 取消
/// </summary>
Cancel
=
0
,
/// <summary>
/// 待生产
/// </summary>
Waiting
=
1
,
/// <summary>
/// 生产中
/// </summary>
Produce
=
2
,
/// <summary>
/// 生产完成
/// </summary>
Complated
=
3
}
/// <summary>
/// 设备状态 (自动任务)
/// </summary>
public
enum
MachineStatus
{
/// <summary>
/// 待生产
/// </summary>
Waiting
=
1
,
/// <summary>
/// 生产中
/// </summary>
Produce
=
2
,
/// <summary>
/// 生产完成
/// </summary>
Complated
=
3
}
}
}
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