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;
        }
 public frmSaveEvidenceProceAudit(SaveEvidenceProceAudit saveEvidenceProceAudit)
     : this()
 {
     this.saveEvidenceProceAudit = saveEvidenceProceAudit;
 }
        private void SaveData()
        {
            if (saveEvidenceProceAudit == null)
            {
                saveEvidenceProceAudit = new SaveEvidenceProceAudit();

                saveEvidenceProceAudit.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName();
            }
            GetEntity(saveEvidenceProceAudit);

            InvokeUtil.SystemService.EntityUpdate(saveEvidenceProceAudit);
        }