Beispiel #1
0
        public FormThongKeLoaiBienDong()
        {
            InitializeComponent();
            dgvData.AutoGenerateColumns = false;
            _bindingSource     = new BindingSource();
            dgvData.DataSource = _bindingSource;

            DataTable dt = ManageBase.SelectAllLoaiBienDongRDT();

            foreach (DataRow item in dt.Rows)
            {
                checkCombobox.Properties.Items.Add((int)item["LoaiBienDongId"], item["TenLoaiBienDong"].ToString());
            }
        }
Beispiel #2
0
        public FormNhapHoSo()
        {
            InitializeComponent();
            this.dgvFileScan.AutoGenerateColumns = false;
            this.dgvThuaDat.AutoGenerateColumns  = false;
            DataTable dataTable = ManageBase.SelectAllLoaiGiayToRDT(0);
            DataRow   dataRow   = dataTable.NewRow();

            dataRow["LoaiGiayToId"]  = 0;
            dataRow["TenLoaiGiayTo"] = "<<Chọn loại giấy tờ>>";
            dataTable.Rows.InsertAt(dataRow, 0);
            this.clnLoaiGiayTo.ValueMember   = "LoaiGiayToId";
            this.clnLoaiGiayTo.DisplayMember = "TenLoaiGiayTo";
            this.clnLoaiGiayTo.DataSource    = dataTable;
            dataTable = ManageBase.SelectAllLoaiGiayToRDT(1);
            GlobalVariable.DictLoaiGiayToFile = new Dictionary <int, string>();
            foreach (DataRow dataRow2 in dataTable.Rows)
            {
                GlobalVariable.DictLoaiGiayToFile.Add((int)dataRow2["LoaiGiayToId"], dataRow2["MaLoaiGiayTo"].ToString());
            }
            dataRow = dataTable.NewRow();
            dataRow["LoaiGiayToId"]  = 0;
            dataRow["TenLoaiGiayTo"] = "<<Chọn loại giấy tờ>>";
            dataTable.Rows.InsertAt(dataRow, 0);
            this.clnLoaiGiayToFile.ValueMember   = "LoaiGiayToId";
            this.clnLoaiGiayToFile.DisplayMember = "TenLoaiGiayTo";
            this.clnLoaiGiayToFile.DataSource    = dataTable;

            DataTable dataTable2 = ManageBase.SelectAllLoaiBienDongRDT();

            dataRow = dataTable2.NewRow();
            dataRow["LoaiBienDongId"]  = 0;
            dataRow["TenLoaiBienDong"] = "<<Chọn loại biến động>>";
            dataTable2.Rows.InsertAt(dataRow, 0);
            this.cboLoaiBienDong.DataSource = dataTable2;

            dataTable2 = ManageBase.SelectAllChuyenVienRDT();
            dataRow    = dataTable2.NewRow();
            dataRow["ChuyenVienId"]  = 0;
            dataRow["TenChuyenVien"] = "<<Chọn người kiểm tra nội nghiệp>>";
            dataTable2.Rows.InsertAt(dataRow, 0);
            this.cboChuyenVienKiemTra.DataSource = dataTable2;

            dataTable2 = ManageBase.SelectAllCongTyDoVeRDT();
            dataRow    = dataTable2.NewRow();
            dataRow["CongTyDoVeId"]  = 0;
            dataRow["TenCongTyDoVe"] = "<<Chọn công ty đo vẽ>>";
            dataTable2.Rows.InsertAt(dataRow, 0);
            this.cboCongTyDoVe.DataSource = dataTable2;
        }