Ejemplo n.º 1
0
        public frmThemHangHoa()
        {
            InitializeComponent();

            txtMaHang.Text = HangHoaBUS.LayMaHH();
            txtMaVach.Text = HangHoaBUS.LayMaHH();

            gridlookupPhanLoaiHangHoa.Properties.DataSource    = PhanLoaiHangHoaBUS.DanhSach();
            gridlookupPhanLoaiHangHoa.Properties.DisplayMember = "TenPhanLoai";
            gridlookupPhanLoaiHangHoa.Properties.ValueMember   = "MaPhanLoai";

            gridlookupKho.Properties.DataSource    = KhoHangBUS.DanhSach();
            gridlookupKho.Properties.DisplayMember = "Ten";
            gridlookupKho.Properties.ValueMember   = "MaKho";

            gridlookupLoaiHangHoa.Properties.DataSource    = NhomHangBUS.DanhSach();
            gridlookupLoaiHangHoa.Properties.DisplayMember = "Ten";
            gridlookupLoaiHangHoa.Properties.ValueMember   = "MaNHH";

            gridlookupNCC.Properties.DataSource    = NhaCungCapBUS.DanhSach();
            gridlookupNCC.Properties.DisplayMember = "TenNCC";
            gridlookupNCC.Properties.ValueMember   = "MaNCC";

            gridlookupDonVi.Properties.DataSource    = DonViBUS.DanhSach();
            gridlookupDonVi.Properties.DisplayMember = "Ten";
            gridlookupDonVi.Properties.ValueMember   = "MaDV";
        }
Ejemplo n.º 2
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            frmThemNCC frm = new frmThemNCC();

            frm.ShowDialog();
            gridControl1.DataSource = NhaCungCapBUS.DanhSach();
        }
Ejemplo n.º 3
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            int       Vitri = gridView1.GetFocusedDataSourceRowIndex();
            string    MaNCC = gridView1.GetRowCellValue(Vitri, "MaNCC").ToString();
            frmSuaNCC frm   = new frmSuaNCC();
            SendData  s     = new SendData(frm.GetData);

            s(MaNCC);
            frm.ShowDialog();
            gridControl1.DataSource = NhaCungCapBUS.DanhSach();
        }
Ejemplo n.º 4
0
        public frmMuaHang()
        {
            InitializeComponent();

            repositoryItemGridLookUpEdit8.DataSource    = PhieuTempBUS.DanhSachHangHienThi();
            repositoryItemGridLookUpEdit8.NullText      = "";
            repositoryItemGridLookUpEdit8.DisplayMember = "MaHang";
            repositoryItemGridLookUpEdit8.ValueMember   = "MaHang";

            repositoryItemGridLookUpEdit9.DataSource    = PhieuTempBUS.DanhSachHangHienThi();
            repositoryItemGridLookUpEdit9.NullText      = "";
            repositoryItemGridLookUpEdit9.DisplayMember = "TenHang";
            repositoryItemGridLookUpEdit9.ValueMember   = "MaHang";

            repositoryItemGridLookUpEdit10.DataSource    = PhieuTempBUS.DanhSachHangHienThi();
            repositoryItemGridLookUpEdit10.NullText      = "";
            repositoryItemGridLookUpEdit10.DisplayMember = "TenDonVi";
            repositoryItemGridLookUpEdit10.ValueMember   = "MaDonVi";

            gridControl2.DataSource = PhieuTempBUS.DanhSach();

            txtNCC.Properties.DataSource        = NhaCungCapBUS.DanhSach();
            txtNCC.Properties.DisplayMember     = "TenNCC";
            txtNCC.Properties.ValueMember       = txtMaNCC.Properties.ValueMember;
            txtNCC.Properties.EditValueChanged += Properties_EditValueChanged;
            txtNCC.Properties.NullText          = "";

            txtMaNCC.Properties.DataSource        = NhaCungCapBUS.DanhSach();
            txtMaNCC.Properties.DisplayMember     = "MaNCC";
            txtMaNCC.Properties.ValueMember       = "MaNCC";
            txtMaNCC.Properties.EditValueChanged += Properties_EditValueChanged1;
            txtMaNCC.Properties.NullText          = "";

            txtPhieu.Text = PhieuNhapHangBUS.LayMaPhieu();

            txtNhanVien.Properties.DataSource    = NhanVienBUS.DanhSach();
            txtNhanVien.Properties.DisplayMember = "Ten";
            txtNhanVien.Properties.ValueMember   = "MaNV";

            txtDieuKhoanTT.Properties.DataSource    = DieuKhoanThanhToanBUS.DanhSach();
            txtDieuKhoanTT.Properties.DisplayMember = "TenDKTT";
            txtDieuKhoanTT.Properties.ValueMember   = "MaDKTT";

            txtHinhThucTT.Properties.DataSource    = HinhThucThanhToanBUS.DanhSach();
            txtHinhThucTT.Properties.DisplayMember = "TenHTTT";
            txtHinhThucTT.Properties.ValueMember   = "MaHTTT";

            txtKho.Properties.DataSource    = KhoHangBUS.DanhSach();
            txtKho.Properties.DisplayMember = "Ten";
            txtKho.Properties.ValueMember   = "MaKho";
        }
Ejemplo n.º 5
0
        public frmNhaCungCap()
        {
            InitializeComponent();

            gridControl1.DataSource = NhaCungCapBUS.DanhSach();
        }