예제 #1
0
    protected void btnConfirmComplete_Click(object sender, EventArgs e)
    {
        
        Vacancy vacancy = new Vacancy();
        try
        {
            vacancy.VacancyNo = vacancyNumber;
            vacancy.PostedDate = postDate;

            VacancyRegistrationAndEvaluationManager manager = new VacancyRegistrationAndEvaluationManager(vacancy);
            TransactionResponse response = new TransactionResponse();

            response = manager.updateNotAnnouncedVacancyToAnnounced();
            if (response.isSuccessful())
            {
                clearMsgPanel();
                msgPanel.Visible = true;
                SucessDIV.Visible = true;
                string success = response.getMessage();
                populatePostedVacancy();
                clearWarningmsg();
                populatePostedVacancy();
                SucessDIV.Visible = true;
                lblSuccessMessage.Text = success;
            }
            else
            {
                clearMsgPanel();
                msgPanel.Visible = true;
                ErroroDIV.Visible = true;
                lblErrorMsg.Text = response.getMessage();
            }
        }
        catch (Exception ex)
        {
            clearMsgPanel();
            msgPanel.Visible = true;
            lblErrorMsg.Text = ex.StackTrace.ToString();
        }
    }