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
6c2dc0df
Commit
6c2dc0df
authored
Jan 21, 2021
by
xin.yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some update
parent
75a573f5
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
251 additions
and
36 deletions
+251
-36
AutomationLocationController.cs
.../Siger.ApiACC/Controllers/AutomationLocationController.cs
+6
-4
FixtureToolsAssemblyController.cs
...iger.ApiACC/Controllers/FixtureToolsAssemblyController.cs
+99
-2
FixtureToolsController.cs
...r/Apis/Siger.ApiACC/Controllers/FixtureToolsController.cs
+21
-2
siger_automation_fixture_tools.cs
....AccRepository/Entities/siger_automation_fixture_tools.cs
+1
-0
siger_automation_fixture_tools_assembly.cs
...itory/Entities/siger_automation_fixture_tools_assembly.cs
+9
-0
siger_automation_location.cs
...layer.AccRepository/Entities/siger_automation_location.cs
+1
-0
AutomationFixtureToolsAssemblyRepository.cs
.../Repositories/AutomationFixtureToolsAssemblyRepository.cs
+62
-5
AutomationFixtureToolsRepository.cs
...pository/Repositories/AutomationFixtureToolsRepository.cs
+2
-1
AutomationLocationRepository.cs
...ccRepository/Repositories/AutomationLocationRepository.cs
+15
-14
IAutomationFixtureToolsAssemblyRepository.cs
...es/Interface/IAutomationFixtureToolsAssemblyRepository.cs
+4
-1
RequestFixtureToolsCategory.cs
...ayer.AccRepository/Request/RequestFixtureToolsCategory.cs
+17
-2
FixtureToolsCategory.cs
...iddlelayer.AccRepository/Response/FixtureToolsCategory.cs
+7
-3
ResponseAutomationLocation.cs
...ayer.AccRepository/Response/ResponseAutomationLocation.cs
+2
-1
DB.script
Server/Infrastructure/Script/DB.script
+5
-1
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationLocationController.cs
View file @
6c2dc0df
...
...
@@ -36,9 +36,9 @@ namespace Siger.ApiACC.Controllers
_materialsRepository
=
materialsRepository
;
}
public
IActionResult
GetPageList
(
string
category
,
string
code
,
string
name
,
string
state
,
int
page
,
int
pagesize
)
public
IActionResult
GetPageList
(
string
wavehouseid
,
string
locationid
,
int
page
,
int
pagesize
)
{
var
data
=
_
toolsRepository
.
GetPagedList
(
category
.
ToInt
(),
code
,
name
,
string
.
IsNullOrEmpty
(
state
)
?
-
1
:
state
.
ToInt
(),
ProjectId
,
page
,
pagesize
);
var
data
=
_
autoLocationRepository
.
GetPagedList
(
wavehouseid
.
ToInt
(),
locationid
.
ToInt
(),
ProjectId
,
page
,
pagesize
);
return
new
PagedObjectResult
(
data
.
Data
,
data
.
Total
,
page
,
pagesize
);
}
...
...
@@ -84,7 +84,8 @@ namespace Siger.ApiACC.Controllers
materialid
=
req
.
materialid
.
ToInt
(),
processid
=
req
.
processid
.
ToInt
(),
materialstate
=
state
,
attachment
=
req
.
attachment
,
attachment
=
req
.
fileurl
,
filename
=
req
.
filename
,
remark
=
req
.
remark
,
projectId
=
ProjectId
,
updatetime
=
DateTime
.
Now
,
...
...
@@ -141,7 +142,8 @@ namespace Siger.ApiACC.Controllers
entity
.
materialid
=
req
.
materialid
.
ToInt
();
entity
.
processid
=
req
.
processid
.
ToInt
();
entity
.
materialstate
=
state
;
entity
.
attachment
=
req
.
attachment
;
entity
.
attachment
=
req
.
fileurl
;
entity
.
filename
=
req
.
filename
;
entity
.
remark
=
req
.
remark
;
entity
.
updatetime
=
DateTime
.
Now
;
entity
.
updator
=
UserId
;
...
...
Server/Apis/Siger.ApiACC/Controllers/FixtureToolsAssemblyController.cs
View file @
6c2dc0df
...
...
@@ -33,10 +33,107 @@ namespace Siger.ApiACC.Controllers
_toolsAssemblyRepository
=
toolsAssemblyRepository
;
}
public
IActionResult
GetPageList
(
string
category
,
int
page
,
int
pagesize
)
[
HttpGet
]
public
IActionResult
GetPageList
(
string
category
,
string
code
,
string
name
,
int
projectid
,
int
page
,
int
pagesize
)
{
var
data
=
_toolsAssemblyRepository
.
GetPagedList
(
category
.
ToInt
(),
ProjectId
,
page
,
pagesize
);
var
data
=
_toolsAssemblyRepository
.
GetPagedList
(
category
.
ToInt
(),
code
,
name
,
ProjectId
,
page
,
pagesize
);
return
new
PagedObjectResult
(
data
.
Data
,
data
.
Total
,
page
,
pagesize
);
}
[
HttpGet
]
public
IActionResult
GetDetail
(
string
id
)
{
var
data
=
_toolsAssemblyRepository
.
GetDetailList
(
id
.
ToInt
(),
ProjectId
);
return
new
ObjectResult
(
data
);
}
[
HttpPost
]
public
IActionResult
Add
([
FromBody
]
RequestAddFixtureToolAssembly
req
)
{
if
(
string
.
IsNullOrEmpty
(
req
.
fixturetoolid
))
{
throw
new
BadRequestException
(
RequestEnum
.
ParameterMiss
);
}
var
parent
=
_toolsRepository
.
Get
(
q
=>
q
.
id
==
req
.
parentid
.
ToInt
()
&&
q
.
projectId
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
);
var
son
=
_toolsRepository
.
Get
(
q
=>
q
.
id
==
req
.
fixturetoolid
.
ToInt
()
&&
q
.
projectId
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
);
if
(
son
==
null
)
{
throw
new
BadRequestException
(
RequestEnum
.
FixtureToolNotFound
);
}
var
parentGuid
=
parent
?.
guid
??
""
;
var
exsit
=
_toolsAssemblyRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
son
==
son
.
guid
&&
q
.
parent
==
parentGuid
);
if
(
exsit
!=
null
)
{
throw
new
BadRequestException
(
RequestEnum
.
DataExist
);
}
var
entity
=
new
siger_automation_fixture_tools_assembly
{
guid
=
Guid
.
NewGuid
().
ToString
(),
parent
=
parent
?.
guid
??
""
,
son
=
son
.
guid
,
creator
=
UserId
,
createtime
=
DateTime
.
Now
,
attachment
=
req
.
fileurl
,
filename
=
req
.
filename
,
projectId
=
ProjectId
,
updatetime
=
DateTime
.
Now
,
updator
=
UserId
,
};
_toolsAssemblyRepository
.
Insert
(
entity
);
if
(
_unitOfWork
.
Commit
()
>
0
)
{
return
new
ObjectResult
(
CommonEnum
.
Succefull
);
}
else
{
throw
new
BadRequestException
(
CommonEnum
.
Fail
);
}
}
[
HttpPost
]
public
IActionResult
Update
([
FromBody
]
RequestUpdateFixtureToolAssembly
req
)
{
if
(
string
.
IsNullOrEmpty
(
req
.
fixturetoolid
))
{
throw
new
BadRequestException
(
RequestEnum
.
ParameterMiss
);
}
var
entity
=
_toolsAssemblyRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
id
==
req
.
id
);
if
(
entity
==
null
)
{
throw
new
BadRequestException
(
CommonEnum
.
RecordNotFound
);
}
var
parent
=
_toolsRepository
.
Get
(
q
=>
q
.
id
==
req
.
parentid
.
ToInt
()
&&
q
.
projectId
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
);
var
son
=
_toolsRepository
.
Get
(
q
=>
q
.
id
==
req
.
fixturetoolid
.
ToInt
()
&&
q
.
projectId
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
);
if
(
son
==
null
)
{
throw
new
BadRequestException
(
RequestEnum
.
FixtureToolNotFound
);
}
var
parentGuid
=
parent
?.
guid
??
""
;
var
exsit
=
_toolsAssemblyRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
son
==
son
.
guid
&&
q
.
parent
==
parentGuid
&&
q
.
id
!=
req
.
id
);
if
(
exsit
!=
null
)
{
throw
new
BadRequestException
(
RequestEnum
.
DataExist
);
}
entity
.
parent
=
parent
?.
guid
??
""
;
entity
.
son
=
son
.
guid
;
entity
.
attachment
=
req
.
fileurl
;
entity
.
filename
=
req
.
filename
;
entity
.
updatetime
=
DateTime
.
Now
;
entity
.
updator
=
UserId
;
_toolsAssemblyRepository
.
Update
(
entity
);
if
(
_unitOfWork
.
Commit
()
>
0
)
{
return
new
ObjectResult
(
CommonEnum
.
Succefull
);
}
else
{
throw
new
BadRequestException
(
CommonEnum
.
Fail
);
}
}
}
}
Server/Apis/Siger.ApiACC/Controllers/FixtureToolsController.cs
View file @
6c2dc0df
...
...
@@ -68,7 +68,8 @@ namespace Siger.ApiACC.Controllers
specification
=
req
.
specifition
,
number
=
req
.
number
.
ToInt
(),
remark
=
req
.
remark
,
attachment
=
req
.
attachment
,
attachment
=
req
.
fileurl
,
filename
=
req
.
filename
,
code
=
req
.
code
,
projectId
=
ProjectId
,
createtime
=
DateTime
.
Now
,
...
...
@@ -116,7 +117,8 @@ namespace Siger.ApiACC.Controllers
entity
.
specification
=
req
.
specifition
;
entity
.
number
=
req
.
number
.
ToInt
();
entity
.
remark
=
req
.
remark
;
entity
.
attachment
=
req
.
attachment
;
entity
.
attachment
=
req
.
fileurl
;
entity
.
filename
=
req
.
filename
;
entity
.
code
=
req
.
code
;
entity
.
updatetime
=
DateTime
.
Now
;
entity
.
updator
=
UserId
;
...
...
@@ -176,6 +178,23 @@ namespace Siger.ApiACC.Controllers
throw
new
BadRequestException
(
CommonEnum
.
Fail
);
}
[
HttpGet
]
public
IActionResult
GetFxitureTooolList
()
{
var
list
=
_toolsRepository
.
GetList
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
).
Select
(
q
=>
new
{
q
.
id
,
q
.
code
,
q
.
partnumber
,
q
.
name
,
q
.
specification
,
q
.
number
}).
ToList
();
return
new
ObjectResult
(
list
);
}
[
HttpGet
]
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Entities/siger_automation_fixture_tools.cs
View file @
6c2dc0df
...
...
@@ -42,6 +42,7 @@ namespace Siger.Middlelayer.AccRepository.Entities
/// 附件
/// </summary>
public
string
attachment
{
get
;
set
;
}
public
string
filename
{
get
;
set
;
}
/// <summary>
/// 工装编号
/// </summary>
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Entities/siger_automation_fixture_tools_assembly.cs
View file @
6c2dc0df
...
...
@@ -18,6 +18,15 @@ namespace Siger.Middlelayer.AccRepository.Entities
/// 工装GUID
/// </summary>
public
string
son
{
get
;
set
;
}
/// <summary>
/// 附件
/// </summary>
public
string
attachment
{
get
;
set
;
}
public
string
fileurl
{
get
;
set
;
}
/// <summary>
/// 附件名称
/// </summary>
public
string
filename
{
get
;
set
;
}
public
int
creator
{
get
;
set
;
}
public
DateTime
createtime
{
get
;
set
;
}
public
int
updator
{
get
;
set
;
}
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Entities/siger_automation_location.cs
View file @
6c2dc0df
...
...
@@ -34,6 +34,7 @@ namespace Siger.Middlelayer.AccRepository.Entities
/// 附件
/// </summary>
public
string
attachment
{
get
;
set
;
}
public
string
filename
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationFixtureToolsAssemblyRepository.cs
View file @
6c2dc0df
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq.Expressions
;
using
Microsoft.EntityFrameworkCore
;
...
...
@@ -20,7 +21,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
_context
=
context
;
}
public
IPagedCollectionResult
<
ResponseAumationFixtureToolsAssembly
>
GetPagedList
(
int
categor
,
int
projectid
,
int
page
,
int
pagesize
)
public
IPagedCollectionResult
<
ResponseAumationFixtureToolsAssembly
>
GetPagedList
(
int
categor
y
,
string
code
,
string
name
,
int
projectid
,
int
page
,
int
pagesize
)
{
var
query
=
from
q
in
_context
.
siger_automation_fixture_tools_assembly
join
t1
in
_context
.
siger_automation_fixture_tools
on
q
.
parent
equals
t1
.
guid
into
tt1
...
...
@@ -36,15 +37,71 @@ namespace Siger.Middlelayer.AccRepository.Repositories
id
=
q
.
id
,
parentid
=
t1
==
null
?
0
:
t1
.
id
,
parentname
=
t1
.
name
??
""
,
sonid
=
t2
.
id
,
sonname
=
t2
.
name
??
""
,
fixturetoolid
=
t2
.
id
,
name
=
t2
.
name
,
code
=
t2
.
code
,
partnumber
=
t2
.
partnumber
,
specfication
=
t2
.
specification
,
updator
=
u
.
name
??
""
,
status
=
q
.
status
,
fileurl
=
q
.
attachment
,
filename
=
q
.
filename
,
categoryid
=
c2
.
id
,
category
=
c2
.
name
,
updatetime
=
q
.
updatetime
.
HasValue
&&
q
.
updatetime
>
DateTime
.
MinValue
?
q
.
updatetime
.
Value
.
ToString
(
ParameterConstant
.
DateTimeFormat
)
:
""
};
var
entities
=
query
.
OrderByDescending
(
q
=>
q
.
id
).
Skip
((
page
-
1
)
*
pagesize
).
Take
(
pagesize
).
AsNoTracking
().
ToList
();
var
totalCount
=
query
.
Count
();
Expression
<
Func
<
ResponseAumationFixtureToolsAssembly
,
bool
>>
categoryExpression
=
f
=>
true
;
if
(
category
>
0
)
{
categoryExpression
=
q
=>
q
.
categoryid
==
category
;
}
Expression
<
Func
<
ResponseAumationFixtureToolsAssembly
,
bool
>>
codeExpression
=
f
=>
true
;
if
(!
string
.
IsNullOrEmpty
(
code
))
{
categoryExpression
=
q
=>
q
.
code
.
Contains
(
code
);
}
Expression
<
Func
<
ResponseAumationFixtureToolsAssembly
,
bool
>>
nameExpression
=
f
=>
true
;
if
(!
string
.
IsNullOrEmpty
(
name
))
{
nameExpression
=
q
=>
q
.
name
.
Contains
(
name
);
}
var
expression
=
categoryExpression
.
And
(
codeExpression
).
And
(
nameExpression
);
var
entities
=
query
.
Where
(
expression
).
OrderByDescending
(
q
=>
q
.
id
).
Skip
((
page
-
1
)
*
pagesize
).
Take
(
pagesize
).
AsNoTracking
().
ToList
();
var
totalCount
=
query
.
Where
(
expression
).
Count
();
return
new
PagedCollectionResult
<
ResponseAumationFixtureToolsAssembly
>(
entities
,
totalCount
);
}
public
IEnumerable
<
ResponseAumationFixtureToolsAssembly
>
GetDetailList
(
int
id
,
int
projectid
)
{
var
query
=
from
q
in
_context
.
siger_automation_fixture_tools_assembly
join
t1
in
_context
.
siger_automation_fixture_tools
on
q
.
parent
equals
t1
.
guid
into
tt1
from
t1
in
tt1
.
DefaultIfEmpty
()
join
c1
in
_context
.
siger_automation_fixture_tools_category
on
t1
.
category
equals
c1
.
guid
join
t2
in
_context
.
siger_automation_fixture_tools
on
q
.
son
equals
t2
.
guid
join
c2
in
_context
.
siger_automation_fixture_tools_category
on
t2
.
category
equals
c2
.
guid
join
u
in
_context
.
siger_project_user
on
q
.
updator
equals
u
.
mid
into
uu
from
u
in
uu
.
DefaultIfEmpty
()
where
q
.
projectId
==
projectid
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
id
==
id
select
new
ResponseAumationFixtureToolsAssembly
{
id
=
q
.
id
,
parentid
=
t1
==
null
?
0
:
t1
.
id
,
parentname
=
t1
.
name
??
""
,
fixturetoolid
=
t2
.
id
,
name
=
t2
.
name
,
code
=
t2
.
code
,
partnumber
=
t2
.
partnumber
,
specfication
=
t2
.
specification
,
updator
=
u
.
name
??
""
,
status
=
q
.
status
,
fileurl
=
q
.
attachment
,
filename
=
q
.
filename
,
categoryid
=
c2
.
id
,
category
=
c2
.
name
,
updatetime
=
q
.
updatetime
.
HasValue
&&
q
.
updatetime
>
DateTime
.
MinValue
?
q
.
updatetime
.
Value
.
ToString
(
ParameterConstant
.
DateTimeFormat
)
:
""
};
var
entities
=
query
.
OrderByDescending
(
q
=>
q
.
id
).
AsNoTracking
().
ToList
();
return
entities
;
}
}
}
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationFixtureToolsRepository.cs
View file @
6c2dc0df
...
...
@@ -40,7 +40,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories
specification
=
q
.
specification
,
number
=
q
.
number
,
remark
=
q
.
remark
,
attachment
=
q
.
attachment
,
fileurl
=
q
.
attachment
??
""
,
filename
=
q
.
filename
??
""
,
code
=
q
.
code
,
updator
=
u
.
name
??
""
,
status
=
q
.
status
,
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationLocationRepository.cs
View file @
6c2dc0df
...
...
@@ -36,23 +36,24 @@ namespace Siger.Middlelayer.AccRepository.Repositories
select
new
ResponseAutomationLocation
{
id
=
q
.
id
,
locationid
=
l
.
id
,
location
=
l
.
name
,
wavehouseid
=
w
.
id
,
wavehouse
=
w
.
name
,
fixturetoolid
=
t
.
id
,
fixturetool
=
t
.
name
,
category
=
c
.
name
,
code
=
t
.
code
,
specfication
=
t
.
specification
,
materialid
=
q
.
materialid
,
materialcode
=
m
.
pn
,
locationid
=
l
.
id
,
location
=
l
.
name
,
wavehouseid
=
w
.
id
,
wavehouse
=
w
.
name
,
fixturetoolid
=
t
.
id
,
fixturetool
=
t
.
name
,
category
=
c
.
name
,
code
=
t
.
code
,
specfication
=
t
.
specification
,
materialid
=
q
.
materialid
,
materialcode
=
m
.
pn
,
processid
=
q
.
processid
,
processnumber
=
p
==
null
?
0
:
p
.
Process_Seq
,
processname
=
p
.
Process_name
??
""
,
processname
=
p
.
Process_name
??
""
,
materialstate
=
q
.
materialstate
,
attachment
=
q
.
attachment
,
remark
=
q
.
remark
,
fileurl
=
q
.
attachment
??
""
,
filename
=
q
.
filename
??
""
,
remark
=
q
.
remark
,
updator
=
u
.
name
??
""
,
status
=
q
.
status
,
updatetime
=
q
.
updatetime
.
HasValue
&&
q
.
updatetime
>
DateTime
.
MinValue
?
q
.
updatetime
.
Value
.
ToString
(
ParameterConstant
.
DateTimeFormat
)
:
""
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/Interface/IAutomationFixtureToolsAssemblyRepository.cs
View file @
6c2dc0df
...
...
@@ -2,11 +2,14 @@
using
Siger.Middlelayer.AccRepository.Response
;
using
Siger.Middlelayer.Repository.Data.Acc
;
using
Siger.Middlelayer.Repository.Paged
;
using
System.Collections.Generic
;
namespace
Siger.Middlelayer.AccRepository.Repositories.Interface
{
public
interface
IAutomationFixtureToolsAssemblyRepository
:
IAccRepositoryBase
<
siger_automation_fixture_tools_assembly
>
{
IPagedCollectionResult
<
ResponseAumationFixtureToolsAssembly
>
GetPagedList
(
int
categor
,
int
projectid
,
int
page
,
int
pagesize
);
IPagedCollectionResult
<
ResponseAumationFixtureToolsAssembly
>
GetPagedList
(
int
category
,
string
code
,
string
name
,
int
projectid
,
int
page
,
int
pagesize
);
IEnumerable
<
ResponseAumationFixtureToolsAssembly
>
GetDetailList
(
int
id
,
int
projectid
);
}
}
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Request/RequestFixtureToolsCategory.cs
View file @
6c2dc0df
...
...
@@ -57,7 +57,8 @@ namespace Siger.Middlelayer.AccRepository.Request
/// <summary>
/// 附件
/// </summary>
public
string
attachment
{
get
;
set
;
}
public
string
fileurl
{
get
;
set
;
}
public
string
filename
{
get
;
set
;
}
/// <summary>
/// 工装编号
/// </summary>
...
...
@@ -114,7 +115,8 @@ namespace Siger.Middlelayer.AccRepository.Request
/// <summary>
/// 附件
/// </summary>
public
string
attachment
{
get
;
set
;
}
public
string
fileurl
{
get
;
set
;
}
public
string
filename
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
...
...
@@ -125,4 +127,17 @@ namespace Siger.Middlelayer.AccRepository.Request
{
public
int
id
{
get
;
set
;
}
}
public
class
RequestAddFixtureToolAssembly
{
public
string
parentid
{
get
;
set
;
}
public
string
fixturetoolid
{
get
;
set
;
}
public
string
fileurl
{
get
;
set
;
}
public
string
filename
{
get
;
set
;
}
}
public
class
RequestUpdateFixtureToolAssembly
:
RequestAddFixtureToolAssembly
{
public
int
id
{
get
;
set
;
}
}
}
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Response/FixtureToolsCategory.cs
View file @
6c2dc0df
...
...
@@ -65,7 +65,8 @@ namespace Siger.Middlelayer.AccRepository.Response
/// <summary>
/// 附件
/// </summary>
public
string
attachment
{
get
;
set
;
}
public
string
fileurl
{
get
;
set
;
}
public
string
filename
{
get
;
set
;
}
/// <summary>
/// 工装编号
/// </summary>
...
...
@@ -109,8 +110,9 @@ namespace Siger.Middlelayer.AccRepository.Response
public
int
id
{
get
;
set
;
}
public
int
parentid
{
get
;
set
;
}
public
string
parentname
{
get
;
set
;
}
public
int
sonid
{
get
;
set
;
}
public
string
sonname
{
get
;
set
;
}
public
int
categoryid
{
get
;
set
;
}
public
string
category
{
get
;
set
;
}
public
int
fixturetoolid
{
get
;
set
;
}
public
string
partnumber
{
get
;
set
;
}
public
string
name
{
get
;
set
;
}
public
string
specfication
{
get
;
set
;
}
...
...
@@ -118,5 +120,7 @@ namespace Siger.Middlelayer.AccRepository.Response
public
string
updator
{
get
;
set
;
}
public
string
updatetime
{
get
;
set
;
}
public
int
status
{
get
;
set
;
}
public
string
fileurl
{
get
;
set
;
}
public
string
filename
{
get
;
set
;
}
}
}
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Response/ResponseAutomationLocation.cs
View file @
6c2dc0df
...
...
@@ -40,7 +40,8 @@ namespace Siger.Middlelayer.AccRepository.Response
/// <summary>
/// 附件
/// </summary>
public
string
attachment
{
get
;
set
;
}
public
string
fileurl
{
get
;
set
;
}
public
string
filename
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
...
...
Server/Infrastructure/Script/DB.script
View file @
6c2dc0df
...
...
@@ -204,7 +204,8 @@ CREATE TABLE IF NOT EXISTS `siger_automation_fixture_tools` (
`specification` varchar(45) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
`number` int(11) NOT NULL DEFAULT 0 COMMENT '数量',
`remark` varchar(45) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`attachment` varchar(45) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件',
`attachment` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件',
`filename` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件名称',
`code` varchar(150) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工装编号',
`status` int(11) NOT NULL DEFAULT 1 COMMENT '状态',
`createtime` datetime(0) NOT NULL,
...
...
@@ -224,6 +225,8 @@ CREATE TABLE IF NOT EXISTS `siger_automation_fixture_tools_assembly` (
`guid` varchar(45) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`parent` varchar(45) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '父类工装GUID',
`son` varchar(45) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工装GUID',
`attachment` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件',
`filename` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件名称',
`projectid` int(11) NOT NULL DEFAULT 0,
`status` int(11) NOT NULL DEFAULT 1,
`creator` int(11) NOT NULL DEFAULT 0,
...
...
@@ -266,6 +269,7 @@ CREATE TABLE IF NOT EXISTS `siger_automation_location` (
`processid` int(11) NOT NULL DEFAULT 0 COMMENT '工序ID',
`materialstate` int(11) NOT NULL DEFAULT 0 COMMENT '物料状态',
`attachment` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件',
`filename` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件名称',
`remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`updator` int(11) NOT NULL DEFAULT 0,
`updatetime` datetime(0) NULL DEFAULT NULL,
...
...
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