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
b94eaca4
Commit
b94eaca4
authored
Jan 22, 2021
by
xin.yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
da24be25
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
27 additions
and
26 deletions
+27
-26
AutomationLocationController.cs
.../Siger.ApiACC/Controllers/AutomationLocationController.cs
+1
-0
FixtureToolsProductController.cs
...Siger.ApiACC/Controllers/FixtureToolsProductController.cs
+6
-2
siger_automation_fixture_tools_product.cs
...sitory/Entities/siger_automation_fixture_tools_product.cs
+3
-0
siger_automation_location.cs
...layer.AccRepository/Entities/siger_automation_location.cs
+0
-12
AutomationFixtureToolsProductRepository.cs
...y/Repositories/AutomationFixtureToolsProductRepository.cs
+5
-3
AutomationLocationRepository.cs
...ccRepository/Repositories/AutomationLocationRepository.cs
+6
-9
RequestFixtureToolsCategory.cs
...ayer.AccRepository/Request/RequestFixtureToolsCategory.cs
+2
-0
FixtureToolsCategory.cs
...iddlelayer.AccRepository/Response/FixtureToolsCategory.cs
+2
-0
DB.script
Server/Infrastructure/Script/DB.script
+2
-0
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationLocationController.cs
View file @
b94eaca4
...
...
@@ -39,6 +39,7 @@ namespace Siger.ApiACC.Controllers
public
IActionResult
GetPageList
(
string
wavehouseid
,
string
locationid
,
int
page
,
int
pagesize
)
{
var
data
=
_autoLocationRepository
.
GetPagedList
(
wavehouseid
.
ToInt
(),
locationid
.
ToInt
(),
ProjectId
,
page
,
pagesize
);
return
new
PagedObjectResult
(
data
.
Data
,
data
.
Total
,
page
,
pagesize
);
}
...
...
Server/Apis/Siger.ApiACC/Controllers/FixtureToolsProductController.cs
View file @
b94eaca4
...
...
@@ -70,13 +70,15 @@ namespace Siger.ApiACC.Controllers
{
guid
=
Guid
.
NewGuid
().
ToString
(),
fixturetools
=
fixtureTool
.
guid
,
remark
=
req
.
remark
,
productid
=
req
.
productid
.
ToInt
(),
remark
=
req
.
remark
,
productid
=
req
.
productid
.
ToInt
(),
projectId
=
ProjectId
,
createtime
=
DateTime
.
Now
,
updatetime
=
DateTime
.
Now
,
creator
=
UserId
,
updator
=
UserId
,
attachment
=
req
.
fileurl
,
filename
=
req
.
filename
};
_toolsProductRepository
.
Insert
(
entity
);
if
(
_unitOfWork
.
Commit
()
>
0
)
...
...
@@ -123,6 +125,8 @@ namespace Siger.ApiACC.Controllers
entity
.
productid
=
req
.
productid
.
ToInt
();
entity
.
updatetime
=
DateTime
.
Now
;
entity
.
updator
=
UserId
;
entity
.
filename
=
req
.
filename
;
entity
.
attachment
=
req
.
fileurl
;
_toolsProductRepository
.
Insert
(
entity
);
if
(
_unitOfWork
.
Commit
()
>
0
)
{
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Entities/siger_automation_fixture_tools_product.cs
View file @
b94eaca4
...
...
@@ -32,5 +32,8 @@ namespace Siger.Middlelayer.AccRepository.Entities
public
DateTime
?
updatetime
{
get
;
set
;
}
public
string
extend1
{
get
;
set
;
}
public
string
attachment
{
get
;
set
;
}
public
string
filename
{
get
;
set
;
}
}
}
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Entities/siger_automation_location.cs
View file @
b94eaca4
...
...
@@ -19,18 +19,6 @@ namespace Siger.Middlelayer.AccRepository.Entities
/// </summary>
public
string
fixturetools
{
get
;
set
;
}
/// <summary>
/// 物料ID
/// </summary>
public
int
materialid
{
get
;
set
;
}
/// <summary>
/// 工序ID
/// </summary>
public
int
processid
{
get
;
set
;
}
/// <summary>
/// 物料状态
/// </summary>
public
int
materialstate
{
get
;
set
;
}
/// <summary>
/// 附件
/// </summary>
public
string
attachment
{
get
;
set
;
}
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationFixtureToolsProductRepository.cs
View file @
b94eaca4
...
...
@@ -32,15 +32,17 @@ namespace Siger.Middlelayer.AccRepository.Repositories
select
new
ResponseAumationFixtureToolsProduct
{
id
=
q
.
id
,
categoryid
=
c
.
id
,
categoryname
=
c
.
name
,
categoryid
=
c
.
id
,
categoryname
=
c
.
name
,
fixturetoolid
=
t
.
id
,
fixturetool
=
t
.
name
,
productid
=
q
.
productid
,
productname
=
p
.
name
,
remark
=
q
.
remark
,
updator
=
u
.
name
??
""
,
updatetime
=
q
.
updatetime
.
HasValue
&&
q
.
updatetime
>
DateTime
.
MinValue
?
q
.
updatetime
.
Value
.
ToString
(
ParameterConstant
.
DateTimeFormat
)
:
""
updatetime
=
q
.
updatetime
.
HasValue
&&
q
.
updatetime
>
DateTime
.
MinValue
?
q
.
updatetime
.
Value
.
ToString
(
ParameterConstant
.
DateTimeFormat
)
:
""
,
fileurl
=
q
.
attachment
,
filename
=
q
.
filename
};
Expression
<
Func
<
ResponseAumationFixtureToolsProduct
,
bool
>>
categoryExpression
=
f
=>
true
;
if
(
category
>
0
)
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationLocationRepository.cs
View file @
b94eaca4
...
...
@@ -28,9 +28,6 @@ namespace Siger.Middlelayer.AccRepository.Repositories
join
c
in
_context
.
siger_automation_fixture_tools_category
on
t
.
category
equals
c
.
guid
join
l
in
_context
.
siger_wms_storage_location
on
q
.
locationid
equals
l
.
locationid
join
w
in
_context
.
siger_wms_storage
on
l
.
storageid
equals
w
.
id
join
m
in
_context
.
siger_tr_assist_materials
on
q
.
materialid
equals
m
.
id
join
p
in
_context
.
siger_project_process
on
q
.
processid
equals
p
.
id
into
pp
from
p
in
pp
.
DefaultIfEmpty
()
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
...
...
@@ -46,12 +43,12 @@ namespace Siger.Middlelayer.AccRepository.Repositories
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
??
""
,
materialstate
=
q
.
materialstate
,
//
materialid = q.materialid,
//
materialcode = m.pn,
//
processid = q.processid,
//
processnumber = p == null ? 0 : p.Process_Seq,
//
processname = p.Process_name ?? "",
//
materialstate = q.materialstate,
fileurl
=
q
.
attachment
??
""
,
filename
=
q
.
filename
??
""
,
remark
=
q
.
remark
,
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Request/RequestFixtureToolsCategory.cs
View file @
b94eaca4
...
...
@@ -87,6 +87,8 @@ namespace Siger.Middlelayer.AccRepository.Request
/// 备注
/// </summary>
public
string
remark
{
get
;
set
;
}
public
string
fileurl
{
get
;
set
;
}
public
string
filename
{
get
;
set
;
}
}
public
class
RequestUpdateFixtureToolsProduct
:
RequestAddFixtureToolsProduct
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Response/FixtureToolsCategory.cs
View file @
b94eaca4
...
...
@@ -106,6 +106,8 @@ namespace Siger.Middlelayer.AccRepository.Response
public
string
updator
{
get
;
set
;
}
public
string
updatetime
{
get
;
set
;
}
public
string
fileurl
{
get
;
set
;
}
public
string
filename
{
get
;
set
;
}
}
public
class
ResponseAumationFixtureToolsAssembly
...
...
Server/Infrastructure/Script/DB.script
View file @
b94eaca4
...
...
@@ -248,6 +248,8 @@ CREATE TABLE IF NOT EXISTS `siger_automation_fixture_tools_product` (
`fixturetools` varchar(45) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'siger_automation_fixture_tools.guid',
`productid` int(11) NOT NULL DEFAULT 0 COMMENT '产品ID',
`remark` 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 '附件名称',
`projectid` int(11) NOT NULL DEFAULT 0,
`status` int(11) NOT NULL DEFAULT 1,
`creator` int(11) NOT NULL DEFAULT 0,
...
...
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