ÎļþÃû´Ó BLL/HStation.BLL.Assets.Core/04-bll/12-Comressor/02-compressorseries/AssetsCompressorSeries.cs ÐÞ¸Ä |
| | |
| | | using HStation.Vmo; |
| | | using Yw.BLL; |
| | | |
| | | using Yw.BLL; |
| | | namespace HStation.BLL |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public partial class AssetsCompressorSeries |
| | | public partial class AssetsCompressorFactor |
| | | { |
| | | private readonly HStation.CAL.IAssetsCompressorSeries _cal = CALCreateHelper.CreateCAL<HStation.CAL.IAssetsCompressorSeries>(); |
| | | private readonly HStation.CAL.IAssetsCompressorFactor _cal = CALCreateHelper.CreateCAL<HStation.CAL.IAssetsCompressorFactor>(); |
| | | |
| | | #region Query |
| | | |
| | | /// <summary> |
| | | /// è·åææ |
| | | /// </summary> |
| | | public virtual async Task<List<AssetsCompressorSeriesVmo>> GetAll() |
| | | public virtual async Task<List<AssetsCompressorFactorVmo>> GetAll() |
| | | { |
| | | var dtoList = await _cal.GetAll(); |
| | | return Dto2Vmos(dtoList); |
| | |
| | | /// <summary> |
| | | /// éè¿ ID è·å |
| | | /// </summary> |
| | | public virtual async Task<AssetsCompressorSeriesVmo> GetByID(long ID) |
| | | public virtual async Task<AssetsCompressorFactorVmo> GetByID(long ID) |
| | | { |
| | | var dto = await _cal.GetByID(ID); |
| | | return Dto2Vmo(dto); |
| | |
| | | /// <summary> |
| | | /// éè¿ Ids è·å |
| | | /// </summary> |
| | | public virtual async Task<List<AssetsCompressorSeriesVmo>> GetByIds(List<long> Ids) |
| | | public virtual async Task<List<AssetsCompressorFactorVmo>> GetByIds(List<long> Ids) |
| | | { |
| | | var dtoList = await _cal.GetByIds(Ids); |
| | | return Dto2Vmos(dtoList); |
| | | } |
| | | |
| | | #endregion Query |
| | | #endregion |
| | | |
| | | #region Insert |
| | | |
| | | /// <summary> |
| | | /// æå
¥ä¸æ¡ |
| | | /// </summary> |
| | | public virtual async Task<long> Insert(AssetsCompressorSeriesVmo vmo) |
| | | public virtual async Task<long> Insert(AssetsCompressorFactorVmo vmo) |
| | | { |
| | | var dto = Vmo2AddDto(vmo); |
| | | var id = await _cal.Insert(dto); |
| | |
| | | /// <summary> |
| | | /// æå
¥å¤æ¡ |
| | | /// </summary> |
| | | public virtual async Task<bool> Inserts(List<AssetsCompressorSeriesVmo> vmoList) |
| | | public virtual async Task<bool> Inserts(List<AssetsCompressorFactorVmo> vmoList) |
| | | { |
| | | var dtoList = Vmo2AddDtos(vmoList); |
| | | var bol = await _cal.Inserts(dtoList); |
| | | return bol; |
| | | } |
| | | |
| | | #endregion Insert |
| | | #endregion |
| | | |
| | | #region Update |
| | | |
| | | /// <summary> |
| | | /// æ´æ° |
| | | /// </summary> |
| | | public virtual async Task<bool> Update(AssetsCompressorSeriesVmo vmo) |
| | | public virtual async Task<bool> Update(AssetsCompressorFactorVmo vmo) |
| | | { |
| | | var dto = Vmo2UpdateDto(vmo); |
| | | var bol = await _cal.Update(dto); |
| | |
| | | /// <summary> |
| | | /// æ¹éæ´æ° |
| | | /// </summary> |
| | | public virtual async Task<bool> Updates(List<AssetsCompressorSeriesVmo> vmoList) |
| | | public virtual async Task<bool> Updates(List<AssetsCompressorFactorVmo> vmoList) |
| | | { |
| | | var dtoList = Vmo2UpdateDtos(vmoList); |
| | | var bol = await _cal.Updates(dtoList); |
| | | return bol; |
| | | } |
| | | |
| | | #endregion Update |
| | | |
| | | #region Delete |
| | | |
| | | /// <summary> |
| | | /// å
¨é¨å é¤ |
| | | /// æ´æ°æåºç |
| | | /// </summary> |
| | | public virtual async Task<bool> DeleteAll() |
| | | public virtual async Task<bool> UpdateSortCode(long ID, int SortCode) |
| | | { |
| | | var bol = await _cal.DeleteAll(); |
| | | var bol = await _cal.UpdateSortCode(ID, SortCode); |
| | | return bol; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¹éæ´æ°æåºç |
| | | /// </summary> |
| | | public virtual async Task<bool> UpdateSorter(List<Yw.Vmo.Sorter> Sorters) |
| | | { |
| | | var dtoList = Sorters.ToDtoList(); |
| | | var bol = await _cal.UpdateSorter(dtoList); |
| | | return bol; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region Delete |
| | | |
| | | /// <summary> |
| | | /// éè¿ ID å é¤ |
| | |
| | | return bol; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// éè¿ Ids å é¤ |
| | | /// </summary> |
| | | public virtual async Task<bool> DeleteByIds(List<long> Ids) |
| | | { |
| | | var bol = await _cal.DeleteByIds(Ids); |
| | | return bol; |
| | | } |
| | | |
| | | #endregion Delete |
| | | #endregion |
| | | |
| | | |
| | | } |
| | | } |