123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- using LeaRun.Application.Entity.FlowManage;
- using LeaRun.Application.IService.FlowManage;
- using LeaRun.Data.Repository;
- namespace LeaRun.Application.Service.FlowManage
- {
- /// <summary>
- /// 版 本 6.1
- /// Copyright (c) 2013-2016 上海力软信息技术有限公司
- /// 创建人:陈彬彬
- /// 日 期:2016.03.18 15:54
- /// 描 述:工作流实例模板内容表操作(支持:SqlServer)
- /// </summary>
- public class WFProcessSchemeService:RepositoryFactory, WFProcessSchemeIService
- {
- #region 获取数据
- /// <summary>
- /// 获取实体对象
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <returns></returns>
- public WFProcessSchemeEntity GetEntity(string keyValue)
- {
- try
- {
- return this.BaseRepository().FindEntity<WFProcessSchemeEntity>(keyValue);
- }
- catch
- {
- throw;
- }
- }
- #endregion
- #region 提交数据
- /// <summary>
- /// 保存实体数据
- /// </summary>
- /// <param name="keyValue"></param>
- /// <param name="entity"></param>
- public void SaveEntity(string keyValue,WFProcessSchemeEntity entity)
- {
- try
- {
- if (string.IsNullOrEmpty(keyValue))
- {
- entity.Create();
- this.BaseRepository().Insert<WFProcessSchemeEntity>(entity);
- }
- else {
- entity.Modify(keyValue);
- this.BaseRepository().Update<WFProcessSchemeEntity>(entity);
- }
- }
- catch
- {
- throw;
- }
- }
- #endregion
- }
- }
|