| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- using Lottomat.Application.Entity.BaseManage;
- using Lottomat.Application.IService.BaseManage;
- using Lottomat.Application.Service.BaseManage;
- using Lottomat.Util.WebControl;
- using System.Collections.Generic;
- using System;
- namespace Lottomat.Application.Busines.BaseManage
- {
- /// <summary>
- /// 版 本 1.0
- /// Copyright (c) 2016-2017
- /// 创 建:超级管理员
- /// 日 期:2018-04-09 14:48
- /// 描 述:站点TDK管理
- /// </summary>
- public class SiteTDKBLL
- {
- private ISiteTDKService service = new SiteTDKService();
- #region 获取数据
- /// <summary>
- /// 获取列表
- /// </summary>
- /// <param name="pagination">分页</param>
- /// <param name="queryJson">查询参数</param>
- /// <returns>返回分页列表</returns>
- public IEnumerable<SiteTDKEntity> GetPageList(Pagination pagination, string queryJson)
- {
- return service.GetPageList(pagination, queryJson);
- }
- /// <summary>
- /// 获取列表
- /// </summary>
- /// <param name="queryJson">查询参数</param>
- /// <returns>返回列表</returns>
- public IEnumerable<SiteTDKEntity> GetList(string queryJson)
- {
- return service.GetList(queryJson);
- }
- /// <summary>
- /// 获取实体
- /// </summary>
- /// <param name="keyValue">主键值</param>
- /// <returns></returns>
- public SiteTDKEntity 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 void SaveForm(string keyValue, SiteTDKEntity entity)
- {
- try
- {
- service.SaveForm(keyValue, entity);
- }
- catch (Exception)
- {
- throw;
- }
- }
- #endregion
- }
- }
|