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
0c7bd868
Commit
0c7bd868
authored
Jan 23, 2021
by
xin.yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some update
parent
ba07d071
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
4 deletions
+45
-4
en-US.js
Html/src/locale/lang/en-US.js
+11
-0
zh-CN.js
Html/src/locale/lang/zh-CN.js
+5
-0
FixtureToolsAssemblyController.cs
...iger.ApiACC/Controllers/FixtureToolsAssemblyController.cs
+26
-4
RequestEnum.cs
Server/Common/Siger.Middlelayer.Share/Enum/RequestEnum.cs
+3
-0
No files found.
Html/src/locale/lang/en-US.js
View file @
0c7bd868
...
@@ -709,6 +709,17 @@ export default {
...
@@ -709,6 +709,17 @@ export default {
'9000484'
:
'数据库创建失败'
,
'9000484'
:
'数据库创建失败'
,
'9000485'
:
'数据表创建失败'
,
'9000485'
:
'数据表创建失败'
,
'9000486'
:
'标签来源未维护'
,
'9000486'
:
'标签来源未维护'
,
'9000487'
:
'只能读取txt文件'
,
'9000488'
:
'程序版本号不能为空'
,
'9000489'
:
'存在相同程序号的程序已审核,是否覆盖原来程序记录?'
,
'9000490'
:
'记录已存在,请删除后添加'
,
'9000491'
:
'人员未找到'
,
'9000492'
:
'默认展示已存在'
,
'9000493'
:
'未找到储位类别'
,
'9000494'
:
'未找到工装类别'
,
'9000495'
:
'未找到工装信息'
,
'9000496'
:
'ID重复'
,
'9000497'
:
'父级和子级不能相同'
,
'9100000'
:
'Departments cannot be empty'
,
'9100000'
:
'Departments cannot be empty'
,
'9100001'
:
'Position cannot be empty'
,
'9100001'
:
'Position cannot be empty'
,
...
...
Html/src/locale/lang/zh-CN.js
View file @
0c7bd868
...
@@ -742,6 +742,11 @@ export default {
...
@@ -742,6 +742,11 @@ export default {
'9000490'
:
'记录已存在,请删除后添加'
,
'9000490'
:
'记录已存在,请删除后添加'
,
'9000491'
:
'人员未找到'
,
'9000491'
:
'人员未找到'
,
'9000492'
:
'默认展示已存在'
,
'9000492'
:
'默认展示已存在'
,
'9000493'
:
'未找到储位类别'
,
'9000494'
:
'未找到工装类别'
,
'9000495'
:
'未找到工装信息'
,
'9000496'
:
'ID重复'
,
'9000497'
:
'父级和子级不能相同'
,
'9100000'
:
'部门不能为空'
,
'9100000'
:
'部门不能为空'
,
...
...
Server/Apis/Siger.ApiACC/Controllers/FixtureToolsAssemblyController.cs
View file @
0c7bd868
...
@@ -78,22 +78,31 @@ namespace Siger.ApiACC.Controllers
...
@@ -78,22 +78,31 @@ namespace Siger.ApiACC.Controllers
{
{
throw
new
BadRequestException
(
RequestEnum
.
ParameterMiss
);
throw
new
BadRequestException
(
RequestEnum
.
ParameterMiss
);
}
}
if
(!
string
.
IsNullOrEmpty
(
req
.
parentid
)
&&
!
string
.
IsNullOrEmpty
(
req
.
fixturetoolid
)
&&
req
.
parentid
==
req
.
fixturetoolid
)
{
throw
new
BadRequestException
(
RequestEnum
.
ParentSonSame
);
}
var
parent
=
_toolsRepository
.
Get
(
q
=>
q
.
id
==
req
.
parentid
.
ToInt
()
&&
q
.
projectId
==
ProjectId
);
var
parent
=
_toolsRepository
.
Get
(
q
=>
q
.
id
==
req
.
parentid
.
ToInt
()
&&
q
.
projectId
==
ProjectId
);
var
son
=
_toolsRepository
.
Get
(
q
=>
q
.
id
==
req
.
fixturetoolid
.
ToInt
()
&&
q
.
projectId
==
ProjectId
);
var
son
=
_toolsRepository
.
Get
(
q
=>
q
.
id
==
req
.
fixturetoolid
.
ToInt
()
&&
q
.
projectId
==
ProjectId
);
if
(
son
==
null
)
if
(
son
==
null
)
{
{
throw
new
BadRequestException
(
RequestEnum
.
FixtureToolNotFound
);
throw
new
BadRequestException
(
RequestEnum
.
FixtureToolNotFound
);
}
}
if
(
parent
==
null
)
{
}
var
parentGuid
=
parent
?.
guid
??
""
;
var
parentGuid
=
parent
?.
guid
??
""
;
var
exsit
=
_toolsAssemblyRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
son
==
son
.
guid
&&
q
.
parent
==
parentGuid
);
var
exsit
=
_toolsAssemblyRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
son
==
son
.
guid
&&
q
.
parent
==
parentGuid
);
if
(
exsit
!=
null
)
if
(
exsit
!=
null
)
{
{
throw
new
BadRequestException
(
RequestEnum
.
DataExist
);
throw
new
BadRequestException
(
RequestEnum
.
DataExist
);
}
}
if
(!
string
.
IsNullOrEmpty
(
parentGuid
))
{
var
parentExsit
=
_toolsAssemblyRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
son
==
parentGuid
);
if
(
parentExsit
!=
null
)
{
throw
new
BadRequestException
(
RequestEnum
.
LevelCountError
);
}
}
var
entity
=
new
siger_automation_fixture_tools_assembly
var
entity
=
new
siger_automation_fixture_tools_assembly
{
{
...
@@ -127,6 +136,11 @@ namespace Siger.ApiACC.Controllers
...
@@ -127,6 +136,11 @@ namespace Siger.ApiACC.Controllers
{
{
throw
new
BadRequestException
(
RequestEnum
.
ParameterMiss
);
throw
new
BadRequestException
(
RequestEnum
.
ParameterMiss
);
}
}
if
(!
string
.
IsNullOrEmpty
(
req
.
parentid
)
&&
!
string
.
IsNullOrEmpty
(
req
.
fixturetoolid
)
&&
req
.
parentid
==
req
.
fixturetoolid
)
{
throw
new
BadRequestException
(
RequestEnum
.
ParentSonSame
);
}
var
entity
=
_toolsAssemblyRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
id
==
req
.
id
);
var
entity
=
_toolsAssemblyRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
id
==
req
.
id
);
if
(
entity
==
null
)
if
(
entity
==
null
)
{
{
...
@@ -145,6 +159,14 @@ namespace Siger.ApiACC.Controllers
...
@@ -145,6 +159,14 @@ namespace Siger.ApiACC.Controllers
{
{
throw
new
BadRequestException
(
RequestEnum
.
DataExist
);
throw
new
BadRequestException
(
RequestEnum
.
DataExist
);
}
}
if
(!
string
.
IsNullOrEmpty
(
parentGuid
))
{
var
parentExsit
=
_toolsAssemblyRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
son
==
parentGuid
);
if
(
parentExsit
!=
null
)
{
throw
new
BadRequestException
(
RequestEnum
.
LevelCountError
);
}
}
entity
.
parent
=
parent
?.
guid
??
""
;
entity
.
parent
=
parent
?.
guid
??
""
;
entity
.
son
=
son
.
guid
;
entity
.
son
=
son
.
guid
;
...
...
Server/Common/Siger.Middlelayer.Share/Enum/RequestEnum.cs
View file @
0c7bd868
...
@@ -1473,5 +1473,8 @@ namespace Siger.Middlelayer.Common
...
@@ -1473,5 +1473,8 @@ namespace Siger.Middlelayer.Common
[
Description
(
"ID重复"
)]
[
Description
(
"ID重复"
)]
IDExist
,
IDExist
,
[
Description
(
"父级和子级不能相同"
)]
ParentSonSame
,
}
}
}
}
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