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) { ExportCLRKEdit etdjh = new ExportCLRKEdit(); 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) { ExportCLRKEdit etdjh = new ExportCLRKEdit(); etdjh.ExportExcelProjectCKD("", fys.strProject, fys.strFenproject); } }