private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (sealThingHandleApproval == null) { sealThingHandleApproval = new SealThingHandleApproval(); sealThingHandleApproval.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } sealThingHandleApproval.Status = 1; SaveData(); WordDocument doc = new WordDocument("查封(扣押)物品处理审批表"); doc.AddField("CaseName", sealThingHandleApproval.CaseName); doc.AddField("PartyBaseInfo", sealThingHandleApproval.PartyBaseInfo); doc.AddField("CaseSurveyInfo", sealThingHandleApproval.CaseSurveyInfo); doc.AddField("UserReason", sealThingHandleApproval.UserReason); doc.AddField("SealDecideNo", sealThingHandleApproval.SealDecideNo); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmSealThingHandleApproval", sealThingHandleApproval.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (saveEvidenceNotice == null) { saveEvidenceNotice = new SaveEvidenceNotice(); saveEvidenceNotice.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } saveEvidenceNotice.Status = 1; SaveData(); WordDocument doc = new WordDocument("先行登记保存证据通知书"); doc.AddField("DocTitle", saveEvidenceNotice.DocTitle); doc.AddField("FieldECompanyName", saveEvidenceNotice.FieldECompanyName); doc.AddField("IllegalTypeName", saveEvidenceNotice.IllegalTypeName); doc.AddField("ToTime", saveEvidenceNotice.ToTime.ToString("yyyy年MM月dd日")); doc.AddField("QFirstPerson", saveEvidenceNotice.QFirstPerson); doc.AddFootField("DocManageArea", saveEvidenceNotice.DocManageArea); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmSaveEvidenceNotices", saveEvidenceNotice.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (spotCheck == null) { spotCheck = new SpotCheck(); spotCheck.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } spotCheck.Status = 1; SaveData(); WordDocument doc = new WordDocument("现场检查记录"); doc.Entity = spotCheck; doc.AddField("CompanyName", spotCheck.CompanyName); doc.AddField("CompanyAddress", spotCheck.CompanyAddress); doc.AddField("CheckAddress", spotCheck.CheckAddress); doc.AddField("JuridicalName", spotCheck.JuridicalName); doc.AddField("JuridicalJob", spotCheck.JuridicalJob); doc.AddField("JuridicalTel", spotCheck.JuridicalTel); doc.AddField("CheckStartTimeYear", spotCheck.CheckStartTime.Year.ToString()); doc.AddField("CheckStartTimeMonth", spotCheck.CheckStartTime.Month.ToString()); doc.AddField("CheckStartTimeDay", spotCheck.CheckStartTime.Day.ToString()); doc.AddField("CheckStartTimeHours", spotCheck.CheckStartTime.Hour.ToString()); doc.AddField("CheckStartTimeMinute", spotCheck.CheckStartTime.Minute.ToString()); doc.AddField("CheckEndTimeDay", spotCheck.CheckEndTime.Day.ToString()); doc.AddField("CheckEndTimeHours", spotCheck.CheckEndTime.Hour.ToString()); doc.AddField("CheckEndTimeMinute", spotCheck.CheckEndTime.Minute.ToString()); doc.AddField("Area", spotCheck.Area); doc.AddField("OfficerName1", spotCheck.OfficerName1); doc.AddField("OfficerName2", spotCheck.OfficerName2); doc.AddField("CID1", spotCheck.CID1); doc.AddField("CID2", spotCheck.CID2); doc.AddField("CheckCondition", spotCheck.CheckCondition); doc.AddField("SpotCondition", spotCheck.SpotCondition); //doc.AddField("CheckPerson1", spotCheck.CheckPerson1); //doc.AddField("CheckPerson2", spotCheck.CheckPerson2); //doc.AddField("SiteJuridical", spotCheck.SiteJuridical); //doc.AddField("CheckDate", spotCheck.CheckDate.ToString("yyyy年M月d日")); //doc.AddFootField("FirstPageTest", "测试"); //doc.AddFootField("Test", "测试"); //OutputDocuemnt frm = new OutputDocuemnt(doc); //frm.OpenWindow(this); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmSpotChecks", spotCheck.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (hearingInform == null) { hearingInform = new HearingInform(); hearingInform.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } hearingInform.Status = 1; SaveData(); WordDocument doc = new WordDocument("听证会报告书"); doc.AddField("DocTitle", hearingInform.DocTitle); doc.AddField("CaseName", hearingInform.CaseName); doc.AddField("CompereName", hearingInform.CompereName); doc.AddField("SecretaryName", hearingInform.SecretaryName); doc.AddField("HearName", hearingInform.HearName); doc.AddField("Summary", hearingInform.Summary); doc.AddField("Suggest", hearingInform.Suggest); doc.AddField("PrincipalSuggest", hearingInform.PrincipalSuggest); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmHearingInforms", hearingInform.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (obj == null) { obj = new CaseExtensionClosedApprovalToSibling(); obj.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } obj.Status = 1; SaveData(); WordDocument doc = new WordDocument("案件延期办结毕审批表"); doc.AddField("CaseName", obj.CaseName); doc.AddField("Party", obj.Party); doc.AddField("Legal", obj.Legal); doc.AddField("CaseStartDate", obj.CaseStartDate.ToString("yyyy年MM月dd日")); doc.AddField("ExtensionApproval", obj.ExtensionApproval); doc.AddField("Address", obj.Address); doc.AddField("Tel", obj.Tel); doc.AddField("CaseSourceName", obj.CaseSourceName); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmEditCaseExtensionClosedApprovalToSibling", obj.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (writServiceReceipt == null) { writServiceReceipt = new WritServiceReceipt(); writServiceReceipt.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } writServiceReceipt.Status = 1; SaveData(); WordDocument doc = new WordDocument("文书送达回执"); doc.AddField("DocTitle", writServiceReceipt.DocTitle); doc.AddField("CaseName", writServiceReceipt.CaseName); doc.AddField("ServiceCompany", writServiceReceipt.ServiceCompany); doc.AddField("DocManageArea", writServiceReceipt.DocManageArea); doc.AddField("Note", writServiceReceipt.Note); Grid grid = doc.NewGrid(); grid.TableMark = "Table"; foreach (WritServiceReceiptItem sc in writServiceReceipt.Items) { GridRow row = grid.NewRow(); row.AddRowItem(sc.WritName); row.AddRowItem(sc.Recipient); row.AddRowItem(sc.ServiceDate.ToString("yyyy年M月d日")); row.AddRowItem(sc.ServiceAddress); row.AddRowItem(sc.ServiceWay); row.AddRowItem(sc.ServicePerson); } OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmWritServiceReceipts", writServiceReceipt.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (spotShoot == null) { spotShoot = new SpotShoot(); spotShoot.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } spotShoot.Status = 1; SaveData(); WordDocument doc = new WordDocument("现场图片"); doc.AddField("SpotName", spotShoot.SpotName); //pictureBoxShoot1.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp); string dir = spotShoot.Items[0].SpotPhoto.Remove(0, 1); Image image = CommonInvoke.ResizeImageFile(LoadImage(dir).ToArray(), 330, 320); doc.AddField("SpotPhoto1",image , EFieldType.Image); doc.AddField("ShootAddress1", ShootAddress1.Text); doc.AddField("PhotoIllustr1", PhotoIllustr1.Text); //pictureBoxShoot2.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp); dir = spotShoot.Items[1].SpotPhoto.Remove(0, 1); image = CommonInvoke.ResizeImageFile(LoadImage(dir).ToArray(), 330, 320); doc.AddField("SpotPhoto2", image, EFieldType.Image); doc.AddField("ShootAddress2", ShootAddress2.Text); doc.AddField("PhotoIllustr2", PhotoIllustr2.Text); //OutputDocuemnt frm = new OutputDocuemnt(doc); //frm.OpenWindow(this); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmSpotShoots", spotShoot.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (caseTransferred == null) { caseTransferred = new CaseTransferred(); caseTransferred.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } caseTransferred.Status = 1; SaveData(); WordDocument doc = new WordDocument("案件移送书"); doc.AddField("UnitName", caseTransferred.UnitName); doc.AddField("TransferredDate", caseTransferred.TransferredDate.ToString("yyyy年MM月dd日")); doc.AddField("CaseName", caseTransferred.CaseName); doc.AddField("TransferredReason", caseTransferred.TransferredReason); doc.AddField("TransferredLaw", caseTransferred.TransferredLaw); doc.AddField("CaseMaterial", caseTransferred.CaseMaterial); doc.AddField("DocTitle", caseTransferred.DocTitle); doc.AddFootField("DocManageArea", InvokeUtil.ActiveUser.FullName); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmCaseTransferred", caseTransferred.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (contributeFineApproval == null) { contributeFineApproval = new ContributeFineApproval(); contributeFineApproval.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } contributeFineApproval.Status = 1; SaveData(); WordDocument doc = new WordDocument("延期(分期)缴纳罚款审批表"); doc.AddField("CaseName", contributeFineApproval.CaseName); doc.AddField("PunishInstrumentNo", contributeFineApproval.PunishInstrumentNo); doc.AddField("Party", contributeFineApproval.Party); doc.AddField("Address", contributeFineApproval.Address); doc.AddField("LawFactPunish", contributeFineApproval.LawFactPunish); doc.AddField("ExtensionReason", contributeFineApproval.ExtensionReason); doc.AddField("UserOpinion", contributeFineApproval.UserOpinion); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmContributeFineApproval", contributeFineApproval.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (spotHandelDesision == null) { spotHandelDesision = new SpotHandelDesision(); spotHandelDesision.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } spotHandelDesision.Status = 1; SaveData(); WordDocument doc = new WordDocument("现场处理措施决定书"); doc.AddField("DocTitle", spotHandelDesision.DocTitle); doc.AddField("CompanyName", spotHandelDesision.CompanyName); doc.AddField("CheckDate", spotHandelDesision.CheckDate.ToString("yyyy年MM月dd日")); doc.AddField("Violations", spotHandelDesision.Violations); doc.AddField("LegalBasis", spotHandelDesision.LegalBasis); doc.AddField("SitHandel", spotHandelDesision.SitHandel); doc.AddField("GovArea", spotHandelDesision.GovArea); doc.AddField("ManageArea", spotHandelDesision.ManageArea); doc.AddField("CourtArea", spotHandelDesision.CourtArea); doc.AddFootField("DocManageArea", spotHandelDesision.DocManageArea); doc.AddFootField("OfficerName1", spotHandelDesision.OfficerName1); doc.AddFootField("CID1", spotHandelDesision.CID1); doc.AddFootField("OfficerName2", spotHandelDesision.OfficerName2); doc.AddFootField("CID2", spotHandelDesision.CID2); //OutputDocuemnt frm = new OutputDocuemnt(doc); //frm.OpenWindow(this); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmSpotHandelDesisions", spotHandelDesision.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (caseTransferredApproval == null) { caseTransferredApproval = new CaseTransferredApproval(); caseTransferredApproval.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } caseTransferredApproval.Status = 1; SaveData(); WordDocument doc = new WordDocument("案件移送审批表"); doc.AddField("CaseName", caseTransferredApproval.CaseName); doc.AddField("Party", caseTransferredApproval.Party); doc.AddField("Address", caseTransferredApproval.Address); doc.AddField("ReceiverUnit", caseTransferredApproval.ReceiverUnit); doc.AddField("CaseInfo", caseTransferredApproval.CaseInfo); doc.AddField("TransferredReason", caseTransferredApproval.TransferredReason); doc.AddField("UserReason", caseTransferredApproval.UserReason); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmCaseTransferredApproval", caseTransferredApproval.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (fineCallsNotice == null) { fineCallsNotice = new FineCallsNotice(); fineCallsNotice.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } fineCallsNotice.Status = 1; SaveData(); WordDocument doc = new WordDocument("罚款催缴通知书"); doc.AddField("CompanyName", fineCallsNotice.CompanyName); doc.AddField("SendCallsDate", fineCallsNotice.SendCallsDate.ToString("yyyy年MM月dd日")); doc.AddField("DecideNumber", fineCallsNotice.DecideNumber); doc.AddField("EndDate", fineCallsNotice.EndDate.ToString("yyyy年MM月dd日")); doc.AddField("Location", fineCallsNotice.Location); doc.AddField("DocTitle", fineCallsNotice.DocTitle); doc.AddFootField("DocManageArea", InvokeUtil.ActiveUser.FullName); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmFineCallsNotice", fineCallsNotice.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (saveEvidenceProceAudit == null) { saveEvidenceProceAudit = new SaveEvidenceProceAudit(); saveEvidenceProceAudit.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } saveEvidenceProceAudit.Status = 1; SaveData(); WordDocument doc = new WordDocument("先行登记保存证据处理审批表"); doc.AddField("PutOnRecordCaseName", saveEvidenceProceAudit.PutOnRecordCaseName); doc.AddField("PutOnRecordCasePeopleInfo", saveEvidenceProceAudit.PutOnRecordCasePeopleInfo); doc.AddField("PutOnRecordCaseContent", saveEvidenceProceAudit.PutOnRecordCaseContent); doc.AddField("SamplingID", saveEvidenceProceAudit.SamplingID); doc.AddField("ReasonBasis", saveEvidenceProceAudit.ReasonBasis); doc.AddField("UndertakerOpinion", saveEvidenceProceAudit.UndertakerOpinion); //doc.AddFootField("FirstPageTest", "测试"); //doc.AddFootField("Test", "测试"); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmSaveEvidenceProceAudits", saveEvidenceProceAudit.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (reformReView == null) { reformReView = new ReformReView(); reformReView.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } reformReView.Status = 1; SaveData(); WordDocument doc = new WordDocument("整改复查意见书"); doc.AddField("DocTitle", reformReView.DocTitle); doc.AddField("ReviewCompany", reformReView.ReviewCompany); doc.AddField("ReviewDate", reformReView.ReviewDate.ToString("yyyy年M月d日")); doc.AddField("Decide", reformReView.Decide); doc.AddField("DocTitle2", reformReView.DocTitle2); doc.AddField("Idea", reformReView.Idea); doc.AddFootField("OfficerName1", reformReView.OfficerName1); doc.AddFootField("CID1", reformReView.CID1); doc.AddFootField("OfficerName2", reformReView.OfficerName2); doc.AddFootField("CID2", reformReView.CID2); doc.AddFootField("DocManageArea", reformReView.DocManageArea); //OutputDocuemnt frm = new OutputDocuemnt(doc); //frm.OpenWindow(this); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmReformReViews", reformReView.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (defenseRecords == null) { defenseRecords = new DefenseRecords(); defenseRecords.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } defenseRecords.Status = 1; SaveData(); WordDocument doc = new WordDocument("当事人陈述申辩笔录"); doc.AddField("DefenseStartDateYear", defenseRecords.DefenseStartDate.Year.ToString()); doc.AddField("DefenseStartDateMonth", defenseRecords.DefenseStartDate.Month.ToString()); doc.AddField("DefenseStartDateDay", defenseRecords.DefenseStartDate.Day.ToString()); doc.AddField("DefenseStartDateHour", defenseRecords.DefenseStartDate.Hour.ToString()); doc.AddField("DefenseStartDateMinute", defenseRecords.DefenseStartDate.Minute.ToString()); doc.AddField("DefenseEndDateDay", defenseRecords.DefenseEndDate.Day.ToString()); doc.AddField("DefenseEndDateHour", defenseRecords.DefenseEndDate.Hour.ToString()); doc.AddField("DefenseEndDateMinute", defenseRecords.DefenseEndDate.Minute.ToString()); doc.AddField("Location", defenseRecords.Location); doc.AddField("DefenseUser", defenseRecords.DefenseUser); doc.AddField("Sex", defenseRecords.Sex); doc.AddField("Position", defenseRecords.Position); doc.AddField("WorkUnit", defenseRecords.WorkUnit); doc.AddField("Tel", defenseRecords.Tel); doc.AddField("Address", defenseRecords.Address); doc.AddField("ZipCode", defenseRecords.ZipCode); string UserNameStr = defenseRecords.UserName1 + (defenseRecords.UserName2 != "" ? "、" + defenseRecords.UserName2 : ""); doc.AddField("UserName1", UserNameStr); doc.AddField("UserName3", defenseRecords.UserName3); doc.AddField("LawUnit", defenseRecords.LawUnit); doc.AddField("ProblemResult1", defenseRecords.ProblemResult1); doc.AddField("ProblemResult2", defenseRecords.ProblemResult2); doc.AddField("ProblemResult3", defenseRecords.ProblemResult3); doc.AddField("CaseName", defenseRecords.CaseName); doc.AddField("ProblemUser1", defenseRecords.ProblemUser1); doc.AddField("ProblemUser2", defenseRecords.ProblemUser2); doc.AddField("ProblemUserCode1", defenseRecords.ProblemUserCode1); doc.AddField("ProblemUserCode2", defenseRecords.ProblemUserCode2); doc.AddField("ProblemResult4", defenseRecords.ProblemResult4); doc.AddField("ProblemContent", defenseRecords.ProblemContent); doc.AddFootField("DocManageArea", InvokeUtil.ActiveUser.FullName); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmDefenseRecords", defenseRecords.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (sealDecide == null) { sealDecide = new SealDecide(); sealDecide.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } SaveData(); sealDecide.Status = 1; WordDocument doc = new WordDocument("查封(扣押)决定书"); doc.AddField("DocTitle", sealDecide.DocTitle); doc.AddField("CompanyName", sealDecide.CompanyName); doc.AddField("SealReason", sealDecide.SealReason); doc.AddField("SealLaw", sealDecide.SealLaw); doc.AddField("Government", sealDecide.Government); doc.AddField("ManageDepartment", sealDecide.ManageDepartment); doc.AddField("Court", sealDecide.Court); doc.AddField("SealLocation", sealDecide.SealLocation); doc.AddField("SealStartDate", sealDecide.SealStartDate.ToString("")); doc.AddField("SealEndDate", sealDecide.SealEndDate.ToString("yyyy年MM月dd日")); doc.AddFootField("DocManageArea", sealDecide.DocManageArea); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmSealDecide", sealDecide.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { SaveData(); WordDocument doc = new WordDocument("文书送达回执"); doc.AddField("PutOnRecordCaseName", documentsServiceReply.PutOnRecordCaseName); doc.AddField("CompanyName", documentsServiceReply.CompanyName); doc.AddField("DocManageArea", documentsServiceReply.DocManageArea); //doc.AddFootField("FirstPageTest", "测试"); //doc.AddFootField("Test", "测试"); OutputDocuemnt frm = new OutputDocuemnt(doc); frm.OpenWindow(this); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (noticeOfEnquiry == null) { noticeOfEnquiry = new NoticeOfEnquiry(); noticeOfEnquiry.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } noticeOfEnquiry.Status = 1; SaveData(); WordDocument doc = new WordDocument("询问通知书"); doc.AddField("DocTitle", noticeOfEnquiry.DocTitle); doc.AddField("CompanyName", noticeOfEnquiry.CompanyName); doc.AddField("IllegalTypeName", noticeOfEnquiry.IllegalTypeName); doc.AddField("ToDateTimeYear", noticeOfEnquiry.ToDateTime.Year.ToString()); doc.AddField("ToDateTimeMonth", noticeOfEnquiry.ToDateTime.Month.ToString()); doc.AddField("ToDateTimeDay", noticeOfEnquiry.ToDateTime.Day.ToString()); string Cord = ""; //if (noticeOfEnquiry.IfID == true) // Cord += "√ 身份证 "; //if (noticeOfEnquiry.IfBusinessLicense == true) // Cord += "√ 营业执照 "; //if (noticeOfEnquiry.IfLawID == true) // Cord += "√ 法定代表人身份证明 "; //if (noticeOfEnquiry.IfOther == true) // Cord += "√ " + noticeOfEnquiry.OtherDocument; if (noticeOfEnquiry.IfID == true) Cord += "<font style=\"font-family:fangsong_GB2312;font-size:12pz;line-height:26px;\">√ 身份证</font><br/>"; if (noticeOfEnquiry.IfBusinessLicense == true) Cord += "<font style=\"font-family:fangsong_GB2312;font-size:12pz;line-height:26px;\">√ 营业执照</font><br/>"; if (noticeOfEnquiry.IfLawID == true) Cord += "<font style=\"font-family:fangsong_GB2312;font-size:12pz;line-height:26px;\">√ 法定代表人身份证明</font><br/>"; if (noticeOfEnquiry.IfOther == true) Cord += "<font style=\"font-family:fangsong_GB2312;font-size:12pz;line-height:26px;\">√ " + noticeOfEnquiry.OtherDocument + "</font>"; doc.AddField("Cord", Cord, EFieldType.Html); doc.AddField("DetpAddress", noticeOfEnquiry.DetpAddress); doc.AddField("DetpName", noticeOfEnquiry.DetpName); doc.AddField("DetpPhone", noticeOfEnquiry.DetpPhone); doc.AddFootField("DocManageArea", noticeOfEnquiry.DocManageArea); //doc.AddFootField("FirstPageTest", "测试"); //doc.AddFootField("Test", "测试"); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmNoticeOfEnquirys", noticeOfEnquiry.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (inCaseOfTable == null) { inCaseOfTable = new InCaseOfTable(); inCaseOfTable.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } inCaseOfTable.Status = 1; SaveData(); WordDocument doc = new WordDocument("案件处理呈批表"); doc.AddField("DocTitle", inCaseOfTable.DocTitle); doc.AddField("PutOnRecordCaseName", inCaseOfTable.PutOnRecordCaseName); doc.AddField("PutOnRecordPeopleName", inCaseOfTable.PutOnRecordPeopleName); doc.AddField("PutOnRecordFName", inCaseOfTable.PutOnRecordFName); doc.AddField("PutOnRecordPeopleAddress", inCaseOfTable.PutOnRecordPeopleAddress); doc.AddField("CaseSourceName", inCaseOfTable.CaseSourceName); doc.AddField("GeneralCase", inCaseOfTable.GeneralCase); doc.AddField("IllegalFact", inCaseOfTable.IllegalFact); doc.AddField("UndertakerOpinion", inCaseOfTable.UndertakerOpinion); //doc.AddFootField("FirstPageTest", "测试"); //doc.AddFootField("Test", "测试"); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmInCaseOfTables", inCaseOfTable.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (orderDeadlineReform == null) { orderDeadlineReform = new OrderDeadlineReform(); orderDeadlineReform.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } orderDeadlineReform.Status = 1; SaveData(); WordDocument doc = new WordDocument("责令限期整改指令书"); doc.AddField("DocTitle", orderDeadlineReform.DocTitle); doc.AddField("OrderCompany", orderDeadlineReform.OrderCompany); doc.AddField("Matter", orderDeadlineReform.Matter); doc.AddField("MatterCount", orderDeadlineReform.MatterCount); doc.AddField("ReformDate", orderDeadlineReform.ReformDate.ToString("yyyy年M月d日")); doc.AddField("GovArea", orderDeadlineReform.GovArea); doc.AddField("ManageArea", orderDeadlineReform.ManageArea); doc.AddField("CourtArea", orderDeadlineReform.CourtArea); doc.AddFootField("OfficerName1", orderDeadlineReform.OfficerName1); doc.AddFootField("CID1", orderDeadlineReform.CID1); doc.AddFootField("OfficerName2", orderDeadlineReform.OfficerName2); doc.AddFootField("CID2", orderDeadlineReform.CID2); doc.AddFootField("DocManageArea", orderDeadlineReform.DocManageArea); //doc.AddFootField("DocDate", orderDeadlineReform.DocDate.ToString("yyyy年M月d日")); //OutputDocuemnt frm = new OutputDocuemnt(doc); //frm.OpenWindow(this); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmOrderDeadlineReforms", orderDeadlineReform.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (saveEvidenceProceDecide == null) { saveEvidenceProceDecide = new SaveEvidenceProceDecide(); saveEvidenceProceDecide.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } saveEvidenceProceDecide.Status = 1; SaveData(); WordDocument doc = new WordDocument("先行登记保存证据处理决定书"); doc.AddField("DocTitle", saveEvidenceProceDecide.DocTitle); doc.AddField("FieldECompanyName", saveEvidenceProceDecide.FieldECompanyName); doc.AddField("JData", saveEvidenceProceDecide.JData.ToString("yyyy年MM月dd日")); doc.AddField("SamplingContent", saveEvidenceProceDecide.SamplingContent); doc.AddField("SaveEvidenceProceAuditDocTitle", saveEvidenceProceDecide.SaveEvidenceProceAuditDocTitle); doc.AddField("DecideContent", saveEvidenceProceDecide.DecideContent); doc.AddField("LitigationUnitName1", saveEvidenceProceDecide.LitigationUnitName1); doc.AddField("LitigationUnitName2", saveEvidenceProceDecide.LitigationUnitName2); doc.AddField("LitigationUnitName3", saveEvidenceProceDecide.LitigationUnitName3); doc.AddFootField("DocManageArea", saveEvidenceProceDecide.DocManageArea); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmSaveEvidenceProceDecides", saveEvidenceProceDecide.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (appraisalEntrust == null) { appraisalEntrust = new AppraisalEntrust(); appraisalEntrust.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } appraisalEntrust.Status = 1; SaveData(); WordDocument doc = new WordDocument("鉴定委托书"); doc.AddField("DocTitle", appraisalEntrust.DocTitle); doc.AddField("AppraisalUnit", appraisalEntrust.AppraisalUnit); doc.AddField("AppraisalPoints", appraisalEntrust.AppraisalPoints); doc.AddField("AppraisaDate", appraisalEntrust.AppraisaDate.ToString("yyyy年MM月dd日")); doc.AddField("ContactUserName", appraisalEntrust.ContactUserName); doc.AddField("ContactUserPhone", appraisalEntrust.ContactUserPhone); doc.AddFootField("DocManageArea", appraisalEntrust.DocManageArea); //doc.AddFootField("FirstPageTest", "测试"); //doc.AddFootField("Test", "测试"); Grid grid = doc.NewGrid(); grid.TableMark = "Table"; int i = 0; foreach (SamplingContent sc in appraisalEntrust.Items) { i++; GridRow row = grid.NewRow(); row.AddRowItem(i.ToString()); row.AddRowItem(sc.SDocTitle); row.AddRowItem(sc.ItemName); row.AddRowItem(sc.ItemRule); row.AddRowItem(sc.Count.ToString() + sc.ItemUnit); } OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmAppraisalEntrust", appraisalEntrust.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (forceMeasureDecision == null) { forceMeasureDecision = new ForceMeasureDecision(); forceMeasureDecision.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } forceMeasureDecision.Status = 1; SaveData(); WordDocument doc = new WordDocument("强制措施决定书"); doc.AddField("DocTitle", forceMeasureDecision.DocTitle); doc.AddField("CompanyName", forceMeasureDecision.CompanyName); doc.AddField("Matter", forceMeasureDecision.Matter); doc.AddField("Accord", forceMeasureDecision.Accord); doc.AddField("EnforceMea", forceMeasureDecision.EnforceMea); doc.AddField("GovArea", forceMeasureDecision.GovArea); doc.AddField("ManageArea", forceMeasureDecision.ManageArea); doc.AddField("CourtArea", forceMeasureDecision.CourtArea); doc.AddFootField("DocManageArea", forceMeasureDecision.DocManageArea); doc.AddFootField("DocDate", forceMeasureDecision.DocDate.ToString("yyyy年M月d日")); //OutputDocuemnt frm = new OutputDocuemnt(doc); //frm.OpenWindow(this); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmForceMeasureDecisions", forceMeasureDecision.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void toolStripButtonOutPut_Click(object sender, EventArgs e) { if (enforceLawGridViewReformReView.SelectedRows.Count == 0) return; UseWaitCursor = true; Application.DoEvents(); try { ReformReView reformReView = enforceLawGridViewReformReView.SelectedRows[0].Tag as ReformReView; WordDocument doc = new WordDocument("整改复查意见书.rtf"); doc.AddField("DocTitle", reformReView.DocTitle); doc.AddField("ReviewCompany", reformReView.ReviewCompany); doc.AddField("ReviewDateYear", reformReView.ReviewDate.Year.ToString()); doc.AddField("ReviewDateMonth", reformReView.ReviewDate.Month.ToString()); doc.AddField("ReviewDateDay", reformReView.ReviewDate.Day.ToString()); doc.AddField("Decide", reformReView.Decide); doc.AddField("DocTitle2", reformReView.DocTitle2); doc.AddField("Idea", reformReView.Idea); doc.AddField("OfficerName1", reformReView.OfficerName1); doc.AddField("CID1", reformReView.CID1); doc.AddField("OfficerName2", reformReView.OfficerName2); doc.AddField("CID2", reformReView.CID2); doc.AddField("DocManageArea", reformReView.DocManageArea); doc.AddField("DocDate", reformReView.DocDate.ToString("yyyy年M月d日")); Grid grid = doc.NewGrid(); grid.TableMark = "Table"; GridRow row = grid.NewRow(); row.AddRowItem("台安监管回2012 (1) 号"); row.AddRowItem("张三"); row.AddRowItem("2012-01-01"); row.AddRowItem("宁波"); row.AddRowItem("当面"); row.AddRowItem("李四"); row = grid.NewRow(); row.AddRowItem("台安监管回2012 (2) 号"); row.AddRowItem("王五"); row.AddRowItem("2013-12-01"); row.AddRowItem("宁波"); row.AddRowItem("当面"); row.AddRowItem("李四"); OutputDocuemnt frm = new OutputDocuemnt(doc); frm.OpenWindow(this); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (obj == null) { obj = new AdminPunishNotification(); obj.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } obj.Status = 1; SaveData(); WordDocument doc = new WordDocument("行政处罚告知书"); doc.AddField("DocTitle", obj.DocTitle); doc.AddField("CompanyName", obj.CompanyName); doc.AddField("BriefCase", obj.BriefCase); doc.AddField("CompanyBehavior", obj.CompanyBehavior); doc.AddField("LawProvision", obj.LawProvision); doc.AddField("Certificate", obj.Certificate); doc.AddField("AdminPunish", obj.AdminPunish); doc.AddField("Address", obj.Address); doc.AddField("Post", obj.Post); doc.AddField("Contacter", obj.Contacter); doc.AddField("Tel", obj.Tel); doc.AddFootField("DocManageArea", InvokeUtil.ActiveUser.FullName); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmAdminPunishNotification", obj.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (explorationRecord == null) { explorationRecord = new ExplorationRecord(); explorationRecord.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } explorationRecord.Status = 1; SaveData(); WordDocument doc = new WordDocument("勘验笔录"); doc.AddField("DocTitle", explorationRecord.DocTitle); doc.AddField("BeganTimeYear", explorationRecord.BeganTime.Year.ToString()); doc.AddField("BeganTimeMonth", explorationRecord.BeganTime.Month.ToString()); doc.AddField("BeganTimeDay", explorationRecord.BeganTime.Day.ToString()); doc.AddField("BeganTimeHour", explorationRecord.BeganTime.Hour.ToString()); doc.AddField("BeganTimeMinute", explorationRecord.BeganTime.Minute.ToString()); doc.AddField("ToTimeDay", explorationRecord.ToTime.Day.ToString()); doc.AddField("ToTimeHour", explorationRecord.ToTime.Hour.ToString()); doc.AddField("ToTimeMinute", explorationRecord.ToTime.Minute.ToString()); doc.AddField("Address", explorationRecord.Address); doc.AddField("Weather", explorationRecord.Weather); doc.AddField("EUserName1", explorationRecord.EUserName1); doc.AddField("ECompanyName1", explorationRecord.ECompanyName1); doc.AddField("EUserName2", explorationRecord.EUserName2); doc.AddField("ECompanyName2", explorationRecord.ECompanyName2); doc.AddField("TheEPeopleName1", explorationRecord.TheEPeopleName1); doc.AddField("TheECompanyName1", explorationRecord.TheECompanyName1); doc.AddField("TheEPeopleName2", explorationRecord.TheEPeopleName2); doc.AddField("TheECompanyName2", explorationRecord.TheECompanyName2); doc.AddField("InvitedEPeopleName", explorationRecord.InvitedEPeopleName); doc.AddField("InvitedECompanyName", explorationRecord.InvitedECompanyName); doc.AddField("RecordUserName", explorationRecord.RecordUserName); doc.AddField("RecordCompanyName", explorationRecord.RecordCompanyName); doc.AddField("QFirstPerson1", explorationRecord.QFirstPerson1); doc.AddField("QFirstPersonUser1", explorationRecord.QFirstPersonUser1); doc.AddField("QFirstPerson2", explorationRecord.QFirstPerson2); doc.AddField("QFirstPersonIDC1", explorationRecord.QFirstPersonIDC1); doc.AddField("QFirstPerson2IDC2", explorationRecord.QFirstPerson2IDC2); doc.AddField("ESituation", explorationRecord.ESituation); //doc.AddFootField("FirstPageTest", "测试"); //doc.AddFootField("Test", "测试"); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmExplorationRecords", explorationRecord.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (hearingNotice == null) { hearingNotice = new HearingNotice(); hearingNotice.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } hearingNotice.Status = 1; SaveData(); WordDocument doc = new WordDocument("听证会通知书"); doc.AddField("DocTitle", hearingNotice.DocTitle); doc.AddField("Informant", hearingNotice.Informant); doc.AddField("About", hearingNotice.About); doc.AddField("HearDate", hearingNotice.HearDate.ToString("yyyy年M月d日 H时 m分")); doc.AddField("HearAddress", hearingNotice.HearAddress); doc.AddField("CompereName", hearingNotice.CompereName); doc.AddField("CompereJob", hearingNotice.CompereJob); doc.AddField("HearName1", hearingNotice.HearName1); doc.AddField("HearJob1", hearingNotice.HearJob1); doc.AddField("HearName2", hearingNotice.HearName2); doc.AddField("HearJob2", hearingNotice.HearJob2); doc.AddField("SecretaryName", hearingNotice.SecretaryName); doc.AddField("SecretaryJob", hearingNotice.SecretaryJob); doc.AddFootField("DocManageArea", hearingNotice.DocManageArea); doc.AddFootField("DocManageArea1", hearingNotice.DocManageArea.Replace("(公章)", "")); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmHearingNotices", hearingNotice.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (spotPunishmentDecisionPersonal == null) { spotPunishmentDecisionPersonal = new SpotPunishmentDecisionPersonal(); spotPunishmentDecisionPersonal.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } spotPunishmentDecisionPersonal.Status = 1; SaveData(); WordDocument doc = new WordDocument("行政当场处罚决定书个人"); doc.AddField("DocTitle", spotPunishmentDecisionPersonal.DocTitle); doc.AddField("FieldEPeopleName", spotPunishmentDecisionPersonal.FieldEPeopleName); doc.AddField("FieldEPeopleSex", spotPunishmentDecisionPersonal.FieldEPeopleSex); doc.AddField("FieldEPeopleAge", spotPunishmentDecisionPersonal.FieldEPeopleAge); doc.AddField("FieldEPeopleID", spotPunishmentDecisionPersonal.FieldEPeopleID); doc.AddField("FieldEPeopleAddress", spotPunishmentDecisionPersonal.FieldEPeopleAddress); doc.AddField("FieldEPeopleCompanyName", spotPunishmentDecisionPersonal.FieldEPeopleCompanyName); doc.AddField("FieldEPeoplePosition", spotPunishmentDecisionPersonal.FieldEPeoplePosition); doc.AddField("FieldEPeopleCompanyAddress", spotPunishmentDecisionPersonal.FieldEPeopleCompanyAddress); doc.AddField("FieldEPeoplePhone", spotPunishmentDecisionPersonal.FieldEPeoplePhone); doc.AddField("IllegalEvidence", spotPunishmentDecisionPersonal.IllegalEvidence); doc.AddField("IllegalProvisions", spotPunishmentDecisionPersonal.IllegalProvisions); doc.AddField("According", spotPunishmentDecisionPersonal.According); doc.AddField("PunishmentAmount", spotPunishmentDecisionPersonal.PunishmentAmount); doc.AddField("IfSpotPay", spotPunishmentDecisionPersonal.IfSpotPay ? "√" : ""); doc.AddField("IfOther", spotPunishmentDecisionPersonal.IfOther ? "√" : ""); doc.AddField("BankName", spotPunishmentDecisionPersonal.BankName); doc.AddField("BankID", spotPunishmentDecisionPersonal.BankID); doc.AddField("ReconsiderationUnitName1", spotPunishmentDecisionPersonal.ReconsiderationUnitName1); doc.AddField("ReconsiderationUnitName2", spotPunishmentDecisionPersonal.ReconsiderationUnitName2); doc.AddField("LitigationUnitName", spotPunishmentDecisionPersonal.LitigationUnitName); doc.AddFootField("DocManageArea", spotPunishmentDecisionPersonal.DocManageArea); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmSpotPunishmentDecisionPersonals", spotPunishmentDecisionPersonal.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void toolStripButtonOutPut_Click(object sender, EventArgs e) { if (enforceLawGridViewOrderDeadlineReforms.SelectedRows.Count == 0) return; UseWaitCursor = true; Application.DoEvents(); try { OrderDeadlineReform orderDeadlineReform = enforceLawGridViewOrderDeadlineReforms.SelectedRows[0].Tag as OrderDeadlineReform; WordDocument doc = new WordDocument("责令限期整改指令书.doc"); doc.AddField("DocTitle", orderDeadlineReform.DocTitle); doc.AddField("OrderCompany", orderDeadlineReform.OrderCompany); doc.AddField("Matter", orderDeadlineReform.Matter); doc.AddField("MatterCount", orderDeadlineReform.MatterCount); doc.AddField("ReformDateYear", orderDeadlineReform.ReformDate.Year.ToString()); doc.AddField("ReformDateMonth", orderDeadlineReform.ReformDate.Month.ToString()); doc.AddField("ReformDateDay", orderDeadlineReform.ReformDate.Day.ToString()); doc.AddField("GovArea", orderDeadlineReform.GovArea); doc.AddField("ManageArea", orderDeadlineReform.ManageArea); doc.AddField("CourtArea", orderDeadlineReform.CourtArea); doc.AddField("OfficerName1", orderDeadlineReform.OfficerName1); doc.AddField("CID1", orderDeadlineReform.CID1); doc.AddField("OfficerName2", orderDeadlineReform.OfficerName2); doc.AddField("CID2", orderDeadlineReform.CID2); doc.AddField("DocManageArea", orderDeadlineReform.DocManageArea); doc.AddField("DocDate", orderDeadlineReform.DocDate.ToString("yyyy年M月d日")); OutputDocuemnt frm = new OutputDocuemnt(doc); frm.OpenWindow(this); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
private void buttonExport_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (interrogationRecord == null) { interrogationRecord = new InterrogationRecord(); interrogationRecord.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } interrogationRecord.Status = 1; SaveData(); WordDocument doc = new WordDocument("询问笔录"); doc.AddField("BeganTimeYear", interrogationRecord.BeganTime.Year.ToString()); doc.AddField("BeganTimeMonth", interrogationRecord.BeganTime.Month.ToString()); doc.AddField("BeganTimeDay", interrogationRecord.BeganTime.Day.ToString()); doc.AddField("BeganTimeHour", interrogationRecord.BeganTime.Hour.ToString()); doc.AddField("BeganTimeMinute", interrogationRecord.BeganTime.Minute.ToString()); doc.AddField("ToTimeDay", interrogationRecord.ToTime.Day.ToString()); doc.AddField("ToTimeHour", interrogationRecord.ToTime.Hour.ToString()); doc.AddField("ToTimeMinute", interrogationRecord.ToTime.Minute.ToString()); doc.AddField("InterrogationRecordCount", interrogationRecord.InterrogationRecordCount.ToString()); doc.AddField("AskAddress", interrogationRecord.AskAddress); doc.AddField("BeAskEPeopleName", interrogationRecord.BeAskEPeopleName); doc.AddField("BeAskEPeopleSex", interrogationRecord.BeAskEPeopleSex); doc.AddField("BeAskEPeopleAge", interrogationRecord.BeAskEPeopleAge); doc.AddField("BeAskEPeopleID", interrogationRecord.BeAskEPeopleID); doc.AddField("BeAskEPeopleCompanyName", interrogationRecord.BeAskEPeopleCompanyName); doc.AddField("BeAskEPeoplePosition", interrogationRecord.BeAskEPeoplePosition); doc.AddField("BeAskEPeopleAddress", interrogationRecord.BeAskEPeopleAddress); doc.AddField("BeAskEPeoplePhone", interrogationRecord.BeAskEPeoplePhone); doc.AddField("AskUserName", interrogationRecord.AskUserName); doc.AddField("AskUserCompanyName", interrogationRecord.AskUserCompanyName); doc.AddField("RecordUserName", interrogationRecord.RecordUserName); doc.AddField("RecordCompanyName", interrogationRecord.RecordCompanyName); doc.AddField("PresentEPeopleName", interrogationRecord.PresentEPeopleName); doc.AddField("QFirstPerson1", interrogationRecord.QFirstPerson1 + "安全生产监督管理局的执法"); doc.AddField("QFirstPersonName1", interrogationRecord.QFirstPersonName1); doc.AddField("QFirstPerson2", interrogationRecord.QFirstPerson2); doc.AddField("QFirstPersonIDC1", interrogationRecord.QFirstPersonIDC1); doc.AddField("QFirstPerson2IDC2", interrogationRecord.QFirstPerson2IDC2); doc.AddField("QFirstAnswer", interrogationRecord.QFirstAnswer); doc.AddField("QuestionSecond", interrogationRecord.QuestionSecond); doc.AddField("QuestionSecondAnswer", interrogationRecord.QuestionSecondAnswer); doc.AddField("QuestionThirdAnswer", interrogationRecord.QuestionThirdAnswer); //doc.AddField("Questions", interrogationRecord.Questions); string Questions = ""; foreach (EnquireQuestionItem item in interrogationRecord.Items) Questions += "<font style=\"font-family:fangsong_GB2312;font-size:12pz;line-height:26px;\">问:" + item.Question + "</font><br />" + "<font style=\"font-family:fangsong_GB2312;font-size:12pz;line-height:26px;\">答:" + item.Anwser + "</font><br />"; doc.AddField("Questions", Questions,EFieldType.Html); //doc.AddFootField("FirstPageTest", "测试"); //doc.AddFootField("Test", "测试"); //OutputDocuemnt frm = new OutputDocuemnt(doc); //frm.OpenWindow(this); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmInterrogationRecords", interrogationRecord.FilePath })); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }