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
99271dac
Commit
99271dac
authored
Jan 27, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
someupate
parent
17f44366
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
zh-CN.js
Html/src/locale/lang/zh-CN.js
+13
-13
AutomationTaskListRepository.cs
...ccRepository/Repositories/AutomationTaskListRepository.cs
+2
-2
No files found.
Html/src/locale/lang/zh-CN.js
View file @
99271dac
...
...
@@ -2065,7 +2065,18 @@ export default {
'3000153'
:
'文件类型错误'
,
'3000154'
:
'序号规则未配置'
,
'3000155'
:
'无序号可生成'
,
// 上下料自动化
'3000156'
:
'该任务状态已经完成'
,
'3000157'
:
'产线模式未找到'
,
'3000158'
:
'设备状态不可用'
,
'3000159'
:
'设备正在使用中'
,
'3000160'
:
'任务进行中'
,
'3000161'
:
'产品工装未找到'
,
'3000162'
:
'未找到工装信息'
,
'3000163'
:
'设备正在空闲中'
,
'3000164'
:
'设备已经生产完成'
,
'3000165'
:
'该设备当前无工装状态'
,
'3000166'
:
'未配置字典信息'
,
'400000'
:
'设备状态'
,
'400002'
:
'更改状态'
,
...
...
@@ -6916,18 +6927,7 @@ export default {
'120007'
:
'请上传模具清单'
,
'120008'
:
'请选择备模数据'
,
// 上下料自动化
'300156'
:
'该任务状态已经完成'
,
'300157'
:
'产线模式未找到'
,
'300158'
:
'设备状态不可用'
,
'300159'
:
'设备正在使用中'
,
'300160'
:
'任务进行中'
,
'300161'
:
'产品工装未找到'
,
'300162'
:
'未找到工装信息'
,
'300163'
:
'设备正在空闲中'
,
'300164'
:
'设备已经生产完成'
,
'300165'
:
'该设备当前无工装状态'
,
'300166'
:
'未配置字典信息'
,
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationTaskListRepository.cs
View file @
99271dac
...
...
@@ -28,7 +28,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
public
bool
CanTask
(
int
projectId
,
int
section
)
{
//已经下发,并且任务完成
var
taskObj
=
_context
.
siger_automation_task_list
.
FirstOrDefault
(
f
=>
f
.
projectId
==
projectId
&&
f
.
send
==
1
&&
f
.
status
<
(
int
)
TaskResultStatus
.
Complated
);
var
taskObj
=
_context
.
siger_automation_task_list
.
Where
(
f
=>
f
.
projectId
==
projectId
&&
f
.
send
==
1
&&
f
.
status
<
(
int
)
TaskResultStatus
.
Complated
);
if
(
taskObj
==
null
)
return
true
;
...
...
@@ -40,7 +40,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
public
string
CrateTaskNumber
(
TaskTrigerType
trigerType
)
{
var
date
=
DateTime
.
Now
;
var
lable
=
date
.
ToString
(
UnixTimeHelper
.
DateTimeFormatYmd
)+
date
.
Hour
+
date
.
Minute
+
date
.
Second
+
date
.
Millisecond
;
var
lable
=
date
.
ToString
(
UnixTimeHelper
.
DateTimeFormatYmd
)+
date
.
Hour
+
date
.
Minute
+
date
.
Second
;
var
lableUnix
=
UnixTimeHelper
.
GetNow
();
var
radon
=
new
Random
().
Next
(
1000
,
9999
);
if
(
trigerType
==
TaskTrigerType
.
Auto
)
...
...
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