Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FrontDBO adbo = new FrontDBO();

            string empid = txtempid.Text.Trim();

            string fname     = txtfname.Text.Trim();
            string lname     = txtlname.Text.Trim();
            string addressl1 = txtaddressl1.Text.Trim();
            string street    = txtstreet.Text.Trim();
            string city      = txtcity.Text.Trim();
            string gender    = comboBox1.Text.Trim();

            DateTime dob = dateTimePicker1.Value;


            Front front = new Front(empid, fname, lname, addressl1, street, city, gender, dob);

            ArrayList list = new ArrayList();

            list.Add(txthome.Text.Trim());
            list.Add(txtmobile.Text.Trim());

            adbo.registerFront(front, list);
            MessageBox.Show("Front office clerk registration succesfully!!!");
        }
Exemplo n.º 2
0
        private void btndelete_Click(object sender, EventArgs e)
        {
            string   empid = txtempid.Text.Trim();
            FrontDBO sdbo  = new FrontDBO();

            sdbo.deleteclerk(empid);

            MessageBox.Show("Front Office Clerk delete succesfully!!!");
        }