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
22cc76a4
Commit
22cc76a4
authored
Jan 26, 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
c93d78c5
708e002d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
32 deletions
+60
-32
assemblyInfo.vue
Html/src/view/fms/associate/assemblyInfo.vue
+0
-29
FixtureToolsAssemblyController.cs
...iger.ApiACC/Controllers/FixtureToolsAssemblyController.cs
+51
-2
FixtureTools.cs
.../Siger.Middlelayer.Utility/ImportEntities/FixtureTools.cs
+6
-0
AutomationFixtureToolsAssemblyRepository.cs
.../Repositories/AutomationFixtureToolsAssemblyRepository.cs
+2
-1
FixtureToolsCategory.cs
...iddlelayer.AccRepository/Response/FixtureToolsCategory.cs
+1
-0
No files found.
Html/src/view/fms/associate/assemblyInfo.vue
View file @
22cc76a4
...
...
@@ -432,35 +432,6 @@ export default {
},
},
{
title
:
"备注"
,
key
:
"remark"
,
},
{
title
:
"附件"
,
key
:
"filename"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"span"
,
{
style
:
{
color
:
"#2b85e4"
,
cursor
:
"pointer"
,
},
on
:
{
click
:
()
=>
{
let
name
=
params
.
row
.
filename
;
let
url
=
params
.
row
.
fileurl
;
if
(
url
)
{
this
.
downFile
(
url
,
name
);
}
},
},
},
params
.
row
.
filename
);
},
},
{
title
:
"维护人"
,
key
:
"updator"
,
},
...
...
Server/Apis/Siger.ApiACC/Controllers/FixtureToolsAssemblyController.cs
View file @
22cc76a4
...
...
@@ -69,6 +69,9 @@ namespace Siger.ApiACC.Controllers
var
parentcateIds1
=
parentcates1
.
Select
(
q
=>
q
.
id
).
ToList
();
parentcateIds1
.
Reverse
();
model
.
parentcategoryids
=
parentcateIds1
;
model
.
fileurl
=
item
.
fileurl
;
model
.
filename
=
item
.
filename
;
model
.
remark
=
item
.
remark
;
models
.
Add
(
model
);
}
item
.
childrens
=
models
;
...
...
@@ -101,6 +104,7 @@ namespace Siger.ApiACC.Controllers
ParentPartNumber
=
item
.
partnumber
,
ParentFixtureTool
=
item
.
name
,
ParentSpecfication
=
item
.
specfication
,
ParentCode
=
item
.
code
,
Category
=
""
,
FixtureTool
=
""
,
PartNumber
=
""
,
...
...
@@ -120,10 +124,12 @@ namespace Siger.ApiACC.Controllers
ParentPartNumber
=
son
.
parentpartnumber
,
ParentFixtureTool
=
son
.
parentname
,
ParentSpecfication
=
son
.
parentspecfication
,
ParentCode
=
item
.
parentcode
,
Category
=
son
.
category
,
FixtureTool
=
son
.
name
,
PartNumber
=
son
.
partnumber
,
Specfication
=
son
.
specfication
,
Code
=
son
.
code
,
Status
=
son
.
status
==
(
int
)
RowState
.
Valid
?
"可用"
:
"停用"
,
Remark
=
son
.
remark
,
Updator
=
son
.
updator
,
...
...
@@ -204,7 +210,28 @@ namespace Siger.ApiACC.Controllers
throw
new
BadRequestException
(
RequestEnum
.
LevelCountError
);
}
if
(
_toolsAssemblyRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
son
==
parentGuid
)
==
null
)
if
(
parentExsit
!=
null
)
{
parentExsit
.
filename
=
req
.
filename
;
parentExsit
.
attachment
=
req
.
fileurl
;
parentExsit
.
remark
=
req
.
remark
;
parentExsit
.
updator
=
UserId
;
parentExsit
.
updatetime
=
DateTime
.
Now
;
//var sons = _toolsAssemblyRepository.GetList(q => q.parent == parentExsit.son && q.projectId == ProjectId).ToList();
//if (req.status.ToInt() == (int)RowState.Invalid && sons.Count(q => q.status == (int)RowState.Invalid) == sons.Count)
//{
// parentExsit.status = (int)RowState.Invalid;
//}
//else
//{
// parentExsit.status = (int)RowState.Valid;
//}
_toolsAssemblyRepository
.
Update
(
parentExsit
);
}
if
(
parentExsit
==
null
)
{
var
parentEntity
=
new
siger_automation_fixture_tools_assembly
{
...
...
@@ -221,6 +248,7 @@ namespace Siger.ApiACC.Controllers
status
=
req
.
status
.
ToInt
()
==
(
int
)
RowState
.
Valid
?
(
int
)
RowState
.
Valid
:
(
int
)
RowState
.
Invalid
,
remark
=
req
.
remark
};
_toolsAssemblyRepository
.
Insert
(
parentEntity
);
}
...
...
@@ -289,7 +317,28 @@ namespace Siger.ApiACC.Controllers
throw
new
BadRequestException
(
RequestEnum
.
LevelCountError
);
}
if
(
_toolsAssemblyRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
son
==
parentGuid
)
==
null
)
if
(
parentExsit
!=
null
)
{
parentExsit
.
filename
=
req
.
filename
;
parentExsit
.
attachment
=
req
.
fileurl
;
parentExsit
.
remark
=
req
.
remark
;
parentExsit
.
updator
=
UserId
;
parentExsit
.
updatetime
=
DateTime
.
Now
;
//var sons = _toolsAssemblyRepository.GetList(q => q.parent == parentExsit.son && q.projectId == ProjectId).ToList();
//if (req.status.ToInt() == (int)RowState.Invalid && sons.Count(q => q.status == (int)RowState.Invalid) == sons.Count)
//{
// parentExsit.status = (int)RowState.Invalid;
//}
//else
//{
// parentExsit.status = (int)RowState.Valid;
//}
_toolsAssemblyRepository
.
Update
(
parentExsit
);
}
if
(
parentExsit
==
null
)
{
var
parentEntity
=
new
siger_automation_fixture_tools_assembly
{
...
...
Server/Common/Siger.Middlelayer.Utility/ImportEntities/FixtureTools.cs
View file @
22cc76a4
...
...
@@ -148,6 +148,9 @@ namespace Siger.Middlelayer.Utility.ImportEntities
[
ExcelColumn
(
"父工装规格"
)]
public
string
ParentSpecfication
{
get
;
set
;
}
[
ExcelColumn
(
"父工装编号"
)]
public
string
ParentCode
{
get
;
set
;
}
[
ExcelColumn
(
"子工装类型"
)]
public
string
Category
{
get
;
set
;
}
...
...
@@ -160,6 +163,9 @@ namespace Siger.Middlelayer.Utility.ImportEntities
[
ExcelColumn
(
"子工装规格"
)]
public
string
Specfication
{
get
;
set
;
}
[
ExcelColumn
(
"子工装编号"
)]
public
string
Code
{
get
;
set
;
}
[
ExcelColumn
(
"状态"
)]
public
string
Status
{
get
;
set
;
}
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationFixtureToolsAssemblyRepository.cs
View file @
22cc76a4
...
...
@@ -61,7 +61,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories
parentcategoryid
=
c1
==
null
?
0
:
c1
.
id
,
parentcategory
=
c1
.
name
??
""
,
parentpartnumber
=
t1
.
partnumber
??
""
,
parentspecfication
=
t1
.
specification
??
""
parentspecfication
=
t1
.
specification
??
""
,
parentcode
=
t1
.
code
??
""
};
Expression
<
Func
<
ResponseAumationFixtureToolsAssembly
,
bool
>>
categoryExpression
=
f
=>
true
;
if
(
category
>
0
)
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Response/FixtureToolsCategory.cs
View file @
22cc76a4
...
...
@@ -152,5 +152,6 @@ namespace Siger.Middlelayer.AccRepository.Response
public
string
parentcategory
{
get
;
set
;
}
public
string
parentpartnumber
{
get
;
set
;
}
public
string
parentspecfication
{
get
;
set
;
}
public
string
parentcode
{
get
;
set
;
}
}
}
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