private void LapBaoCaoDaiLyBuuDienVHX_Load(object sender, EventArgs e) { cmbHuyen.Enabled = false; prodoanhnghiep.ComboBoxDN(cmbDoanhnghiep); prohuyen.ComboBoxHuyen(cmbHuyen); proloaibaocao.Combobox_Loaibaocao(cmbLoaibaocao); if (checkbox_huyen.Checked) { prodailybuudien.ListDaiLy_Huyen_vhx(dataGridViewX1, bindingNavigator1, cmbHuyen, cmbDoanhnghiep); } else { prodailybuudien.ListDaiLy_Doanhnghiep_vhx(dataGridViewX1, bindingNavigator1, cmbDoanhnghiep); } tool_them.Enabled = true; tool_xoa.Enabled = false; tool_lapbaocao.Enabled = false; tool_sua.Enabled = false; tool_thoat.Visible = true; tool_luu.Enabled = false; dataGridViewX1.Enabled = true; dataGridViewX2.Enabled = true; txtMamaubaocao.Text = promaubaocao.LayMaMax().ToString(); }
private void LapBaoCaoDaiLyInternet_Load(object sender, EventArgs e) { cmbHuyen.Enabled = false; prodoanhnghiep.ComboBoxDN(cmbDoanhnghiep); prohuyen.ComboBoxHuyen(cmbHuyen); proloaibaocaoInt.Combobox_Loaibaocao(cmbLoaibaocao); prothuebao.ComboBoxThueBao(cmbThuebao); if (checkbox_huyen.Checked) { prodailyInt.ListInt_Huyen(dataGridViewX1, bindingNavigator1, cmbHuyen, cmbDoanhnghiep); } else { prodailyInt.ListInt_Doanhnghiep(dataGridViewX1, bindingNavigator1, cmbDoanhnghiep); } tool_them.Enabled = true; tool_xoa.Enabled = false; tool_lapbaocao.Enabled = false; tool_sua.Enabled = false; tool_xemlai.Visible = false; tool_thoat.Visible = true; tool_save.Enabled = false; dataGridViewX1.Enabled = true; dataGridViewX2.Enabled = true; txtMamaubaocao.Text = promaubaocaoInt.LayMaMax().ToString(); }
private void doanhNghiệpToolStripMenuItem_Click(object sender, EventArgs e) { QL_DoanhNghiep DN = new QL_DoanhNghiep(); DN.ShowDialog(); QL_DoanhNghiep_Ctrl pro = new QL_DoanhNghiep_Ctrl(); pro.ComboBoxDN(cmbDoanhnghiep); }
private void LapBaoCaoTHTHCLDV_Load(object sender, EventArgs e) { proloaibaocao.Combobox_Loaibaocao(cmbLoaibaocao); protieuchuan.Load_ComboBox_TieuchuanCL(cmbTieuchuan); prodoanhnghiep.ComboBoxDN(cmbDoanhnghiep); prodichvu.ListDichVu_Doanhnghiep(dataGridViewX1, bindingNavigator1, cmbDoanhnghiep); tool_them.Enabled = true; tool_xoa.Enabled = false; tool_lapbaocao.Enabled = false; tool_sua.Enabled = false; tool_xemlai.Enabled = false; tool_thoat.Enabled = true; tool_save.Enabled = false; dataGridViewX1.Enabled = true; dataGridViewX2.Enabled = true; txtMamaubaocao.Text = promaubaocao.LayMaMax().ToString(); }
private void LapBaoCaoTKTHKD_Load(object sender, EventArgs e) { prodoanhnghiep.ComboBoxDN(cmbDoanhnghiep); proloaicongtrinh.ComboBoxLoaiCongTrinh(cmbLoaicongtrinh); proloaibaocao.Combobox_Loaibaocao(cmbLoaibaocao); procongtrinh.ListCongTrinh_Doanhnghiep(dataGridViewX1, bindingNavigator1, cmbDoanhnghiep, cmbLoaicongtrinh); tool_them.Enabled = true; tool_xoa.Enabled = false; tool_lapbaocao.Enabled = false; tool_sua.Enabled = false; tool_xemlai.Enabled = false; tool_thoat.Enabled = true; tool_save.Enabled = false; dataGridViewX1.Enabled = true; dataGridViewX2.Enabled = true; txtMamaubaocao.Text = promaubaocao.LayMaMax().ToString(); }
private void QL_DaiLyBuuDienVHX_Load(object sender, EventArgs e) { CTRL.DanhsachVanHoaXa(gridControl1, bindingNavigator1, txtMaBDVHX, txtTenBDVHX, cmbHuyen, cmbXa, txtDiaChi, cmDoanhNghiep); gridView1.OptionsBehavior.Editable = false; Huyen_Thi_Ctrl ctrl_huyen = new Huyen_Thi_Ctrl(); ctrl_huyen.ComboBoxHuyen(cmbHuyen); Xa_Phuong_CTrl ctrl_xa = new Xa_Phuong_CTrl(); ctrl_xa.ComboBoxXa(cmbXa); QL_DoanhNghiep_Ctrl ctrl_dn = new QL_DoanhNghiep_Ctrl(); ctrl_dn.ComboBoxDN(cmDoanhNghiep); // this.repositoryItemLookUpEdit1.DataSource = hd.HienThiDanhSachHuyen(); this.repositoryItemLookUpEdit1.DisplayMember = "TenHuyen"; this.repositoryItemLookUpEdit1.ValueMember = "MaHuyen"; // this.repositoryItemLookUpEdit2.DataSource = Dn.Show_DoanhNghiep(); this.repositoryItemLookUpEdit2.DisplayMember = "TenDoanhNghiep"; this.repositoryItemLookUpEdit2.ValueMember = "MaDoanhNghiep"; // this.repositoryItemLookUpEdit3.DataSource = X.DanhSach_Xa_Phuong(); this.repositoryItemLookUpEdit3.DisplayMember = "TenXa"; this.repositoryItemLookUpEdit3.ValueMember = "MaXa"; //to vang cot ma GridColumn unbColumn = gridView1.Columns["MaDaiLyBuuDienVHX"]; // Disable editing. unbColumn.OptionsColumn.AllowEdit = false; unbColumn.AppearanceCell.BackColor = Color.LemonChiffon; }