Пример #1
0
        public bool ExistTSMailService(string TimerID)
        {
            MySqlCommand oSqlCommand = new MySqlCommand();
            string       sqlQuery    = "Select SysID from tblservicetimer"
                                       + " Where 1=1 "
                                       + " and TimerID=@TimerID";

            try
            {
                oSqlCommand.Parameters.AddWithValue("@TimerID", TimerID);
                bool respond = Mycommon.ExistIntable(sqlQuery, oSqlCommand);
                return(respond);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Пример #2
0
        public bool  ExistEssencialDecission(int SysID)
        {
            MySqlCommand oSqlCommand = new MySqlCommand();
            string       sqlQuery    = "Select SysID from ecoessencialdecission"
                                       + " Where 1=1 "
                                       + " and SysID=@SysID";

            try
            {
                oSqlCommand.Parameters.AddWithValue("@SysID", SysID);
                bool respond = Mycommon.ExistIntable(sqlQuery, oSqlCommand);
                return(respond);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }