Example #1
0
        public static string GetDeletedEmployee(string dbValue)         //get name of deleted Employee
        {
            BaseMethods.ExecuteSqlQuery("workernumactual.sql");

            string returnQuery = BaseMethods.GetDataFromDb("select worker_name from workernumactual where worker_name = '" + dbValue + "'");

            return(returnQuery);
        }
Example #2
0
        public static string GetPosition(string dbValue)         //get Position
        {
            string returnQuery = BaseMethods.GetDataFromDb("select job_name from jobnum where job_name = '" + dbValue + "'");

            if (returnQuery == string.Empty)
            {
                Assert.Fail();
            }
            return(returnQuery);
        }
Example #3
0
        public static string GetCompany(string dbValue)         //get name of Company
        {
            string returnQuery = BaseMethods.GetDataFromDb("select dep_name from firmnum where dep_name = '" + dbValue + "'");

            if (returnQuery == string.Empty)
            {
                Assert.Fail();
            }
            return(returnQuery);
        }
Example #4
0
        public static string GetDepartment(string dbValue)         //get name of Department
        {
            string returnQuery = BaseMethods.GetDataFromDb("select dep_name from departnum where dep_name = '" + dbValue + "'");

            if (returnQuery == string.Empty)
            {
                Assert.Fail();
            }
            return(returnQuery);
        }
Example #5
0
        public static string GetReport(string dbValue)         //get name of Report
        {
            string returnQuery = BaseMethods.GetDataFromDb("select name from reports_hidden_status where name = '" + dbValue + "'");

            if (returnQuery == string.Empty)
            {
                Assert.Fail();
            }
            return(returnQuery);
        }
Example #6
0
        public static string GetCheckpoint(string dbValue)         //get name of Device
        {
            string returnQuery = BaseMethods.GetDataFromDb("select name from restapi.checkpoint where name = '" + dbValue + "'");

            if (returnQuery == string.Empty)
            {
                Assert.Fail();
            }
            return(returnQuery);
        }
Example #7
0
        public static string GetDevice(string dbValue)         //get name of Device
        {
            string returnQuery = BaseMethods.GetDataFromDb("select type from terminalparam where type = '" + dbValue + "'");

            if (returnQuery == string.Empty)
            {
                Assert.Fail();
            }
            return(returnQuery);
        }
Example #8
0
        public static string GetLog(string dbValue)         //get name of User Name
        {
            string returnQuery = BaseMethods.GetDataFromDb("select id from restapi.log where id = '" + dbValue + "'");

            if (returnQuery == string.Empty)
            {
                Assert.Fail();
            }
            return(returnQuery);
        }
Example #9
0
        public static string GetEmployeeSum()         //get name of Employee
        {
            BaseMethods.ExecuteSqlQuery("workernumactual.sql");

            string returnQuery = BaseMethods.GetDataFromDb("select count(*) from workernumactual");

            if (returnQuery == string.Empty)
            {
                Assert.Fail();
            }
            return(returnQuery);
        }
Example #10
0
        public static string GetEmployeeId(string dbValue)         //get name of Employee
        {
            BaseMethods.ExecuteSqlQuery("workernumactual.sql");

            string returnQuery = BaseMethods.GetDataFromDb("select worker_id from workernumactual where worker_id = '" + dbValue + "'");

            if (returnQuery == string.Empty)
            {
                Assert.Fail();
            }
            return(returnQuery);
        }
Example #11
0
        public static string GetUserId(string dbValue)         //get name of User Name
        {
            BaseMethods.ExecuteSqlQuery("username.sql");

            string returnQuery = BaseMethods.GetDataFromDb("select obj_id from username where obj_id = '" + dbValue + "'");

            if (returnQuery == string.Empty)
            {
                Assert.Fail();
            }
            return(returnQuery);
        }
Example #12
0
        public static string GetDeletedDepartment(string dbValue)         //get name of Department
        {
            string returnQuery = BaseMethods.GetDataFromDb("select dep_name from departnum where dep_name = '" + dbValue + "'");

            return(returnQuery);
        }
Example #13
0
        public static string GetDeletedCompany(string dbValue)         //get name of Company
        {
            string returnQuery = BaseMethods.GetDataFromDb("select dep_name from firmnum where dep_name = '" + dbValue + "'");

            return(returnQuery);
        }
Example #14
0
        public static string GetDeletedPosition(string dbValue)         //get deleted Position
        {
            string returnQuery = BaseMethods.GetDataFromDb("select job_name from jobnum where job_name = '" + dbValue + "'");

            return(returnQuery);
        }