Beispiel #1
0
        void MFCC_Base_OnOutputChanged(OutputTCBase tc, string newOutputStr)
        {
            if (!((TCBase)tc).IsEnable)
              return;

              dbServer.SendSqlCmd("update tblDeviceConfig set display='"+ newOutputStr+"' ,device_display='"+newOutputStr+"',update_time='"+SQL.SQL.getTimeStampString(DateTime.Now)+"' where devicename='"+tc.DeviceName+"'");
               //   dbServer.SendSqlCmd(string.Format("insert into tblDeviceStateLog (devicename,timestamp,type,display) values('{0}','{1}','D','{2}')", tc.DeviceName, DB2.Db2.getTimeStampString(System.DateTime.Now),newOutputStr));
              ConsoleServer.WriteLine(tc.DeviceName + " change to " + newOutputStr);
        }
Beispiel #2
0
        void MFCC_Base_OnOutputDataCompareWrongEvent(OutputTCBase tc, string hostStr,string tcStr)
        {
            if (!((TCBase)tc).IsEnable)
              return;
              string sqlStr = "insert into tblDeviceComparisonLog (devicename,timestamp,display,device_display) values('{0}','{1}','{2}','{3}')";

              dbServer.SendSqlCmd(string.Format(sqlStr, tc.DeviceName, SQL.SQL.getTimeStampString(System.DateTime.Now), hostStr, tcStr));
        }
Beispiel #3
0
 void MFCC_Base_OnOutputChanged(OutputTCBase tc, string newOutputStr)
 {
     dbServer.SendSqlCmd(string.Format("insert into tblDeviceStateLog (devicename,timestamp,type,display) values('{0}','{1}','D','{2}')", tc.DeviceName, DB2.Db2.getTimeStampString(System.DateTime.Now),newOutputStr));
       ConsoleServer.WriteLine(tc.DeviceName + " change to " + newOutputStr);
 }