示例#1
0
        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
            {
                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;
        }
示例#3
0
        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;
        }
示例#4
0
        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;
        }
示例#5
0
        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;
        }
示例#6
0
        private void toolStripButtonOutPut_Click(object sender, EventArgs e)
        {
            if (enforceLawGridViewReviewOptionApprove.SelectedRows.Count == 0)
                return;

            UseWaitCursor = true;
            Application.DoEvents();

            try
            {
                ReviewOptionApprove reviewOptionApprove = enforceLawGridViewReviewOptionApprove.SelectedRows[0].Tag as ReviewOptionApprove;
                WordDocument doc = new WordDocument("复查意见审批表.doc");
                doc.AddField("Party", reviewOptionApprove.Party);
                doc.AddField("PartyAddress", reviewOptionApprove.PartyAddress);
                doc.AddField("LegalRepre", reviewOptionApprove.LegalRepre);
                doc.AddField("Tel", reviewOptionApprove.Tel);
                doc.AddField("RawDecisionID", reviewOptionApprove.RawDecisionID);
                doc.AddField("LeaveTime", reviewOptionApprove.LeaveTime.ToString("yyyy年M月d日"));
                doc.AddField("ReceiveTime", reviewOptionApprove.ReceiveTime.ToString("yyyy年M月d日"));
                doc.AddField("ReviewTime", reviewOptionApprove.ReviewTime.ToString("yyyy年M月d日"));
                doc.AddField("MajorProblems", reviewOptionApprove.MajorProblems);
                doc.AddField("ReviewCondition", reviewOptionApprove.ReviewCondition);
                doc.AddField("Reviewer", reviewOptionApprove.Reviewer);
                doc.AddField("ReviewDate", reviewOptionApprove.ReviewDate.ToString("yyyy年M月d日"));
                doc.AddField("Undertake", reviewOptionApprove.Undertake);
                doc.AddField("Principal", reviewOptionApprove.Principal);
                doc.AddField("PrincipalDate", reviewOptionApprove.PrincipalDate.ToString("yyyy年M月d日"));
                OutputDocuemnt frm = new OutputDocuemnt(doc);
                frm.OpenWindow(this);
            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }

            UseWaitCursor = false;
        }
        private void toolStripButtonOutPut_Click(object sender, EventArgs e)
        {
            if (enforceLawGridViewSpotHandelDesisionSixtyDay.SelectedRows.Count == 0)
                return;

            UseWaitCursor = true;
            Application.DoEvents();

            try
            {
                SpotHandelDesisionSixtyDay spotHandelDesisionSixtyDay = enforceLawGridViewSpotHandelDesisionSixtyDay.SelectedRows[0].Tag as SpotHandelDesisionSixtyDay;
                WordDocument doc = new WordDocument("现场处理措施决定书(6个月内).doc");
                doc.AddField("DocTitle", spotHandelDesisionSixtyDay.DocTitle);
                doc.AddField("HandleComp", spotHandelDesisionSixtyDay.HandleComp);
                doc.AddField("CheckDateYear", spotHandelDesisionSixtyDay.CheckDate.Year.ToString());
                doc.AddField("CheckDateMonth", spotHandelDesisionSixtyDay.CheckDate.Month.ToString());
                doc.AddField("CheckDateDay", spotHandelDesisionSixtyDay.CheckDate.Day.ToString());
                doc.AddField("Danger", spotHandelDesisionSixtyDay.Danger);
                doc.AddField("LegalBasis", spotHandelDesisionSixtyDay.LegalBasis);
                doc.AddField("SitHandel", spotHandelDesisionSixtyDay.SitHandel);
                doc.AddField("GovArea", spotHandelDesisionSixtyDay.GovArea);
                doc.AddField("ManageArea", spotHandelDesisionSixtyDay.ManageArea);
                doc.AddField("CourtArea", spotHandelDesisionSixtyDay.CourtArea);
                doc.AddField("OfficerName1", spotHandelDesisionSixtyDay.OfficerName1);
                doc.AddField("CID1", spotHandelDesisionSixtyDay.CID1);
                doc.AddField("OfficerName2", spotHandelDesisionSixtyDay.OfficerName2);
                doc.AddField("CID2", spotHandelDesisionSixtyDay.CID2);
                doc.AddField("DocManageArea", spotHandelDesisionSixtyDay.DocManageArea);
                doc.AddField("DocDate", spotHandelDesisionSixtyDay.DocDate.ToString("yyyy年M月d日"));
                OutputDocuemnt frm = new OutputDocuemnt(doc);
                frm.OpenWindow(this);
            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }

            UseWaitCursor = false;
        }
示例#8
0
        private void toolStripButtonOutPut_Click(object sender, EventArgs e)
        {
            if (enforceLawGridViewForceMeasureDecision.SelectedRows.Count == 0)
                return;

            UseWaitCursor = true;
            Application.DoEvents();

            try
            {
                ForceMeasureDecision forceMeasureDecision = enforceLawGridViewForceMeasureDecision.SelectedRows[0].Tag as ForceMeasureDecision;
                WordDocument doc = new WordDocument("强制措施决定书.rtf");
                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.AddField("DocManageArea", forceMeasureDecision.DocManageArea);
                doc.AddField("DocDate", forceMeasureDecision.DocDate.ToString("yyyy年M月d日"));
                OutputDocuemnt frm = new OutputDocuemnt(doc);
                frm.OpenWindow(this);
            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }

            UseWaitCursor = false;
        }