Exemple #1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            if (checkBox3.Checked)
            {
                Enrollee.plan = true;
            }
            else
            {
                Enrollee.plan = false;
            }
            String fullname = textBox1.Text;
            String ssn      = textBox2.Text;
            String bAddress = textBox3.Text;
            String mAddress = textBox4.Text;
            String username = textBox5.Text;
            String password = textBox6.Text;
            string pin      = PINTextBox.Text;

            DBMng.insertIntoPrimaryEnrollee(plantype, fullname, username, password, mAddress, bAddress, ssn, pin);

            int id;

            id = DBMng.validateEnrollee(username, password);
            if (DBMng.getPlanTypeEnrollee(id) == "basic")
            {
                DBMng.updateDeductible(id, 250);
            }

            this.Hide();
            EnrolleeHomePage newEnrolleeInfo = new EnrolleeHomePage(id);

            newEnrolleeInfo.ShowDialog();
        }
Exemple #2
0
 public Bills(double amount, int enrid, int servicenumber)
 {
     amt     = amount;
     enid    = enrid;
     service = setService(servicenumber);
     plan    = DBMng.getPlanTypeEnrollee(enrid);
 }