Ejemplo n.º 1
0
        public bool Execute()
        {
            try
            {
                if (RepeatData.IsRepeatData(_content))
                {
                    MyLibrary.Log.RepeatDataInfo("基站编号:" + StationId.ToString() + " 原始代码:" + OriginalCode);
                    return(true);
                }

                DJJ_61443_8016_01_Mod Cm = DJJ_61443_8016_01_Dal.GetMod(this._content);
                Cm.基站编号 = (uint)StationId;
                Cm.平台时间 = this.PlatformTime;

                Pro_InDatabase_LY_Mod info = DJJ_61443_8016_01_Dal.Get_Pro_Mod(Cm);

                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);
            }

            return(true);
        }
        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);
            }
        }
        public bool Execute()
        {
            try
            {
                DJJ_2050_Mod Cm = DJJ_2050_Dal.GetMod(Content);
                Cm.基站编号 = (uint)StationId;
                Cm.平台时间 = this.PlatformTime;

                Pro_InDatabase_LY_Mod info = DJJ_2050_Dal.Get_Pro_Mod(Cm, "2050");

                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);
            }

            return(true);
        }