Пример #1
0
        private void ucNhapXeNavBar_Load(object sender, EventArgs e)
        {
            //Không cho sửa GridView
            //gvDanhSachNhapXe.OptionsBehavior.Editable = false;

            splitContainerControl1.FixedPanel = DevExpress.XtraEditors.SplitFixedPanel.None;
            enableSplitPannel(0);
            enableNhapXe(false);
            enableChiTietNhapXe(false);
            DeleteText();
            XoaTextChiTietNhapXe();

            gcDanhSachNhapXe.DataSource = nhapxeCtl.getAllDataToDay();
            frmMain.DatLaiTenCotCuaGridView(gvDanhSachNhapXe);

            LookUpEditMaNhaCungCap.Properties.DataSource    = nccControl.getDataMaTen();
            LookUpEditMaNhaCungCap.Properties.DisplayMember = "MANHACC";

            lookUpEditMaNhap.Properties.DataSource    = nhapxeCtl.getDataMa();
            lookUpEditMaNhap.Properties.DisplayMember = "MANHAP";

            lueMaThongTinXeMay.Properties.DataSource    = ttXeControl.getAllData();
            lueMaThongTinXeMay.Properties.DisplayMember = "MATTXE";

            btnXoaDuLieu.Visible = false;
            lblThanhTien.Text    = string.Empty;
            txtDonGiaNhap.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;
        }
Пример #2
0
        private void ucNhapPhuTungNavBar_Load(object sender, EventArgs e)
        {
            splitContainerControl1.FixedPanel = DevExpress.XtraEditors.SplitFixedPanel.None;
            enableChiTietPhuTung(false);
            enablePhuTung(false);
            enableSplitPannel(0);
            DeleteText();
            DeleteTextChiTiet();
            lblThanhTien.Text = string.Empty;

            gcDanhSachNhapPhuTung.DataSource = nhapPTControl.getAllData();
            frmMain.DatLaiTenCotCuaGridView(gvDanhSachNhapPhuTung);
            frmMain.SapXepLaiGridView(gvDanhSachNhapPhuTung, "MANPT", false);

            lueMaNhaCungCap.Properties.DataSource    = nccControl.getDataMaTen();
            lueMaNhaCungCap.Properties.DisplayMember = "MANHACC";

            lueMaNhapPhuTung.Properties.DataSource    = nhapPTControl.getDataMa();
            lueMaNhapPhuTung.Properties.DisplayMember = "MANPT";

            lueMaTTPhuTung.Properties.DataSource    = TTPTControl.getAllData();
            lueMaTTPhuTung.Properties.DisplayMember = "MATTPT";

            txtDonViTinh.Text = "";
        }