コード例 #1
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            accObj = new INBAdodotnetDR.Account();
            accObj.DatabaseName = "Banking";
            accObj.ServerName   = "localhost";
            accObj.UserName     = "******";
            accObj.Password     = "******";

            SqlDataReader dr = accObj.GetAccountDetails();

            //SqlDataReader dr = adm.GetAccountTypes();

            minBal.Items.Add("500");
            minBal.Items.Add("1000");
            minBal.Items.Add("2000");
            minBal.Items.Add("10,000");

            for (int i = 1; i <= 15; i++)
            {
                fixedDep.Items.Add(i.ToString());
            }

            while (dr.Read())
            {
                accType.Items.Add(new ListItem(dr.GetValue(1).ToString(), dr.GetValue(0).ToString()));
            }
        }
コード例 #2
0
        private void Button1_Click(object sender, System.EventArgs e)
        {
            accObj = new INBAdodotnetDR.Account();
            accObj.DatabaseName = "Banking";
            accObj.ServerName   = "localhost";
            accObj.UserName     = "******";
            accObj.Password     = "******";

            //accObj.ModifyAccount(
        }
コード例 #3
0
        private void Button1_Click(object sender, System.EventArgs e)
        {
            accObj = new INBAdodotnetDR.Account();
            accObj.DatabaseName = "Banking";
            accObj.ServerName   = "localhost";
            accObj.UserName     = "******";
            accObj.Password     = "******";


            long resu = accObj.CreateAccount(Convert.ToInt64(custID.Text), Convert.ToInt32(accType.SelectedValue.ToString()), Convert.ToInt64(openingBal.Text), overDraft.Enabled, Convert.ToInt32(fixedDep.SelectedItem.Text));

            Label1.Text = resu.ToString();
        }