//xử lý public void setNguoiDung(NguoiDung nd, Phong p) { this.nguoiDung = nd; this.phongModel = p; keToan = new KeToanController(nguoiDung, phongModel, 2); loadView(); TT = TrangThai.isView; }
public ketoan(NguoiDung ng) { this.nguoiDung = ng; InitializeComponent(); keToan = new KeToanController(); setComBox(); p = new Phong(); keToan = new KeToanController(this.nguoiDung, p, 2); p = (Phong)comBoxPhong.ComboBox.SelectedItem; InHoaDon.setNguoiDung(nguoiDung, p); lbTen.Text = "Nhân viên: " + nguoiDung.Tn_dung; }
private void ComBoxPhong_SelectedIndexChanged(object sender, EventArgs e) { p = (Phong)comBoxPhong.ComboBox.SelectedItem; keToan = new KeToanController(this.nguoiDung, p, 2); InHoaDon.setNguoiDung(nguoiDung, p); }