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
0185fb08
Commit
0185fb08
authored
Jan 20, 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
459b8c79
0f91e96d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
LocationController.cs
Server/Apis/Siger.ApiWMS/Controllers/LocationController.cs
+8
-2
ResponseLocationList.cs
...iddlelayer.WmsRepository/Response/ResponseLocationList.cs
+12
-1
No files found.
Server/Apis/Siger.ApiWMS/Controllers/LocationController.cs
View file @
0185fb08
...
@@ -421,10 +421,13 @@ namespace Siger.ApiWMS.Controllers
...
@@ -421,10 +421,13 @@ namespace Siger.ApiWMS.Controllers
field
=
new
List
<
FiledName
>(),
field
=
new
List
<
FiledName
>(),
};
};
int
i
=
1
;
int
i
=
1
;
var
locatype
=
locationType
.
FirstOrDefault
(
q
=>
q
.
id
==
item
.
typeid
);
tmp
.
field
.
Add
(
new
FiledName
tmp
.
field
.
Add
(
new
FiledName
{
{
id
=
item
.
id
,
id
=
item
.
id
,
name
=
item
.
realname
name
=
item
.
realname
,
typeid
=
item
.
typeid
,
typename
=
locatype
?.
name
??
""
});
});
while
(
pid
!=
0
)
while
(
pid
!=
0
)
{
{
...
@@ -436,10 +439,13 @@ namespace Siger.ApiWMS.Controllers
...
@@ -436,10 +439,13 @@ namespace Siger.ApiWMS.Controllers
tmp
.
storeID
=
entity
.
locationid
;
//赋值前端填写的储位ID
tmp
.
storeID
=
entity
.
locationid
;
//赋值前端填写的储位ID
}
}
//处理顺序问题
//处理顺序问题
locatype
=
locationType
.
FirstOrDefault
(
q
=>
q
.
id
==
item
.
typeid
);
tmp
.
field
.
Add
(
new
FiledName
tmp
.
field
.
Add
(
new
FiledName
{
{
id
=
entity
.
id
,
id
=
entity
.
id
,
name
=
entity
.
realname
name
=
entity
.
realname
,
typeid
=
entity
.
typeid
,
typename
=
locatype
?.
name
??
""
});
});
pid
=
entity
.
parentid
;
pid
=
entity
.
parentid
;
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.WmsRepository/Response/ResponseLocationList.cs
View file @
0185fb08
...
@@ -7,7 +7,7 @@ namespace Siger.Middlelayer.WmsRepository.Response
...
@@ -7,7 +7,7 @@ namespace Siger.Middlelayer.WmsRepository.Response
public
int
id
{
get
;
set
;
}
public
int
id
{
get
;
set
;
}
public
int
pid
{
get
;
set
;
}
public
int
pid
{
get
;
set
;
}
public
string
storageName
{
get
;
set
;
}
public
string
storageName
{
get
;
set
;
}
public
List
<
string
>
field
{
get
;
set
;
}
public
List
<
FiledName
>
field
{
get
;
set
;
}
=
new
List
<
FiledName
>();
public
string
serialNumber
{
get
;
set
;
}
public
string
serialNumber
{
get
;
set
;
}
public
int
state
{
get
;
set
;
}
public
int
state
{
get
;
set
;
}
/// <summary>
/// <summary>
...
@@ -15,4 +15,15 @@ namespace Siger.Middlelayer.WmsRepository.Response
...
@@ -15,4 +15,15 @@ namespace Siger.Middlelayer.WmsRepository.Response
/// </summary>
/// </summary>
public
int
storeID
{
get
;
set
;
}
public
int
storeID
{
get
;
set
;
}
}
}
public
class
FiledName
{
public
int
id
{
get
;
set
;
}
public
string
name
{
get
;
set
;
}
public
int
typeid
{
get
;
set
;
}
public
string
typename
{
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