private void fmChonNCC_Load(object sender, EventArgs e)
 {
     rdoMa.Checked  = true;
     butSua.Enabled = false;
     butXoa.Enabled = false;
     butOK.Enabled  = false;
     ShowNhaCC(ctrlData.ListItems <NhaCungCap>());
 }
Esempio n. 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     // Hoa don
     rdoHoaDonMa.Checked             = true;
     butHoaDonHuy.Enabled            = false;
     menuitemHoaDonHuy.Enabled       = false;
     butHoaDonChiTiet.Enabled        = false;
     menuitemHoaDonChiTiet.Enabled   = false;
     butHoaDonThanhToan.Enabled      = false;
     menuitemHoaDonThanhToan.Enabled = false;
     ShowHoaDon(ctrlData.ListItems <HoaDon>());
     // Thuoc
     rdoThuocMa.Checked       = true;
     butThuocSua.Enabled      = false;
     menuitemThuocSua.Enabled = false;
     butThuocXoa.Enabled      = false;
     menuitemThuocXoa.Enabled = false;
     ShowThuoc(ctrlData.ListItems <Thuoc>());
 }
 // Tim
 public List <NhaSanXuat> TimTheoMa(string findText)
 {
     return(ctrlData.ListItems <NhaSanXuat>(findText, "Ma", Const.TextFindOption.Relative));
 }
Esempio n. 4
0
 private void butOK_Click(object sender, EventArgs e)
 {
     ma                = lstv.SelectedItems[0].Text;
     result_nhasx      = ctrlData.ListItems <NhaSanXuat>(ma, "Ma", Const.TextFindOption.Absolute)[0];
     this.DialogResult = DialogResult.OK;
 }
 private void butXoa_Click(object sender, EventArgs e)
 {
     dsthuoc.Remove(ctrlData.ListItems <Thuoc>(lstvDSThuoc.SelectedItems[0].Text, "Ma", Const.TextFindOption.Absolute)[0]);
     ShowDanhSachThuoc();
     updateTongTien();
 }
Esempio n. 6
0
 private void butTim_Click(object sender, EventArgs e)
 {
     ShowThuoc(ctrlData.ListItems <Thuoc>(txtTim.Text, rdoMa.Checked ? "Ma" : "Ten", Const.TextFindOption.Relative));
 }