12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- using Lottomat.Application.Entity.SystemManage;
- using Lottomat.Application.IService.SystemManage;
- using Lottomat.Application.Service.SystemManage;
- using Lottomat.Util.WebControl;
- using System.Collections.Generic;
- using System;
- namespace Lottomat.Application.Busines.SystemManage
- {
- /// <summary>
- /// 版 本 1.0
- /// Copyright (c) 2016-2017
- /// 创 建:超级管理员
- /// 日 期:2017-12-18 10:55
- /// 描 述:意见反馈
- /// </summary>
- public class FeedbackBLL
- {
- private IFeedbackService service = new FeedbackService();
- #region 获取数据
- /// <summary>
- /// 获取列表
- /// </summary>
- /// <param name="pagination">分页</param>
- /// <param name="queryJson">查询参数</param>
- /// <returns>返回分页列表</returns>
- public IEnumerable<FeedbackEntity> GetPageList(Pagination pagination, string queryJson)
- {
- return service.GetPageList(pagination, queryJson);
- }
- /// <summary>
- /// 获取列表
- /// </summary>
- /// <param name="queryJson">查询参数</param>
- /// <returns>返回列表</returns>
- public IEnumerable<FeedbackEntity> GetList(string queryJson)
- {
- return service.GetList(queryJson);
- }
- /// <summary>
- /// 获取实体
- /// </summary>
- /// <param name="keyValue">主键值</param>
- /// <returns></returns>
- public FeedbackEntity GetEntity(string keyValue)
- {
- return service.GetEntity(keyValue);
- }
- #endregion
- #region 提交数据
- /// <summary>
- /// 删除数据
- /// </summary>
- /// <param name="keyValue">主键</param>
- public void RemoveForm(string keyValue)
- {
- try
- {
- service.RemoveForm(keyValue);
- }
- catch (Exception)
- {
- throw;
- }
- }
- /// <summary>
- /// 保存表单(新增、修改)
- /// </summary>
- /// <param name="keyValue">主键值</param>
- /// <param name="entity">实体对象</param>
- /// <returns></returns>
- public int SaveForm(string keyValue, FeedbackEntity entity, string which = "0")
- {
- try
- {
- return service.SaveForm(keyValue, entity, which);
- }
- catch (Exception)
- {
- throw;
- }
- }
- #endregion
- }
- }
|