using Common.vo.pb;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
namespace Common
{
///
/// 总缓存信息
///
public class PbCache
{
///
/// 检斤类型
///
public static string bussinessTypeName { get; set; }
public static string bussinessTypeCode { get; set; }
public static string ledMessage { get; set; }
///
/// 全部提示信息
///
public static string resultMsgAll { get; set; }
///
/// 第一次稳定重量
///
public static string resultWgt { get; set; }
///
/// 第一次稳定车号
///
public static string resultCarNo { get; set; }
///
/// 是否显示保存按钮
///
public static bool isShowBtnSave { get; set; }
///
/// 是否显示保存按钮<禁止保存时的提示信息>
///
public static bool isShowBtnSaveMsg { get; set; }
///
/// 是否测试环境
///
public static bool isTest { get; set; }
///
/// 是否通过皮重
///
public static bool isTareWgt { get; set; }
///
/// 车号数据来源(1-正常,2-rfid,3-扫码,4-车号重置)
///
public static int carNoSource = 0;
///
/// 是否打开手动选择毛皮
///
public static bool isSelFrmMat { get; set; }
///
/// 是否皮重(true=皮重;false=毛重)
///
public static bool isTareWeight { get; set; }
///
/// 二次资源选择是否成功(true=选择正确;false=选择错误)
///
public static bool isChooseSecondResourceFail { get; set; }
///
/// 是否超时报警
///
public static bool isOvertimeAlarm { get; set; }
///
/// 是否已经进行零点报警
///
public static bool isZeroAlarm { get; set; }
///
/// 系统路径
///
public static readonly string path = System.Environment.CurrentDirectory;
///
/// 内倒计量时使用,这个初始化默认给false
/// 若内倒中验证存在一次计量数据,那么这个值给true
///
public static bool isHaveFirst { get; set; }
///
/// 计量界面锁定状态,已保存后,锁定界面等重量小于500kg后再重置该状态
///
public static bool isLockFrm { get; set; }
///
/// 当重量大于500时开始给值,发现有值后不再设定值
/// 当重量小于300时发现有值则设置为null
///
public static DateTime? dtStartTime { get; set; }
///
/// 在客户点击了保存的时候开始锁定,保存完成后取消锁定
/// 计量重量取值锁定 true则暂停取重信息写入到界面
/// 此时后台仍在取重量,只是不写入到界面而已,待重量小于500kg后再重置该状态
///
public static bool isLockWgt { get; set; }
///
/// 锁定后的重量
///
public static double lockWgt { get; set; }
public static bool isPre = false;
public static int voiceType { get; set; }
public static MeterWorkCarActualFirst mwPreFirst { get; set; }
public static MeterWorkCarActualFirst yardFirst { get; set; }
public static MeterWorkCarActual yardActual { get; set; }
///
/// 附加重量
///
public static double addWgt { get; set; }
///
/// 锁定后的车号
///
public static string lockCarNo { get; set; }
///
/// 计量编号,用于后面截图后生成图片的编号使用
///
public static string actualFirstNo { get; set; }
///
/// 二维码代码
///
public static string strQRCode { get; set; }
///
/// 存储图片对象
///
public static List listImage = new List();
///
/// 提示信息,用于写入到界面的ListBox中
///
public static string ResultMessage { get; set; }
///
/// 提示信息,用于写入到LED屏中
///
public static string LEDResultMessage { get; set; }
///
/// 提示信息,用于写入到监控表中
///
public static string monitorResultMessage { get; set; }
///
/// 业务类型 空则回复初始状态 001006003内倒计量 001006001采购进厂 001006002销售出厂
///
public static List businessType { get; set; }
///
/// 计量点配置信息
///
public static MeterBaseSpotInfo sportInfo { get; set; }
public static List sportInfos { get; set; }
public static List ltWorkMonitor { get; set; }
///
/// 智能料场
///
public static WeightInfoBeta weightInfoBeta { get; set; }
///
/// 摄像头配置信息
///
public static MeterBaseVideoinfo videoInfo { get; set; }
public static List ltVideoInfo { get; set; }
///
/// 摄像头配置信息拆分结果
///
public static List videoChild { get; set; }
///
/// 历史皮重计算配置
///
public static MeterBaseHisTareCount tareCount { get; set; }
///
/// 期限皮重计算配置
///
public static MeterBaseTermTareCount termTareCount { get; set; }
///
/// 秤体量程配置
///
public static MeterBaseScaleRange range { get; set; }
public static List ltRange { get; set; }
///
/// 危化品限载配置表
///
public static List limit { get; set; }
///
/// 时间间隔
///
public static List timeSpace { get; set; }
///
/// 期限皮重时间
///
public static List tareTime { get; set; }
///
/// 停留超时
///
public static List holdTime { get; set; }
///
/// 实时表采集的数据
///
public static CollectModel collect { get; set; }
///
/// 对应实时库的采集点编号
///
public static string collect_no { get; set; }
///
/// 计量监控表
/// 每隔1秒刷新一次数据,在点击计量的时候查一次后不再验证
/// 通过下面的isQueryMonitor来控制是否查询,直到计量点击取消则
/// 继续验证,或者等车辆上秤重量大于500kg后开启
///
public static MeterWorkMonitor monitor { get; set; }
public static bool isQueryMonitor { get; set; }
///
/// 验证结果
///
public static MeterWorkMonitorResult monitorResult { get; set; }
///
/// 播放前修改为false,播放完修改为true
///
public static bool voiceOver = true;
///
/// 读取音频信息
///
public static List voiceInfo { get; set; }
///
/// 扫码枪扫描的信息
///
public static string strCode { get; set; }
///
/// 校秤基础数据
///
public static List relations { get; set; }
///
/// 初始化一次,重量小于300kg后调用一次
///
public static void Load()
{
isHaveFirst = false;
isLockFrm = false;
isLockWgt = false;
dtStartTime = null;
lockWgt = 0;
addWgt = 0;
lockCarNo = "";
actualFirstNo = "";
ResultMessage = "";
isShowTare = false; //是否单显示皮重
isQueryMonitor = false;
monitorResult = new MeterWorkMonitorResult();
isTermTare = false;
isAllowRecover = false; //2021年6月16日 是否需要复磅,若需要则显示复磅按钮
carRecover = null; //复磅计量结果集
}
///
/// 是否可用期限皮重
/// ture可以,false不可以
///
public static bool isTermTare { get; set; }
///
/// LED信息展示
///
public static string ledInfo { get; set; }
///
/// 旧LED数据
///
public static string OldLedInfo { get; set; }
///
/// 计量卸货时间
///
public static List unloadTimes { get; set; }
///
/// 计量车卡配置信息
///
public static List ltCarCard { get; set; }
///
/// 计量场景配置信息
///
public static List ltSceneRegister { get; set; }
///
/// 不验证
///
public static bool isNotValid { get; set; }
///
/// 校秤计量关联表
///
public static List ltBaseCalibraNumRel { get; set; }
///
/// 汽车一次计量数据过期时间
///
public static double isEndHour { get; set; }
//public static bool? bFlag { get; set; }
///
/// 是否单显示皮重
///
public static bool isShowTare { get; set; }
///
/// 复磅计量数据
///
public static MeterWorkCarRecover carRecover { get; set; }
///
/// 是否允许复磅
///
public static bool isAllowRecover { get; set; }
///
/// 是否厂内车
///
public static bool isInnerCar { get; set; }
///
/// 是否一次数据
///
public static bool isActual { get; set; }
///
/// 临时图片ID
///
public static string tempImgId { get; set; }
///
/// 硬盘录像机拍照是否成功
///
public static bool shotSuccess { get; set; }
///
/// 数采实时库返回结果
///
public static JArray jArray { get; set; }
///
/// 数采实时库返回结果
///
public static string icoredbType { get; set; }
#region 扫码器相关
///
/// 扫码器是否正常
///
public static bool ScanCodeError { get; set; }
///
/// 扫码器错误信息
///
public static string ScanCodeErrorMessage { get; set; }
// 是否有重量,扫码有效
public static string strState = "";
// 允许扫码
// true:扫码有效;false:扫码无效
public static bool isValidScan = true;
#endregion
}
}