Example #1
0
        public JsonResult EditApplicantRelativeData(int A_iRelationId)
        {
            UpdateProfileBAL    objUpdateProfileBAL    = new UpdateProfileBAL();
            ApplicantRelationBO objApplicantRelationBO = objUpdateProfileBAL.EditApplicantRelativeData(A_iRelationId, Convert.ToInt32(ViewData["EmployeeId"]));

            return(Json(objApplicantRelationBO, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        public JsonResult DeleteApplicantRelationData(int A_iRelationId)
        {
            UpdateProfileBAL objUpdateProfileBAL = new UpdateProfileBAL();
            string           strResult           = objUpdateProfileBAL.DeleteApplicantRelationData(A_iRelationId);

            return(Json(strResult, JsonRequestBehavior.AllowGet));
        }
Example #3
0
        public ActionResult GetApplicantLanguageList()
        {
            UpdateProfileBAL        objUpdateProfileBAL   = new UpdateProfileBAL();
            List <LanguageSpokenBO> objLanguageSpokenList = objUpdateProfileBAL.GetApplicantLanguageList(Convert.ToInt32(ViewData["EmployeeId"]));

            return(PartialView("ApplicantLanguageGrid", objLanguageSpokenList));
        }
Example #4
0
        public ActionResult GetApplicantRelationDetailsList()
        {
            UpdateProfileBAL           objUpdateProfileBAL      = new UpdateProfileBAL();
            List <ApplicantRelationBO> objApplicantRelationList = objUpdateProfileBAL.GetApplicantRelationDetailsList(Convert.ToInt32(ViewData["EmployeeId"]));

            return(PartialView("ApplicantRelationGrid", objApplicantRelationList));
        }
Example #5
0
        public JsonResult EditApplicantLanguageDetails(int A_iLanguageSpokenId)
        {
            UpdateProfileBAL objUpdateProfileBAL = new UpdateProfileBAL();
            LanguageSpokenBO objLanguageSpokenBO = objUpdateProfileBAL.EditApplicantLanguageData(A_iLanguageSpokenId, Convert.ToInt32(ViewData["EmployeeId"]));

            return(Json(objLanguageSpokenBO, JsonRequestBehavior.AllowGet));
        }
Example #6
0
        public ActionResult GetApplicantRefereesList()
        {
            UpdateProfileBAL           objUpdateProfileBAL      = new UpdateProfileBAL();
            List <ApplicantRefereesBO> objEmploymentHistoryList = objUpdateProfileBAL.GetApplicantRefereesList(Convert.ToInt32(ViewData["EmployeeId"]));

            return(PartialView("ApplicantRefereesGrid", objEmploymentHistoryList));
        }
Example #7
0
        // GET: UpdateProfile
        public ActionResult Index()
        {
            ViewBag.MainTitle = "Applicant Registration";
            ViewBag.Title     = "Applicant";
            ViewBag.Icon      = "fa fa-user";
            UpdateProfileBAL        objUpdateProfileBAL        = new UpdateProfileBAL();
            ApplicantRegistrationBO objApplicantRegistrationBO = new ApplicantRegistrationBO();

            objApplicantRegistrationBO = objUpdateProfileBAL.GetApplicantDetails(Convert.ToInt32(ViewData["EmployeeId"]));
            if (objApplicantRegistrationBO != null)
            {
                objApplicantRegistrationBO.CountriesList = objUpdateProfileBAL.CountryList();
                objApplicantRegistrationBO.TitleList     = objUpdateProfileBAL.TitleList();
                objApplicantRegistrationBO.GenderList    = objUpdateProfileBAL.GenderList();
                objApplicantRegistrationBO.RefererList   = objUpdateProfileBAL.RefererList();
                objApplicantRegistrationBO.IdTypeList    = objUpdateProfileBAL.IdTypeList();
                objApplicantRegistrationBO.AcademicQualificationsList = objUpdateProfileBAL.AcademicQualificationsList();
                objApplicantRegistrationBO.TypeOfIndustryList         = objUpdateProfileBAL.TypeOfIndustryList();
            }
            if (objApplicantRegistrationBO.PhotoSavedName == "" || objApplicantRegistrationBO.PhotoSavedName == null)
            {
                ViewBag.ImagePath = Url.Content("../assets/images/user-1.png");
            }
            else
            {
                ViewBag.ImagePath = Url.Content(strViewUploadPhotoPath + objApplicantRegistrationBO.PhotoSavedName);
            }
            return(View(objApplicantRegistrationBO));
        }
Example #8
0
        public JsonResult DeleteApplicantEmploymentHistory(int A_iEmploymentHistoryId)
        {
            UpdateProfileBAL objUpdateProfileBAL = new UpdateProfileBAL();
            string           strResult           = objUpdateProfileBAL.DeleteApplicantEmploymentHistory(A_iEmploymentHistoryId);

            return(Json(strResult, JsonRequestBehavior.AllowGet));
        }
Example #9
0
        public JsonResult EditApplicantEmploymentHistory(int A_iEmploymentHistoryId)
        {
            UpdateProfileBAL             objUpdateProfileBAL             = new UpdateProfileBAL();
            ApplicantEmploymentHistoryBO objApplicantEmploymentHistoryBO = objUpdateProfileBAL.EditApplicantEmploymentHistory(A_iEmploymentHistoryId, Convert.ToInt32(ViewData["EmployeeId"]));

            return(Json(objApplicantEmploymentHistoryBO, JsonRequestBehavior.AllowGet));
        }
Example #10
0
        public JsonResult SaveApplicantRelationDetails(ApplicantRelationBO Data)
        {
            UpdateProfileBAL objUpdateProfileBAL = new UpdateProfileBAL();

            Data.IsActive = true;
            string strResult = objUpdateProfileBAL.SaveorUpdateApplicantRelationDetails(Data, 1);

            return(Json(strResult, JsonRequestBehavior.AllowGet));
        }
Example #11
0
        public JsonResult SaveApplicantEmploymentHistory(ApplicantEmploymentHistoryBO Data)
        {
            UpdateProfileBAL objUpdateProfileBAL = new UpdateProfileBAL();

            Data.IsActive = true;
            string strResult = objUpdateProfileBAL.SaveorUpdateApplicantEmploymentHistory(Data, 1);

            return(Json(strResult, JsonRequestBehavior.AllowGet));
        }
Example #12
0
        public JsonResult SaveMembershipDataDetails(ApplicantMotivationalSkillBO Data)
        {
            UpdateProfileBAL objUpdateProfileBAL = new UpdateProfileBAL();

            Data.IsActive = true;
            string strResult = objUpdateProfileBAL.SaveorUpdateMembershipData(Data, 1);

            return(Json(strResult, JsonRequestBehavior.AllowGet));
        }
Example #13
0
        public JsonResult CheckApplicantExist()
        {
            UpdateProfileBAL objUpdateProfileBAL = new UpdateProfileBAL();
            string           strResult           = "";

            if (Convert.ToInt32(ViewData["LoginRoleId"]) == 70)
            {
                strResult = objUpdateProfileBAL.CheckApplicantExist(Convert.ToInt32(ViewData["EmployeeId"]));
            }
            return(Json(strResult, JsonRequestBehavior.AllowGet));
        }
Example #14
0
        public JsonResult SaveApplicantRegistration(ApplicantPersonalInformationBO Data)
        {
            string strResult = "";

            if (Request.Files.Count > 0)
            {
                string strFileName       = "";
                string strExtention      = "";
                Random objRandom         = new Random();
                string strRandom         = objRandom.Next(10000) + "";
                string strFileUploadPath = "";

                string  fileName        = "";
                string  fileContentType = "";
                byte[]  tempFileBytes   = null;
                dynamic data            = null;
                dynamic types           = null;
                bool    result          = false;

                HttpFileCollectionBase files = Request.Files;
                if (files != null)
                {
                    for (int i = 0; i < files.Count; i++)
                    {
                        HttpPostedFileBase file = files[i];
                        if (file.ContentLength == 0)
                        {
                            strResult = "Upload file should not be empty";
                        }
                        else if (file.ContentLength > 0)
                        {
                            strExtention    = Path.GetExtension(file.FileName);
                            fileName        = file.FileName;                // getting File Name
                            fileContentType = file.ContentType;             // getting ContentType
                            tempFileBytes   = new byte[file.ContentLength]; // getting filebytes
                            data            = file.InputStream.Read(tempFileBytes, 0, Convert.ToInt32(file.ContentLength));
                            types           = CommonUtils.FileType.Image;   // Setting Image type
                            if (strExtention.ToUpper() == ".PDF")
                            {
                                types = CommonUtils.FileType.PDF;
                            }
                            else if (strExtention.ToUpper() == ".DOC")
                            {
                                types = CommonUtils.FileType.DOC;
                            }
                            else if (strExtention.ToUpper() == ".DOCX")
                            {
                                types = CommonUtils.FileType.DOCX;
                            }
                            result      = CommonUtils.isValidFile(tempFileBytes, types, fileContentType); // Validate Header
                            strFileName = strRandom + "_" + DateTime.UtcNow.ToString("yyyyMMddHHmmssfff", CultureInfo.InvariantCulture) + strExtention;
                            var strFileType = file.FileName.Split(new string[] { "_" }, StringSplitOptions.RemoveEmptyEntries);
                            if (result)
                            {
                                int FileLength = 1024 * 1024 * 3; //FileLength 3 MB
                                if (file.ContentLength > FileLength)
                                {
                                    strResult = "Upload file should not be greater than 3MB";
                                }

                                if (strFileType[0] == "PHOTO")
                                {
                                    Data.PhotoSavedName = strFileName;
                                    strFileUploadPath   = strPhotoUploadPath;
                                }
                                if (strFileType[0] == "RESUME")
                                {
                                    Data.CVSavedName  = strFileName;
                                    strFileUploadPath = strCVSavedUploadPath;
                                }
                                if (strFileType[0] == "IDCOPY")
                                {
                                    Data.CitizenShipIdCopySavedName = strFileName;
                                    strFileUploadPath = strCitizenShipIdCopyUploadPath;
                                }
                                if (strFileType[0] == "APPLICATIONLETTER")
                                {
                                    Data.ApplicationLetterSavedName = strFileName;
                                    strFileUploadPath = strApplicationLetterUploadPath;
                                }
                                strFileName = Path.Combine(strFileUploadPath, strFileName);
                                file.SaveAs(strFileName);
                            }
                            else
                            {
                                strResult = strResult + "Please Upload Valid file for " + strFileType[0] + "</br>";
                            }
                        }
                    }
                }
            }
            UpdateProfileBAL objUpdateProfileBAL = new UpdateProfileBAL();

            Data.IsActive = true;
            if (strResult == "")
            {
                strResult = objUpdateProfileBAL.SaveorUpdateApplicantRegistration(Data, 1);
            }
            return(Json(strResult, JsonRequestBehavior.AllowGet));
        }