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
021992cb
Commit
021992cb
authored
Jan 30, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://test.siger-data.com:9000/jiawei.su/Laisi_AutoMES2
parents
483fe3be
91fb464c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
7 deletions
+28
-7
en-US.js
Html/src/locale/lang/en-US.js
+2
-0
zh-CN.js
Html/src/locale/lang/zh-CN.js
+2
-0
RequestEnum.cs
Server/Common/Siger.Middlelayer.Share/Enum/RequestEnum.cs
+6
-0
AutomationFixtureToolsAssemblyRepository.cs
.../Repositories/AutomationFixtureToolsAssemblyRepository.cs
+18
-7
No files found.
Html/src/locale/lang/en-US.js
View file @
021992cb
...
...
@@ -738,6 +738,8 @@ export default {
'9000513'
:
'请填写大于0的整数ID'
,
'9000514'
:
'请填写仓库名称'
,
'9000515'
:
'请填写仓库名称后面的储位层级'
,
'9000516'
:
'请填写父工装编号'
,
'9000517'
:
'请填写子工装编号'
,
'9100000'
:
'Departments cannot be empty'
,
'9100001'
:
'Position cannot be empty'
,
...
...
Html/src/locale/lang/zh-CN.js
View file @
021992cb
...
...
@@ -765,6 +765,8 @@ export default {
'9000513'
:
'请填写大于0的整数ID'
,
'9000514'
:
'请填写仓库名称'
,
'9000515'
:
'请填写仓库名称后面的储位层级'
,
'9000516'
:
'请填写父工装编号'
,
'9000517'
:
'请填写子工装编号'
,
'9100000'
:
'部门不能为空'
,
...
...
Server/Common/Siger.Middlelayer.Share/Enum/RequestEnum.cs
View file @
021992cb
...
...
@@ -1532,5 +1532,11 @@ namespace Siger.Middlelayer.Common
[
Description
(
"请填写仓库名称后面的储位层级"
)]
PleaseInputLocation
,
[
Description
(
"请填写父工装编号"
)]
PleaseInputParentFixtureCode
,
[
Description
(
"请填写子工装编号"
)]
PleaseInputSonFixtureCode
,
}
}
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationFixtureToolsAssemblyRepository.cs
View file @
021992cb
...
...
@@ -183,9 +183,17 @@ namespace Siger.Middlelayer.AccRepository.Repositories
var
entities
=
new
List
<
siger_automation_fixture_tools_assembly
>();
if
(
string
.
IsNullOrEmpty
(
item
.
FixtureTool
)
||
string
.
IsNullOrEmpty
(
item
.
ParentFixtureTool
))
if
(
string
.
IsNullOrEmpty
(
item
.
ParentFixtureTool
))
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
ParameterMiss
}
"
);
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
PleaseInputParentFixtureCode
}
"
);
}
if
(
string
.
IsNullOrEmpty
(
item
.
FixtureTool
))
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
PleaseInputSonFixtureCode
}
"
);
}
if
(
string
.
IsNullOrEmpty
(
item
.
Status
))
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
PleaseInputStatus
}
"
);
}
if
(
item
.
ParentFixtureTool
==
item
.
FixtureTool
)
{
...
...
@@ -202,10 +210,13 @@ namespace Siger.Middlelayer.AccRepository.Repositories
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
FixtureToolNotFound
}
"
);
}
var
parentGuid
=
parent
.
guid
;
var
exsit
=
_context
.
siger_automation_fixture_tools_assembly
.
FirstOrDefault
(
q
=>
q
.
projectId
==
projectid
&&
q
.
son
==
son
.
guid
&&
q
.
parent
==
parentGuid
);
if
(
exsit
!=
null
)
if
(
son
!=
null
&&
parent
!=
null
)
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
DataExist
}
"
);
var
exsit
=
_context
.
siger_automation_fixture_tools_assembly
.
FirstOrDefault
(
q
=>
q
.
projectId
==
projectid
&&
q
.
son
==
son
.
guid
&&
q
.
parent
==
parentGuid
);
if
(
exsit
!=
null
)
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
DataExist
}
"
);
}
}
if
(
list
.
Count
(
q
=>
q
.
FixtureTool
==
item
.
FixtureTool
&&
q
.
ParentFixtureTool
==
item
.
ParentFixtureTool
)
>
1
)
{
...
...
@@ -236,7 +247,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
projectId
=
projectid
,
updatetime
=
DateTime
.
Now
,
updator
=
userid
,
status
=
item
.
Status
==
"可用"
?
(
int
)
RowState
.
Valid
:
(
int
)
RowState
.
Invalid
,
status
=
item
.
Status
.
Trim
()
==
"可用"
?
(
int
)
RowState
.
Valid
:
(
int
)
RowState
.
Invalid
,
remark
=
item
.
Remark
};
_context
.
siger_automation_fixture_tools_assembly
.
Add
(
parentEntity
);
...
...
@@ -254,7 +265,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
projectId
=
projectid
,
updatetime
=
DateTime
.
Now
,
updator
=
userid
,
status
=
item
.
Status
==
"可用"
?
(
int
)
RowState
.
Valid
:
(
int
)
RowState
.
Invalid
,
status
=
item
.
Status
.
Trim
()
==
"可用"
?
(
int
)
RowState
.
Valid
:
(
int
)
RowState
.
Invalid
,
remark
=
item
.
Remark
};
entities
.
Add
(
entity
);
...
...
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