Ejemplo n.º 1
0
        public string GetPreAlarmMessage()
        {
            if (string.IsNullOrEmpty(this.SourceData))
            {
                return(string.Empty);
            }
            string str = string.Empty;
            int    num = Convert.ToInt16(this.SourceData.Substring(0, 2));

            str = "报警信息来源:" + this.method_1(num) + ",";
            int num2 = NumHelper.Convert16To10(this.SourceData.Substring(2, 4));

            return(((str + "报警类型:" + this.method_2(num2) + ",") + "报警时间:" + NumHelper.ConvertStringToDatetime(this.SourceData.Substring(6, 0x10)) + ",") + "警情信息:" + NumHelper.GetStringFromBase16ASCII(this.SourceData.Substring(30)).Replace("\0", "") + ",");
        }
Ejemplo n.º 2
0
        public string GetAlarmDirectionMessage()
        {
            if (string.IsNullOrEmpty(this.SourceData))
            {
                return(string.Empty);
            }
            string str = string.Empty;

            str = "报警督办ID:" + NumHelper.Convert16To10(this.SourceData.Substring(0x16, 8)) + ",";
            int num = Convert.ToInt16(this.SourceData.Substring(0, 2));

            str = str + "报警信息来源:" + this.method_1(num) + ",";
            int num2 = NumHelper.Convert16To10(this.SourceData.Substring(2, 4));

            str = ((str + "报警类型:" + this.method_2(num2) + ",") + "报警时间:" + NumHelper.ConvertStringToDatetime(this.SourceData.Substring(6, 0x10)) + ",") + "报警截止时间:" + NumHelper.ConvertStringToDatetime(this.SourceData.Substring(30, 0x10)) + ",";
            int num3 = Convert.ToInt16(this.SourceData.Substring(0x2e, 2));

            return((((str + "督办级别:" + this.method_0(num3) + ",") + "督办人:" + NumHelper.GetStringFromBase16ASCII(this.SourceData.Substring(0x30, 0x20)).Replace("\0", "") + ",") + "督办联系电话:" + NumHelper.GetStringFromBase16ASCII(this.SourceData.Substring(80, 40)).Replace("\0", "") + ",") + "督办人联系电子邮件:" + NumHelper.GetStringFromBase16ASCII(this.SourceData.Substring(120)).Replace("\0", "") + ",");
        }