Beispiel #1
0
    protected void btnFinalize_Click(object sender, EventArgs e)
    {
        LoanDSTableAdapters.LoanApplicationsTableAdapter loanApp1 = new LoanDSTableAdapters.LoanApplicationsTableAdapter();
        int AppStage = Convert.ToInt32(loanApp1.getApplicationStatus(MySessionManager.AppID));


        if (cmbAction.Text == "Forward Application")
        {
            try
            {
                int ctID = Convert.ToInt32(ddlCreditTeam.SelectedValue);

                util.UpdateApplicationStatus("Forward Application", AppStage);
                LoanDSTableAdapters.LoanApplicationsTableAdapter loanApp = new LoanDSTableAdapters.LoanApplicationsTableAdapter();
                loanApp.AssignCreditTeam(ctID, MySessionManager.AppID);
                Response.Redirect("~/pages/loanapplications.aspx", true);
            }
            catch (Exception ex) { }
        }
        else if (cmbAction.Text == "Send Back For Review")
        {
            util.UpdateApplicationStatus("Send Back For Review", AppStage);
            Response.Redirect("~/pages/loanapplications.aspx", true);
        }
    }
    protected void btnFinalize_Click(object sender, EventArgs e)
    {
        LoanDSTableAdapters.LoanApplicationsTableAdapter  loanApp1 = new LoanDSTableAdapters.LoanApplicationsTableAdapter();
        int AppStage = Convert.ToInt32(loanApp1.getApplicationStatus(MySessionManager.AppID));
       

        if (cmbAction.Text == "Forward Application")
        {
            try
            {
                int ctID = Convert.ToInt32(ddlCreditTeam.SelectedValue);

                util.UpdateApplicationStatus("Forward Application", AppStage);
                LoanDSTableAdapters.LoanApplicationsTableAdapter loanApp = new LoanDSTableAdapters.LoanApplicationsTableAdapter();
                loanApp.AssignCreditTeam(ctID, MySessionManager.AppID);
                Response.Redirect("~/pages/loanapplications.aspx", true);
            }
            catch (Exception ex) { }
        }
        else if (cmbAction.Text == "Send Back For Review")
        {
            util.UpdateApplicationStatus("Send Back For Review", AppStage);
            Response.Redirect("~/pages/loanapplications.aspx", true);
        
        
            }
    }