private void buttonExport_Click(object sender, EventArgs e)
        {
            UseWaitCursor = true;
            Application.DoEvents();

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

                    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("CaseStartDate", obj.CaseStartDate.ToString("yyyy年MM月dd日"));
                doc.AddField("ExtensionApproval", obj.ExtensionApproval);
                doc.AddField("Address", obj.Address);
                doc.AddField("Tel", obj.Tel);
                doc.AddField("CaseSourceName", obj.CaseSourceName);
                OnNavigationRequest(new Maleos.NavigationRequestEventArgs("Maleos.Modules.OutputDocuemnt",
                                    new object[] { doc, "EnforceForm.frmEditCaseExtensionClosedApprovalToSibling", obj.FilePath }));
            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }

            UseWaitCursor = false;
        }
        private void SaveData()
        {
            if (obj == null)
            {
                obj = new CaseExtensionClosedApprovalToSibling();

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

            InvokeUtil.SystemService.EntityUpdate(obj);
        }
 public frmEditCaseExtensionClosedApprovalToSibling(CaseExtensionClosedApprovalToSibling obj)
     : this()
 {
     this.obj = obj;
 }
Example #4
0
 /// <summary>
 /// 获取案件延期办结审批表(本级)记录集合
 /// </summary>
 /// <param name="page">当前页</param>
 /// <param name="pageSize">显示记录数</param>
 /// <param name="beginDate">起始时间</param>
 /// <param name="endDate">结束时间</param>
 /// <returns>实体集合</returns>
 public EList<CaseExtensionClosedApprovalToSibling> CaseExtensionClosedApprovalToSiblingByDate(int page, int pageSize, DateTime beginDate, DateTime endDate)
 {
     try
     {
         CaseExtensionClosedApprovalToSibling Obj = new CaseExtensionClosedApprovalToSibling();
         Obj.SystemService = this;
         return Obj.CaseExtensionClosedApprovalToSiblingByDate(page, pageSize, beginDate, endDate);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }