private void QuanLyBaoCaoDaiLyInternet_Load(object sender, EventArgs e)
        {
            proloaibaocao.Combobox_Loaibaocao(cmbLoaibaocao);
            prohuyen.ComboBoxHuyen(cmbHuyen);
            proxa.ComboBoxXa(cmbXa);
            prothuebao.ComboBoxThueBao(cmbthuebao);
            promaubaocao.ListMauBaoCao_Int(dataGridViewX2, bindingNavigator1);
            probaocao.ListBaoCao_Int(txtMamaubaocao.Text, dataGridViewX1, bindingNavigator2);

            txtTenbaocao.ReadOnly = true;
            cmbNambaocao.Enabled  = false;
            cmbLoaibaocao.Enabled = false;
            txtsohieu.ReadOnly    = true;
            cmbthuebao.Enabled    = false;
            txtdienthoai.ReadOnly = true;
            txtGhichu.ReadOnly    = true;

            tool_them.Enabled    = true;
            tool_xoa.Enabled     = true;
            tool_sua.Enabled     = true;
            tool_luu.Enabled     = false;
            tool_thoat.Enabled   = true;
            tool_xemlai.Enabled  = false;
            tool_sua1.Enabled    = true;
            tool_luu1.Enabled    = false;
            tool_xemlai1.Enabled = false;
            tool_them1.Enabled   = true;

            dataGridViewX1.Enabled = true;
            dataGridViewX2.Enabled = true;
        }
Example #2
0
        private void QL_DoanhNghiep_Load(object sender, EventArgs e)
        {
            CTRL.DanhsachDoanhNghiep(gridControl1, bindingNavigator1, txtMaDoanhNghiep, txtTenDoanhNghiep, cmbHuyen, cmbXa, txtDiachi, txtDienThoai, txtFax, txtEmail, txtTrangWeb);

            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);


            this.repositoryItemLookUpEdit1.DataSource    = huyen.HienThiDanhSachHuyen();
            this.repositoryItemLookUpEdit1.DisplayMember = "TenHuyen";
            this.repositoryItemLookUpEdit1.ValueMember   = "MaHuyen";

            this.repositoryItemLookUpEdit2.DataSource    = x.DanhSach_Xa_Phuong();
            this.repositoryItemLookUpEdit2.DisplayMember = "TenXa";
            this.repositoryItemLookUpEdit2.ValueMember   = "MaXa";

            //to vang cot ma
            GridColumn unbColumn = gridView1.Columns["MaDoanhNghiep"];

            // Disable editing.
            unbColumn.OptionsColumn.AllowEdit  = false;
            unbColumn.AppearanceCell.BackColor = Color.LemonChiffon;
        }
Example #3
0
        private void xãToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QL_Xa_Phuong_ x = new QL_Xa_Phuong_();

            x.ShowDialog();
            Xa_Phuong_CTrl xa = new Xa_Phuong_CTrl();

            xa.ComboBoxXa(cmbXa);
        }
Example #4
0
        private void btn_themXa_Click(object sender, EventArgs e)
        {
            QL_Xa_Phuong_ xa = new QL_Xa_Phuong_();

            xa.ShowDialog();
            Xa_Phuong_CTrl pro = new Xa_Phuong_CTrl();

            pro.ComboBoxXa(cmbXa);
        }
        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;
        }