protected void btnConfirmComplete_Click(object sender, EventArgs e) { string temp = DropDownVacancyProfList.SelectedValue; if (temp == "-1") { lblDropVacancyList.Visible = true; return; } string[] splitter = new string[] { PageConstants.GREATER_GREATER_THAN }; VacancyInfoTosplit = (temp).Split(splitter, StringSplitOptions.RemoveEmptyEntries); vacancyNo = VacancyInfoTosplit[0].Trim(); VacancyDate = VacancyInfoTosplit[1].Trim(); //Update vacancy Profile arrived date. Vacancy vacancy = new Vacancy(); vacancy.VacancyNo = vacancyNo; vacancy.PostedDate = VacancyDate; TransactionResponse response = new TransactionResponse(); VacancyRegistrationAndEvaluationManager manager = new VacancyRegistrationAndEvaluationManager(vacancy); response = manager.updateProfileArrivedDateAndVacancyStatus(); PanelConfirmVacancyComplete.Visible = false; displayMessageToTheUser(response); if (response.isSuccessful()) { //REGISTER NOTIFICATION for HR Manager //check the vacancy status whether its re-advertise or Normal response = manager.getVacancyDetail(vacancy); DataTable dataTable = (DataTable)response.Data; string vacStatus = null; string repHROfficerProcessor = null; string repHROfficerCheckor = null; NotificationManager notificationManager = new NotificationManager(vacancy); TransactionResponse notificationResponse = null; if (dataTable != null && dataTable.Rows.Count > 0) { vacStatus = dataTable.Rows[0]["status"].ToString(); repHROfficerProcessor = dataTable.Rows[0]["responsible_processor_EID"].ToString(); repHROfficerCheckor = dataTable.Rows[0]["reponsible_accessor_EID"].ToString(); if (vacStatus.Trim() == "11") { if (repHROfficerCheckor != null || repHROfficerProcessor != null) { } else { notificationResponse = notificationManager.addNotification(Membership.GetUser(), "6"); } } else { notificationResponse = notificationManager.addNotification(Membership.GetUser(), "6"); } } if (!notificationResponse.isSuccessful()) { WarnDIV.Visible = true; lblWarningMsg.Text = notificationResponse.getMessage() + notificationResponse.getErrorCode(); } DropDownVacancyProfList.ClearSelection(); } else { msgPanel.Visible = true; InfoDIV.Visible = true; lblInformationMsg.Text = response.getMessage(); DropDownVacancyProfList.ClearSelection(); } }