using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common
{
    /// <summary>
    /// 入库秤缓存
    /// </summary>
    public class PbStorageCache
    {
        /// <summary>
        /// 系统路径
        /// </summary>
        public static readonly string path = System.Environment.CurrentDirectory;

        /// <summary>
        /// 监控信息
        /// </summary>
        public static List<MeterWorkStockOnline> ltMonitor { get; set; }

        /// <summary>
        /// 实时表采集的数据
        /// </summary>
        public static StorageCollectModel collect { get; set; }
        public static List<StorageCollectModel> ltCollect { get; set; }

        /// <summary>
        /// 计量编号，用于后面截图后生成图片的编号使用
        /// </summary>
        public static string actualFirstNo { get; set; }

        /// <summary>
        /// 提示信息，用于写入到界面的提示信息中
        /// </summary>
        public static string ResultMessage { get; set; }

        /// <summary>
        /// 计量点配置信息
        /// </summary>
        public static MeterBaseSpotInfo sportInfo { get; set; }
        public static List<MeterBaseSpotInfo> sportInfos { get; set; }

        /// <summary>
        /// 摄像头配置信息
        /// </summary>
        public static MeterBaseVideoinfo videoInfo { get; set; }
        public static List<MeterBaseVideoinfo> ltVideoInfo { get; set; }

        /// <summary>
        /// 摄像头配置信息拆分结果
        /// </summary>
        public static List<MeterBaseVideoChild> videoChild { get; set; }

        /// <summary>
        /// 播放前修改为false，播放完修改为true
        /// </summary>
        public static bool voiceOver = true;

        /// <summary>
        /// 读取音频信息
        /// </summary>
        public static List<string> voiceInfo { get; set; }


        public static List<MeterBaseCalibraRelation> relations { get; set; }

        /// <summary>
        /// 当重量大于500时开始给值，发现有值后不再设定值
        /// 当重量小于300时发现有值则设置为null
        /// </summary>
        public static DateTime? dtStartTime { get; set; }

        /// <summary>
        /// 秤体量程信息
        /// </summary>
        public static List<MeterBaseScaleRange> ltRange { get; set; }

        /// <summary>
        /// 秤体信息配置
        /// </summary>
        public static List<MeterBaseScalePoint> scalePoints { get; set; }

        public static void Load()
        {
            //isLockFrm = false;
            dtStartTime = null;
            actualFirstNo = "";
            ResultMessage = "";
        }
    }
}
