Пример #1
0
 /// <summary>
 /// 获取结案审批表记录集合
 /// </summary>
 /// <param name="page">当前页</param>
 /// <param name="pageSize">显示记录数</param>
 /// <param name="beginDate">起始时间</param>
 /// <param name="endDate">结束时间</param>
 /// <returns>实体集合</returns>
 public EList<CaseClosedApproval> CaseClosedApprovalByDate(int page, int pageSize, DateTime beginDate, DateTime endDate)
 {
     try
     {
         CaseClosedApproval Obj = new CaseClosedApproval();
         Obj.SystemService = this;
         return Obj.CaseClosedApprovalByDate(page, pageSize, beginDate, endDate);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
        private void buttonExport_Click(object sender, EventArgs e)
        {
            UseWaitCursor = true;
            Application.DoEvents();

            try
            {
                if (obj == null)
                {
                    obj = new CaseClosedApproval();

                    obj.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName();
                }
                obj.Status = 1;
                SaveData();
                WordDocument doc = new WordDocument("结案审批表");
                doc.AddField("CaseName", obj.CaseName);
                doc.AddField("Party", obj.Party);
                doc.AddField("Legal", obj.Legal);
                doc.AddField("CaseSourceName", obj.CaseSourceName);
                doc.AddField("PunishInstrumentNo", obj.PunishInstrumentNo);
                doc.AddField("CaseStartDate", obj.CaseStartDate.ToString("yyyy年MM月dd日"));
                doc.AddField("CaseEndDate", obj.CaseEndDate.ToString("yyyy年MM月dd日"));
                doc.AddField("PunishDate", obj.PunishDate.ToString("yyyy年MM月dd日"));
                doc.AddField("UserName1", obj.UserName1 + (obj.UserName1 != "" ? "、" + obj.UserName1 : ""));
                doc.AddField("PunishContent", obj.PunishContent);
                doc.AddField("ExecutionResult", obj.ExecutionResult);
                doc.AddField("DocTitle", obj.DocTitle);

                OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt",
                    new object[] { doc, "EnforceForm.frmEditCaseClosedApproval", obj.FilePath }));

            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }

            UseWaitCursor = false;
        }
Пример #3
0
 public frmEditCaseClosedApproval(CaseClosedApproval obj)
     : this()
 {
     this.obj = obj;
 }
Пример #4
0
        private void SaveData()
        {
            if (obj == null)
            {
                obj = new CaseClosedApproval();

                obj.FilePath = Utility.GetFileSavePath() + Utility.BuilderFileName();
            }

            GetEntity(obj);

            InvokeUtil.SystemService.EntityUpdate(obj);
        }