Пример #1
0
        public int  update_TestStatus(int CandidateID, string Written_TestStatus, string Technical_InterviewStatus, string HR_InterviewStatus)
        {
            ITestStatusDB objTestStatusDB = TestStatusDBFactory.Create_TestStatusDB();
            int           TestStatus      = 0;

            if (Written_TestStatus == "pending" && Technical_InterviewStatus == "pending" && HR_InterviewStatus == "cleared")
            {
                return(2);
            }
            if (Written_TestStatus == "pending" && Technical_InterviewStatus == "cleared" && HR_InterviewStatus == "pending")
            {
                return(3);
            }
            if (Written_TestStatus == "pending" && Technical_InterviewStatus == "cleared" && HR_InterviewStatus == "cleared")
            {
                return(4);
            }
            if (Written_TestStatus == "cleared" && Technical_InterviewStatus == "pending" && HR_InterviewStatus == "cleared")
            {
                return(5);
            }

            if (Written_TestStatus == "cleared")
            {
                TestStatus = 2;
                if (Technical_InterviewStatus == "cleared")
                {
                    TestStatus = 3;
                    if (HR_InterviewStatus == "cleared")
                    {
                        TestStatus = 4;
                    }
                }
            }
            else if (Written_TestStatus == "pending")
            {
                TestStatus = 1;
            }
            else
            {
                TestStatus = 0;
            }
            int res = objTestStatusDB.update_TestStatus(CandidateID, TestStatus);

            return(res);
        }
Пример #2
0
        public List <ITestStatus> GetTestStatus(int vid)
        {
            ITestStatusDB objTestStatusDB = TestStatusDBFactory.Create_TestStatusDB();

            return(objTestStatusDB.GetTestStatusbyVID(vid));
        }