Browse Source

数据库表,显示所有平台工单

duhongyu 6 years ago
parent
commit
2286d607a1

+ 1 - 0
CallCenterApi/CallCenterApi.BLL/CallCenterApi.BLL.csproj

@@ -84,6 +84,7 @@
84 84
     <Compile Include="T_CTI_TaskVoiceTemp.cs" />
85 85
     <Compile Include="T_Cus_AddressBook.cs" />
86 86
     <Compile Include="T_Cus_CustomerBase.cs" />
87
+    <Compile Include="T_DataBase.cs" />
87 88
     <Compile Include="T_Email_EmailList.cs" />
88 89
     <Compile Include="T_Email_EmailMessage_Map.cs" />
89 90
     <Compile Include="T_Email_SendEmail.cs" />

+ 8 - 0
CallCenterApi/CallCenterApi.BLL/T_Bus_WorkOrder.cs

@@ -109,6 +109,14 @@ namespace CallCenterApi.BLL
109 109
         /// <summary>
110 110
         /// 获得数据列表
111 111
         /// </summary>
112
+        public List<CallCenterApi.Model.T_Bus_WorkOrder> GetModelList(string strWhere,string connectionString)
113
+        {
114
+            DataSet ds = dal.GetList(strWhere,  connectionString);
115
+            return DataTableToList(ds.Tables[0]);
116
+        }
117
+        /// <summary>
118
+        /// 获得数据列表
119
+        /// </summary>
112 120
         public List<CallCenterApi.Model.T_Bus_WorkOrder> DataTableToList(DataTable dt)
113 121
         {
114 122
             List<CallCenterApi.Model.T_Bus_WorkOrder> modelList = new List<CallCenterApi.Model.T_Bus_WorkOrder>();

+ 142 - 0
CallCenterApi/CallCenterApi.BLL/T_DataBase.cs

@@ -0,0 +1,142 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Data;
4
+using System.Linq;
5
+using System.Text;
6
+using System.Threading.Tasks;
7
+namespace CallCenterApi.BLL
8
+{
9
+    /// <summary>
10
+    /// T_DataBase
11
+    /// </summary>
12
+    public partial class T_DataBase
13
+    {
14
+        
15
+        private readonly CallCenterApi.DAL.T_DataBase dal = new CallCenterApi.DAL.T_DataBase();
16
+        public T_DataBase()
17
+        { }
18
+        #region  BasicMethod
19
+
20
+        /// <summary>
21
+        /// 增加一条数据
22
+        /// </summary>
23
+        public int Add(Model.T_DataBase model)
24
+        {
25
+            return dal.Add(model);
26
+        }
27
+
28
+        /// <summary>
29
+        /// 更新一条数据
30
+        /// </summary>
31
+        public bool Update(Model.T_DataBase model)
32
+        {
33
+            return dal.Update(model);
34
+        }
35
+
36
+        /// <summary>
37
+        /// 删除一条数据
38
+        /// </summary>
39
+        public bool Delete(int F_ID)
40
+        {
41
+
42
+            return dal.Delete(F_ID);
43
+        }
44
+        /// <summary>
45
+        /// 删除一条数据
46
+        /// </summary>
47
+        public bool DeleteList(string F_IDlist)
48
+        {
49
+            return dal.DeleteList(F_IDlist);
50
+        }
51
+
52
+        /// <summary>
53
+        /// 得到一个对象实体
54
+        /// </summary>
55
+        public Model.T_DataBase GetModel(int F_ID)
56
+        {
57
+
58
+            return dal.GetModel(F_ID);
59
+        }
60
+
61
+      
62
+
63
+        /// <summary>
64
+        /// 获得数据列表
65
+        /// </summary>
66
+        public DataSet GetList(string strWhere)
67
+        {
68
+            return dal.GetList(strWhere);
69
+        }
70
+        /// <summary>
71
+        /// 获得前几行数据
72
+        /// </summary>
73
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
74
+        {
75
+            return dal.GetList(Top, strWhere, filedOrder);
76
+        }
77
+        /// <summary>
78
+        /// 获得数据列表
79
+        /// </summary>
80
+        public List<Model.T_DataBase> GetModelList(string strWhere)
81
+        {
82
+            DataSet ds = dal.GetList(strWhere);
83
+            return DataTableToList(ds.Tables[0]);
84
+        }
85
+        /// <summary>
86
+        /// 获得数据列表
87
+        /// </summary>
88
+        public List<Model.T_DataBase> DataTableToList(DataTable dt)
89
+        {
90
+            List<Model.T_DataBase> modelList = new List<Model.T_DataBase>();
91
+            int rowsCount = dt.Rows.Count;
92
+            if (rowsCount > 0)
93
+            {
94
+               Model.T_DataBase model;
95
+                for (int n = 0; n < rowsCount; n++)
96
+                {
97
+                    model = dal.DataRowToModel(dt.Rows[n]);
98
+                    if (model != null)
99
+                    {
100
+                        modelList.Add(model);
101
+                    }
102
+                }
103
+            }
104
+            return modelList;
105
+        }
106
+
107
+        /// <summary>
108
+        /// 获得数据列表
109
+        /// </summary>
110
+        public DataSet GetAllList()
111
+        {
112
+            return GetList("");
113
+        }
114
+
115
+        /// <summary>
116
+        /// 分页获取数据列表
117
+        /// </summary>
118
+        public int GetRecordCount(string strWhere)
119
+        {
120
+            return dal.GetRecordCount(strWhere);
121
+        }
122
+        /// <summary>
123
+        /// 分页获取数据列表
124
+        /// </summary>
125
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
126
+        {
127
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
128
+        }
129
+        /// <summary>
130
+        /// 分页获取数据列表
131
+        /// </summary>
132
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
133
+        //{
134
+        //return dal.GetList(PageSize,PageIndex,strWhere);
135
+        //}
136
+
137
+        #endregion  BasicMethod
138
+        #region  ExtensionMethod
139
+
140
+        #endregion  ExtensionMethod
141
+    }
142
+}

+ 1 - 0
CallCenterApi/CallCenterApi.DAL/CallCenterApi.DAL.csproj

@@ -84,6 +84,7 @@
84 84
     <Compile Include="T_CTI_TaskVoiceTemp.cs" />
85 85
     <Compile Include="T_Cus_AddressBook.cs" />
86 86
     <Compile Include="T_Cus_CustomerBase.cs" />
87
+    <Compile Include="T_DataBase.cs" />
87 88
     <Compile Include="T_Email_EmailList.cs" />
88 89
     <Compile Include="T_Email_EmailMessage_Map.cs" />
89 90
     <Compile Include="T_Email_SendEmail.cs" />

+ 13 - 1
CallCenterApi/CallCenterApi.DAL/T_Bus_WorkOrder.cs

@@ -753,7 +753,19 @@ namespace CallCenterApi.DAL
753 753
             }
754 754
             return model;
755 755
         }
756
-
756
+        /// <summary>
757
+        /// 获得数据列表
758
+        /// </summary>
759
+        public DataSet GetList(string strWhere,string connectionString)
760
+        {
761
+            StringBuilder strSql = new StringBuilder();
762
+            strSql.Append("select * FROM T_Bus_WorkOrder  WITH(NOLOCK)");
763
+            if (strWhere.Trim() != "")
764
+            {
765
+                strSql.Append(" where " + strWhere);
766
+            }
767
+            return DbHelperSQL.Query(strSql.ToString(), connectionString);
768
+        }
757 769
         /// <summary>
758 770
         /// 获得数据列表
759 771
         /// </summary>

+ 315 - 0
CallCenterApi/CallCenterApi.DAL/T_DataBase.cs

@@ -0,0 +1,315 @@
1
+using CallCenterApi.DB;
2
+using System;
3
+using System.Collections.Generic;
4
+using System.Data;
5
+using System.Data.SqlClient;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Threading.Tasks;
9
+
10
+namespace CallCenterApi.DAL
11
+{
12
+    /// <summary>
13
+    /// 数据访问类:T_DataBase
14
+    /// </summary>
15
+    public partial class T_DataBase
16
+    {
17
+        public T_DataBase()
18
+        { }
19
+        #region  BasicMethod
20
+
21
+
22
+
23
+        /// <summary>
24
+        /// 增加一条数据
25
+        /// </summary>
26
+        public int Add(Model.T_DataBase model)
27
+        {
28
+            StringBuilder strSql = new StringBuilder();
29
+            strSql.Append("insert into T_DataBase(");
30
+            strSql.Append("F_Name,F_Tablename,F_Theserver,F_UserID,F_pwd)");
31
+            strSql.Append(" values (");
32
+            strSql.Append("@F_Name,@F_Tablename,@F_Theserver,@F_UserID,@F_pwd)");
33
+            strSql.Append(";select @@IDENTITY");
34
+            SqlParameter[] parameters = {
35
+                    new SqlParameter("@F_Name", SqlDbType.VarChar,50),
36
+                    new SqlParameter("@F_Tablename", SqlDbType.VarChar,50),
37
+                    new SqlParameter("@F_Theserver", SqlDbType.VarChar,50),
38
+                    new SqlParameter("@F_UserID", SqlDbType.VarChar,50),
39
+                    new SqlParameter("@F_pwd", SqlDbType.VarChar,50)};
40
+            parameters[0].Value = model.F_Name;
41
+            parameters[1].Value = model.F_Tablename;
42
+            parameters[2].Value = model.F_Theserver;
43
+            parameters[3].Value = model.F_UserID;
44
+            parameters[4].Value = model.F_pwd;
45
+
46
+            object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
47
+            if (obj == null)
48
+            {
49
+                return 0;
50
+            }
51
+            else
52
+            {
53
+                return Convert.ToInt32(obj);
54
+            }
55
+        }
56
+        /// <summary>
57
+        /// 更新一条数据
58
+        /// </summary>
59
+        public bool Update(Model.T_DataBase model)
60
+        {
61
+            StringBuilder strSql = new StringBuilder();
62
+            strSql.Append("update T_DataBase set ");
63
+            strSql.Append("F_Name=@F_Name,");
64
+            strSql.Append("F_Tablename=@F_Tablename,");
65
+            strSql.Append("F_Theserver=@F_Theserver,");
66
+            strSql.Append("F_UserID=@F_UserID,");
67
+            strSql.Append("F_pwd=@F_pwd");
68
+            strSql.Append(" where F_ID=@F_ID");
69
+            SqlParameter[] parameters = {
70
+                    new SqlParameter("@F_Name", SqlDbType.VarChar,50),
71
+                    new SqlParameter("@F_Tablename", SqlDbType.VarChar,50),
72
+                    new SqlParameter("@F_Theserver", SqlDbType.VarChar,50),
73
+                    new SqlParameter("@F_UserID", SqlDbType.VarChar,50),
74
+                    new SqlParameter("@F_pwd", SqlDbType.VarChar,50),
75
+                    new SqlParameter("@F_ID", SqlDbType.Int,4)};
76
+            parameters[0].Value = model.F_Name;
77
+            parameters[1].Value = model.F_Tablename;
78
+            parameters[2].Value = model.F_Theserver;
79
+            parameters[3].Value = model.F_UserID;
80
+            parameters[4].Value = model.F_pwd;
81
+            parameters[5].Value = model.F_ID;
82
+
83
+            int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
84
+            if (rows > 0)
85
+            {
86
+                return true;
87
+            }
88
+            else
89
+            {
90
+                return false;
91
+            }
92
+        }
93
+
94
+        /// <summary>
95
+        /// 删除一条数据
96
+        /// </summary>
97
+        public bool Delete(int F_ID)
98
+        {
99
+
100
+            StringBuilder strSql = new StringBuilder();
101
+            strSql.Append("delete from T_DataBase ");
102
+            strSql.Append(" where F_ID=@F_ID");
103
+            SqlParameter[] parameters = {
104
+                    new SqlParameter("@F_ID", SqlDbType.Int,4)
105
+            };
106
+            parameters[0].Value = F_ID;
107
+
108
+            int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
109
+            if (rows > 0)
110
+            {
111
+                return true;
112
+            }
113
+            else
114
+            {
115
+                return false;
116
+            }
117
+        }
118
+        /// <summary>
119
+        /// 批量删除数据
120
+        /// </summary>
121
+        public bool DeleteList(string F_IDlist)
122
+        {
123
+            StringBuilder strSql = new StringBuilder();
124
+            strSql.Append("delete from T_DataBase ");
125
+            strSql.Append(" where F_ID in (" + F_IDlist + ")  ");
126
+            int rows = DbHelperSQL.ExecuteSql(strSql.ToString());
127
+            if (rows > 0)
128
+            {
129
+                return true;
130
+            }
131
+            else
132
+            {
133
+                return false;
134
+            }
135
+        }
136
+
137
+
138
+        /// <summary>
139
+        /// 得到一个对象实体
140
+        /// </summary>
141
+        public Model.T_DataBase GetModel(int F_ID)
142
+        {
143
+
144
+            StringBuilder strSql = new StringBuilder();
145
+            strSql.Append("select  top 1 F_ID,F_Name,F_Tablename,F_Theserver,F_UserID,F_pwd from T_DataBase ");
146
+            strSql.Append(" where F_ID=@F_ID");
147
+            SqlParameter[] parameters = {
148
+                    new SqlParameter("@F_ID", SqlDbType.Int,4)
149
+            };
150
+            parameters[0].Value = F_ID;
151
+
152
+            Model.T_DataBase model = new Model.T_DataBase();
153
+            DataSet ds = DbHelperSQL.Query(strSql.ToString(), parameters);
154
+            if (ds.Tables[0].Rows.Count > 0)
155
+            {
156
+                return DataRowToModel(ds.Tables[0].Rows[0]);
157
+            }
158
+            else
159
+            {
160
+                return null;
161
+            }
162
+        }
163
+
164
+
165
+        /// <summary>
166
+        /// 得到一个对象实体
167
+        /// </summary>
168
+        public Model.T_DataBase DataRowToModel(DataRow row)
169
+        {
170
+            Model.T_DataBase model = new Model.T_DataBase();
171
+            if (row != null)
172
+            {
173
+                if (row["F_ID"] != null && row["F_ID"].ToString() != "")
174
+                {
175
+                    model.F_ID = int.Parse(row["F_ID"].ToString());
176
+                }
177
+                if (row["F_Name"] != null)
178
+                {
179
+                    model.F_Name = row["F_Name"].ToString();
180
+                }
181
+                if (row["F_Tablename"] != null)
182
+                {
183
+                    model.F_Tablename = row["F_Tablename"].ToString();
184
+                }
185
+                if (row["F_Theserver"] != null)
186
+                {
187
+                    model.F_Theserver = row["F_Theserver"].ToString();
188
+                }
189
+                if (row["F_UserID"] != null)
190
+                {
191
+                    model.F_UserID = row["F_UserID"].ToString();
192
+                }
193
+                if (row["F_pwd"] != null)
194
+                {
195
+                    model.F_pwd = row["F_pwd"].ToString();
196
+                }
197
+            }
198
+            return model;
199
+        }
200
+
201
+        /// <summary>
202
+        /// 获得数据列表
203
+        /// </summary>
204
+        public DataSet GetList(string strWhere)
205
+        {
206
+            StringBuilder strSql = new StringBuilder();
207
+            strSql.Append("select F_ID,F_Name,F_Tablename,F_Theserver,F_UserID,F_pwd ");
208
+            strSql.Append(" FROM T_DataBase ");
209
+            if (strWhere.Trim() != "")
210
+            {
211
+                strSql.Append(" where " + strWhere);
212
+            }
213
+            return DbHelperSQL.Query(strSql.ToString());
214
+        }
215
+
216
+        /// <summary>
217
+        /// 获得前几行数据
218
+        /// </summary>
219
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
220
+        {
221
+            StringBuilder strSql = new StringBuilder();
222
+            strSql.Append("select ");
223
+            if (Top > 0)
224
+            {
225
+                strSql.Append(" top " + Top.ToString());
226
+            }
227
+            strSql.Append(" F_ID,F_Name,F_Tablename,F_Theserver,F_UserID,F_pwd ");
228
+            strSql.Append(" FROM T_DataBase ");
229
+            if (strWhere.Trim() != "")
230
+            {
231
+                strSql.Append(" where " + strWhere);
232
+            }
233
+            strSql.Append(" order by " + filedOrder);
234
+            return DbHelperSQL.Query(strSql.ToString());
235
+        }
236
+
237
+        /// <summary>
238
+        /// 获取记录总数
239
+        /// </summary>
240
+        public int GetRecordCount(string strWhere)
241
+        {
242
+            StringBuilder strSql = new StringBuilder();
243
+            strSql.Append("select count(1) FROM T_DataBase ");
244
+            if (strWhere.Trim() != "")
245
+            {
246
+                strSql.Append(" where " + strWhere);
247
+            }
248
+            object obj = DbHelperSQL.GetSingle(strSql.ToString());
249
+            if (obj == null)
250
+            {
251
+                return 0;
252
+            }
253
+            else
254
+            {
255
+                return Convert.ToInt32(obj);
256
+            }
257
+        }
258
+        /// <summary>
259
+        /// 分页获取数据列表
260
+        /// </summary>
261
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
262
+        {
263
+            StringBuilder strSql = new StringBuilder();
264
+            strSql.Append("SELECT * FROM ( ");
265
+            strSql.Append(" SELECT ROW_NUMBER() OVER (");
266
+            if (!string.IsNullOrEmpty(orderby.Trim()))
267
+            {
268
+                strSql.Append("order by T." + orderby);
269
+            }
270
+            else
271
+            {
272
+                strSql.Append("order by T.F_ID desc");
273
+            }
274
+            strSql.Append(")AS Row, T.*  from T_DataBase T ");
275
+            if (!string.IsNullOrEmpty(strWhere.Trim()))
276
+            {
277
+                strSql.Append(" WHERE " + strWhere);
278
+            }
279
+            strSql.Append(" ) TT");
280
+            strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
281
+            return DbHelperSQL.Query(strSql.ToString());
282
+        }
283
+
284
+        /*
285
+		/// <summary>
286
+		/// 分页获取数据列表
287
+		/// </summary>
288
+		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
289
+		{
290
+			SqlParameter[] parameters = {
291
+					new SqlParameter("@tblName", SqlDbType.VarChar, 255),
292
+					new SqlParameter("@fldName", SqlDbType.VarChar, 255),
293
+					new SqlParameter("@PageSize", SqlDbType.Int),
294
+					new SqlParameter("@PageIndex", SqlDbType.Int),
295
+					new SqlParameter("@IsReCount", SqlDbType.Bit),
296
+					new SqlParameter("@OrderType", SqlDbType.Bit),
297
+					new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
298
+					};
299
+			parameters[0].Value = "T_DataBase";
300
+			parameters[1].Value = "F_ID";
301
+			parameters[2].Value = PageSize;
302
+			parameters[3].Value = PageIndex;
303
+			parameters[4].Value = 0;
304
+			parameters[5].Value = 0;
305
+			parameters[6].Value = strWhere;	
306
+			return DbHelperSQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
307
+		}*/
308
+
309
+        #endregion  BasicMethod
310
+        #region  ExtensionMethod
311
+
312
+        #endregion  ExtensionMethod
313
+    }
314
+}
315
+

+ 20 - 0
CallCenterApi/CallCenterApi.DB/DbHelperSQL.cs

@@ -571,6 +571,26 @@ namespace CallCenterApi.DB
571 571
             }
572 572
 
573 573
         }
574
+        public static DataSet Query(string SQLString,string connect)
575
+        {
576
+
577
+            using (SqlConnection connection = new SqlConnection(connect))
578
+            {
579
+                DataSet ds = new DataSet();
580
+                try
581
+                {
582
+                    connection.Open();
583
+                    SqlDataAdapter command = new SqlDataAdapter(SQLString, connection);
584
+                    command.Fill(ds, "ds");
585
+                }
586
+                catch (System.Data.SqlClient.SqlException ex)
587
+                {
588
+                    throw new Exception(ex.Message);
589
+                }
590
+                return ds;
591
+            }
592
+
593
+        }
574 594
         /// <summary>
575 595
         /// 执行查询语句,返回DataSet
576 596
         /// </summary>

+ 79 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/InfoController.cs

@@ -1,4 +1,5 @@
1
-using CallCenterApi.DB;
1
+using CallCenter.Utility;
2
+using CallCenterApi.DB;
2 3
 using CallCenterApi.Interface.Controllers.Base;
3 4
 using System;
4 5
 using System.Collections.Generic;
@@ -15,7 +16,83 @@ namespace CallCenterApi.Interface.Controllers
15 16
         private BLL.T_Call_CallRecords callBLL = new BLL.T_Call_CallRecords();
16 17
         private BLL.T_Sys_DictionaryValue dicValueBLL = new BLL.T_Sys_DictionaryValue();
17 18
         private BLL.T_Sys_Department departmentBLL = new BLL.T_Sys_Department();
18
-
19
+        private BLL.T_DataBase branchBLL = new BLL.T_DataBase();
20
+        /// <summary>
21
+        /// 获取网点列表
22
+        /// </summary>
23
+        /// <returns></returns>
24
+        [Authority]
25
+        public ActionResult GetBranchList()
26
+        {
27
+            DataTable dt = branchBLL.GetList(" F_IsDelete=0 ").Tables[0];
28
+            return Success("加载成功", dt);
29
+        }
30
+        #region 获取所有平台的工单列表
31
+        public ActionResult GetWorkOrderList(string strstarttime, string strendtime, int id=0)
32
+        {
33
+            List<Model.T_DataBase> list = new List<Model.T_DataBase>();
34
+           
35
+            if (id > 0)
36
+            {
37
+                var Branch = new BLL.T_DataBase().GetModel (id);
38
+                if (Branch !=null )
39
+                {
40
+                    list.Add(Branch);
41
+                }
42
+                else
43
+                {
44
+                    return Error("数据查询失败");
45
+                }
46
+            }
47
+            else
48
+            {
49
+                list = new BLL.T_DataBase().GetModelList("F_ID>0");
50
+                if (list.Count == 0)
51
+                {
52
+                    return Error("查询失败");
53
+                }
54
+            }
55
+            string sql = "  F_IsDelete=0 ";
56
+            if (!string .IsNullOrEmpty (strstarttime))
57
+            {
58
+                sql += " and datediff(day,F_CreateTime,'" + strstarttime + "')<=0 ";
59
+            }
60
+            else
61
+            {
62
+                sql += " and datediff(day,F_CreateTime,'" +DateTime .Now.ToString ("yyyy-MM-01") + "')<=0 ";
63
+            }
64
+            if (!string.IsNullOrEmpty(strendtime))
65
+            {
66
+                sql += " and datediff(day,F_CreateTime,'" + strendtime + "')>=0   ";
67
+            }
68
+            else
69
+            {
70
+                sql += " and datediff(day,F_CreateTime,'" + DateTime.Now.ToString("yyyy-MM-dd") + "')>=0   ";
71
+            }
72
+            
73
+            List<Model.T_Bus_WorkOrder> t_Bus_WorkOrders = new List<Model.T_Bus_WorkOrder>();
74
+            foreach (var it in list)
75
+            {
76
+             string connectionString = "Data Source="+ it .F_Theserver + ";User ID="+ it.F_UserID + ";pwd="+ it.F_pwd +";Initial Catalog=" +it .F_Tablename +";";
77
+            var modellist = new BLL.T_Bus_WorkOrder().GetModelList(sql, connectionString);
78
+                if (modellist!=null )
79
+                {
80
+                    foreach (var iv in modellist)
81
+                    {
82
+                        t_Bus_WorkOrders.Add(iv);
83
+                    }
84
+                }
85
+            }
86
+            var obj = new
87
+            {
88
+                state = "success",
89
+                message = "成功",
90
+                rows = t_Bus_WorkOrders,
91
+               
92
+            };
93
+            return Content(obj.ToJson());
94
+        }
95
+        #endregion
19 96
         #region no user
20 97
         #region  获取数据
21 98
         //来源渠道情况

+ 1 - 0
CallCenterApi/CallCenterApi.Model/CallCenterApi.Model.csproj

@@ -61,6 +61,7 @@
61 61
     <Compile Include="T_Check_Base.cs" />
62 62
     <Compile Include="T_Check_List.cs" />
63 63
     <Compile Include="T_Cus_AddressBook.cs" />
64
+    <Compile Include="T_DataBase.cs" />
64 65
     <Compile Include="T_Email_EmailMessage_Map.cs" />
65 66
     <Compile Include="T_Material_Info.cs" />
66 67
     <Compile Include="T_Sina_Msg.cs" />

+ 71 - 0
CallCenterApi/CallCenterApi.Model/T_DataBase.cs

@@ -0,0 +1,71 @@
1
+using System;
2
+namespace CallCenterApi.Model
3
+{
4
+    /// <summary>
5
+    /// T_DataBase:实体类(属性说明自动提取数据库字段的描述信息)
6
+    /// </summary>
7
+    [Serializable]
8
+    public partial class T_DataBase
9
+    {
10
+        public T_DataBase()
11
+        { }
12
+        #region Model
13
+        private int _f_id;
14
+        private string _f_name;
15
+        private string _f_tablename;
16
+        private string _f_theserver;
17
+        private string _f_userid;
18
+        private string _f_pwd;
19
+        /// <summary>
20
+        /// 
21
+        /// </summary>
22
+        public int F_ID
23
+        {
24
+            set { _f_id = value; }
25
+            get { return _f_id; }
26
+        }
27
+        /// <summary>
28
+        /// 
29
+        /// </summary>
30
+        public string F_Name
31
+        {
32
+            set { _f_name = value; }
33
+            get { return _f_name; }
34
+        }
35
+        /// <summary>
36
+        /// 
37
+        /// </summary>
38
+        public string F_Tablename
39
+        {
40
+            set { _f_tablename = value; }
41
+            get { return _f_tablename; }
42
+        }
43
+        /// <summary>
44
+        /// 
45
+        /// </summary>
46
+        public string F_Theserver
47
+        {
48
+            set { _f_theserver = value; }
49
+            get { return _f_theserver; }
50
+        }
51
+        /// <summary>
52
+        /// 
53
+        /// </summary>
54
+        public string F_UserID
55
+        {
56
+            set { _f_userid = value; }
57
+            get { return _f_userid; }
58
+        }
59
+        /// <summary>
60
+        /// 
61
+        /// </summary>
62
+        public string F_pwd
63
+        {
64
+            set { _f_pwd = value; }
65
+            get { return _f_pwd; }
66
+        }
67
+        #endregion Model
68
+
69
+    }
70
+}
71
+