Esempio n. 1
0
    protected void btnApprove_Click(object sender, EventArgs e)
    {
        String customerid;
        String appid=Session["ApplicationId"].ToString();

        ApplicationBL abl = new ApplicationBL();
        CustomerBL cbl = new CustomerBL();
        AccountBL acbl = new AccountBL();

        abl.UpdateApplicationStatus(appid, 3);
        customerid= cbl.InsertCustomer(appid);
        acbl.InsertAccount(appid, customerid);

        Response.Redirect("/ScheinyNickelBank.WebUI/ApplicationConfirm.aspx");
    }
Esempio n. 2
0
    protected void btnLogin_Click(object sender, EventArgs e)
    {
        CustomerBL cbl = new CustomerBL();
        String customer_id = cbl.VerifyLoginInfo(txtUser.Text, txtPassword.Text);

        if (customer_id == String.Empty)
        {
            lblLoginMsg.Text = "Username and Password doesn't match.";
        }
        else
        {
            Session["CustomerId"] = customer_id;
            Response.Redirect("/ScheinyNickelBank.WebUI/Customer.aspx");
        }
    }
Esempio n. 3
0
    public void BindCustomerData()
    {
        CustomerBL cbl = new CustomerBL();
        DataSet ds = cbl.GetCustomer(customerid);

        foreach (DataTable DT in ds.Tables)
        {

            foreach (DataRow DR in DT.Rows)
            {
                if (DR["first_name"].ToString() != String.Empty)
                    lblWelcome.Text = DR["first_name"].ToString();

            }
        }
    }
Esempio n. 4
0
 public static bool DoesUserExist(string username)
 {
     CustomerBL cbl = new CustomerBL();
     return cbl.checkExistingCustomer();
 }