Esempio n. 1
0
        private void LoadThongTinHoaDon()
        {
            if (BLL.showNgayXuatTheoHoaDon(txtMaHD.Text) == "")
            {
                dtpNgayXuat.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd"));
            }
            dtpNgayXuat.Value = DateTime.Parse(BLL.showNgayXuatTheoHoaDon(txtMaHD.Text));
            cbxMaNV.Text      = BLL.showMaNVTheoHoaDon(txtMaHD.Text);

            txtTongTien.Text = BLL.showTongTienTheoHoaDon(txtMaHD.Text);
            lblBangChu.Text  = "Bằng chữ " + ChuyenSoSangChuoi(double.Parse(txtTongTien.Text));
        }