Ejemplo n.º 1
0
        public void CallSQLWithError(string user, string method, string errorMessage)
        {
            string crtlvl = "SELECT * FROM " + tablename + " WHERE " + errorMessage + " IS NOT NULL;";

            //string sql = SQLHelper.GetSqlCommand(user, method, errorMessage, "DBMID");
            SQLHelper.ExecuteCommand(crtlvl);

            //foreach (DataRow dataRow in Table.Rows)
            //{
            //    foreach (var item in dataRow.ItemArray)
            //    {
            //        Console.WriteLine(item);
            //    }
            //}
        }
Ejemplo n.º 2
0
        public int LogErrorEvent(string user, string method, string errorMessage)
        {
            int crt = SQLHelper.GetCritcalLevel(method, errorMessage, N, M);

            if (crt > 4)
            {
                Console.WriteLine("*********ALARM**********");
            }

            string sql = SQLHelper.GetSqlCommand(user, method, errorMessage, "DBMID");

            SQLHelper.ExecuteCommand(sql);

            return(crt);
        }
Ejemplo n.º 3
0
        public void LogSuccessfulEvent(string user, string method)
        {
            string sql = SQLHelper.GetSqlCommand(user, method, "NULL", "DBMID");

            SQLHelper.ExecuteCommand(sql);
        }
Ejemplo n.º 4
0
        public void LogErrorEvent(string user, string method, string errorMessage)
        {
            string sql = SQLHelper.GetSqlCommand(user, method, errorMessage, "DBMID");

            SQLHelper.ExecuteCommand(sql);
        }