| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CallCenterApi.BLL
- {
- public class Rotation
- {
- DAL.Rotation dal = new DAL.Rotation();
- /// <summary>
- /// 增加一条图片
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- public int Add(Model.Rotation model)
- {
- return dal.Add(model);
- }
- /// <summary>
- /// 查询图片信息
- /// </summary>
- /// <returns></returns>
- public DataSet GetList(string name)
- {
- return dal.GetList(name);
- }
- /// <summary>
- /// 禁用图片信息
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- public bool delrotation(string id)
- {
- return dal.delrotation(id);
- }
- /// <summary>
- /// 启用图片信息
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- public bool poenRotion(string id)
- {
- return dal.poenRotion(id);
- }
- /// <summary>
- /// 删除图片信息
- /// </summary>
- /// <returns></returns>
- public bool SCRotion(string id)
- {
- return dal.SCRotion(id);
- }
- /// <summary>
- /// 获取数剧列表
- /// </summary>
- /// <param name="dt"></param>
- /// <returns></returns>
- public List<Model.Rotation> DataTableToList(DataTable dt)
- {
- List<Model.Rotation> modelList = new List<Model.Rotation>();
- int rowsCount = dt.Rows.Count;
- if (rowsCount > 0)
- {
- Model.Rotation model;
- for (int n = 0; n < rowsCount; n++)
- {
- model = dal.DataRowToModel(dt.Rows[n]);
- if (model != null)
- {
- modelList.Add(model);
- }
- }
- }
- return modelList;
- }
- }
- }
|