Esempio n. 1
0
        public ThemMoiPhieuNhap()
        {
            InitializeComponent();
            phieunhap  = new PhieuNhapDAO();
            nhacungcap = new NCCDAO();
            sach       = new SachDAO();
            vpp        = new VPPDAO();
            source     = new DataTable();
            dsdachon   = new DataTable();

            source.Columns.Add("Mã sách/vvp", typeof(string));
            source.Columns.Add("Tên sách/vpp", typeof(string));
            source.Columns.Add("Tác giả", typeof(string));
            source.Columns.Add("Đơn giá", typeof(double));
            source.Columns.Add("Số lượng tồn", typeof(int));
            for (int i = 0; i < source.Columns.Count; i++)
            {
                source.Columns[i].ReadOnly = true;
            }

            dsdachon.Columns.Add("Mã sách/vvp", typeof(string));
            dsdachon.Columns.Add("Tên sách/vpp", typeof(string));
            dsdachon.Columns.Add("Tác giả", typeof(string));
            dsdachon.Columns.Add("Đơn giá", typeof(double));
            dsdachon.Columns.Add("Số lượng tồn", typeof(int));
            dsdachon.Columns.Add("Số lượng đặt", typeof(int));
            for (int i = 0; i < dsdachon.Columns.Count - 1; i++)
            {
                dsdachon.Columns[i].ReadOnly = true;
            }

            //gdcDsMatHang.
            //gdcDsMatHangDaChon.Forma
        }