Commit 834b34cb authored by liudong1993's avatar liudong1993

物料查询所有

parent 8a1b8e48
...@@ -880,7 +880,7 @@ namespace Property.Module.FixedAssets ...@@ -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 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) { foreach (var item in list) {
item.WModel = wlist.Where(x => x.Id == item.WarehouseId).FirstOrDefault(); item.WModel = wlist.Where(x => x.Id == item.WarehouseId).FirstOrDefault();
......
...@@ -57,10 +57,13 @@ left join rb_property_category pc on sm.CategoryId=pc.Id ...@@ -57,10 +57,13 @@ left join rb_property_category pc on sm.CategoryId=pc.Id
/// </summary> /// </summary>
/// <param name="dmodel"></param> /// <param name="dmodel"></param>
/// <returns></returns> /// <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 "; string where = " where 1=1 ";
if (IsSeelctDel == false)
{
where += string.Format(" AND sm.{0}={1}", nameof(RB_Supplies_Material_Extend.Status), 0); where += string.Format(" AND sm.{0}={1}", nameof(RB_Supplies_Material_Extend.Status), 0);
}
where += $@" and sm.RB_Group_Id={dmodel.RB_Group_Id}"; where += $@" and sm.RB_Group_Id={dmodel.RB_Group_Id}";
if (!string.IsNullOrWhiteSpace(dmodel.Name)) if (!string.IsNullOrWhiteSpace(dmodel.Name))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment