Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Property
Project
Project
Details
Activity
Releases
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
liudong1993
Property
Commits
834b34cb
Commit
834b34cb
authored
Jul 24, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料查询所有
parent
8a1b8e48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
SuppliesModule.cs
Property.Modele.FixedAssets/SuppliesModule.cs
+1
-1
RB_Supplies_MaterialRepository.cs
...rty.Repository/Supplies/RB_Supplies_MaterialRepository.cs
+5
-2
No files found.
Property.Modele.FixedAssets/SuppliesModule.cs
View file @
834b34cb
...
...
@@ -880,7 +880,7 @@ namespace Property.Module.FixedAssets
//查询仓库
var
wlist
=
supplies_WareHouseRepository
.
GetList
(
new
RB_Supplies_WareHouse_Extend
()
{
RB_Group_Id
=
demodel
.
RB_Group_Id
,
WareHouseIdStr
=
wstr
});
//查询耗材
var
mlist
=
supplies_MaterialRepository
.
GetList
(
new
RB_Supplies_Material_Extend
()
{
RB_Group_Id
=
demodel
.
RB_Group_Id
,
SuppliesIdStr
=
sstr
});
var
mlist
=
supplies_MaterialRepository
.
GetList
(
new
RB_Supplies_Material_Extend
()
{
RB_Group_Id
=
demodel
.
RB_Group_Id
,
SuppliesIdStr
=
sstr
}
,
true
);
foreach
(
var
item
in
list
)
{
item
.
WModel
=
wlist
.
Where
(
x
=>
x
.
Id
==
item
.
WarehouseId
).
FirstOrDefault
();
...
...
Property.Repository/Supplies/RB_Supplies_MaterialRepository.cs
View file @
834b34cb
...
...
@@ -57,10 +57,13 @@ left join rb_property_category pc on sm.CategoryId=pc.Id
/// </summary>
/// <param name="dmodel"></param>
/// <returns></returns>
public
List
<
RB_Supplies_Material_Extend
>
GetList
(
RB_Supplies_Material_Extend
dmodel
)
public
List
<
RB_Supplies_Material_Extend
>
GetList
(
RB_Supplies_Material_Extend
dmodel
,
bool
IsSeelctDel
=
false
)
{
string
where
=
" where 1=1 "
;
where
+=
string
.
Format
(
" AND sm.{0}={1}"
,
nameof
(
RB_Supplies_Material_Extend
.
Status
),
0
);
if
(
IsSeelctDel
==
false
)
{
where
+=
string
.
Format
(
" AND sm.{0}={1}"
,
nameof
(
RB_Supplies_Material_Extend
.
Status
),
0
);
}
where
+=
$@" and sm.RB_Group_Id=
{
dmodel
.
RB_Group_Id
}
"
;
if
(!
string
.
IsNullOrWhiteSpace
(
dmodel
.
Name
))
{
...
...
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