Esempio n. 1
0
        private void Form_Load(object sender, EventArgs e)
        {
            PODControl pdControl = new PODControl();
            DataTable  dt        = pdControl.GetAll(ref sErr);

            //dgvFilter.MasterGridViewTemplate.AutoGenerateColumns = false;
            LoadDataGrid(dt);
            flag = false;
            //dgvFilter.CurrentRow = null;
        }
Esempio n. 2
0
        private void btnReresh_Click(object sender, EventArgs e)
        {
            PODControl pdControl = new PODControl();
            DataTable  dt        = pdControl.GetAll(ref sErr);

            //dgvFilter.MasterGridViewTemplate.AutoGenerateColumns = false;
            dgvPODView.DataSource = dt;
            //dgvPODView.AutoSizeColumns();
            SaveLayout();
            flag = false;
            //dgvFilter.CurrentRow = null;
        }
Esempio n. 3
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            Form_QD.DB = txtdatabase.Text;
            if (_user != "TVC" && checkBox1.Checked)
            {
                BUS.PODControl podCtr = new PODControl();
                DTO.PODInfo    podInf = podCtr.Get(_user, ref sErr);
                podInf.DB_DEFAULT = txtdatabase.Text;
                podCtr.Update(podInf);
            }
            BUS.DBAControl dbaCtr = new DBAControl();
            DTO.DBAInfo    dbaInf = dbaCtr.Get(txtdatabase.Text, ref sErr);
            reportDir = dbaInf.REPORT_TEMPLATE_DRIVER;

            DialogResult = DialogResult.OK;
            Close();
        }