Przeglądaj źródła

添加IVR欢迎词管理功能

mengjie 5 lat temu
rodzic
commit
ba3eb0f06b

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

@@ -86,6 +86,7 @@
86 86
     <Compile Include="T_Sys_Department.cs" />
87 87
     <Compile Include="T_Sys_DictionaryBase.cs" />
88 88
     <Compile Include="T_Sys_DictionaryValue.cs" />
89
+    <Compile Include="T_Sys_IVRWords.cs" />
89 90
     <Compile Include="T_Sys_LoginLogs.cs" />
90 91
     <Compile Include="T_Sys_MobileData.cs" />
91 92
     <Compile Include="T_Sys_ModuleInfo.cs" />

+ 180 - 0
codegit/CallCenterApi/CallCenterApi.BLL/T_Sys_IVRWords.cs

@@ -0,0 +1,180 @@
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
+
8
+namespace CallCenterApi.BLL
9
+{
10
+    /// <summary>
11
+    /// IVR语音文件表
12
+    /// </summary>
13
+    public class T_Sys_IVRWords
14
+    {
15
+        private readonly DAL.T_Sys_IVRWords dal = new DAL.T_Sys_IVRWords();
16
+        public T_Sys_IVRWords()
17
+        { }
18
+        #region  BasicMethod
19
+
20
+        /// <summary>
21
+        /// 得到最大ID
22
+        /// </summary>
23
+        public int GetMaxId()
24
+        {
25
+            return dal.GetMaxId();
26
+        }
27
+
28
+        /// <summary>
29
+        /// 是否存在该记录
30
+        /// </summary>
31
+        public bool Exists(int FID)
32
+        {
33
+            return dal.Exists(FID);
34
+        }
35
+
36
+        /// <summary>
37
+        /// 增加一条数据
38
+        /// </summary>
39
+        public int Add(Model.T_Sys_IVRWords model)
40
+        {
41
+            return dal.Add(model);
42
+        }
43
+
44
+        /// <summary>
45
+        /// 更新一条数据
46
+        /// </summary>
47
+        public bool Update(Model.T_Sys_IVRWords model)
48
+        {
49
+            return dal.Update(model);
50
+        }
51
+
52
+        /// <summary>
53
+        /// 删除一条数据
54
+        /// </summary>
55
+        public bool Delete(int FID)
56
+        {
57
+
58
+            return dal.Delete(FID);
59
+        }
60
+        /// <summary>
61
+        /// 删除一条数据
62
+        /// </summary>
63
+        public bool DeleteList(string FIDlist)
64
+        {
65
+            return dal.DeleteList(FIDlist);
66
+        }
67
+
68
+        /// <summary>
69
+        /// 得到一个对象实体
70
+        /// </summary>
71
+        public Model.T_Sys_IVRWords GetModel(int FID)
72
+        {
73
+
74
+            return dal.GetModel(FID);
75
+        }
76
+
77
+        ///// <summary>
78
+        ///// 得到一个对象实体,从缓存中
79
+        ///// </summary>
80
+        //public Model.T_Sys_IVRWords GetModelByCache(int FID)
81
+        //{
82
+
83
+        //    string CacheKey = "T_Sys_IVRWordsModel-" + FID;
84
+        //    object objModel = Common.DataCache.GetCache(CacheKey);
85
+        //    if (objModel == null)
86
+        //    {
87
+        //        try
88
+        //        {
89
+        //            objModel = dal.GetModel(FID);
90
+        //            if (objModel != null)
91
+        //            {
92
+        //                int ModelCache = Common.ConfigHelper.GetConfigInt("ModelCache");
93
+        //                Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
94
+        //            }
95
+        //        }
96
+        //        catch { }
97
+        //    }
98
+        //    return (Model.T_Sys_IVRWords)objModel;
99
+        //}
100
+
101
+        /// <summary>
102
+        /// 获得数据列表
103
+        /// </summary>
104
+        public DataSet GetList(string strWhere)
105
+        {
106
+            return dal.GetList(strWhere);
107
+        }
108
+        /// <summary>
109
+        /// 获得前几行数据
110
+        /// </summary>
111
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
112
+        {
113
+            return dal.GetList(Top, strWhere, filedOrder);
114
+        }
115
+        /// <summary>
116
+        /// 获得数据列表
117
+        /// </summary>
118
+        public List<Model.T_Sys_IVRWords> GetModelList(string strWhere)
119
+        {
120
+            DataSet ds = dal.GetList(strWhere);
121
+            return DataTableToList(ds.Tables[0]);
122
+        }
123
+        /// <summary>
124
+        /// 获得数据列表
125
+        /// </summary>
126
+        public List<Model.T_Sys_IVRWords> DataTableToList(DataTable dt)
127
+        {
128
+            List<Model.T_Sys_IVRWords> modelList = new List<Model.T_Sys_IVRWords>();
129
+            int rowsCount = dt.Rows.Count;
130
+            if (rowsCount > 0)
131
+            {
132
+                Model.T_Sys_IVRWords model;
133
+                for (int n = 0; n < rowsCount; n++)
134
+                {
135
+                    model = dal.DataRowToModel(dt.Rows[n]);
136
+                    if (model != null)
137
+                    {
138
+                        modelList.Add(model);
139
+                    }
140
+                }
141
+            }
142
+            return modelList;
143
+        }
144
+
145
+        /// <summary>
146
+        /// 获得数据列表
147
+        /// </summary>
148
+        public DataSet GetAllList()
149
+        {
150
+            return GetList("");
151
+        }
152
+
153
+        /// <summary>
154
+        /// 分页获取数据列表
155
+        /// </summary>
156
+        public int GetRecordCount(string strWhere)
157
+        {
158
+            return dal.GetRecordCount(strWhere);
159
+        }
160
+        /// <summary>
161
+        /// 分页获取数据列表
162
+        /// </summary>
163
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
164
+        {
165
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
166
+        }
167
+        /// <summary>
168
+        /// 分页获取数据列表
169
+        /// </summary>
170
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
171
+        //{
172
+        //return dal.GetList(PageSize,PageIndex,strWhere);
173
+        //}
174
+
175
+        #endregion  BasicMethod
176
+        #region  ExtensionMethod
177
+
178
+        #endregion  ExtensionMethod
179
+    }
180
+}

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

@@ -86,6 +86,7 @@
86 86
     <Compile Include="T_Sys_Department.cs" />
87 87
     <Compile Include="T_Sys_DictionaryBase.cs" />
88 88
     <Compile Include="T_Sys_DictionaryValue.cs" />
89
+    <Compile Include="T_Sys_IVRWords.cs" />
89 90
     <Compile Include="T_Sys_LoginLogs.cs" />
90 91
     <Compile Include="T_Sys_MobileData.cs" />
91 92
     <Compile Include="T_Sys_ModuleInfo.cs" />

+ 400 - 0
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_IVRWords.cs

@@ -0,0 +1,400 @@
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
+    /// IVR语音文件表
14
+    /// </summary>
15
+    public class T_Sys_IVRWords
16
+    {
17
+        public T_Sys_IVRWords()
18
+        { }
19
+        #region  BasicMethod
20
+
21
+        /// <summary>
22
+        /// 得到最大ID
23
+        /// </summary>
24
+        public int GetMaxId()
25
+        {
26
+            return DbHelperSQL.GetMaxID("FID", "T_Sys_IVRWords");
27
+        }
28
+
29
+        /// <summary>
30
+        /// 是否存在该记录
31
+        /// </summary>
32
+        public bool Exists(int FID)
33
+        {
34
+            StringBuilder strSql = new StringBuilder();
35
+            strSql.Append("select count(1) from T_Sys_IVRWords");
36
+            strSql.Append(" where FID=@FID");
37
+            SqlParameter[] parameters = {
38
+                    new SqlParameter("@FID", SqlDbType.Int,4)
39
+            };
40
+            parameters[0].Value = FID;
41
+
42
+            return DbHelperSQL.Exists(strSql.ToString(), parameters);
43
+        }
44
+
45
+
46
+        /// <summary>
47
+        /// 增加一条数据
48
+        /// </summary>
49
+        public int Add(Model.T_Sys_IVRWords model)
50
+        {
51
+            StringBuilder strSql = new StringBuilder();
52
+            strSql.Append("insert into T_Sys_IVRWords(");
53
+            strSql.Append("Title,GroupCode,Content,Type,WavFile,StartDate,EndDate,Remark,IsState,CreateBy,CreateTime,IsDelete)");
54
+            strSql.Append(" values (");
55
+            strSql.Append("@Title,@GroupCode,@Content,@Type,@WavFile,@StartDate,@EndDate,@Remark,@IsState,@CreateBy,@CreateTime,@IsDelete)");
56
+            strSql.Append(";select @@IDENTITY");
57
+            SqlParameter[] parameters = {
58
+                    new SqlParameter("@Title", SqlDbType.VarChar,50),
59
+                    new SqlParameter("@GroupCode", SqlDbType.VarChar,20),
60
+                    new SqlParameter("@Content", SqlDbType.NVarChar,200),
61
+                    new SqlParameter("@Type", SqlDbType.Int,4),
62
+                    new SqlParameter("@WavFile", SqlDbType.VarChar,200),
63
+                    new SqlParameter("@StartDate", SqlDbType.DateTime),
64
+                    new SqlParameter("@EndDate", SqlDbType.DateTime),
65
+                    new SqlParameter("@Remark", SqlDbType.NVarChar,200),
66
+                    new SqlParameter("@IsState", SqlDbType.Int,4),
67
+                    new SqlParameter("@CreateBy", SqlDbType.VarChar,50),
68
+                    new SqlParameter("@CreateTime", SqlDbType.DateTime),
69
+                    new SqlParameter("@IsDelete", SqlDbType.Int,4)};
70
+            parameters[0].Value = model.Title;
71
+            parameters[1].Value = model.GroupCode;
72
+            parameters[2].Value = model.Content;
73
+            parameters[3].Value = model.Type;
74
+            parameters[4].Value = model.WavFile;
75
+            parameters[5].Value = model.StartDate;
76
+            parameters[6].Value = model.EndDate;
77
+            parameters[7].Value = model.Remark;
78
+            parameters[8].Value = model.IsState;
79
+            parameters[9].Value = model.CreateBy;
80
+            parameters[10].Value = model.CreateTime;
81
+            parameters[11].Value = model.IsDelete;
82
+
83
+            object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
84
+            if (obj == null)
85
+            {
86
+                return 0;
87
+            }
88
+            else
89
+            {
90
+                return Convert.ToInt32(obj);
91
+            }
92
+        }
93
+        /// <summary>
94
+        /// 更新一条数据
95
+        /// </summary>
96
+        public bool Update(Model.T_Sys_IVRWords model)
97
+        {
98
+            StringBuilder strSql = new StringBuilder();
99
+            strSql.Append("update T_Sys_IVRWords set ");
100
+            strSql.Append("Title=@Title,");
101
+            strSql.Append("GroupCode=@GroupCode,");
102
+            strSql.Append("Content=@Content,");
103
+            strSql.Append("Type=@Type,");
104
+            strSql.Append("WavFile=@WavFile,");
105
+            strSql.Append("StartDate=@StartDate,");
106
+            strSql.Append("EndDate=@EndDate,");
107
+            strSql.Append("Remark=@Remark,");
108
+            strSql.Append("IsState=@IsState,");
109
+            strSql.Append("CreateBy=@CreateBy,");
110
+            strSql.Append("CreateTime=@CreateTime,");
111
+            strSql.Append("IsDelete=@IsDelete");
112
+            strSql.Append(" where FID=@FID");
113
+            SqlParameter[] parameters = {
114
+                    new SqlParameter("@Title", SqlDbType.VarChar,50),
115
+                    new SqlParameter("@GroupCode", SqlDbType.VarChar,20),
116
+                    new SqlParameter("@Content", SqlDbType.NVarChar,200),
117
+                    new SqlParameter("@Type", SqlDbType.Int,4),
118
+                    new SqlParameter("@WavFile", SqlDbType.VarChar,200),
119
+                    new SqlParameter("@StartDate", SqlDbType.DateTime),
120
+                    new SqlParameter("@EndDate", SqlDbType.DateTime),
121
+                    new SqlParameter("@Remark", SqlDbType.NVarChar,200),
122
+                    new SqlParameter("@IsState", SqlDbType.Int,4),
123
+                    new SqlParameter("@CreateBy", SqlDbType.VarChar,50),
124
+                    new SqlParameter("@CreateTime", SqlDbType.DateTime),
125
+                    new SqlParameter("@IsDelete", SqlDbType.Int,4),
126
+                    new SqlParameter("@FID", SqlDbType.Int,4)};
127
+            parameters[0].Value = model.Title;
128
+            parameters[1].Value = model.GroupCode;
129
+            parameters[2].Value = model.Content;
130
+            parameters[3].Value = model.Type;
131
+            parameters[4].Value = model.WavFile;
132
+            parameters[5].Value = model.StartDate;
133
+            parameters[6].Value = model.EndDate;
134
+            parameters[7].Value = model.Remark;
135
+            parameters[8].Value = model.IsState;
136
+            parameters[9].Value = model.CreateBy;
137
+            parameters[10].Value = model.CreateTime;
138
+            parameters[11].Value = model.IsDelete;
139
+            parameters[12].Value = model.FID;
140
+
141
+            int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
142
+            if (rows > 0)
143
+            {
144
+                return true;
145
+            }
146
+            else
147
+            {
148
+                return false;
149
+            }
150
+        }
151
+
152
+        /// <summary>
153
+        /// 删除一条数据
154
+        /// </summary>
155
+        public bool Delete(int FID)
156
+        {
157
+
158
+            StringBuilder strSql = new StringBuilder();
159
+            strSql.Append("delete from T_Sys_IVRWords ");
160
+            strSql.Append(" where FID=@FID");
161
+            SqlParameter[] parameters = {
162
+                    new SqlParameter("@FID", SqlDbType.Int,4)
163
+            };
164
+            parameters[0].Value = FID;
165
+
166
+            int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
167
+            if (rows > 0)
168
+            {
169
+                return true;
170
+            }
171
+            else
172
+            {
173
+                return false;
174
+            }
175
+        }
176
+        /// <summary>
177
+        /// 批量删除数据
178
+        /// </summary>
179
+        public bool DeleteList(string FIDlist)
180
+        {
181
+            StringBuilder strSql = new StringBuilder();
182
+            strSql.Append("delete from T_Sys_IVRWords ");
183
+            strSql.Append(" where FID in (" + FIDlist + ")  ");
184
+            int rows = DbHelperSQL.ExecuteSql(strSql.ToString());
185
+            if (rows > 0)
186
+            {
187
+                return true;
188
+            }
189
+            else
190
+            {
191
+                return false;
192
+            }
193
+        }
194
+
195
+
196
+        /// <summary>
197
+        /// 得到一个对象实体
198
+        /// </summary>
199
+        public Model.T_Sys_IVRWords GetModel(int FID)
200
+        {
201
+
202
+            StringBuilder strSql = new StringBuilder();
203
+            strSql.Append("select  top 1 FID,Title,GroupCode,Content,Type,WavFile,StartDate,EndDate,Remark,IsState,CreateBy,CreateTime,IsDelete from T_Sys_IVRWords ");
204
+            strSql.Append(" where FID=@FID");
205
+            SqlParameter[] parameters = {
206
+                    new SqlParameter("@FID", SqlDbType.Int,4)
207
+            };
208
+            parameters[0].Value = FID;
209
+
210
+            Model.T_Sys_IVRWords model = new Model.T_Sys_IVRWords();
211
+            DataSet ds = DbHelperSQL.Query(strSql.ToString(), parameters);
212
+            if (ds.Tables[0].Rows.Count > 0)
213
+            {
214
+                return DataRowToModel(ds.Tables[0].Rows[0]);
215
+            }
216
+            else
217
+            {
218
+                return null;
219
+            }
220
+        }
221
+
222
+
223
+        /// <summary>
224
+        /// 得到一个对象实体
225
+        /// </summary>
226
+        public Model.T_Sys_IVRWords DataRowToModel(DataRow row)
227
+        {
228
+            Model.T_Sys_IVRWords model = new Model.T_Sys_IVRWords();
229
+            if (row != null)
230
+            {
231
+                if (row["FID"] != null && row["FID"].ToString() != "")
232
+                {
233
+                    model.FID = int.Parse(row["FID"].ToString());
234
+                }
235
+                if (row["Title"] != null)
236
+                {
237
+                    model.Title = row["Title"].ToString();
238
+                }
239
+                if (row["GroupCode"] != null)
240
+                {
241
+                    model.GroupCode = row["GroupCode"].ToString();
242
+                }
243
+                if (row["Content"] != null)
244
+                {
245
+                    model.Content = row["Content"].ToString();
246
+                }
247
+                if (row["Type"] != null && row["Type"].ToString() != "")
248
+                {
249
+                    model.Type = int.Parse(row["Type"].ToString());
250
+                }
251
+                if (row["WavFile"] != null)
252
+                {
253
+                    model.WavFile = row["WavFile"].ToString();
254
+                }
255
+                if (row["StartDate"] != null && row["StartDate"].ToString() != "")
256
+                {
257
+                    model.StartDate = DateTime.Parse(row["StartDate"].ToString());
258
+                }
259
+                if (row["EndDate"] != null && row["EndDate"].ToString() != "")
260
+                {
261
+                    model.EndDate = DateTime.Parse(row["EndDate"].ToString());
262
+                }
263
+                if (row["Remark"] != null)
264
+                {
265
+                    model.Remark = row["Remark"].ToString();
266
+                }
267
+                if (row["IsState"] != null && row["IsState"].ToString() != "")
268
+                {
269
+                    model.IsState = int.Parse(row["IsState"].ToString());
270
+                }
271
+                if (row["CreateBy"] != null)
272
+                {
273
+                    model.CreateBy = row["CreateBy"].ToString();
274
+                }
275
+                if (row["CreateTime"] != null && row["CreateTime"].ToString() != "")
276
+                {
277
+                    model.CreateTime = DateTime.Parse(row["CreateTime"].ToString());
278
+                }
279
+                if (row["IsDelete"] != null && row["IsDelete"].ToString() != "")
280
+                {
281
+                    model.IsDelete = int.Parse(row["IsDelete"].ToString());
282
+                }
283
+            }
284
+            return model;
285
+        }
286
+
287
+        /// <summary>
288
+        /// 获得数据列表
289
+        /// </summary>
290
+        public DataSet GetList(string strWhere)
291
+        {
292
+            StringBuilder strSql = new StringBuilder();
293
+            strSql.Append("select FID,Title,GroupCode,Content,Type,WavFile,StartDate,EndDate,Remark,IsState,CreateBy,CreateTime,IsDelete ");
294
+            strSql.Append(" FROM T_Sys_IVRWords ");
295
+            if (strWhere.Trim() != "")
296
+            {
297
+                strSql.Append(" where " + strWhere);
298
+            }
299
+            return DbHelperSQL.Query(strSql.ToString());
300
+        }
301
+
302
+        /// <summary>
303
+        /// 获得前几行数据
304
+        /// </summary>
305
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
306
+        {
307
+            StringBuilder strSql = new StringBuilder();
308
+            strSql.Append("select ");
309
+            if (Top > 0)
310
+            {
311
+                strSql.Append(" top " + Top.ToString());
312
+            }
313
+            strSql.Append(" FID,Title,GroupCode,Content,Type,WavFile,StartDate,EndDate,Remark,IsState,CreateBy,CreateTime,IsDelete ");
314
+            strSql.Append(" FROM T_Sys_IVRWords ");
315
+            if (strWhere.Trim() != "")
316
+            {
317
+                strSql.Append(" where " + strWhere);
318
+            }
319
+            strSql.Append(" order by " + filedOrder);
320
+            return DbHelperSQL.Query(strSql.ToString());
321
+        }
322
+
323
+        /// <summary>
324
+        /// 获取记录总数
325
+        /// </summary>
326
+        public int GetRecordCount(string strWhere)
327
+        {
328
+            StringBuilder strSql = new StringBuilder();
329
+            strSql.Append("select count(1) FROM T_Sys_IVRWords ");
330
+            if (strWhere.Trim() != "")
331
+            {
332
+                strSql.Append(" where " + strWhere);
333
+            }
334
+            object obj = DbHelperSQL.GetSingle(strSql.ToString());
335
+            if (obj == null)
336
+            {
337
+                return 0;
338
+            }
339
+            else
340
+            {
341
+                return Convert.ToInt32(obj);
342
+            }
343
+        }
344
+        /// <summary>
345
+        /// 分页获取数据列表
346
+        /// </summary>
347
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
348
+        {
349
+            StringBuilder strSql = new StringBuilder();
350
+            strSql.Append("SELECT * FROM ( ");
351
+            strSql.Append(" SELECT ROW_NUMBER() OVER (");
352
+            if (!string.IsNullOrEmpty(orderby.Trim()))
353
+            {
354
+                strSql.Append("order by T." + orderby);
355
+            }
356
+            else
357
+            {
358
+                strSql.Append("order by T.FID desc");
359
+            }
360
+            strSql.Append(")AS Row, T.*  from T_Sys_IVRWords T ");
361
+            if (!string.IsNullOrEmpty(strWhere.Trim()))
362
+            {
363
+                strSql.Append(" WHERE " + strWhere);
364
+            }
365
+            strSql.Append(" ) TT");
366
+            strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
367
+            return DbHelperSQL.Query(strSql.ToString());
368
+        }
369
+
370
+        /*
371
+		/// <summary>
372
+		/// 分页获取数据列表
373
+		/// </summary>
374
+		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
375
+		{
376
+			SqlParameter[] parameters = {
377
+					new SqlParameter("@tblName", SqlDbType.VarChar, 255),
378
+					new SqlParameter("@fldName", SqlDbType.VarChar, 255),
379
+					new SqlParameter("@PageSize", SqlDbType.Int),
380
+					new SqlParameter("@PageIndex", SqlDbType.Int),
381
+					new SqlParameter("@IsReCount", SqlDbType.Bit),
382
+					new SqlParameter("@OrderType", SqlDbType.Bit),
383
+					new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
384
+					};
385
+			parameters[0].Value = "T_Sys_IVRWords";
386
+			parameters[1].Value = "FID";
387
+			parameters[2].Value = PageSize;
388
+			parameters[3].Value = PageIndex;
389
+			parameters[4].Value = 0;
390
+			parameters[5].Value = 0;
391
+			parameters[6].Value = strWhere;	
392
+			return DbHelperSQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
393
+		}*/
394
+
395
+        #endregion  BasicMethod
396
+        #region  ExtensionMethod
397
+
398
+        #endregion  ExtensionMethod
399
+    }
400
+}

+ 4 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/CallCenterApi.Interface.csproj

@@ -181,6 +181,7 @@
181 181
     <Compile Include="Controllers\HomeController.cs" />
182 182
     <Compile Include="Controllers\IndexController.cs" />
183 183
     <Compile Include="Controllers\InfoController.cs" />
184
+    <Compile Include="Controllers\IVRWordsController.cs" />
184 185
     <Compile Include="Controllers\knowledge\KnowledgeClassController.cs" />
185 186
     <Compile Include="Controllers\knowledge\KnowledgeController.cs" />
186 187
     <Compile Include="Controllers\LogController.cs" />
@@ -268,6 +269,7 @@
268 269
     <Compile Include="Models\Input\DepartmentInput.cs" />
269 270
     <Compile Include="Models\Input\DictionaryInput.cs" />
270 271
     <Compile Include="Models\Input\ImportDataInput.cs" />
272
+    <Compile Include="Models\Input\IVRWordsInput.cs" />
271 273
     <Compile Include="Models\Input\LoginModel.cs" />
272 274
     <Compile Include="Models\Input\ModuleFunctionInput.cs" />
273 275
     <Compile Include="Models\Input\OrderInput.cs" />
@@ -293,6 +295,7 @@
293 295
     <None Include="Properties\PublishProfiles\1q.pubxml" />
294 296
     <None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
295 297
     <None Include="Properties\PublishProfiles\my.pubxml" />
298
+    <None Include="Properties\PublishProfiles\SynearAPI.pubxml" />
296 299
     <None Include="Properties\PublishProfiles\tt.pubxml" />
297 300
     <None Include="Web.Debug.config">
298 301
       <DependentUpon>Web.config</DependentUpon>
@@ -331,6 +334,7 @@
331 334
     <Folder Include="Views\Index\" />
332 335
     <Folder Include="Views\Info\" />
333 336
     <Folder Include="Views\InputDXTel\" />
337
+    <Folder Include="Views\IVR\" />
334 338
     <Folder Include="Views\KnowledgeClass\" />
335 339
     <Folder Include="Views\Knowledge\" />
336 340
     <Folder Include="Views\Login\" />

+ 258 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/IVRWordsController.cs

@@ -0,0 +1,258 @@
1
+using CallCenter.Utility;
2
+using CallCenterApi.Common;
3
+using CallCenterApi.DB;
4
+using CallCenterApi.Interface.Controllers.Base;
5
+using CallCenterApi.Interface.Models.Input;
6
+using System;
7
+using System.Collections.Generic;
8
+using System.Data;
9
+using System.Linq;
10
+using System.Web;
11
+using System.Web.Mvc;
12
+
13
+namespace CallCenterApi.Interface.Controllers
14
+{
15
+    [Authority]
16
+    public class IVRWordsController : BaseController
17
+    {
18
+        // GET: IVR
19
+        public ActionResult Index()
20
+        {
21
+            return View();
22
+        }
23
+
24
+        BLL.T_Sys_IVRWords bll = new BLL.T_Sys_IVRWords();
25
+
26
+        /// <summary>
27
+        /// 获取IVR语音文件列表
28
+        /// </summary>
29
+        /// <returns></returns>
30
+        [Authority]
31
+        public ActionResult GetList()
32
+        {
33
+            DataTable dt = new DataTable();
34
+            string sql = " and IsDelete = 0 ";
35
+            //string id = RequestString.GetQueryString("id");
36
+            // 状态
37
+            int isstate = RequestString.GetInt("isstate", 0);
38
+            string strstarttime = HttpUtility.UrlDecode(RequestString.GetQueryString("starttime"));
39
+            string strendtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
40
+            string strpageindex = RequestString.GetQueryString("page");
41
+            int pageindex = 1;
42
+            string strpagesize = RequestString.GetQueryString("pagesize");
43
+            int pagesize = 10;
44
+
45
+            if (isstate > 0)
46
+                sql += $" AND IsState = {isstate}";
47
+            if (strstarttime.Trim() != "" && strstarttime != "undefined")
48
+            {
49
+                sql += " and datediff(day,CreateTime,'" + strstarttime + "')<=0 ";
50
+            }
51
+            if (strendtime.Trim() != "" && strendtime != "undefined")
52
+            {
53
+                sql += " and datediff(day,CreateTime,'" + strendtime + "')>=0   ";
54
+            }
55
+            if (strpageindex.Trim() != "")
56
+            {
57
+                pageindex = Convert.ToInt32(strpageindex);
58
+            }
59
+
60
+            if (strpagesize.Trim() != "")
61
+            {
62
+                pagesize = Convert.ToInt32(strpagesize);
63
+            }
64
+            int recordCount = 0;
65
+            dt = BLL.PagerBLL.GetListPager(
66
+                "T_Sys_IVRWords WITH(NOLOCK) ",
67
+                "FID",
68
+                "*",
69
+                sql,
70
+                "ORDER BY FID desc",
71
+                pagesize,
72
+                pageindex,
73
+                true,
74
+                out recordCount);
75
+
76
+            var obj = new
77
+            {
78
+                rows = dt,
79
+                total = recordCount
80
+            };
81
+
82
+            return Content(obj.ToJson());
83
+        }
84
+
85
+        /// <summary>
86
+        /// 获取欢迎词
87
+        /// </summary>
88
+        /// <param name="deptId"></param>
89
+        /// <returns></returns>
90
+        [Authority]
91
+        public ActionResult GetInfo(int id = 0)
92
+        {
93
+            #region 添加验证判断
94
+            if (id <= 0)
95
+                return Error("参数不能为空!");
96
+            #endregion
97
+            var model = bll.GetModel(id);
98
+            if (model != null)
99
+                return Success("获取成功", model);
100
+            return Error("获取失败");
101
+        }
102
+
103
+
104
+        /// <summary>
105
+        /// 添加欢迎词
106
+        /// </summary>
107
+        /// <param name="input"></param>
108
+        /// <returns></returns>
109
+        [Authority]
110
+        [HttpPost]
111
+        public ActionResult Add(IVRWordsInput input)
112
+        {
113
+            int userId = CurrentUser.UserData.F_UserId;
114
+            string usercode = CurrentUser.UserData.F_UserCode;
115
+            #region 添加验证判断
116
+            if (string.IsNullOrEmpty(input.Title))
117
+                return Error("标题不能为空!");
118
+            if (string.IsNullOrEmpty(input.StartDate.ToString()))
119
+                return Error("生效时间不能为空!");
120
+            if (string.IsNullOrEmpty(input.EndDate.ToString()))
121
+                return Error("失效时间不能为空!");
122
+            #endregion
123
+            var model = new Model.T_Sys_IVRWords();
124
+            //获取房东信息            
125
+            model.Title = input.Title;    // 标题
126
+            model.GroupCode = input.GroupCode;                  // 坐席组编号
127
+            model.Content = input.Content;    // 内容 
128
+            model.Type = input.Type;    // 类型:1文本,2语音文件
129
+            model.WavFile = input.WavFile;  // 语音文件路径
130
+            model.StartDate = input.StartDate;    // 生效时间
131
+            model.EndDate = input.EndDate;                // 失效时间
132
+            model.Remark = input.Remark;                // 备注
133
+            model.IsState = input.IsState;    // 状态:1启动,0不启动
134
+            model.CreateBy = usercode;              // 备注
135
+            model.CreateTime = DateTime.Now;
136
+            int n = bll.Add(model);
137
+            if (n > 0)
138
+                return Success("添加成功!", model);
139
+            else
140
+                return Error("添加失败!");
141
+        }
142
+
143
+        /// <summary>
144
+        /// 编辑欢迎词
145
+        /// </summary>
146
+        /// <param name="input"></param>
147
+        /// <returns></returns>
148
+        [Authority]
149
+        [HttpPost]
150
+        public ActionResult Update(IVRWordsInput input)
151
+        {
152
+            int userId = CurrentUser.UserData.F_UserId;
153
+            string usercode = CurrentUser.UserData.F_UserCode;
154
+            #region 添加验证判断
155
+            if (string.IsNullOrEmpty(input.Title))
156
+                return Error("标题不能为空!");
157
+            if (string.IsNullOrEmpty(input.StartDate.ToString()))
158
+                return Error("生效时间不能为空!");
159
+            if (string.IsNullOrEmpty(input.EndDate.ToString()))
160
+                return Error("失效时间不能为空!");
161
+            #endregion
162
+            var model = bll.GetModel(input.ID);
163
+            if (model == null)
164
+                return Error("参数错误");
165
+
166
+            //获取房东信息            
167
+            model.Title = input.Title;    // 标题
168
+            model.GroupCode = input.GroupCode;                  // 坐席组编号
169
+            model.Content = input.Content;    // 内容 
170
+            model.Type = input.Type;    // 类型:1文本,2语音文件
171
+            model.WavFile = input.WavFile;  // 语音文件路径
172
+            model.StartDate = input.StartDate;    // 生效时间
173
+            model.EndDate = input.EndDate;                // 失效时间
174
+            model.Remark = input.Remark;                // 备注
175
+            model.IsState = input.IsState;    // 状态:1启动,0不启动
176
+            bool b = bll.Update(model);
177
+            if (b)
178
+                return Success("修改成功!", model);
179
+            else
180
+                return Error("修改失败!");
181
+        }
182
+
183
+        /// <summary>
184
+        /// 删除欢迎词
185
+        /// </summary>
186
+        /// <param name="ids"></param>
187
+        /// <returns></returns>
188
+        [Authority]
189
+        public ActionResult Delele(string[] ids)
190
+        {
191
+            if (ids == null || ids.Length <= 0)
192
+                return Error("请选择要删除的项");
193
+            var idStr = string.Join(",", ids);
194
+            if (string.IsNullOrEmpty(idStr.Trim()))
195
+                return Error("请选择要删除的项");
196
+            if (bll.DeleteList(idStr))
197
+                return Success("删除成功");
198
+            return Error("删除失败");
199
+        }
200
+
201
+        /// <summary>
202
+        /// 获取欢迎词
203
+        /// </summary>
204
+        /// <param name="deptId"></param>
205
+        /// <returns></returns>
206
+        public ActionResult GetIvrWords()
207
+        {
208
+            var text = ""; var type = 0;
209
+            var model = new Model.T_Sys_IVRWords();
210
+            var list = bll.GetModelList(" IsDelete = 0 AND IsState = 1 AND StartDate <= GETDATE() AND EndDate >= GETDATE() ORDER BY CreateTime DESC ");
211
+            if (list.Count() > 0)
212
+            {
213
+                model = list.Last();
214
+                type = model.Type;
215
+                if (type == 1)
216
+                    text = model.Content;
217
+                else if (type == 2)
218
+                    text = model.WavFile;
219
+            }
220
+            var obj = new
221
+            {
222
+                ttstext = text,
223
+                type = type
224
+                //ttstext="欢迎致电科技有限公司"
225
+            };
226
+
227
+            return Success("获取欢迎词", obj);
228
+        }
229
+
230
+
231
+        //获取IVR欢迎词开启关闭状态
232
+        public ActionResult GetIVRWordsState()
233
+        {
234
+            
235
+                string strsql = " IsState=1 and IsDelete=0";
236
+                int co = bll.GetRecordCount(strsql);
237
+                //Model.T_Sys_IVRWords dModel = dBLL.GetModel(int.Parse(id.Trim()));
238
+                //var config = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='IVRWavPath' ").FirstOrDefault();
239
+
240
+                //if (dModel.F_WavNewName != "" && config != null && !string.IsNullOrEmpty(config.F_ParamValue))
241
+                //{
242
+                    //dModel.F_WavPath = config.F_ParamValue + dModel.F_WavNewName;
243
+                //}
244
+
245
+                if (co>0)//(dModel != null)
246
+                {
247
+                    //return Success("获取IVR欢迎词成功", dModel);
248
+                    return Success("获取IVR欢迎词成功", true);
249
+                }
250
+                else
251
+                {
252
+                    return Success("获取IVR欢迎词成功", false );
253
+                }
254
+           
255
+
256
+        }
257
+    }
258
+}

+ 55 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Models/Input/IVRWordsInput.cs

@@ -0,0 +1,55 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Web;
5
+
6
+namespace CallCenterApi.Interface.Models.Input
7
+{
8
+    public class IVRWordsInput
9
+    {
10
+        /// <summary>
11
+        /// Id
12
+        /// </summary>
13
+        public int ID { get; set; }
14
+        /// <summary>
15
+        /// 标题
16
+        /// </summary>
17
+        public string Title { get; set; }
18
+        /// <summary>
19
+        /// 坐席组编号
20
+        /// </summary>
21
+        public string GroupCode { get; set; }
22
+        /// <summary>
23
+        /// 内容
24
+        /// </summary>
25
+        public string Content { get; set; }
26
+        /// <summary>
27
+        /// 类型:1文本,2语音文件
28
+        /// </summary>
29
+        public int Type { get; set; }
30
+        /// <summary>
31
+        /// 语音文件路径
32
+        /// </summary>
33
+        public string WavFile { get; set; }
34
+        /// <summary>
35
+        /// 生效时间
36
+        /// </summary>
37
+        public DateTime? StartDate { get; set; }
38
+        /// <summary>
39
+        /// 失效时间
40
+        /// </summary>
41
+        public DateTime? EndDate { get; set; }
42
+        /// <summary>
43
+        /// 备注
44
+        /// </summary>
45
+        public string Remark { get; set; }
46
+        /// <summary>
47
+        /// 状态:1启动,0不启动
48
+        /// </summary>
49
+        public int IsState { get; set; }
50
+        /// <summary>
51
+        /// 添加人
52
+        /// </summary>
53
+        public string CreateBy { get; set; }
54
+    }
55
+}

+ 17 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Properties/PublishProfiles/SynearAPI.pubxml

@@ -0,0 +1,17 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<!--
3
+您 Web 项目的发布/打包进程将使用此文件。您可以通过编辑此 MSBuild 文件
4
+来自定义该进程的行为。若要了解与此相关的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkID=208121。
5
+-->
6
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
7
+  <PropertyGroup>
8
+    <WebPublishMethod>FileSystem</WebPublishMethod>
9
+    <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
10
+    <LastUsedPlatform>Any CPU</LastUsedPlatform>
11
+    <SiteUrlToLaunchAfterPublish />
12
+    <LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
13
+    <ExcludeApp_Data>False</ExcludeApp_Data>
14
+    <publishUrl>C:\Dpan\roots\Synear_API</publishUrl>
15
+    <DeleteExistingFiles>False</DeleteExistingFiles>
16
+  </PropertyGroup>
17
+</Project>

+ 214 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Properties/PublishProfiles/SynearAPI.pubxml.user

@@ -0,0 +1,214 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<!--
3
+您 Web 项目的发布/打包进程将使用此文件。您可以通过编辑此 MSBuild 文件
4
+来自定义该进程的行为。若要了解与此相关的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkID=208121。
5
+-->
6
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
7
+  <PropertyGroup>
8
+    <TimeStampOfAssociatedLegacyPublishXmlFile />
9
+    <_PublishTargetUrl>C:\Dpan\roots\Synear_API</_PublishTargetUrl>
10
+  </PropertyGroup>
11
+  <ItemGroup>
12
+    <File Include="ApplicationInsights.config">
13
+      <publishTime>01/04/2019 15:26:38</publishTime>
14
+    </File>
15
+    <File Include="bin/ApplicationInsights.config">
16
+      <publishTime>01/04/2019 15:26:38</publishTime>
17
+    </File>
18
+    <File Include="bin/CallCenter.Utility.dll">
19
+      <publishTime>03/06/2020 14:08:43</publishTime>
20
+    </File>
21
+    <File Include="bin/CallCenterApi.BLL.dll">
22
+      <publishTime>03/06/2020 14:08:45</publishTime>
23
+    </File>
24
+    <File Include="bin/CallCenterApi.Cache.dll">
25
+      <publishTime>03/06/2020 14:08:42</publishTime>
26
+    </File>
27
+    <File Include="bin/CallCenterApi.Common.dll">
28
+      <publishTime>03/06/2020 14:08:45</publishTime>
29
+    </File>
30
+    <File Include="bin/CallCenterApi.DAL.dll">
31
+      <publishTime>03/06/2020 14:08:44</publishTime>
32
+    </File>
33
+    <File Include="bin/CallCenterApi.DB.dll">
34
+      <publishTime>03/06/2020 14:08:42</publishTime>
35
+    </File>
36
+    <File Include="bin/CallCenterApi.Interface.dll">
37
+      <publishTime>03/06/2020 14:08:52</publishTime>
38
+    </File>
39
+    <File Include="bin/CallCenterApi.Model.dll">
40
+      <publishTime>03/06/2020 14:08:42</publishTime>
41
+    </File>
42
+    <File Include="bin/CallCenterAPI.WechatSDK.dll">
43
+      <publishTime>03/06/2020 14:08:44</publishTime>
44
+    </File>
45
+    <File Include="bin/ICSharpCode.SharpZipLib.dll">
46
+      <publishTime>01/04/2019 15:26:45</publishTime>
47
+    </File>
48
+    <File Include="bin/log4net.dll">
49
+      <publishTime>01/04/2019 15:26:45</publishTime>
50
+    </File>
51
+    <File Include="bin/Microsoft.AI.Agent.Intercept.dll">
52
+      <publishTime>01/04/2019 15:26:42</publishTime>
53
+    </File>
54
+    <File Include="bin/Microsoft.AI.DependencyCollector.dll">
55
+      <publishTime>01/04/2019 15:26:42</publishTime>
56
+    </File>
57
+    <File Include="bin/Microsoft.AI.PerfCounterCollector.dll">
58
+      <publishTime>01/04/2019 15:26:42</publishTime>
59
+    </File>
60
+    <File Include="bin/Microsoft.AI.ServerTelemetryChannel.dll">
61
+      <publishTime>01/04/2019 15:26:42</publishTime>
62
+    </File>
63
+    <File Include="bin/Microsoft.AI.Web.dll">
64
+      <publishTime>01/04/2019 15:26:42</publishTime>
65
+    </File>
66
+    <File Include="bin/Microsoft.AI.WindowsServer.dll">
67
+      <publishTime>01/04/2019 15:26:42</publishTime>
68
+    </File>
69
+    <File Include="bin/Microsoft.ApplicationInsights.dll">
70
+      <publishTime>01/04/2019 15:26:41</publishTime>
71
+    </File>
72
+    <File Include="bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll">
73
+      <publishTime>01/04/2019 15:26:43</publishTime>
74
+    </File>
75
+    <File Include="bin/Microsoft.Web.Infrastructure.dll">
76
+      <publishTime>01/04/2019 15:26:43</publishTime>
77
+    </File>
78
+    <File Include="bin/Newtonsoft.Json.dll">
79
+      <publishTime>01/04/2019 15:26:43</publishTime>
80
+    </File>
81
+    <File Include="bin/NPOI.dll">
82
+      <publishTime>01/04/2019 15:26:43</publishTime>
83
+    </File>
84
+    <File Include="bin/NPOI.OOXML.dll">
85
+      <publishTime>01/04/2019 15:26:43</publishTime>
86
+    </File>
87
+    <File Include="bin/NPOI.OpenXml4Net.dll">
88
+      <publishTime>01/04/2019 15:26:43</publishTime>
89
+    </File>
90
+    <File Include="bin/NPOI.OpenXmlFormats.dll">
91
+      <publishTime>01/04/2019 15:26:43</publishTime>
92
+    </File>
93
+    <File Include="bin/roslyn/csc.exe">
94
+      <publishTime>01/04/2019 15:26:43</publishTime>
95
+    </File>
96
+    <File Include="bin/roslyn/Microsoft.Build.Tasks.CodeAnalysis.dll">
97
+      <publishTime>01/04/2019 15:26:43</publishTime>
98
+    </File>
99
+    <File Include="bin/roslyn/Microsoft.CodeAnalysis.CSharp.dll">
100
+      <publishTime>01/04/2019 15:26:43</publishTime>
101
+    </File>
102
+    <File Include="bin/roslyn/Microsoft.CodeAnalysis.dll">
103
+      <publishTime>01/04/2019 15:26:43</publishTime>
104
+    </File>
105
+    <File Include="bin/roslyn/Microsoft.CodeAnalysis.VisualBasic.dll">
106
+      <publishTime>01/04/2019 15:26:43</publishTime>
107
+    </File>
108
+    <File Include="bin/roslyn/Microsoft.CSharp.Core.targets">
109
+      <publishTime>01/04/2019 15:26:43</publishTime>
110
+    </File>
111
+    <File Include="bin/roslyn/Microsoft.VisualBasic.Core.targets">
112
+      <publishTime>01/04/2019 15:26:43</publishTime>
113
+    </File>
114
+    <File Include="bin/roslyn/System.Collections.Immutable.dll">
115
+      <publishTime>01/04/2019 15:26:43</publishTime>
116
+    </File>
117
+    <File Include="bin/roslyn/System.Reflection.Metadata.dll">
118
+      <publishTime>01/04/2019 15:26:43</publishTime>
119
+    </File>
120
+    <File Include="bin/roslyn/vbc.exe">
121
+      <publishTime>01/04/2019 15:26:43</publishTime>
122
+    </File>
123
+    <File Include="bin/roslyn/VBCSCompiler.exe">
124
+      <publishTime>01/04/2019 15:26:43</publishTime>
125
+    </File>
126
+    <File Include="bin/roslyn/VBCSCompiler.exe.config">
127
+      <publishTime>01/04/2019 15:26:43</publishTime>
128
+    </File>
129
+    <File Include="bin/Senparc.Weixin.dll">
130
+      <publishTime>01/04/2019 15:26:38</publishTime>
131
+    </File>
132
+    <File Include="bin/Senparc.Weixin.MP.dll">
133
+      <publishTime>01/04/2019 15:26:38</publishTime>
134
+    </File>
135
+    <File Include="bin/StackExchange.Redis.dll">
136
+      <publishTime>08/01/2017 12:19:14</publishTime>
137
+    </File>
138
+    <File Include="bin/System.Web.Helpers.dll">
139
+      <publishTime>01/04/2019 15:26:42</publishTime>
140
+    </File>
141
+    <File Include="bin/System.Web.Mvc.dll">
142
+      <publishTime>01/04/2019 15:26:42</publishTime>
143
+    </File>
144
+    <File Include="bin/System.Web.Razor.dll">
145
+      <publishTime>01/04/2019 15:26:42</publishTime>
146
+    </File>
147
+    <File Include="bin/System.Web.Webpages.Deployment.dll">
148
+      <publishTime>01/04/2019 15:26:42</publishTime>
149
+    </File>
150
+    <File Include="bin/System.Web.Webpages.dll">
151
+      <publishTime>01/04/2019 15:26:42</publishTime>
152
+    </File>
153
+    <File Include="bin/System.Web.Webpages.Razor.dll">
154
+      <publishTime>01/04/2019 15:26:42</publishTime>
155
+    </File>
156
+    <File Include="bin/TopSdk.dll">
157
+      <publishTime>01/04/2019 15:26:38</publishTime>
158
+    </File>
159
+    <File Include="bin/zh-Hans/System.Web.Helpers.resources.dll">
160
+      <publishTime>01/04/2019 15:26:42</publishTime>
161
+    </File>
162
+    <File Include="bin/zh-Hans/System.Web.Mvc.resources.dll">
163
+      <publishTime>01/04/2019 15:26:42</publishTime>
164
+    </File>
165
+    <File Include="bin/zh-Hans/System.Web.Razor.resources.dll">
166
+      <publishTime>01/04/2019 15:26:42</publishTime>
167
+    </File>
168
+    <File Include="bin/zh-Hans/System.Web.Webpages.Deployment.resources.dll">
169
+      <publishTime>01/04/2019 15:26:42</publishTime>
170
+    </File>
171
+    <File Include="bin/zh-Hans/System.Web.Webpages.Razor.resources.dll">
172
+      <publishTime>01/04/2019 15:26:42</publishTime>
173
+    </File>
174
+    <File Include="bin/zh-Hans/System.Web.Webpages.resources.dll">
175
+      <publishTime>01/04/2019 15:26:42</publishTime>
176
+    </File>
177
+    <File Include="Configs/log4net.config">
178
+      <publishTime>01/04/2019 15:26:38</publishTime>
179
+    </File>
180
+    <File Include="Configs/system.config">
181
+      <publishTime>03/22/2019 09:30:47</publishTime>
182
+    </File>
183
+    <File Include="ExcelMod/CustomerList_Mod.xls">
184
+      <publishTime>01/04/2019 15:26:38</publishTime>
185
+    </File>
186
+    <File Include="Global.asax">
187
+      <publishTime>01/04/2019 15:26:38</publishTime>
188
+    </File>
189
+    <File Include="Lib/Senparc.Weixin.dll">
190
+      <publishTime>01/04/2019 15:26:38</publishTime>
191
+    </File>
192
+    <File Include="Lib/Senparc.Weixin.MP.dll">
193
+      <publishTime>01/04/2019 15:26:38</publishTime>
194
+    </File>
195
+    <File Include="packages.config">
196
+      <publishTime>01/04/2019 15:26:38</publishTime>
197
+    </File>
198
+    <File Include="Txt/dirtywords.txt">
199
+      <publishTime>01/04/2019 15:26:38</publishTime>
200
+    </File>
201
+    <File Include="Upload/ZXTX/20170728170157397.jpg">
202
+      <publishTime>01/04/2019 15:26:38</publishTime>
203
+    </File>
204
+    <File Include="Upload/ZXTX/20170728170157397_s.jpg">
205
+      <publishTime>01/04/2019 15:26:38</publishTime>
206
+    </File>
207
+    <File Include="Views/web.config">
208
+      <publishTime>01/04/2019 15:26:38</publishTime>
209
+    </File>
210
+    <File Include="Web.config">
211
+      <publishTime>03/06/2020 14:08:53</publishTime>
212
+    </File>
213
+  </ItemGroup>
214
+</Project>

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

@@ -91,6 +91,7 @@
91 91
     <Compile Include="T_Sys_Department.cs" />
92 92
     <Compile Include="T_Sys_DictionaryBase.cs" />
93 93
     <Compile Include="T_Sys_DictionaryValue.cs" />
94
+    <Compile Include="T_Sys_IVRWords.cs" />
94 95
     <Compile Include="T_Sys_LoginLogs.cs" />
95 96
     <Compile Include="T_Sys_MobileData.cs" />
96 97
     <Compile Include="T_Sys_ModuleFunctions.cs" />

+ 136 - 0
codegit/CallCenterApi/CallCenterApi.Model/T_Sys_IVRWords.cs

@@ -0,0 +1,136 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Threading.Tasks;
6
+
7
+namespace CallCenterApi.Model
8
+{
9
+    /// <summary>
10
+    /// IVR语音文件表
11
+    /// </summary>
12
+    public class T_Sys_IVRWords
13
+    {
14
+        public T_Sys_IVRWords()
15
+        { }
16
+        #region Model
17
+        private int _fid;
18
+        private string _title;
19
+        private string _groupcode;
20
+        private string _content;
21
+        private int _type;
22
+        private string _wavfile;
23
+        private DateTime? _startdate;
24
+        private DateTime? _enddate;
25
+        private string _remark;
26
+        private int _isstate;
27
+        private string _createby;
28
+        private DateTime? _createtime;
29
+        private int _isdelete;
30
+        /// <summary>
31
+        /// id
32
+        /// </summary>
33
+        public int FID
34
+        {
35
+            set { _fid = value; }
36
+            get { return _fid; }
37
+        }
38
+        /// <summary>
39
+        /// 标题
40
+        /// </summary>
41
+        public string Title
42
+        {
43
+            set { _title = value; }
44
+            get { return _title; }
45
+        }
46
+        /// <summary>
47
+        /// 坐席组编号
48
+        /// </summary>
49
+        public string GroupCode
50
+        {
51
+            set { _groupcode = value; }
52
+            get { return _groupcode; }
53
+        }
54
+        /// <summary>
55
+        /// 内容
56
+        /// </summary>
57
+        public string Content
58
+        {
59
+            set { _content = value; }
60
+            get { return _content; }
61
+        }
62
+        /// <summary>
63
+        /// 类型:1文本,2语音文件
64
+        /// </summary>
65
+        public int Type
66
+        {
67
+            set { _type = value; }
68
+            get { return _type; }
69
+        }
70
+        /// <summary>
71
+        /// 语音文件路径
72
+        /// </summary>
73
+        public string WavFile
74
+        {
75
+            set { _wavfile = value; }
76
+            get { return _wavfile; }
77
+        }
78
+        /// <summary>
79
+        /// 生效时间
80
+        /// </summary>
81
+        public DateTime? StartDate
82
+        {
83
+            set { _startdate = value; }
84
+            get { return _startdate; }
85
+        }
86
+        /// <summary>
87
+        /// 失效时间
88
+        /// </summary>
89
+        public DateTime? EndDate
90
+        {
91
+            set { _enddate = value; }
92
+            get { return _enddate; }
93
+        }
94
+        /// <summary>
95
+        /// 备注
96
+        /// </summary>
97
+        public string Remark
98
+        {
99
+            set { _remark = value; }
100
+            get { return _remark; }
101
+        }
102
+        /// <summary>
103
+        /// 状态:1启动,0不启动
104
+        /// </summary>
105
+        public int IsState
106
+        {
107
+            set { _isstate = value; }
108
+            get { return _isstate; }
109
+        }
110
+        /// <summary>
111
+        /// 添加人
112
+        /// </summary>
113
+        public string CreateBy
114
+        {
115
+            set { _createby = value; }
116
+            get { return _createby; }
117
+        }
118
+        /// <summary>
119
+        /// 添加时间
120
+        /// </summary>
121
+        public DateTime? CreateTime
122
+        {
123
+            set { _createtime = value; }
124
+            get { return _createtime; }
125
+        }
126
+        /// <summary>
127
+        /// 是否删除:0未删除,1已删除
128
+        /// </summary>
129
+        public int IsDelete
130
+        {
131
+            set { _isdelete = value; }
132
+            get { return _isdelete; }
133
+        }
134
+        #endregion Model
135
+    }
136
+}