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

                    sealThingHandleApproval.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName();
                }
                sealThingHandleApproval.Status = 1;
                SaveData();
                WordDocument doc = new WordDocument("查封(扣押)物品处理审批表");
                doc.AddField("CaseName", sealThingHandleApproval.CaseName);
                doc.AddField("PartyBaseInfo", sealThingHandleApproval.PartyBaseInfo);
                doc.AddField("CaseSurveyInfo", sealThingHandleApproval.CaseSurveyInfo);
                doc.AddField("UserReason", sealThingHandleApproval.UserReason);
                doc.AddField("SealDecideNo", sealThingHandleApproval.SealDecideNo);

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

            UseWaitCursor = false;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 查封(扣押)物品处理决定审批表
 /// </summary>
 /// <param name="page">当前页</param>
 /// <param name="pageSize">显示记录数</param>
 /// <param name="beginDate">起始时间</param>
 /// <param name="endDate">结束时间</param>
 /// <returns>实体集合</returns>
 public EList<SealThingHandleApproval> SealThingHandleApprovalByDate(int page, int pageSize, DateTime beginDate, DateTime endDate)
 {
     try
     {
         SealThingHandleApproval Obj = new SealThingHandleApproval();
         Obj.SystemService = this;
         return Obj.SealThingHandleApprovalByDate(page, pageSize, beginDate, endDate);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 3
0
 public frmEditSealThingHandleApproval(SealThingHandleApproval sealThingHandleApproval)
     : this()
 {
     this.sealThingHandleApproval = sealThingHandleApproval;
 }
Ejemplo n.º 4
0
        private void SaveData()
        {
            if (sealThingHandleApproval == null)
            {
                sealThingHandleApproval = new SealThingHandleApproval();

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

            InvokeUtil.SystemService.EntityUpdate(sealThingHandleApproval);
        }