示例#1
0
        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;
        }
示例#2
0
 public frmInCaseOfTable(InCaseOfTable inCaseOfTable)
     : this()
 {
     this.inCaseOfTable = inCaseOfTable;
 }
示例#3
0
        private void SaveData()
        {
            if (inCaseOfTable == null)
            {
                inCaseOfTable = new InCaseOfTable();

                inCaseOfTable.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName();
            }
            GetEntity(inCaseOfTable);
            Company company = new Company
            {
                CompanyName = PutOnRecordPeopleName.Text,
                JuridicalPerson = PutOnRecordFName.Text,
                CompanyAddress = PutOnRecordPeopleAddress.Text
            };
            Officers officer1 = new Officers { OfficersName = UndertakerUserName1.Text };
            InvokeUtil.SystemService.UpdateOfficersByArgs(officer1);
            Officers officer2 = new Officers { OfficersName = UndertakerUserName2.Text };
            InvokeUtil.SystemService.UpdateOfficersByArgs(officer2);

            InvokeUtil.SystemService.EntityUpdate(inCaseOfTable);
        }