using HStation.CAL;
|
using Yw.DAL.Basic;
|
|
namespace HStation.BLL
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public class XhsProject : IXhsProject
|
{
|
private readonly HStation.CAL.IXhsProject _cal = CALCreateHelper.CreateCAL<HStation.CAL.IXhsProject>();
|
|
#region Query
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<List<XhsProjectDto>> GetAll()
|
{
|
return await _cal.GetAll();
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<XhsProjectDto> GetByID(long ID)
|
{
|
return await _cal.GetByID(ID);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<List<XhsProjectDto>> GetByIds(List<long> Ids)
|
{
|
return await _cal.GetByIds(Ids);
|
}
|
|
#endregion Query
|
|
#region Insert
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<long> Insert(AddXhsProjectInput model)
|
{
|
return await _cal.Insert(model);
|
}
|
|
public async Task<long> InsertEx(AddXhsProjectInput projectInput, AddXhsProjectItemInput itemInput, AddXhsProjectItemModelInput modelInput, AddXhsProjectItemModelMapInput MapInput)
|
{
|
return await _cal.InsertEx(projectInput, itemInput, modelInput, MapInput);
|
}
|
|
public async Task<bool> DeleteEx(long ID)
|
{
|
return await _cal.DeleteEx(ID);
|
}
|
|
public async Task<bool> UpdateEx(UpdateXhsProjectInput projectInput, UpdateXhsProjectItemInput itemInput)
|
{
|
return await _cal.UpdateEx(projectInput, itemInput);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> Inserts(List<AddXhsProjectInput> list)
|
{
|
return await _cal.Inserts(list);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> BulkInserts(List<AddXhsProjectInput> list)
|
{
|
return await _cal.BulkInserts(list);
|
}
|
|
#endregion Insert
|
|
#region Update
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> Update(UpdateXhsProjectInput model)
|
{
|
return await _cal.Update(model);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> Updates(List<UpdateXhsProjectInput> list)
|
{
|
return await _cal.Updates(list);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> BulkUpdates(List<UpdateXhsProjectInput> list)
|
{
|
return await _cal.BulkUpdates(list);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> UpdateSortCode(long ID, int SortCode)
|
{
|
return await _cal.UpdateSortCode(ID, SortCode);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> UpdateSorter(List<UpdateSortCodeInput> Sorters)
|
{
|
return await _cal.UpdateSorter(Sorters);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public Task<bool> UpdateParas(long ID, Dictionary<string, string> Paras)
|
{
|
return _cal.UpdateParas(ID, Paras);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public Task<bool> UpdateFlags(long ID, List<string> Flags)
|
{
|
return _cal.UpdateFlags(ID, Flags);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public Task<bool> UpdateTagName(long ID, string TagName)
|
{
|
return _cal.UpdateTagName(ID, TagName);
|
}
|
|
#endregion Update
|
|
#region Delete
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> DeleteByID(long ID)
|
{
|
return await _cal.DeleteByID(ID);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> DeleteByIds(List<long> Ids)
|
{
|
return await _cal.DeleteByIds(Ids);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> DeleteAll()
|
{
|
return await _cal.DeleteAll();
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public Task<bool> UpdateUseStatus(long ID, int UseStatus)
|
{
|
return _cal.UpdateUseStatus(ID, UseStatus);
|
}
|
|
#endregion Delete
|
}
|
}
|