Ejemplo n.º 1
0
 private void frmCapNhatHoaDonBanPhuTung_Load(object sender, EventArgs e)
 {
     txtMaHD.Text                     = frmDanhSachHoaDonBanPhuTung.mahd;
     lueMaKH.EditValue                = string.Empty;
     lueMaKH.Properties.DataSource    = khControl.getAllDataMaTenCMND();
     lueMaKH.Properties.DisplayMember = "MAKH";
     lueMaKH.Text                     = frmDanhSachHoaDonBanPhuTung.makh;
     txtTenKH.Text                    = frmDanhSachHoaDonBanPhuTung.tenkh;
     dateNgayBan.Text                 = frmDanhSachHoaDonBanPhuTung.ngayban;
 }
Ejemplo n.º 2
0
        private void ucHoaDonBanXeMay_Load(object sender, EventArgs e)
        {
            txtThueVAT.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;
            enable(false);
            deleteText();

            lueMaKhachHang.EditValue = string.Empty;
            lueMaXe.EditValue        = string.Empty;

            lueMaKhachHang.Properties.DataSource    = khControl.getAllDataMaTenCMND();
            lueMaKhachHang.Properties.DisplayMember = "MAKH";

            lueMaXe.Properties.DataSource    = xControl.getAllDataMaTenMau();
            lueMaXe.Properties.DisplayMember = "MAXE";

            gcDSXe.DataSource = xControl.getDataXeTrongCuaHangUCHoaDon();
            frmMain.DatLaiTenCotCuaGridView(gvDSXe);
            gcDSKH.DataSource = khControl.getAllDataMaTenCMND();
            frmMain.DatLaiTenCotCuaGridView(gvDSKH);

            gcDanhSachHoaDonBanXe.DataSource = hdBanXeControl.getDataHomNay(frmDangNhap.MaNhanVien.Trim());
            frmMain.DatLaiTenCotCuaGridView(gvDanhSachHoaDonBanXe);
        }
Ejemplo n.º 3
0
        private void ucHoaDonBanPhuTung_Load(object sender, EventArgs e)
        {
            splitContainerControl1.FixedPanel = SplitFixedPanel.None;
            splitContainerControl2.FixedPanel = SplitFixedPanel.None;
            deleteText();
            enable(true);
            txtMaHoaDonBanPT.Enabled = false;

            txtMaHoaDonBanPT.Text = frm.MaSoTuTang("BPT", hdbPTControl.getAllData());

            lueMaKhachHang.Properties.DataSource    = khControl.getAllDataMaTenCMND();
            lueMaKhachHang.Properties.DisplayMember = "MAKH";

            lueMaNhanVien.Properties.DataSource    = nvControl.getDataMaTen();
            lueMaNhanVien.Properties.DisplayMember = "MANV";
            lueMaNhanVien.Text = frmDangNhap.MaNhanVien;
            dateNgayBan.Text   = DateTime.Today.ToShortDateString();
            gcPhuTungTrongCuaHang.DataSource = ptControl.getPhuTungCoTrongCuaHangUCHD();
            frmMain.DatLaiTenCotCuaGridView(gvPhuTungTrongCuaHang);
        }