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; ExportSBBZQSBGMXB4Edit export = new ExportSBBZQSBGMXB4Edit(); export.CurrRecord = currRecord; export.IsWorkflowCall = isWorkflowCall; export.ParentTemple = parentTemple; export.RecordWorkFlowData = WorkFlowData; export.ExportExcelSubmit(ref parentTemple, parentID, 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(parentID); else export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns(parentID); gridControl1.FindForm().Close(); } }
private void barExplorYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ExportSBBZQSBGMXB4Edit etdjh = new ExportSBBZQSBGMXB4Edit(); etdjh.ExportExcel(""); }
private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { //IList<PJ_sbbzqsbgmxb4> datalist = gridView1.DataSource as IList<PJ_sbbzqsbgmxb4>; //frmYearSelect fys = new frmYearSelect(); //fys.StrSQL = "select distinct left(CONVERT(varchar(50) , indate, 112 ),4 ) from PJ_sbbzqsbgmxb4"; //if (fys.ShowDialog() == DialogResult.OK) { ExportSBBZQSBGMXB4Edit etdjh = new ExportSBBZQSBGMXB4Edit(); etdjh.ExportExcel(parentID); } }