private void barExplorYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmProjectSelect fys = new frmProjectSelect(); fys.strType = " and 1=1"; fys.StrSQL = "select distinct ssgc from PJ_wgclrkysd where 1=1"; if (fys.ShowDialog() == DialogResult.OK) { ExportWGCLRKYSEdit etdjh = new ExportWGCLRKYSEdit(); etdjh.ExportExcelProjectCKD("", fys.strProject, fys.strFenproject); } }
private void SubmitButton_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmModleSubmit fm = new frmModleSubmit(); fm.RecordWorkFlowData = WorkFlowData; fm.CurrRecord = currRecord; if (currRecord.Status == "申报") fm.Status = "add"; else fm.Status = "edit"; fm.Kind = currRecord.Kind; frmProjectSelect fys = new frmProjectSelect(); fys.strType = " and 1=1"; fys.StrSQL = "select distinct ssgc from PJ_wgclrkysd where 1=1"; if (fys.ShowDialog() == DialogResult.OK) { ExportWGCLRKYSEdit export = new ExportWGCLRKYSEdit(); export.CurrRecord = currRecord; export.IsWorkflowCall = isWorkflowCall; export.ParentTemple = parentTemple; export.RecordWorkFlowData = WorkFlowData; export.ExportExcelSubmit(ref parentTemple, "", fys.strProject, fys.strFenproject , false); fm.ParentTemple = parentTemple; if (fm.ShowDialog() == DialogResult.OK) { if (fjly == null) fjly = new frmModleFjly(); fjly.btn_Submit_Click(sender, e); if (MainHelper.UserOrg.OrgName.IndexOf("局") == -1) export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns("", fys.strProject, fys.strFenproject); else export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns("", fys.strProject, fys.strFenproject); gridControl1.FindForm().Close(); } } }