duhongyu il y a 3 ans
Parent
commit
ffc65c154e

+ 157 - 0
codegit/CallCenterApi/CallCenterApi.BLL/T_Wo_WorkCopy.cs

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

+ 354 - 0
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkCopy.cs

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

+ 78 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderNewController.cs

@@ -525,6 +525,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
525 525
                         }
526 526
                         sql += $" and F_State in(10," + (int)EnumWorkOrderState.evaluate + ")"; ;
527 527
                         break;
528
+                    case 20:
529
+                        sql += $"  and T_Wo_WorkOrder.F_ID in (select F_WorkOrderID from T_Wo_WorkCopy where F_SendCopyUser='"+userId +"') "; ;
530
+                        break;
531
+                      
528 532
                 }
529 533
                 #endregion
530 534
                 int recordCount = 0;
@@ -4115,6 +4119,80 @@ namespace CallCenterApi.Interface.Controllers.workorder
4115 4119
             return true;
4116 4120
         }
4117 4121
         /// <summary>
4122
+        /// 抄送工单
4123
+        /// </summary>
4124
+        /// <param name="id"></param>
4125
+        /// <param name="content"></param>
4126
+        /// <param name="user"></param>
4127
+        /// <returns></returns>
4128
+        [Authority]
4129
+        public ActionResult SendCopy(int id=0,string content="" ,int user=0)
4130
+        {
4131
+
4132
+            int userId = CurrentUser.UserData.F_UserId;
4133
+            if (userId != 0)
4134
+            {
4135
+                Model.T_Sys_UserAccount ua = sysUserAccountBll.GetModel(userId);
4136
+                if (id <= 0)
4137
+                    return Error("请选择工单");
4138
+                if (user <= 0)
4139
+                    return Error("请选择抄送人");
4140
+                var model = workOrder.GetModel(id);
4141
+                if (model != null)
4142
+                {
4143
+                    Model.T_Sys_UserAccount clus = sysUserAccountBll.GetModel(user);
4144
+                    if (clus != null)
4145
+                    {
4146
+                        Model.T_Wo_WorkCopy t_Wo_WorkCopy = new Model.T_Wo_WorkCopy();
4147
+                        t_Wo_WorkCopy.F_WorkOrderID = model.F_ID;
4148
+                        t_Wo_WorkCopy.F_CreateOn = DateTime.Now;
4149
+                        t_Wo_WorkCopy.F_Content = content;
4150
+                        t_Wo_WorkCopy.F_CreateBy = ua.F_UserId.ToString();
4151
+                        t_Wo_WorkCopy.F_SendCopyOn = DateTime.Now;
4152
+                        t_Wo_WorkCopy.F_SendCopyUser = clus.F_UserId.ToString();
4153
+                        t_Wo_WorkCopy.F_State = model.F_State;
4154
+                        string deptname = "";
4155
+                        var dept = new BLL.T_Sys_Department().GetModel(clus.F_DeptId);
4156
+                        if (dept != null)
4157
+                            deptname = dept.F_DeptName;
4158
+                        if (new BLL.T_Wo_WorkCopy().Add(t_Wo_WorkCopy) > 0)
4159
+                        {
4160
+                            int sms = 0;
4161
+                            if (!string.IsNullOrEmpty(clus.F_Mobile))
4162
+                            {
4163
+                                sms = 1;
4164
+                                //发送短信
4165
+                            }
4166
+                            string message = "";
4167
+                            if (!string.IsNullOrEmpty(content))
4168
+                                message = ",抄送内容:" + content;
4169
+                            AddLog(model.F_ID, model.F_State.Value, deptname + clus.F_UserName + "(" + clus.F_WorkNumber + ")" + message, (int)EnumItemType.Copy, (int)EnumItemOpt.Copy, "", 0, ua, 0, 0, "", 1);
4170
+                            return Success("抄送成功");
4171
+                        }
4172
+                        else
4173
+                            return Error("抄送失败");
4174
+                    }
4175
+                    else
4176
+                        return Error("抄送人不存在");
4177
+                }
4178
+                else
4179
+                    return Error("工单不存在");
4180
+
4181
+            }
4182
+
4183
+            else
4184
+            {
4185
+                return Error("无操作权限!");
4186
+            }
4187
+
4188
+
4189
+
4190
+
4191
+        }
4192
+
4193
+
4194
+
4195
+        /// <summary>
4118 4196
         /// 获取催办工单列表
4119 4197
         /// </summary>
4120 4198
         /// <returns></returns>

+ 5 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Models/Enum/EnumWorkOrderState.cs

@@ -63,6 +63,8 @@ namespace CallCenterApi.Interface.Models.Enum
63 63
         audit = 7,
64 64
         [Description("延期")]
65 65
          Delay = 8,
66
+        [Description("抄送")]
67
+        Copy = 9,
66 68
     }
67 69
     /// <summary>
68 70
     /// 工单记录操作
@@ -98,7 +100,9 @@ namespace CallCenterApi.Interface.Models.Enum
98 100
         [Description("回访")]
99 101
         visit,
100 102
         [Description("延期")]
101
-        Delay
103
+        Delay,
104
+        [Description("延期")]
105
+        Copy
102 106
 
103 107
     }
104 108
 }

+ 90 - 0
codegit/CallCenterApi/CallCenterApi.Model/T_Wo_WorkCopy.cs

@@ -0,0 +1,90 @@
1
+
2
+using System;
3
+namespace CallCenterApi.Model
4
+{
5
+    /// <summary>
6
+    /// T_Wo_WorkCopy:实体类(属性说明自动提取数据库字段的描述信息)
7
+    /// </summary>
8
+    [Serializable]
9
+    public partial class T_Wo_WorkCopy
10
+    {
11
+        public T_Wo_WorkCopy()
12
+        { }
13
+        #region Model
14
+        private int _f_id;
15
+        private int? _f_workorderid;
16
+        private int? _f_state;
17
+        private string _f_createby;
18
+        private DateTime? _f_createon;
19
+        private string _f_sendcopyuser;
20
+        private DateTime? _f_sendcopyon;
21
+        private string _f_content;
22
+        /// <summary>
23
+        /// 
24
+        /// </summary>
25
+        public int F_ID
26
+        {
27
+            set { _f_id = value; }
28
+            get { return _f_id; }
29
+        }
30
+        /// <summary>
31
+        /// 工单id
32
+        /// </summary>
33
+        public int? F_WorkOrderID
34
+        {
35
+            set { _f_workorderid = value; }
36
+            get { return _f_workorderid; }
37
+        }
38
+        /// <summary>
39
+        /// 工单状态
40
+        /// </summary>
41
+        public int? F_State
42
+        {
43
+            set { _f_state = value; }
44
+            get { return _f_state; }
45
+        }
46
+        /// <summary>
47
+        /// 添加人
48
+        /// </summary>
49
+        public string F_CreateBy
50
+        {
51
+            set { _f_createby = value; }
52
+            get { return _f_createby; }
53
+        }
54
+        /// <summary>
55
+        /// 添加时间
56
+        /// </summary>
57
+        public DateTime? F_CreateOn
58
+        {
59
+            set { _f_createon = value; }
60
+            get { return _f_createon; }
61
+        }
62
+        /// <summary>
63
+        /// 抄送人id
64
+        /// </summary>
65
+        public string F_SendCopyUser
66
+        {
67
+            set { _f_sendcopyuser = value; }
68
+            get { return _f_sendcopyuser; }
69
+        }
70
+        /// <summary>
71
+        /// 抄送时间
72
+        /// </summary>
73
+        public DateTime? F_SendCopyOn
74
+        {
75
+            set { _f_sendcopyon = value; }
76
+            get { return _f_sendcopyon; }
77
+        }
78
+        /// <summary>
79
+        /// 抄送内容
80
+        /// </summary>
81
+        public string F_Content
82
+        {
83
+            set { _f_content = value; }
84
+            get { return _f_content; }
85
+        }
86
+        #endregion Model
87
+
88
+    }
89
+}
90
+