Ejemplo n.º 1
0
        private void Tai_Thong_Tin()
        {
            dtpNgaySinh.Format           = DateTimePickerFormat.Custom;
            dtpNgaySinh.CustomFormat     = "dd MMMM yyyy";
            dtpNgayTiepNhan.Format       = DateTimePickerFormat.Custom;
            dtpNgayTiepNhan.CustomFormat = "dd MMMM yyyy";



            LoaiDocGiaBUS loaiDocGiaBUS = new LoaiDocGiaBUS();
            DataTable     dsLoaiDocGia  = loaiDocGiaBUS.LayDanhSachLoaiDocGia();

            cbbLoaiDocGia.DataSource    = dsLoaiDocGia;
            cbbLoaiDocGia.DisplayMember = dsLoaiDocGia.Columns[1].ColumnName;
            cbbLoaiDocGia.ValueMember   = dsLoaiDocGia.Columns[0].ColumnName;



            NhanVienBUS nhanVienBUS = new NhanVienBUS();
            DataTable   dsNhanVien  = nhanVienBUS.LayDanhSachNhanVienTheoBoPhan("BP02");

            cbbMaNhanVien.DataSource    = dsNhanVien;
            cbbMaNhanVien.DisplayMember = dsNhanVien.Columns[1].ColumnName;
            cbbMaNhanVien.ValueMember   = dsNhanVien.Columns[0].ColumnName;


            DocGiaBUS docGiaBUS = new DocGiaBUS();

            txtMaDocGia.Text = docGiaBUS.LayMaDocGiaMoi();
        }
Ejemplo n.º 2
0
        private void Tai_Thong_Tin_Loai_DG()
        {
            LoaiDocGiaBUS loaiDocGiaBUS = new LoaiDocGiaBUS();
            DataTable     dsLoaiDG      = loaiDocGiaBUS.LayDanhSachLoaiDocGia();

            dgvLoaiDocGia.DataSource = dsLoaiDG;
        }