duhongyu лет назад: 4
Родитель
Сommit
e08c67039d
1 измененных файлов с 35 добавлено и 4 удалено
  1. 35 4
      codegit/CallCenterApi/CallCenterApi.BLL/Rotation.cs

+ 35 - 4
codegit/CallCenterApi/CallCenterApi.BLL/Rotation.cs

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
7 7
 
8 8
 namespace CallCenterApi.BLL
9 9
 {
10
-   public  class Rotation
10
+    public class Rotation
11 11
     {
12 12
         DAL.Rotation dal = new DAL.Rotation();
13 13
         /// <summary>
@@ -23,16 +23,16 @@ namespace CallCenterApi.BLL
23 23
         /// 查询图片信息
24 24
         /// </summary>
25 25
         /// <returns></returns>
26
-        public DataSet GetList()
26
+        public DataSet GetList(string name)
27 27
         {
28
-            return dal.GetList();
28
+            return dal.GetList(name);
29 29
         }
30 30
         /// <summary>
31 31
         /// 禁用图片信息
32 32
         /// </summary>
33 33
         /// <param name="id"></param>
34 34
         /// <returns></returns>
35
-        public bool delrotation(string  id)
35
+        public bool delrotation(string id)
36 36
         {
37 37
             return dal.delrotation(id);
38 38
         }
@@ -46,5 +46,36 @@ namespace CallCenterApi.BLL
46 46
             return dal.poenRotion(id);
47 47
 
48 48
         }
49
+        /// <summary>
50
+        /// 删除图片信息
51
+        /// </summary>
52
+        /// <returns></returns>
53
+        public bool SCRotion(string id)
54
+        {
55
+            return dal.SCRotion(id);
56
+        }
57
+        /// <summary>
58
+        /// 获取数剧列表
59
+        /// </summary>
60
+        /// <param name="dt"></param>
61
+        /// <returns></returns>
62
+        public List<Model.Rotation> DataTableToList(DataTable dt)
63
+        {
64
+            List<Model.Rotation> modelList = new List<Model.Rotation>();
65
+            int rowsCount = dt.Rows.Count;
66
+            if (rowsCount > 0)
67
+            {
68
+                Model.Rotation model;
69
+                for (int n = 0; n < rowsCount; n++)
70
+                {
71
+                    model = dal.DataRowToModel(dt.Rows[n]);
72
+                    if (model != null)
73
+                    {
74
+                        modelList.Add(model);
75
+                    }
76
+                }
77
+            }
78
+            return modelList;
79
+        }
49 80
     }
50 81
 }