/// <summary> /// 更新下发命令 /// </summary> /// <param name="command"></param> /// <param name="lpszVal"></param> /// <param name="lpszdateTime"></param> /// <param name="errCode"></param> /// <param name="errTxt"></param> public static void DbCmdRefresh(CommandVModel command, string lpszVal, DateTime lpszdateTime, AlarmType errCode, string errTxt) { if (command == null || lpszdateTime.Year < 2000) { return; } if (command.Module_id == 0) { return; } DataProcessBLL bll = new DataProcessBLL(command.Ledger, Config.Uid); if (command.Log_id != 0) { //FileLog.WriteLog(command.LpszDbVarName + " 后台Log:"+ command.Log_id + JsonHelper.Serialize(command)); bll.UpdataCmd(command, (int)errCode, errTxt); } else { if (command.IsNDb == true) { /*更新记录*/ //FileLog.WriteLog(command.LpszDbVarName + " 后台标示IsNDb:true :" + JsonHelper.Serialize(command)); bll.AddCmdLog(command, (int)errCode, errTxt); } } }