Exemple #1
0
        public void GetData(string MaHang)
        {
            HangHoa h = HangHoaBUS.LayChiTiet(MaHang);

            txtMaHang.Text                      = h.MaHang;
            txtTenHang.Text                     = h.TenHang;
            txtGiaBanLe.Text                    = h.GiaBanLe.ToString();
            txtGiaBanSi.Text                    = h.GiaBanSi.ToString();
            txtGiaMua.Text                      = h.GiaMua.ToString();
            txtMaVach.Text                      = h.MaVachNSX;
            txtTonHienTai.Text                  = h.TonHienTai.ToString();
            txtTonKhoToiThieu.Text              = h.TonKhoToiThieu.ToString();
            txtXuatXu.Text                      = h.XuatXu;
            gridlookupKho.EditValue             = h.MaKho;
            gridlookupLoaiHangHoa.EditValue     = h.MaLoaiHangHoa;
            gridlookupNCC.EditValue             = h.MaNCC;
            gridlookupPhanLoaiHangHoa.EditValue = h.MaPhanLoai;
            gridlookupDonVi.EditValue           = h.MaDV;
            if (h.ConQuanLy == true)
            {
                checkBox1.Checked = true;
            }
            else
            {
                checkBox1.Checked = false;
            }
        }