예제 #1
0
 private void barExplorYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmNumSelect fys = new frmNumSelect();
     fys.strType = " and (type = '局安全工器具入库单' or type = '局安全工器具入库单原始库存') ";
     fys.StrSQL = "select distinct num  from PJ_anqgjcrkd where  (type = '局安全工器具入库单' or type = '局安全工器具入库单原始库存') ";
     if (fys.ShowDialog() == DialogResult.OK)
     {
         ExportAQGJRKEdit etdjh = new ExportAQGJRKEdit();
         etdjh.ExportExcelProjectCKD("", fys.strNum);
     }
 }
예제 #2
0
        private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
            //IList<PJ_anqgjcrkd> datalist = gridView1.DataSource as IList<PJ_anqgjcrkd>;
            frmNumSelect fys = new frmNumSelect();
            fys.strType = " and (type = '局安全工器具入库单' or type = '局安全工器具入库单原始库存') ";
            fys.StrSQL = "select distinct num  from PJ_anqgjcrkd where  (type = '局安全工器具入库单' or type = '局安全工器具入库单原始库存') ";
            if (fys.ShowDialog() == DialogResult.OK)
            {

                ExportAQGJRKEdit etdjh = new ExportAQGJRKEdit();
                etdjh.ExportExcelProjectCKD(parentID,fys.strNum);
            }
           
           
           
        }