Exemplo n.º 1
0
        private void buttonExport_Click(object sender, EventArgs e)
        {
            UseWaitCursor = true;
            Application.DoEvents();
            try
            {
                if (sealThingHandle == null)
                {
                    sealThingHandle = new SealThingHandle();

                    sealThingHandle.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName();
                }
                sealThingHandle.Status = 1;
                SaveData();
                WordDocument doc = new WordDocument("查封(扣押)物品处理决定书");
                doc.AddField("DocTitle", sealThingHandle.DocTitle);
                doc.AddField("CompanyName", sealThingHandle.CompanyName);
                doc.AddField("SealDate", sealThingHandle.SealDate.ToString("yyyy年MM月dd日"));
                doc.AddField("SealContent", sealThingHandle.SealContent);
                doc.AddField("SealResult", sealThingHandle.SealResult);
                doc.AddField("ThingCheckNo", sealThingHandle.ThingCheckNo);
                doc.AddField("Government", sealThingHandle.Government);
                doc.AddField("ManageDepartment", sealThingHandle.ManageDepartment);
                doc.AddField("Court", sealThingHandle.Court);
                doc.AddFootField("DocManageArea", sealThingHandle.DocManageArea);

                OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt",
                    new object[] { doc, "EnforceForm.frmSealThingHandle", sealThingHandle.FilePath }));
            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }

            UseWaitCursor = false;
        }
Exemplo n.º 2
0
        private void SaveData()
        {
            if (sealThingHandle == null)
            {
                sealThingHandle = new SealThingHandle();

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

            InvokeUtil.SystemService.EntityUpdate(sealThingHandle);
        }
Exemplo n.º 3
0
 public frmEditSealThingHandle(SealThingHandle sealThingHandle)
     : this()
 {
     this.sealThingHandle = sealThingHandle;
 }
Exemplo n.º 4
0
 /// <summary>
 /// 查封(扣押)物品处理决定审批表
 /// </summary>
 /// <param name="page">当前页</param>
 /// <param name="pageSize">显示记录数</param>
 /// <param name="beginDate">起始时间</param>
 /// <param name="endDate">结束时间</param>
 /// <returns>实体集合</returns>
 public EList<SealThingHandle> SealThingHandleByDate(int page, int pageSize, DateTime beginDate, DateTime endDate)
 {
     try
     {
         SealThingHandle Obj = new SealThingHandle();
         Obj.SystemService = this;
         return Obj.SealThingHandleByDate(page, pageSize, beginDate, endDate);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }