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

namespace MeterConditionLibrary
{
    /// <summary>
    /// 验证对射
    /// </summary>
    public class validParkStatus
    {
        public static int iCnt = 0;

        public void ValidMethod()
        {
            //未锁定的情况下
            if (!PbCache.isLockFrm)
            {
                //验证对射
                if (PbCache.monitor.validParkStatus == "0" || PbCache.isNotValid)
                {
                    PbCache.monitorResult.valid_park_status = true;
                }
                else
                {
                    PbCache.monitorResult.valid_park_status = PbCache.collect.parkStatus == 0 ? true : false;
                }
            }
        }
    }
}
