123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- using LeaRun.Application.Entity.FlowManage;
- using LeaRun.Application.IService.FlowManage;
- using LeaRun.Application.Service.FlowManage;
- using LeaRun.Util.WebControl;
- using System;
- using System.Data;
- namespace LeaRun.Application.Busines.FlowManage
- {
- /// <summary>
- /// 版 本 6.1
- /// Copyright (c) 2013-2016 上海力软信息技术有限公司
- /// 创建人:陈彬彬
- /// 日 期:2016.03.19 13:57
- /// 描 述:工作流表单操作(支持:SqlServer)
- /// </summary>
- public class WFFrmMainBLL
- {
- private WFFrmMainIService server = new WFFrmMainService();
- #region 获取数据
- /// <summary>
- /// 获取表单列表分页数据
- /// </summary>
- /// <param name="pagination">分页参数</param>
- /// <param name="queryJson">查询参数</param>
- /// <returns></returns>
- public DataTable GetPageList(Pagination pagination, string queryJson)
- {
- return server.GetPageList(pagination, queryJson);
- }
- /// <summary>
- /// 获取表单数据ALL(用于下拉框)
- /// </summary>
- /// <returns></returns>
- public DataTable GetAllList()
- {
- return server.GetAllList();
- }
- /// <summary>
- /// 设置表单
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <returns></returns>
- public WFFrmMainEntity GetForm(string keyValue)
- {
- try
- {
- return server.GetForm(keyValue);
- }
- catch (Exception)
- {
- throw;
- }
- }
- #endregion
- #region 提交数据
- /// <summary>
- /// 删除表单
- /// </summary>
- /// <param name="keyValue">主键</param>
- public void RemoveForm(string keyValue)
- {
- try
- {
- server.RemoveForm(keyValue);
- }
- catch (Exception)
- {
- throw;
- }
- }
- /// <summary>
- /// 保存表单
- /// </summary>
- /// <param name="entity">表单模板实体类</param>
- /// <param name="keyValue">主键</param>
- /// <returns></returns>
- public int SaveForm(string keyValue,WFFrmMainEntity entity)
- {
- try
- {
- return server.SaveForm(keyValue,entity);
- }
- catch (Exception)
- {
- throw;
- }
- }
- /// <summary>
- /// 更新表单模板状态(启用,停用)
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <param name="status">状态 1:启用;0.停用</param>
- public void UpdateState(string keyValue, int state)
- {
- try
- {
- server.UpdateState(keyValue, state);
- }
- catch (Exception)
- {
- throw;
- }
- }
- #endregion
- }
- }
|