コード例 #1
0
 public ActionResult addNewRepresentative(AddNewRepresentative representative)
 {
     int value = new DataAccess.StaffDAL().addNewRepresent(representative);
     if (value == -1)
     {
         //successfully added
         ViewBag.message = "UnSuccessfull in adding the representative ....Please Try Again";
     }
     else
     {
         ViewBag.message = "Successfull in adding the representative .... RepresentativeId = " + value;
     }
     return View("successNewRepresentative");
 }
コード例 #2
0
        //------------------------------------------------------------------------------------------------------
        //---------------------------Posting Job Offers----------------------------------------------------
        //------------------------------------------------------------------------------------------------------
        public ActionResult adminPostJobOffer()
        {
            string type = (string)Session["TypeOfUser"];
            if (type == null)
            {
                return RedirectToAction("Index", "Home");
            }
            else if (type.CompareTo("Admin") != 0)
            {
                return RedirectToAction("Index", "Home");
            }
            List<string> CompanyNames = new List<string>();
            CompanyNames = new DataAccess.StaffDAL().postJobCompany();

            if (CompanyNames.Count > 0)
            {
                ViewBag.list = CompanyNames;
                return View();
            }
            else
            {
                return View("Index");
            }
        }
コード例 #3
0
        public ActionResult StVwWSPreReq(string wid)
        {
            WSPrerequisite prereq = new DataAccess.StaffDAL().WSPrerequisiteOf(wid);

            return Json(prereq);
        }
コード例 #4
0
        public ActionResult StVwWSApp2(string domain, string companyName)
        {
            List<string> WIDs = new DataAccess.StaffDAL().PendingWSByDomain(domain, companyName);

            return Json(WIDs);
        }
コード例 #5
0
        public ActionResult StVwWSApp()
        {
            string type = (string)Session["TypeOfUser"];
            if (type == null)
            {
                return RedirectToAction("Index", "Home");
            }
            else if (type.CompareTo("Admin") != 0)
            {
                return RedirectToAction("Index", "Home");
            }

            List<string> companynames = new DataAccess.StaffDAL().CompanyNames();

            ViewBag.WSCompanyNameL = companynames;
            return View();
        }
コード例 #6
0
        public ActionResult RejectWorkshopOffer(int workshopId)
        {
            int returnValue = new DataAccess.StaffDAL().RejectWorkshop(workshopId);

            return Json(returnValue);
        }
コード例 #7
0
        public ActionResult PostWorkshopDD(string cname)
        {
            List<string> Domains = new DataAccess.StaffDAL().WSDomainsByCompany(cname);

            return Json(Domains);
        }
コード例 #8
0
        public ActionResult JobStreamCodes(string companyName)
        {
            List<string> StreamCodes = new DataAccess.StaffDAL().StreamCodeOf(companyName);

            return Json(StreamCodes);
        }
コード例 #9
0
        public ActionResult SelTrainCan(string trainid)
        {
            SelTCanViewModel trainingapplns = new DataAccess.StaffDAL().SelectedTrainingApplicants(trainid);

            return Json(trainingapplns);
        }
コード例 #10
0
        public List<TrainingL> GetTrainings(string repid)
        {
            List<TrainingL> trainings = new DataAccess.StaffDAL().TrainingByCompanyApplied(repid);

            return trainings;
        }
コード例 #11
0
        public ActionResult StVwJobPreReq(string jid)
        {
            JobPrerequisite prereq = new DataAccess.StaffDAL().JobPrerequisiteOf(jid);

            return Json(prereq);
        }
コード例 #12
0
        public ActionResult StVwJobApp1(string cname)
        {
            List<string> StreamCodes = new DataAccess.StaffDAL().StreamCodeOf(cname);

            return Json(StreamCodes);
        }
コード例 #13
0
        public ActionResult StSelJobCanMD(string jobid)
        {
            SelJCanViewModel jobapplns = new DataAccess.StaffDAL().SelectedAppsByJobId(jobid);

            return Json(jobapplns);
        }
コード例 #14
0
        public ActionResult StSelJobCanDD(string cname)
        {
            List<string> JobIds = new DataAccess.StaffDAL().JobIdsByCompany(cname);

            return Json(JobIds);
        }
コード例 #15
0
        public ActionResult TrainingApplicantAllM(string trainingId)
        {
            Training traindetails = new DataAccess.StaffDAL().TrainingDetailsOfId(trainingId);

            return Json(traindetails);
        }
コード例 #16
0
        public ActionResult JobCandidateMaster(string jobId)
        {
            SelJCanViewModel jobapplns = new DataAccess.StaffDAL().SelectedAppsByJobId(jobId);

            return Json(jobapplns);
        }
コード例 #17
0
        public ActionResult JobIdList(string streamCode)
        {
            List<string> JIDs = new DataAccess.StaffDAL().JobIdByStream(streamCode);

            return Json(JIDs);
        }
コード例 #18
0
        public List<Company> GetCompanyList()
        {
            List<Company> companynames = new DataAccess.StaffDAL().CompanyNamesWithRepID();

            return companynames;
        }
コード例 #19
0
        public ActionResult ViewJobPrerequisite(string jobId)
        {
            JobPrerequisite prereq = new DataAccess.StaffDAL().JobPrerequisiteOf(jobId);

            return Json(prereq);
        }
コード例 #20
0
        public ActionResult WorkshopPrerequisites(string wid)
        {
            WSPrerequisite prereq = new DataAccess.StaffDAL().WSPrerequisiteOf(wid);

            return Json(prereq);
        }
コード例 #21
0
        public ActionResult PostWorkshopM(string domain, string companyName)
        {
            WorkshopViewModel WSOffers = new DataAccess.StaffDAL().ListWorkshopsBy(domain, companyName);

            return Json(WSOffers);
        }
コード例 #22
0
        public ActionResult StVwTrainApplicants(string tid)
        {
            TrainApplicantsViewModel TrainApps = new DataAccess.StaffDAL().ApplicantDetailsForTraining(tid);

            return Json(TrainApps);
        }
コード例 #23
0
        public ActionResult SelectedWorkshopIds(string companyName)
        {
            List<int> workshopIds = new DataAccess.StaffDAL().WorkshopIdList(companyName);

            return Json(workshopIds);
        }
コード例 #24
0
        public ActionResult StVwTrainCanDD(string cname)
        {
            List<string> TrainIds = new DataAccess.StaffDAL().TrainingIdsByCompany(cname);

            return Json(TrainIds);
        }
コード例 #25
0
        public ActionResult StVwWSApp1(string cname)
        {
            List<string> Domains = new DataAccess.StaffDAL().WSDomainsByCompany(cname);

            return Json(Domains);
        }
コード例 #26
0
        public ActionResult StVwTrainCanM(string tid)
        {
            Training traindetails = new DataAccess.StaffDAL().TrainingDetailsOfId(tid);

            return Json(traindetails);
        }
コード例 #27
0
        public ActionResult StVwWSApplicants(string wid)
        {
            WSPendAppViewModel WSPendApps = new DataAccess.StaffDAL().WSApplicantDetails(wid);

            return Json(WSPendApps);
        }
コード例 #28
0
        public ActionResult JobApplicantDetail(string jobId)
        {
            JobApplicantViewModel JobApps = new DataAccess.StaffDAL().ApplicantsDetailFor(jobId);

            return Json(JobApps);
        }
コード例 #29
0
        public ActionResult WorkshopApplicantDetails(int workshopId)
        {
            WSSelectedAppsVM WSApps = new DataAccess.StaffDAL().SelectedWSApplicantsD(workshopId);

            return Json(WSApps);
        }
コード例 #30
0
        public ActionResult JobCandidateAll(string companyName)
        {
            List<string> JobIds = new DataAccess.StaffDAL().JobIdsByCompany(companyName);

            return Json(JobIds);
        }