IFeedbackHeatService.cs 3.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Collections.ObjectModel;
using FLY.FeedbackRenZiJia.Common;
using FObjBase;
using System.Text.RegularExpressions;
using System.Net;
11
using FObjBase.Reflect;
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122

namespace FLY.FeedbackRenZiJia.IService
{
    public interface IFeedbackHeatService : INotifyPropertyChanged
    {
        #region 参数

        /// <summary>
        /// 自控使能, 不保存!!!
        /// </summary>
        bool IsAuto { get; set; }

        /// <summary>
        /// 加热后起效延时,单位s;
        /// 从加热,到起效,再到被测量时间=Delay+mRenZiJiaService.FilmLength/mRenZiJiaService.Velocity
        /// </summary>
        int Delay { get; set; }

        /// <summary>
        /// 有检测功能
        /// </summary>
        bool HasCheck { get; set; }

        /// <summary>
        /// 检测线速度 使能
        /// </summary>
        bool HasCheckFilmVelocity { get; set; }
        /// <summary>
        /// 手动加热步进
        /// </summary>
        int Step { get; set; }

        #endregion
        #region 动态数据


        /// <summary>
        /// 通道数, 从测厚仪获取的!!!!
        /// </summary>
        int ChannelCnt { get; }
        /// <summary>
        /// 测厚仪分区数, 从测厚仪获取的!!!!
        /// </summary>
        int NBolts { get; }

        /// <summary>
        /// 保存的加热策略名称
        /// </summary>
        string HeatsProductName { get; }

        /// <summary>
        /// 连接到PLC?
        /// </summary>
        bool IsConnectedWithPLC { get; }

        /// <summary>
        /// 上一次加热修改时间
        /// </summary>
        DateTime LastChangedTime { get; }




        #endregion


        #region 异常检测

        /// <summary>
        /// 当前风机启动中
        /// </summary>
        bool HasFan { get; }

        /// <summary>
        /// 加热棒有电流
        /// </summary>
        bool HasElectricity { get; }

        /// <summary>
        /// 检测动作 使能
        /// </summary>
        bool CheckEnable { set; get; }


        /// <summary>
        /// 当前正在检测的加热通道
        /// </summary>
        int CheckNo { get; }

        /// <summary>
        /// 烧了的加热棒
        /// </summary>
        bool[] Bads { get; }

        #endregion

        /// <summary>
        /// 参数应用
        /// </summary>
        void Apply();

        /// <summary>
        /// 保存当前加热量
        /// </summary>
        void SaveHeats(string productname);



        /// <summary>
        /// 获取保存的加热量文件列表 返回类型为 List&lt;string&gt;
        /// </summary>
123 124 125 126
        /// <param name="asyncDelegate"></param>
        /// <param name="asyncContext"></param>
        [Call(typeof(List<string>))]
        void GetHeatsFileList(AsyncCBHandler asyncDelegate, object asyncContext);
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163

        /// <summary>
        /// 删除 加热量文件
        /// </summary>
        /// <param name="productname"></param>
        void DelHeatsFile(string productname);

        /// <summary>
        /// 加载 加热量文件 
        /// </summary>
        /// <param name="filename"></param>
        void LoadHeatsFile(string productname);

        #region 撤销
        /// <summary>
        /// 撤销的序号
        /// </summary>
        int UndoIdx { get; }
        /// <summary>
        /// 撤销中
        /// </summary>
        bool IsInUndo { get; }

        /// <summary>
        /// 这次撤销动作的时间
        /// </summary>
        DateTime UndoTime { get; }
        //UndoIdx-- 
        void Undo();
        /// <summary>
        /// UndoIdx++
        /// </summary>
        void Redo();
        #endregion
    }

}