| | |
| | | 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 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 }; |
| | | } |
| | | } |
| | | } |
| | | } |