Ejemplo n.º 1
0
        private void bt_310_Click(object sender, EventArgs e)
        {
            phong.maphong = 310;
            phong p = new phong();

            p.ShowDialog(); frm_load();
        }
Ejemplo n.º 2
0
        private void bt_ct_Click(object sender, EventArgs e)
        {
            phong.maphong = mp;
            phong p = new phong();

            p.Show();
        }
Ejemplo n.º 3
0
 private void bt_ct_Click(object sender, EventArgs e)
 {
     if (scm == "")
     {
         datphong.mp = mp;
         datphong dp = new datphong();
         dp.Show();
     }
     else
     {
         phong.maphong = mp;
         phong p = new phong();
         p.Show();
     }
 }
Ejemplo n.º 4
0
        private void bt_tinhtien_Click(object sender, EventArgs e)
        {
            if (lb_tongtien.Text == "0")
            {
                MessageBox.Show("Lỗi", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                dt = cl.luuthongtinphong(maphong, lb_ten.Text, Convert.ToInt32(lb_namsinh.Text), Convert.ToInt32(lb_socm.Text), lb_ngaydp.Text, lb_ngaytp.Text, Convert.ToInt32(lb_tienphong.Text), Convert.ToInt32(lb_chiphi.Text), Convert.ToInt32(lb_tongtien.Text), nv);
                MessageBox.Show("Đã Lưu", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                //this.Close();
                phong f = new phong();


                f.XoaTrong(sender, e);
                lb_tongtien.Text  = "0";
                lb_tienphong.Text = "0";
                lb_chiphi.Text    = "0";
            }
        }