| | |
| | | using WIDESEA_SerialPortRepository; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_DTO.SerialPort; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | | |
| | | namespace WIDESEAWCS_TaskInfoService |
| | | { |
| | | public class TorqueOpServer : ServiceBase<Dt_TorqueOp, TorqueOpRepository>, ITorqueOpServer |
| | | public class TorqueOpServer : ServiceBase<Dt_TorqueOp, ITorqueOpRepository>,ITorqueOpServer |
| | | { |
| | | public TorqueOpServer(TorqueOpRepository BaseDal) : base(BaseDal) |
| | | public TorqueOpServer(ITorqueOpRepository BaseDal) : base(BaseDal) |
| | | { |
| | | |
| | | } |
| | | } |
| | | |
| | | public override PageGridData<Dt_TorqueOp> GetPageData(PageDataOptions options) |
| | | { |
| | | OrderByParameters = new Dictionary<string, SqlSugar.OrderByType> { |
| | |
| | | } }; |
| | | return base.GetPageData(options); |
| | | } |
| | | |
| | | |
| | | public WebResponseContent Checkvalue(GetTorDTO getTorDTO) |
| | | { |
| | | try |
| | | { |
| | | var op = BaseDal.QueryData(x => x.GroupOp == getTorDTO.grop && x.ProcessSte == getTorDTO.setnum &&x.TakeId==getTorDTO.takeid); |
| | | if (op==null) |
| | | { |
| | | return new WebResponseContent { Status = false, Message = "æ²¡ææ¾å°è¯¥ä»»å¡å·ï¼"}; |
| | | } |
| | | return new WebResponseContent { Status = true, Data = op }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | return new WebResponseContent { Status = false,Message="æ¥è¯¢å¤±è´¥ï¼"+ex.Message }; |
| | | } |
| | | } |
| | | } |
| | | } |