public QuanLy(User currentUser) { InitializeComponent(); busUser = new BusUser(); busSys = new BusSystem(); busHDX = new BusHDX(); busNT = new BusNhomThuoc(); busThuoc = new BusThuoc(); busNSX = new BusNSX(); busDVT = new BusDVT(); busNNP = new BusNPP(); busHDN = new BusHDN(); arrCTHDN = new ArrayList(); this.currentUser = currentUser; IDUser = currentUser.IDUser; }
public ChiTietThuoc(Thuoc thuoc,int type) { this.thuocCurent = thuoc; this.type = type; busThuoc = new BusThuoc(); busNT = new BusNhomThuoc(); busNSX = new BusNSX(); busDVT = new BusDVT(); InitializeComponent(); DanhSachNhomThuoc(); DanhSachNSX(); DanhSachDVT(); DanhSachDongGoi(); if (type == 2) { ViewForm(); btn_ThemThuoc.Visible = false; } else btn_CapNhap.Visible = false; txt_TenThuoc.Focus(); }