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; frmTDJHMonthSet fms = new frmTDJHMonthSet(); if (fms.ShowDialog() == DialogResult.OK) { ExportTDJH export = new ExportTDJH(); export.CurrRecord = currRecord; export.IsWorkflowCall = isWorkflowCall; export.ParentTemple = parentTemple; export.RecordWorkFlowData = WorkFlowData; fms.dtTime = fms.dtTime.AddMonths(-1); export.ExportExcelSubmit(fms.dtTime, fms.dtTime2, ref parentTemple, parentID, false); fm.ParentTemple = parentTemple; if (fm.ShowDialog() == DialogResult.OK) { if (MainHelper.UserOrg.OrgName.IndexOf("局") == -1) export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns(fms.dtTime, fms.dtTime2, parentID); else export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns(fms.dtTime, fms.dtTime2, parentID); gridControl1.FindForm().Close(); } } }
private void barExplorMonth_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { this.gridView1.PostEditor();//马上保存编辑 ExportTDJH etdjh = new ExportTDJH(); frmTDJHMonthSet fms = new frmTDJHMonthSet(); if (fms.ShowDialog() == DialogResult.OK) { //fms.dtTime = fms.dtTime.AddMonths(-1); etdjh.ExportExcelMonth(fms.dtTime, fms.dtTime2, parentObj.OrgCode); } }