Пример #1
0
        private void buttonExport_Click(object sender, EventArgs e)
        {
            UseWaitCursor = true;
            Application.DoEvents();

            try
            {
                if (sealDecideApproval == null)
                {
                    sealDecideApproval = new SealDecideApproval();

                    sealDecideApproval.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName();
                }
                sealDecideApproval.Status = 1;
                SaveData();
                WordDocument doc = new WordDocument("查封(扣押)决定审批表");
                doc.AddField("CaseName", sealDecideApproval.CaseName);
                doc.AddField("CaseStatus", sealDecideApproval.CaseStatus);
                doc.AddField("PartyBaseInfo", sealDecideApproval.PartyBaseInfo);
                doc.AddField("SealContent", sealDecideApproval.SealContent);
                doc.AddField("SealReason", sealDecideApproval.SealReason);
                doc.AddField("UserName1", sealDecideApproval.UserName1);
                doc.AddField("UserName2", sealDecideApproval.UserName2);
                doc.AddField("UserReason", sealDecideApproval.UserReason);

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

            UseWaitCursor = false;
        }
Пример #2
0
        private void SaveData()
        {
            if (sealDecideApproval == null)
            {
                sealDecideApproval = new SealDecideApproval();

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

            InvokeUtil.SystemService.EntityUpdate(sealDecideApproval);
        }
Пример #3
0
 public frmEditSealDecideApproval(SealDecideApproval sealDecideApproval)
     : this()
 {
     this.sealDecideApproval = sealDecideApproval;
 }
Пример #4
0
 /// <summary>
 /// 查封(扣押)决定审批表
 /// </summary>
 /// <param name="page">当前页</param>
 /// <param name="pageSize">显示记录数</param>
 /// <param name="beginDate">起始时间</param>
 /// <param name="endDate">结束时间</param>
 /// <returns>实体集合</returns>
 public EList<SealDecideApproval> SealDecideApprovalByDate(int page, int pageSize, DateTime beginDate, DateTime endDate)
 {
     try
     {
         SealDecideApproval Obj = new SealDecideApproval();
         Obj.SystemService = this;
         return Obj.SealDecideApprovalByDate(page, pageSize, beginDate, endDate);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }