コード例 #1
0
 private void frmChamCong_Load(object sender, EventArgs e)
 {
     // TODO: This line of code loads data into the 'qL_DiscStoreDataSet1.ChamCong' table. You can move, or remove it, as needed.
     this.chamCongTableAdapter.Fill(this.qL_DiscStoreDataSet1.ChamCong);
     tblNhanVien = new XL_NhanVien();
     tblChamCong = new XL_ChamCong();
     loadCTChamCong();
     loadNhanVien();
     dtNgay.Value = DateTime.Now;
 }
コード例 #2
0
ファイル: frmStaff.cs プロジェクト: banhtrung/QL_DiscStore
        private void frmStaff_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'qL_DiscStoreDataSet.NhanVien' table. You can move, or remove it, as needed.
            this.nhanVienTableAdapter.Fill(this.qL_DiscStoreDataSet.NhanVien);
            tblNhanVien = new XL_NhanVien();
            LoadDGVStaff();

            txtMaNV.DataBindings.Add("text", tblNhanVien, "MaNV", true);
            txtTenNV.DataBindings.Add("text", tblNhanVien, "TenNV", true);
            txtGT.DataBindings.Add("text", tblNhanVien, "GioiTinh", true);
            txtSDT.DataBindings.Add("text", tblNhanVien, "SDT", true);
            dtNgayVL.DataBindings.Add("text", tblNhanVien, "NgayVaoLam", true);
            txtGmail.DataBindings.Add("text", tblNhanVien, "Gmail", true);
            txtUser.DataBindings.Add("text", tblNhanVien, "UserName", true);
            txtPass.DataBindings.Add("text", tblNhanVien, "PassWord", true);
            txtLTK.DataBindings.Add("text", tblNhanVien, "MaLTK", true);

            DS = this.BindingContext[tblNhanVien];
            enableNutLenh(false);
        }
コード例 #3
0
 private void FormBanHangPhieu_Load(object sender, EventArgs e)
 {
     //hinhthucthanhtoan
     gridLookUpEditHinhThucThanhToan.Properties.DataSource    = XL_HinhThucThanhToan.LayDuLieuHinhThucThanhToan();
     gridLookUpEditHinhThucThanhToan.Properties.DisplayMember = "MaHinhThuc";
     //nhanvien
     gridLookUpEditNhanVien.Properties.DataSource    = XL_NhanVien.LayDuLieuNhanVien();
     gridLookUpEditNhanVien.Properties.DisplayMember = "MaNV";
     //dieu khoan
     gridLookUpEditDieuKhoanThanhToan.Properties.DataSource    = XL_DieuKhoan.LayDuLieuDieuKhoan();
     gridLookUpEditDieuKhoanThanhToan.Properties.DisplayMember = "MaDieuKhoan";
     //khach hang
     gridLookUpEditMaKhachHang.Properties.DataSource    = XL_KhachHang.LayDuLieuKhachHang();
     gridLookUpEditMaKhachHang.Properties.DisplayMember = "MaKhachHang";
     //datagrid sp
     MaSP.DataSource    = XL_SanPham.LayDuLieuSanPham();
     MaSP.DisplayMember = "MaSP";
     sp = XL_SanPham.ChuyenDoiDTOSanPham(XL_SanPham.LayDuLieuSanPham());
     // ct phieu xuat
     ctpx = XL_CTPhieuXuat.ChuyenDoiDTOCTPhieuXuat(XL_CTPhieuXuat.LayCTPhieuXuat());
 }
コード例 #4
0
 private void FormMuaHangPhieu_Load(object sender, EventArgs e)
 {
     //hinhthucthanhtoan
     gridLookUpEditHinhThucThanhToan.Properties.DataSource    = XL_HinhThucThanhToan.LayDuLieuHinhThucThanhToan();
     gridLookUpEditHinhThucThanhToan.Properties.DisplayMember = "MaHinhThuc";
     //nhanvien
     gridLookUpEditNhanVien.Properties.DataSource    = XL_NhanVien.LayDuLieuNhanVien();
     gridLookUpEditNhanVien.Properties.DisplayMember = "MaNV";
     //kho
     gridLookUpEditKho.Properties.DataSource    = XL_KhoHang.LayDuLieuKhoHang();
     gridLookUpEditKho.Properties.DisplayMember = "MaKho";
     //dieu khoan
     gridLookUpEditDieuKhoanThanhToan.Properties.DataSource    = XL_DieuKhoan.LayDuLieuDieuKhoan();
     gridLookUpEditDieuKhoanThanhToan.Properties.DisplayMember = "MaDieuKhoan";
     //ncc
     gridLookUpEditNCC.Properties.DataSource    = XL_NhaCungCap.LayDuLieuNhaCungCap();
     gridLookUpEditNCC.Properties.DisplayMember = "MaNhaCungCap";
     //datagridn sp
     MaSP.DataSource    = XL_SanPham.LayDuLieuSanPham();
     MaSP.DisplayMember = "MaSP";
     sp = XL_SanPham.ChuyenDoiDTOSanPham(XL_SanPham.LayDuLieuSanPham());
     // ct phieu nhap
     ctpn = XL_CTPhieuNhap.ChuyenDoiDTOCTPhieuNhap(XL_CTPhieuNhap.LayCTPhieuNhap());
 }