Commit bd6dd6a1 authored by liudong1993's avatar liudong1993

分类

parent 09a722c9
...@@ -55,7 +55,10 @@ namespace Property.Module.FixedAssets ...@@ -55,7 +55,10 @@ namespace Property.Module.FixedAssets
private readonly RB_Supplies_ApplyforRepository supplies_ApplyforRepository = new RB_Supplies_ApplyforRepository(); private readonly RB_Supplies_ApplyforRepository supplies_ApplyforRepository = new RB_Supplies_ApplyforRepository();
private readonly RB_Supplies_ApplyforWeekdayRepository supplies_ApplyforWeekdayRepository = new RB_Supplies_ApplyforWeekdayRepository(); private readonly RB_Supplies_ApplyforWeekdayRepository supplies_ApplyforWeekdayRepository = new RB_Supplies_ApplyforWeekdayRepository();
private readonly RB_Supplies_ApplyforSpecialRepository supplies_ApplyforSpecialRepository = new RB_Supplies_ApplyforSpecialRepository(); private readonly RB_Supplies_ApplyforSpecialRepository supplies_ApplyforSpecialRepository = new RB_Supplies_ApplyforSpecialRepository();
/// <summary>
/// 分类
/// </summary>
private readonly RB_Property_CategoryRepository property_CategoryRepository = new RB_Property_CategoryRepository();
/// <summary> /// <summary>
/// 获取物料详情 /// 获取物料详情
...@@ -80,6 +83,9 @@ namespace Property.Module.FixedAssets ...@@ -80,6 +83,9 @@ namespace Property.Module.FixedAssets
{ {
model.ImageList.Add(Config.GetFileUrl(img)); model.ImageList.Add(Config.GetFileUrl(img));
} }
if (model.CategoryId > 0) {
model.CategoryName = property_CategoryRepository.GetEntity(model.CategoryId)?.Name ?? "";
}
return model; return model;
} }
......
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