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 SaveData() { if (sealDecide == null) { sealDecide = new SealDecide(); sealDecide.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName(); } GetEntity(sealDecide); InvokeUtil.SystemService.EntityUpdate(sealDecide); }
public frmEditSealDecide(SealDecide sealDecide) : this() { this.sealDecide = sealDecide; }
/// <summary> /// 查封(扣押)决定书 /// </summary> /// <param name="page">当前页</param> /// <param name="pageSize">显示记录数</param> /// <param name="beginDate">起始时间</param> /// <param name="endDate">结束时间</param> /// <returns>实体集合</returns> public EList<SealDecide> SealDecideByDate(int page, int pageSize, DateTime beginDate, DateTime endDate) { try { SealDecide Obj = new SealDecide(); Obj.SystemService = this; return Obj.SealDecideByDate(page, pageSize, beginDate, endDate); } catch (Exception ex) { throw ex; } }