private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { //IList<PJ_wgclcrkd> datalist = gridView1.DataSource as IList<PJ_wgclcrkd>; frmProjectSelect fys = new frmProjectSelect(); fys.strType = " and (type = '非生产物资入库单' or type = '非生产物资入库单原始库存') "; fys.StrSQL = "select distinct ssgc from PJ_wgclcrkd where (type = '非生产物资入库单' or type = '非生产物资入库单原始库存') "; if (fys.ShowDialog() == DialogResult.OK) { ExportFCLRKEdit etdjh = new ExportFCLRKEdit(); etdjh.ExportExcelProjectCKD(parentID,fys.strProject,fys.strFenproject); } }
private void barExplorYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmProjectSelect fys = new frmProjectSelect(); fys.strType = " and (type = '非生产物资入库单' or type = '非生产物资入库单原始库存') "; fys.StrSQL = "select distinct ssgc from PJ_clcrkd where (type = '非生产物资入库单' or type = '非生产物资入库单原始库存') "; if (fys.ShowDialog() == DialogResult.OK) { ExportFCLRKEdit etdjh = new ExportFCLRKEdit(); etdjh.ExportExcelProjectCKD("", fys.strProject, fys.strFenproject); } }