예제 #1
0
        private void buttonExport_Click(object sender, EventArgs e)
        {
            UseWaitCursor = true;
            Application.DoEvents();

            try
            {
                if (contributeFineApproval == null)
                {
                    contributeFineApproval = new ContributeFineApproval();

                    contributeFineApproval.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName();
                }
                contributeFineApproval.Status = 1;
                SaveData();
                WordDocument doc = new WordDocument("延期(分期)缴纳罚款审批表");
                doc.AddField("CaseName", contributeFineApproval.CaseName);
                doc.AddField("PunishInstrumentNo", contributeFineApproval.PunishInstrumentNo);
                doc.AddField("Party", contributeFineApproval.Party);
                doc.AddField("Address", contributeFineApproval.Address);
                doc.AddField("LawFactPunish", contributeFineApproval.LawFactPunish);
                doc.AddField("ExtensionReason", contributeFineApproval.ExtensionReason);
                doc.AddField("UserOpinion", contributeFineApproval.UserOpinion);

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

            UseWaitCursor = false;
        }
예제 #2
0
        private void SaveData()
        {
            if (contributeFineApproval == null)
            {
                contributeFineApproval = new ContributeFineApproval();

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

            InvokeUtil.SystemService.EntityUpdate(contributeFineApproval);
        }
예제 #3
0
 public frmEditContributeFineApproval(ContributeFineApproval contributeFineApproval)
     : this()
 {
     this.contributeFineApproval = contributeFineApproval;
 }
예제 #4
0
 /// <summary>
 /// 获取延期(分期)缴纳罚款审批表集合
 /// </summary>
 /// <param name="page">当前页</param>
 /// <param name="pageSize">显示记录数</param>
 /// <param name="beginDate">起始时间</param>
 /// <param name="endDate">结束时间</param>
 /// <returns>实体集合</returns>
 public EList<ContributeFineApproval> ContributeFineApprovalByDate(int page, int pageSize, DateTime beginDate, DateTime endDate)
 {
     try
     {
         ContributeFineApproval Obj = new ContributeFineApproval();
         Obj.SystemService = this;
         return Obj.ContributeFineApprovalByDate(page, pageSize, beginDate, endDate);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }