| | |
| | | private BLL.AssetsPumpSeries _seriesbll = null; |
| | | private BLL.AssetsPumpGroup _groupbll = null; |
| | | private BLL.AssetsPumpType _typebll = null; |
| | | private BLL.AssetsPumpTypeSeriesMapSeriesMap _typeSeriesMapBll = null; |
| | | private BLL.AssetsPumpSeriesTypMapping _typeSeriesMapBll = null; |
| | | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | |
| | | _seriesbll = new BLL.AssetsPumpSeries(); |
| | | _groupbll = new BLL.AssetsPumpGroup(); |
| | | _typebll = new BLL.AssetsPumpType(); |
| | | _typeSeriesMapBll = new BLL.AssetsPumpTypeSeriesMapSeriesMap(); |
| | | _typeSeriesMapBll = new BLL.AssetsPumpSeriesTypMapping(); |
| | | _allBindingList = new BindingList<CurrentTreeViewModel>(); |
| | | var allType = await _typebll.GetAll(); |
| | | _allBindingList.Add(new CurrentTreeViewModel |
| | |
| | | var typemapid = await _typeSeriesMapBll.Insert( |
| | | new Vmo.AssetsPumpTypeSeriesMap |
| | | { |
| | | PumpSeriesID = id, |
| | | PumpTypeID = currentVm.ID |
| | | SeriesID = id, |
| | | TypeID = currentVm.ID |
| | | } |
| | | ); |
| | | var vm = await _seriesbll.GetByID(id); |