Bladeren bron

删除无用演示

金隅分支
liangkun 3 jaren geleden
bovenliggende
commit
5519ee26fc
9 gewijzigde bestanden met toevoegingen van 0 en 436 verwijderingen
  1. +0
    -82
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_WorkFlowModule/Controllers/WfSystemDemoController.cs
  2. +0
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  3. +0
    -21
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LR_SystemDemo/DemoleaveMap.cs
  4. +0
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  5. +0
    -4
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
  6. +0
    -92
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/SystemDemo/Demoleave/DemoleaveBLL.cs
  7. +0
    -93
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/SystemDemo/Demoleave/DemoleaveEntity.cs
  8. +0
    -39
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/SystemDemo/Demoleave/DemoleaveIBLL.cs
  9. +0
    -103
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/SystemDemo/Demoleave/DemoleaveService.cs

+ 0
- 82
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_WorkFlowModule/Controllers/WfSystemDemoController.cs Bestand weergeven

@@ -1,82 +0,0 @@
using Learun.Application.TwoDevelopment.SystemDemo;
using Learun.Util;
using System.Web.Mvc;

namespace Learun.Application.Web.Areas.LR_WorkFlowModule.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创建人:陈彬彬
/// 日 期:2017.04.17
/// 描 述:系统表单-请假单
/// </summary>
public class WfSystemDemoController : MvcControllerBase
{
#region 请假表单
// 请假表单后台方法
DemoleaveIBLL demoleaveIBLL = new DemoleaveBLL();

/// <summary>
/// 系统请假单(视图)
/// </summary>
/// <returns></returns>
public ActionResult DemoLeaveForm()
{
return View();
}
/// <summary>
/// 系统请假单(列表视图)
/// </summary>
/// <returns></returns>
public ActionResult DemoLeaveIndex()
{
return View();
}

/// <summary>
/// 获取分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = demoleaveIBLL.GetPageList(paginationobj);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records,
};
return JsonResult(jsonData);
}


/// <summary>
/// 系统请假单(保存数据)
/// </summary>
/// <param name="keyValue"></param>
/// <param name="entity"></param>
/// <returns></returns>
public ActionResult DemoLeaveSaveForm(string keyValue, DemoleaveEntity entity)
{
demoleaveIBLL.SaveEntity(keyValue, entity);
return Success("保存成功");
}
/// <summary>
/// 系统请假单(获取数据)
/// </summary>
/// <param name="processId">流程实例主键</param>
/// <returns></returns>
public ActionResult DemoLeaveGetFormData(string processId)
{
var data = demoleaveIBLL.GetEntity(processId);
return JsonResult(data);
}
#endregion
}
}

+ 0
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Bestand weergeven

@@ -469,7 +469,6 @@
<Compile Include="Areas\LR_WorkFlowModule\Controllers\WfDelegateRuleController.cs" />
<Compile Include="Areas\LR_WorkFlowModule\Controllers\WfMonitorController.cs" />
<Compile Include="Areas\LR_WorkFlowModule\Controllers\WfSchemeController.cs" />
<Compile Include="Areas\LR_WorkFlowModule\Controllers\WfSystemDemoController.cs" />
<Compile Include="Areas\LR_WorkFlowModule\LR_WorkFlowModuleAreaRegistration.cs" />
<Compile Include="Areas\Permission\PermissionAreaRegistration.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\Emp_PayrollOnceController.cs" />


+ 0
- 21
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LR_SystemDemo/DemoleaveMap.cs Bestand weergeven

@@ -1,21 +0,0 @@
using Learun.Application.TwoDevelopment.SystemDemo;
using System.Data.Entity.ModelConfiguration;

namespace Learun.Application.Mapping
{
public class DemoleaveMap : EntityTypeConfiguration<DemoleaveEntity>
{
public DemoleaveMap()
{
#region 表、主键
//表
this.ToTable("LR_DEMO_FORMLEAVE");
//主键
this.HasKey(t => t.F_Id);
#endregion
#region 配置关系
#endregion
}
}
}

+ 0
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj Bestand weergeven

@@ -158,7 +158,6 @@
<Compile Include="LR_Organization\RoleMap.cs" />
<Compile Include="LR_Organization\UserMap.cs" />
<Compile Include="LR_Report\ReportTempMap.cs" />
<Compile Include="LR_SystemDemo\DemoleaveMap.cs" />
<Compile Include="LR_System\AnnexesFileMap.cs" />
<Compile Include="LR_System\CodeRule\CodeRuleMap.cs" />
<Compile Include="LR_System\CodeRule\CodeRuleSeedMap.cs" />


+ 0
- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj Bestand weergeven

@@ -390,10 +390,6 @@
<Compile Include="StudentWork\SW_Ask_Question\SW_Ask_QuestionIBLL.cs" />
<Compile Include="StudentWork\SW_Ask_Question\SW_Ask_QuestionService.cs" />
<Compile Include="StudentWork\SW_Ask_StudentMain\SW_Ask_StudentMainEntity.cs" />
<Compile Include="SystemDemo\Demoleave\DemoleaveBLL.cs" />
<Compile Include="SystemDemo\Demoleave\DemoleaveEntity.cs" />
<Compile Include="SystemDemo\Demoleave\DemoleaveIBLL.cs" />
<Compile Include="SystemDemo\Demoleave\DemoleaveService.cs" />
<Compile Include="LR_Desktop\DTTarget\LR_DT_TargetEntity.cs" />
<Compile Include="LR_Desktop\DTTarget\DTTargetService.cs" />
<Compile Include="LR_Desktop\DTTarget\DTTargetBLL.cs" />


+ 0
- 92
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/SystemDemo/Demoleave/DemoleaveBLL.cs Bestand weergeven

@@ -1,92 +0,0 @@
using Learun.Util;
using System;
using System.Collections.Generic;
namespace Learun.Application.TwoDevelopment.SystemDemo
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创建人:陈彬彬
/// 日 期:2017.04.17
/// 描 述:系统表单-请假单
/// </summary>
public class DemoleaveBLL : DemoleaveIBLL
{
private DemoleaveService demoleaveService = new DemoleaveService();

#region 获取数据
/// <summary>
/// 获取请假数据列表
/// </summary>
/// <param name="pagination">分页</param>
/// <returns></returns>
public IEnumerable<DemoleaveEntity> GetPageList(Pagination pagination)
{
try
{
return demoleaveService.GetPageList(pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 根据流程实例获取表单数据
/// </summary>
/// <param name="processId"></param>
/// <returns></returns>
public DemoleaveEntity GetEntity(string processId)
{
try
{
return demoleaveService.GetEntity(processId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion

#region 提交数据
/// <summary>
/// 保存更新数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体对象</param>
public void SaveEntity(string keyValue, DemoleaveEntity entity)
{
try
{
demoleaveService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
}
}

+ 0
- 93
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/SystemDemo/Demoleave/DemoleaveEntity.cs Bestand weergeven

@@ -1,93 +0,0 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Learun.Application.TwoDevelopment.SystemDemo
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创建人:陈彬彬
/// 日 期:2017.04.17
/// 描 述:系统表单-请假单
/// </summary>
public class DemoleaveEntity
{
#region 实体成员
/// <summary>
/// F_Id
/// </summary>
/// <returns></returns>
[Column("F_ID")]
public string F_Id { get; set; }
/// <summary>
/// F_Type
/// </summary>
/// <returns></returns>
[Column("F_TYPE")]
public int? F_Type { get; set; }
/// <summary>
/// F_Num
/// </summary>
/// <returns></returns>
[Column("F_NUM")]
public int? F_Num { get; set; }
/// <summary>
/// F_Reason
/// </summary>
/// <returns></returns>
[Column("F_REASON")]
public string F_Reason { get; set; }
/// <summary>
/// F_Begin
/// </summary>
/// <returns></returns>
[Column("F_BEGIN")]
public DateTime? F_Begin { get; set; }
/// <summary>
/// F_End
/// </summary>
/// <returns></returns>
[Column("F_END")]
public DateTime? F_End { get; set; }
/// <summary>
/// F_FileId
/// </summary>
/// <returns></returns>
[Column("F_FILEID")]
public string F_FileId { get; set; }
/// <summary>
/// F_CreateDate
/// </summary>
/// <returns></returns>
[Column("F_CREATEDATE")]
public DateTime? F_CreateDate { get; set; }
/// <summary>
/// F_CreateUserId
/// </summary>
/// <returns></returns>
[Column("F_CREATEUSERID")]
public string F_CreateUserId { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.F_CreateDate = DateTime.Now;
UserInfo userInfo = LoginUserInfo.Get();
this.F_CreateUserId = userInfo.userId;
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.F_Id = keyValue;
}
#endregion
}
}

+ 0
- 39
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/SystemDemo/Demoleave/DemoleaveIBLL.cs Bestand weergeven

@@ -1,39 +0,0 @@

using Learun.Util;
using System.Collections.Generic;
namespace Learun.Application.TwoDevelopment.SystemDemo
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创建人:陈彬彬
/// 日 期:2017.04.17
/// 描 述:系统表单-请假单
/// </summary>
public interface DemoleaveIBLL
{
#region 获取数据
/// <summary>
/// 获取请假数据列表
/// </summary>
/// <param name="pagination">分页</param>
/// <returns></returns>
IEnumerable<DemoleaveEntity> GetPageList(Pagination pagination);
/// <summary>
/// 根据流程实例获取表单数据
/// </summary>
/// <param name="processId"></param>
/// <returns></returns>
DemoleaveEntity GetEntity(string processId);
#endregion

#region 提交数据
/// <summary>
/// 保存更新数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体对象</param>
void SaveEntity(string keyValue, DemoleaveEntity entity);
#endregion
}
}

+ 0
- 103
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/SystemDemo/Demoleave/DemoleaveService.cs Bestand weergeven

@@ -1,103 +0,0 @@
using Learun.DataBase.Repository;
using Learun.Util;
using System;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.SystemDemo
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创建人:陈彬彬
/// 日 期:2017.04.17
/// 描 述:系统表单-请假单
/// </summary>
public class DemoleaveService : RepositoryFactory
{
#region 获取数据
/// <summary>
/// 获取请假数据列表
/// </summary>
/// <param name="pagination">分页</param>
/// <returns></returns>
public IEnumerable<DemoleaveEntity> GetPageList(Pagination pagination)
{
try
{
return this.BaseRepository().FindList<DemoleaveEntity>(pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}


/// <summary>
/// 根据流程实例获取表单数据
/// </summary>
/// <param name="processId"></param>
/// <returns></returns>
public DemoleaveEntity GetEntity(string processId)
{
try
{
return this.BaseRepository().FindEntity<DemoleaveEntity>(processId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion

#region 提交数据
/// <summary>
/// 保存更新数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体对象</param>
public void SaveEntity(string keyValue, DemoleaveEntity entity)
{
try
{
if (string.IsNullOrEmpty(keyValue))
{
entity.Create();
this.BaseRepository().Insert(entity);
}
else
{
entity.Modify(keyValue);
this.BaseRepository().Update(entity);
}
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion
}
}

Laden…
Annuleren
Opslaan