|
|
using SlnMesnac.Business.@base;
|
|
|
using SlnMesnac.Plc;
|
|
|
using SlnMesnac.Repository;
|
|
|
using SlnMesnac.Repository.service;
|
|
|
using SlnMesnac.Serilog;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Text;
|
|
|
|
|
|
#region << 版 本 注 释 >>
|
|
|
/*--------------------------------------------------------------------
|
|
|
* 版权所有 (c) 2024 WenJY 保留所有权利。
|
|
|
* CLR版本:4.0.30319.42000
|
|
|
* 机器名称:T14-GEN3-7895
|
|
|
* 命名空间:SlnMesnac.Business
|
|
|
* 唯一标识:73cd3d99-8387-4ff6-9276-8eeb424e2aa2
|
|
|
*
|
|
|
* 创建者:WenJY
|
|
|
* 电子邮箱:
|
|
|
* 创建时间:2024-11-07 9:51:55
|
|
|
* 版本:V1.0.0
|
|
|
* 描述:
|
|
|
*
|
|
|
*--------------------------------------------------------------------
|
|
|
* 修改人:
|
|
|
* 时间:
|
|
|
* 修改说明:
|
|
|
*
|
|
|
* 版本:V1.0.0
|
|
|
*--------------------------------------------------------------------*/
|
|
|
#endregion << 版 本 注 释 >>
|
|
|
namespace SlnMesnac.Business
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// Inspection mode 巡检模式
|
|
|
/// </summary>
|
|
|
public class InspModeBusiness : BaseBusiness
|
|
|
{
|
|
|
private readonly Irecord_inspection_cabinetServices _service;
|
|
|
public InspModeBusiness(SerilogHelper log, PlcAbsractFactory plc, Ibase_cabinet_infoServices base_Cabinet_InfoServices, Ibase_busbar_infoServices base_Busbar_InfoServices, Irecord_inspection_cabinetServices service) : base(log, plc, base_Cabinet_InfoServices, base_Busbar_InfoServices)
|
|
|
{
|
|
|
_service = service;
|
|
|
}
|
|
|
|
|
|
public void Start(string taskCode,string filePath)
|
|
|
{
|
|
|
record_inspection_cabinet record_Inspection = new record_inspection_cabinet();
|
|
|
record_Inspection.taskCode = taskCode;
|
|
|
record_Inspection.filePath = filePath;
|
|
|
record_Inspection.beginTime = DateTime.Now;
|
|
|
_service.Insert(record_Inspection);
|
|
|
}
|
|
|
|
|
|
public void Stop(string taskCode, string filePath)
|
|
|
{
|
|
|
|
|
|
}
|
|
|
}
|
|
|
}
|