Esempio n. 1
0
        /// <summary>
        /// 比对采样
        /// </summary>
        private void CompareSample(HJ212Model model)
        {
            string content = string.Empty;
            string PolId   = Deserialize.CompareSample(model.CP);

            if (string.IsNullOrEmpty(PolId))
            {
                content = Serialize.ExecuteResponse(config, model.QN, ExecuteResult.CommandError);
            }
            else
            {
                content = Serialize.ExecuteResponse(config, model.QN, ExecuteResult.Success);
            }
            SendData(content);
        }