private void Single(byte[] content)
        {
            try
            {
                if (content.Length != 4)
                {
                    MyLibrary.Log.Fatal(NAME + "长度出错;原始代码:" + MyLibrary.ConverUtil.ByteToHStr(Content));
                }

                DJJ_2049_Mod Cm = DJJ_2049_Dal.GetMod(content);
                Cm.基站编号 = (uint)StationId;
                Cm.平台时间 = this.PlatformTime;

                Pro_InDatabase_LY_Mod info = DJJ_2049_Dal.Get_Pro_Mod(Cm, "2049");

                Pro_InDatabase_LY_Bll c = new Pro_InDatabase_LY_Bll(info);

                string Result = c.Exec();

                if (Result != "0")
                {
                    MyLibrary.Log.Debug(NAME + "出错:" + Result + " 原始代码:" + OriginalCode);
                }
            }
            catch (Exception ex)
            {
                MyLibrary.Log.Error(NAME + "错误:" + ex.Message + " 原始代码:" + OriginalCode);
            }
        }
Exemplo n.º 2
0
        public static DJJ_2049_Mod GetMod(byte[] content)
        {
            DJJ_2049_Mod info = new DJJ_2049_Mod();

            info.源卡ID = ConverUtil.ByteToStr_4(content, 0);

            return(info);
        }
Exemplo n.º 3
0
        public static Pro_InDatabase_LY_Mod Get_Pro_Mod(DJJ_2049_Mod info, string cmdId)
        {
            Pro_InDatabase_LY_Mod m = new Pro_InDatabase_LY_Mod();

            m.PI_DEVICETIME   = info.平台时间;
            m.PI_SERVICETIME  = info.平台时间;
            m.PI_DEVICECODE   = info.基站编号.ToString();
            m.PI_DEVICETYPE   = "";
            m.PI_PROTOCOLTYPE = cmdId;
            m.PI_CARDID       = info.源卡ID;

            return(m);
        }