예제 #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
파일: Email.cs 프로젝트: manjulaup/LinkRepo
        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);
            }
        }