设备管理

This commit is contained in:
qianhao.xu
2024-12-10 14:34:13 +08:00
parent d77e2953b7
commit ca725130e1
60 changed files with 7115 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
using System;
using DOAN.Model;
using DOAN.Model.Dto;
using System.Collections.Generic;
using DOAN.Model.MES.dev;
using DOAN.Model.MES.dev.Dto;
using Aliyun.OSS;
namespace DOAN.Service.MES.dev.IService
{
/// <summary>
/// 设备台账service接口
/// </summary>
public interface IDeviceAccountService : IBaseService<DeviceAccount>
{
PagedInfo<DeviceAccountDto> GetList(DeviceAccountQueryDto parm);
PagedInfo<DeviceAccountDto> GetList_Route(DeviceAccountQueryDto2 parm);
DeviceAccount GetInfo(int Id);
DeviceAccount AddDeviceAccount(DeviceAccount parm);
int UpdateDeviceAccount(DeviceAccount parm);
List<SelectTreeDto> GetSelectTree(DeviceAccountQueryDto parm);
int AddRelation(DeviceAccount_routeinspect_Dto parm, string CreatedBy);
int Remove_relation(string FkRouteInspectionPlanId, int FkDeviceAccountId);
PagedInfo<DeviceAccountDto> GetList_Point(DeviceAccountQueryDto3 parm);
int AddRelationPointAccount(DeviceAccount_pointinspect_Dto parm, string CreatedBy);
int RemoveRelationPointAccount(string FkPointInspectionPlanId, int FkDeviceAccountId);
DeviceStatusAnalysisDto GetDeviceStatus(int devicetype_id);
}
}

View File

@@ -0,0 +1,28 @@
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DOAN.Model.MES.dev.Dto;
namespace DOAN.Service.MES.dev.IService
{
/// <summary>
/// 设备数据分析
/// </summary>
public interface IDeviceDataAnalysisServcie
{
List<DeviceStatusAnalysisResultDto> DefaultTypePie(DeviceDefaultDto devicedefault);
DeviceFaultBarResultDto FaultTypeBar(DeviceDefaultDto devicedefault);
DeviceFaultLineResultDto FaultTypeLine(DeviceDefaultDto devicedefault);
DeviceRepairBarResultDto FaultTypeBarByDay(DeviceDefaultDto devicedefault);
TaskLineResultDto TaskLinebyDay(DeviceDefaultDto devicedefault);
PersonnelResponseResultDto PersonResponse(DeviceDefaultDto devicedefault);
FullScreenTotal GetAllTotal();
}
}

View File

@@ -0,0 +1,23 @@
using System;
using DOAN.Model.MES.dev;
using DOAN.Model.MES.dev.Dto;
using System.Collections.Generic;
using DOAN.Model;
namespace DOAN.Service.MES.dev.IService
{
/// <summary>
/// 设备检查项表单配置表service接口
/// </summary>
public interface IDeviceFormConfigService : IBaseService<DeviceFormConfig>
{
PagedInfo<DeviceFormConfigDto> GetList(DeviceFormConfigQueryDto parm);
DeviceFormConfig GetInfo(string Id);
DeviceFormConfig AddDeviceFormConfig(DeviceFormConfig parm);
int UpdateDeviceFormConfig(DeviceFormConfig parm);
}
}

View File

@@ -0,0 +1,31 @@
using System;
using DOAN.Model;
using System.Collections.Generic;
using DOAN.Model.MES.dev;
using DOAN.Model.MES.dev.Dto;
using Microsoft.AspNetCore.Mvc;
namespace DOAN.Service.MES.dev.IService
{
/// <summary>
/// 设备检查项service接口
/// </summary>
public interface IDeviceInspectService : IBaseService<DeviceInspect>
{
PagedInfo<DeviceInspectDto> GetList(DeviceInspectQueryDto parm);
PagedInfo<DeviceInspectDto> GetList2(DeviceInspectQueryDto2 parm);
DeviceInspect GetInfo(int Id);
DeviceInspect AddDeviceInspect(DeviceInspect parm);
int UpdateDeviceInspect(DeviceInspect parm);
int AddBindrelative(DeviceInspectQueryDto3 parm,string name);
int RemoveBindrelative(int account_id, int inspect_id);
int SortBindrelative(List<DeviceRelAccountInspect> parm);
}
}

View File

@@ -0,0 +1,23 @@
using System;
using DOAN.Model;
using System.Collections.Generic;
using DOAN.Model.MES.dev;
using DOAN.Model.MES.dev.Dto;
namespace DOAN.Service.MES.dev.IService
{
/// <summary>
/// 维修记录service接口
/// </summary>
public interface IDeviceMaintenanceRecordService : IBaseService<DeviceMaintenanceRecord>
{
PagedInfo<DeviceMaintenanceRecordDto> GetList(DeviceMaintenanceRecordQueryDto parm);
DeviceMaintenanceRecord GetInfo(string Id);
DeviceMaintenanceRecord AddDeviceMaintenanceRecord(DeviceMaintenanceRecord parm);
int UpdateDeviceMaintenanceRecord(DeviceMaintenanceRecord parm);
}
}

View File

@@ -0,0 +1,23 @@
using System;
using DOAN.Model;
using System.Collections.Generic;
using DOAN.Model.MES.dev;
using DOAN.Model.MES.dev.Dto;
namespace DOAN.Service.MES.dev.IService
{
/// <summary>
/// 点检任务service接口
/// </summary>
public interface IDevicePointInspectionPlanService : IBaseService<DevicePointInspectionPlan>
{
PagedInfo<DevicePointInspectionPlanDto> GetList(DevicePointInspectionPlanQueryDto parm);
DevicePointInspectionPlan GetInfo(string Id);
DevicePointInspectionPlan AddDevicePointInspectionPlan(DevicePointInspectionPlan parm);
int UpdateDevicePointInspectionPlan(DevicePointInspectionPlan parm);
}
}

View File

@@ -0,0 +1,23 @@
using System;
using DOAN.Model;
using System.Collections.Generic;
using DOAN.Model.MES.dev;
using DOAN.Model.MES.dev.Dto;
namespace DOAN.Service.MES.dev.IService
{
/// <summary>
/// 报修单service接口
/// </summary>
public interface IDeviceRepairService : IBaseService<DeviceRepair>
{
PagedInfo<DeviceRepairDto> GetList(DeviceRepairQueryDto parm);
DeviceRepair GetInfo(string Id);
DeviceRepair AddDeviceRepair(DeviceRepair parm);
int UpdateDeviceRepair(DeviceRepair parm);
}
}

View File

@@ -0,0 +1,23 @@
using System;
using DOAN.Model;
using System.Collections.Generic;
using DOAN.Model.MES.dev;
using DOAN.Model.MES.dev.Dto;
namespace DOAN.Service.MES.dev.IService
{
/// <summary>
/// 巡检计划service接口
/// </summary>
public interface IDeviceRouteInspectionPlanService : IBaseService<DeviceRouteInspectionPlan>
{
PagedInfo<DeviceRouteInspectionPlanDto> GetList(DeviceRouteInspectionPlanQueryDto parm);
DeviceRouteInspectionPlan GetInfo(string Id);
DeviceRouteInspectionPlan AddDeviceRouteInspectionPlan(DeviceRouteInspectionPlan parm);
int UpdateDeviceRouteInspectionPlan(DeviceRouteInspectionPlan parm);
}
}

View File

@@ -0,0 +1,24 @@
using System;
using DOAN.Model;
using DOAN.Model.Dto;
using DOAN.Model.MES.dev.Dto;
using DOAN.Model.MES.dev;
using System.Collections.Generic;
namespace DOAN.Service.MES.dev.IService
{
/// <summary>
/// 巡检/点检任务结果表service接口
/// </summary>
public interface IDeviceTaskExecuteResultService : IBaseService<DeviceTaskExecuteResult>
{
PagedInfo<DeviceTaskExecuteResultDto> GetList(DeviceTaskExecuteResultQueryDto parm);
DeviceTaskExecuteResult GetInfo(string Id);
DeviceTaskExecuteResult AddDeviceTaskExecuteResult(DeviceTaskExecuteResult parm);
int UpdateDeviceTaskExecuteResult(DeviceTaskExecuteResult parm);
}
}

View File

@@ -0,0 +1,55 @@
using System;
using DOAN.Model;
using System.Collections.Generic;
using DOAN.Model.MES.dev;
using DOAN.Model.MES.dev.Dto;
using Microsoft.AspNetCore.Mvc;
namespace DOAN.Service.MES.dev.IService
{
/// <summary>
/// 任务执行service接口
/// </summary>
public interface IDeviceTaskExecuteService : IBaseService<DeviceTaskExecute>
{
PagedInfo<DeviceTaskExecuteDto> GetList(DeviceTaskExecuteQueryDto parm);
DeviceTaskExecute GetInfo(string Id);
DeviceTaskExecute AddDeviceTaskExecute(DeviceTaskExecute parm);
int UpdateDeviceTaskExecute(DeviceTaskExecute parm);
int Update_task_status(DeviceTaskExecuteQueryDto2 parm);
bool TruncateDeviceTaskExecute();
(string, object, object) ImportDeviceTaskExecute(List<DeviceTaskExecute> list);
int ScanEveryTask();
int ExecutionTask_point(string id);
List<DeviceAccount> AchieveTaskbindDevice(string id);
List<DeviceInspect> AchieveDevicebindInspect(int fk_device_id, string fkPlanId, int planType);
List<DeviceFormConfig> AchieveInspectbindForm(int fk_device_inspect_id);
List<DeviceTaskExecuteResult1_result> AchieveFormResult2(DeviceTaskExecuteResult1QueryDto_TaskExecute query);
int UpdateFormResult(DeviceTaskExecuteResultDto result);
int AddDeviceTaskExecute(string Id,string name);
/// <summary>
/// 增加任务完成时间
/// </summary>
/// <param name="Id"></param>
/// <returns></returns>
int AddTaskFinallyTime(string Id);
}
}

View File

@@ -0,0 +1,26 @@
using System;
using DOAN.Model;
using DOAN.Model.Dto;
using System.Collections.Generic;
using DOAN.Model.MES.dev.Dto;
using DOAN.Model.MES.dev;
namespace DOAN.Service.MES.dev.IService
{
/// <summary>
/// 1.设备类型service接口
/// </summary>
public interface IDeviceTypeService : IBaseService<DeviceType>
{
List<DeviceTypeDto> GetList(DeviceTypeQueryDto parm);
DeviceType GetInfo(int Id);
DeviceType AddDeviceType(DeviceType parm);
int UpdateDeviceType(DeviceType parm);
}
}