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 (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 (caseExtensionClosedApproval == null) { caseExtensionClosedApproval = new CaseExtensionClosedApproval(); caseExtensionClosedApproval.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } caseExtensionClosedApproval.Status = 1; SaveData(); WordDocument doc = new WordDocument("案件延期办结毕审批表"); doc.AddField("CaseName", caseExtensionClosedApproval.CaseName); doc.AddField("Party", caseExtensionClosedApproval.Party); doc.AddField("Legal", caseExtensionClosedApproval.Legal); doc.AddField("Address", caseExtensionClosedApproval.Address); doc.AddField("Tel", caseExtensionClosedApproval.Tel); doc.AddField("CaseSourceName", caseExtensionClosedApproval.CaseSourceName); doc.AddField("CaseStartDate", caseExtensionClosedApproval.CaseStartDate.ToString("yyyy年MM月dd日")); doc.AddField("ExtensionApproval", caseExtensionClosedApproval.ExtensionApproval); doc.AddFootField("DocManageArea", InvokeUtil.ActiveUser.FullName); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmCaseExtensionClosedApproval", caseExtensionClosedApproval.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 { SaveData(); WordDocument doc = new WordDocument("延期(分期)缴纳罚款批准书"); doc.AddField("CompanyName", contributeFine.CompanyName); doc.AddField("DocTitle", contributeFine.DocTitle); doc.AddField("ContributionsDate", contributeFine.ContributionsDate.ToString("yyyy年MM月dd日")); doc.AddField("InstrumentNo", contributeFine.InstrumentNo); doc.AddField("FineSumString", contributeFine.FineSumString); doc.AddField("FineSum", contributeFine.FineSum.ToString()); doc.AddField("ExtensionDate", contributeFine.ExtensionDate.ToString("yyyy年MM月dd日")); doc.AddField("ExtensionDateString", contributeFine.ExtensionDateString); doc.AddField("Period", contributeFine.Period); doc.AddField("InstallmentsDate", contributeFine.InstallmentsDate.ToString("yyyy年MM月dd日")); doc.AddField("InstallmentsDateString", contributeFine.InstallmentsDateString); doc.AddField("InstallmentsSum", contributeFine.InstallmentsSum.ToString()); doc.AddField("InstallmentsSumString", contributeFine.InstallmentsSumString); doc.AddField("InstallmentsBalance", contributeFine.InstallmentsBalance.ToString()); doc.AddField("InstallmentsBalanceString", contributeFine.InstallmentsBalanceString); doc.AddFootField("DocManageArea", InvokeUtil.ActiveUser.FullName); 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 (sampling == null) { sampling = new Sampling(); sampling.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } sampling.Status = 1; SaveData(); WordDocument doc = new WordDocument("抽样取证凭证"); doc.AddField("DocTitle", sampling.DocTitle); doc.AddField("FieldECompanyName", sampling.FieldECompanyName); doc.AddField("FieldEPeopleName", sampling.FieldEPeopleName); doc.AddField("FieldEAddress", sampling.FieldEAddress); doc.AddField("FieldEPeoplePhone", sampling.FieldEPeoplePhone); doc.AddField("FieldEPeopleZio", sampling.FieldEPeopleZio); doc.AddField("BeganTimeYear", sampling.BeganTime.Year.ToString()); doc.AddField("BeganTimeMonth", sampling.BeganTime.Month.ToString()); doc.AddField("BeganTimeDay", sampling.BeganTime.Day.ToString()); doc.AddField("BeganTimeHour", sampling.BeganTime.Hour.ToString()); doc.AddField("BeganTimeMinute", sampling.BeganTime.Minute.ToString()); doc.AddField("ToTimeDay", sampling.ToTime.Day.ToString()); doc.AddField("ToTimeHour", sampling.ToTime.Hour.ToString()); doc.AddField("ToTimeMinute", sampling.ToTime.Minute.ToString()); doc.AddField("SamplingAddress", sampling.SamplingAddress); doc.AddFootField("DocManageArea", sampling.DocManageArea); //doc.AddFootField("FirstPageTest", "测试"); //doc.AddFootField("Test", "测试"); Grid grid = doc.NewGrid(); grid.TableMark = "Table"; int i = 0; foreach (SamplingContent sc in sampling.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.frmSamplings", sampling.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 (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 (saveEvidenceAudit == null) { saveEvidenceAudit = new SaveEvidenceAudit(); saveEvidenceAudit.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } saveEvidenceAudit.Status = 1; SaveData(); WordDocument doc = new WordDocument("先行登记保存证据审批表"); doc.AddField("PutOnRecordCaseName", saveEvidenceAudit.PutOnRecordCaseName); doc.AddField("PutOnRecordCasePeopleInfo", saveEvidenceAudit.PutOnRecordCasePeopleInfo); doc.AddField("PutOnRecordCaseContent", saveEvidenceAudit.PutOnRecordCaseContent); doc.AddField("SamplingID", saveEvidenceAudit.SamplingID); doc.AddField("ReasonBasis", saveEvidenceAudit.ReasonBasis); doc.AddField("SavaWay", saveEvidenceAudit.SavaWay); doc.AddField("UndertakerOpinion", saveEvidenceAudit.UndertakerOpinion); doc.AddFootField("UndertakerDataYear", saveEvidenceAudit.UndertakerData.Year.ToString()); doc.AddFootField("UndertakerDataMonth", saveEvidenceAudit.UndertakerData.Month.ToString()); doc.AddFootField("UndertakerDataDay", saveEvidenceAudit.UndertakerData.Day.ToString()); //doc.AddFootField("FirstPageTest", "测试"); //doc.AddFootField("Test", "测试"); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmSaveEvidenceAudit", saveEvidenceAudit.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 { SaveData(); WordDocument doc = new WordDocument("行政处罚决定书个人"); doc.AddField("DocTitle", punishmentDecisionPersonal.DocTitle); doc.AddField("FieldEPeopleName", punishmentDecisionPersonal.FieldEPeopleName); doc.AddField("FieldEPeopleSex", punishmentDecisionPersonal.FieldEPeopleSex); doc.AddField("FieldEPeopleAge", punishmentDecisionPersonal.FieldEPeopleAge); doc.AddField("FieldEPeoplePhone", punishmentDecisionPersonal.FieldEPeoplePhone); doc.AddField("FieldEPeopleAddress", punishmentDecisionPersonal.FieldEPeopleAddress); doc.AddField("FieldEPeopleCompanyName", punishmentDecisionPersonal.FieldEPeopleCompanyName); doc.AddField("FieldEPeoplePosition", punishmentDecisionPersonal.FieldEPeoplePosition); doc.AddField("FieldEPeopleCompanyAddress", punishmentDecisionPersonal.FieldEPeopleCompanyAddress); doc.AddField("FieldEPeopleZip", punishmentDecisionPersonal.FieldEPeopleZip); doc.AddField("IllegalEvidence", punishmentDecisionPersonal.IllegalEvidence); doc.AddField("IllegalProvisions", punishmentDecisionPersonal.IllegalProvisions); doc.AddField("According", punishmentDecisionPersonal.According); doc.AddField("PunishmentAmount", punishmentDecisionPersonal.PunishmentAmount); doc.AddField("BankName", punishmentDecisionPersonal.BankName); doc.AddField("BankID", punishmentDecisionPersonal.BankID); doc.AddField("ReconsiderationUnitName1", punishmentDecisionPersonal.ReconsiderationUnitName1); doc.AddField("ReconsiderationUnitName2", punishmentDecisionPersonal.ReconsiderationUnitName2); doc.AddField("LitigationUnitName", punishmentDecisionPersonal.LitigationUnitName); doc.AddFootField("DocManageArea", punishmentDecisionPersonal.DocManageArea); 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 (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 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 { 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 (punishmentDecisionUnit == null) { punishmentDecisionUnit = new PunishmentDecisionUnit(); punishmentDecisionUnit.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } punishmentDecisionUnit.Status = 1; SaveData(); WordDocument doc = new WordDocument("行政处罚决定书"); doc.AddField("DocTitle", punishmentDecisionUnit.DocTitle); doc.AddField("PutOnRecordCaseName", punishmentDecisionUnit.PutOnRecordCaseName); doc.AddField("FieldEAddress", punishmentDecisionUnit.FieldEAddress); doc.AddField("FieldEPeopleZio", punishmentDecisionUnit.FieldEPeopleZio); doc.AddField("FieldEFName", punishmentDecisionUnit.FieldEFName); doc.AddField("FieldEPosition", punishmentDecisionUnit.FieldEPosition); doc.AddField("FieldEPeoplePhone", punishmentDecisionUnit.FieldEPeoplePhone); doc.AddField("IllegalEvidence", punishmentDecisionUnit.IllegalEvidence); doc.AddField("IllegalProvisions", punishmentDecisionUnit.IllegalProvisions); doc.AddField("According", punishmentDecisionUnit.According); doc.AddField("PunishmentAmount", punishmentDecisionUnit.PunishmentAmount); doc.AddField("BankName", punishmentDecisionUnit.BankName); doc.AddField("BankID", punishmentDecisionUnit.BankID); doc.AddField("ReconsiderationUnitName1", punishmentDecisionUnit.ReconsiderationUnitName1); doc.AddField("ReconsiderationUnitName2", punishmentDecisionUnit.ReconsiderationUnitName2); doc.AddField("LitigationUnitName", punishmentDecisionUnit.LitigationUnitName); doc.AddFootField("DocManageArea", punishmentDecisionUnit.DocManageArea); OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt", new object[] { doc, "EnforceForm.frmPunishmentDecisionUnits", punishmentDecisionUnit.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 (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 (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 (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 (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 (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; }