| | |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_ISerialPortRepository; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | |
| | | { |
| | | public TemplateServer(ITemplateRepository BaseDal) : base(BaseDal) |
| | | { |
| | | |
| | | } |
| | | public override PageGridData<Dt_Template> GetPageData(PageDataOptions options) |
| | | { |
| | | OrderByParameters = new Dictionary<string, SqlSugar.OrderByType> { |
| | | { |
| | | nameof(Dt_Template.TemplateID),SqlSugar.OrderByType.Asc |
| | | } }; |
| | | return base.GetPageData(options); |
| | | } |
| | | |
| | | |
| | | |
| | | public WebResponseContent GetTemp(int id) |
| | | { |
| | | try |
| | | { |
| | | var res= BaseDal.QueryData(x => x.TemplateID == id); |
| | | return new WebResponseContent { Status = true, Data = res }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | return new WebResponseContent { Status = true, Message="澶辫触"+ex }; |
| | | } |
| | | } |
| | | } |
| | | } |