Esempio n. 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     ztinfo zt = (ztinfo)cmbZtLst.SelectedItem;
     int ztid = zt.ID;
     strDbType = zt.DbType;
     strZtID = ztid.ToString();
     frmFilter frm = new frmFilter(zt.Name, ztid, strDbType);
     if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         //MessageBox.Show(frm.allsql);
         strfilterSql = frm.allsql;
         LoadData(false);
     }
 }
Esempio n. 2
0
        private void button6_Click(object sender, EventArgs e)
        {

            frmFilter frm = new frmFilter(dbname, zid, dbtype, config.FilterDt);
            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                config.FilterSQL = frm.allsql;
                config.FilterDt = frm.dt;
                this.dgw_filter.DataSource = config.FilterDt;
                btnCreate_Click(null, null);
            }
            else
            {
                config.FilterSQL = "";
                config.FilterDt = frm.dt;
                this.dgw_filter.DataSource = config.FilterDt;
                btnCreate_Click(null, null);
            }
        }