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) { ExportCJCLRKEdit etdjh = new ExportCJCLRKEdit(); etdjh.ExportExcelProjectCKD("", fys.strProject, fys.strFenproject); } }
private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { //IList<PJ_clcrkd> datalist = gridView1.DataSource as IList<PJ_clcrkd>; 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) { ExportCJCLRKEdit etdjh = new ExportCJCLRKEdit(); etdjh.ExportExcelProjectCKD(parentID,fys.strProject,fys.strFenproject); } }