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