Bladeren bron

新增通告记录表

zhoufan 8 jaren geleden
bovenliggende
commit
0caa159bb1

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

@@ -47,6 +47,7 @@
47 47
     <Compile Include="T_Bus_AssignedItemInfo.cs" />
48 48
     <Compile Include="T_Bus_DelayTime.cs" />
49 49
     <Compile Include="T_Bus_Feedback.cs" />
50
+    <Compile Include="T_Bus_NoticeCriticism.cs" />
50 51
     <Compile Include="T_Bus_Operation.cs" />
51 52
     <Compile Include="T_Bus_RemindRecord.cs" />
52 53
     <Compile Include="T_Bus_SubmitSuper.cs" />

+ 145 - 0
CallCenterApi/CallCenterApi.BLL/T_Bus_NoticeCriticism.cs

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

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

@@ -48,6 +48,7 @@
48 48
     <Compile Include="T_Bus_AssignedItemInfo.cs" />
49 49
     <Compile Include="T_Bus_DelayTime.cs" />
50 50
     <Compile Include="T_Bus_Feedback.cs" />
51
+    <Compile Include="T_Bus_NoticeCriticism.cs" />
51 52
     <Compile Include="T_Bus_Operation.cs" />
52 53
     <Compile Include="T_Bus_RemindRecord.cs" />
53 54
     <Compile Include="T_Bus_SubmitSuper.cs" />

+ 380 - 0
CallCenterApi/CallCenterApi.DAL/T_Bus_NoticeCriticism.cs

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

File diff suppressed because it is too large
+ 34 - 6
CallCenterApi/CallCenterApi.DAL/T_Bus_WorkOrder.cs


File diff suppressed because it is too large
+ 49 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/WorkOrderReportController.cs


+ 189 - 42
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -4618,24 +4618,25 @@ namespace CallCenterApi.Interface.Controllers.workorder
4618 4618
                 string finalopinion = RequestString.GetFormString("finalopinion");//结案意见
4619 4619
                 int issatisfie = RequestString.GetInt("issatisfie", 0);//0不满意 1满意
4620 4620
                 int isnotice = RequestString.GetInt("isnotice", 0);//0不通告 1通告
4621
+                string deptids = RequestString.GetFormString("deptids");//通告单位
4621 4622
 
4622 4623
                 Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
4623
-                Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetNewModelByWorkOrderID(workorderid);
4624
+                //Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetNewModelByWorkOrderID(workorderid);
4624 4625
                 if (modelT_Bus_WorkOrder != null)
4625 4626
                 {
4626 4627
                     if (modelT_Bus_WorkOrder.F_WorkState == 7)
4627 4628
                     {
4628 4629
                         using (TransactionScope trans = new TransactionScope())
4629 4630
                         {
4630
-                            #region 修改交办记录
4631
-                            if (isnotice == 1)
4632
-                            {
4633
-                                modelT_Bus_AssignedInfo.F_IsNotice = 1;
4634
-                                modelT_Bus_AssignedInfo.F_NoticeUser= userModel.F_UserCode;
4635
-                                modelT_Bus_AssignedInfo.F_NoticeTime = DateTime.Now;
4636
-                                assignBLL.Update(modelT_Bus_AssignedInfo);
4637
-                            }
4638
-                            #endregion
4631
+                            //#region 修改交办记录
4632
+                            //if (isnotice == 1)
4633
+                            //{
4634
+                            //    modelT_Bus_AssignedInfo.F_IsNotice = 1;
4635
+                            //    modelT_Bus_AssignedInfo.F_NoticeUser= userModel.F_UserCode;
4636
+                            //    modelT_Bus_AssignedInfo.F_NoticeTime = DateTime.Now;
4637
+                            //    assignBLL.Update(modelT_Bus_AssignedInfo);
4638
+                            //}
4639
+                            //#endregion
4639 4640
 
4640 4641
                             #region 修改工单记录
4641 4642
                             modelT_Bus_WorkOrder.F_WorkState = 9;
@@ -4644,6 +4645,22 @@ namespace CallCenterApi.Interface.Controllers.workorder
4644 4645
                             modelT_Bus_WorkOrder.F_CloseUser = userModel.F_UserCode;
4645 4646
                             modelT_Bus_WorkOrder.F_CloseTime = DateTime.Now;
4646 4647
                             modelT_Bus_WorkOrder.F_FinalOpinion = finalopinion;
4648
+                            if (isnotice == 1)
4649
+                            {
4650
+
4651
+                                Model.T_Bus_NoticeCriticism modelT_Bus_NoticeCriticism = new Model.T_Bus_NoticeCriticism();
4652
+                                modelT_Bus_NoticeCriticism.F_DeptIds = deptids;
4653
+                                modelT_Bus_NoticeCriticism.F_WorkOrderId = modelT_Bus_WorkOrder.F_WorkOrderId;
4654
+                                modelT_Bus_NoticeCriticism.F_State = 1;
4655
+                                modelT_Bus_NoticeCriticism.F_IsDelete = 0;
4656
+                                modelT_Bus_NoticeCriticism.F_CreateTime = DateTime.Now;
4657
+                                modelT_Bus_NoticeCriticism.F_CreateUser= userModel.F_UserCode;
4658
+                                new BLL.T_Bus_NoticeCriticism().Add(modelT_Bus_NoticeCriticism);
4659
+
4660
+                                modelT_Bus_WorkOrder.F_IsNotice = 1;
4661
+                                modelT_Bus_WorkOrder.F_NoticeUser= userModel.F_UserCode;
4662
+                                modelT_Bus_WorkOrder.F_NoticeTime = DateTime.Now;
4663
+                            }
4647 4664
 
4648 4665
                             workorderBLL.Update(modelT_Bus_WorkOrder);
4649 4666
                             #endregion
@@ -4727,27 +4744,28 @@ namespace CallCenterApi.Interface.Controllers.workorder
4727 4744
                 string finalopinion = RequestString.GetFormString("finalopinion");//结案意见
4728 4745
                 int issatisfie = RequestString.GetInt("issatisfie", 0);//0不满意 1满意
4729 4746
                 int isnotice = RequestString.GetInt("isnotice", 0);//0不通告 1通告
4747
+                string deptids = RequestString.GetFormString("deptids");//通告单位
4730 4748
 
4731 4749
                 Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
4732
-                Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetNewModelByWorkOrderID(workorderid);
4750
+                //Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetNewModelByWorkOrderID(workorderid);
4733 4751
                 if (modelT_Bus_WorkOrder != null)
4734 4752
                 {
4735 4753
                     using (TransactionScope trans = new TransactionScope())
4736 4754
                     {
4737
-                        #region 修改交办记录
4738
-                        if (modelT_Bus_AssignedInfo != null && modelT_Bus_AssignedInfo.F_FeedbackTime != null)
4739
-                        {
4740
-                            if (isnotice == 1)
4741
-                            {
4742
-                                modelT_Bus_AssignedInfo.F_IsNotice = 1;
4743
-                                modelT_Bus_AssignedInfo.F_NoticeUser = userModel.F_UserCode;
4744
-                                modelT_Bus_AssignedInfo.F_NoticeTime = DateTime.Now;
4745
-                            }
4746
-
4747
-                            modelT_Bus_AssignedInfo.F_FeedbackTime = DateTime.Now;
4748
-                            assignBLL.Update(modelT_Bus_AssignedInfo);
4749
-                        }
4750
-                        #endregion
4755
+                        //#region 修改交办记录
4756
+                        //if (modelT_Bus_AssignedInfo != null && modelT_Bus_AssignedInfo.F_FeedbackTime != null)
4757
+                        //{
4758
+                        //    if (isnotice == 1)
4759
+                        //    {
4760
+                        //        modelT_Bus_AssignedInfo.F_IsNotice = 1;
4761
+                        //        modelT_Bus_AssignedInfo.F_NoticeUser = userModel.F_UserCode;
4762
+                        //        modelT_Bus_AssignedInfo.F_NoticeTime = DateTime.Now;
4763
+                        //    }
4764
+
4765
+                        //    modelT_Bus_AssignedInfo.F_FeedbackTime = DateTime.Now;
4766
+                        //    assignBLL.Update(modelT_Bus_AssignedInfo);
4767
+                        //}
4768
+                        //#endregion
4751 4769
 
4752 4770
                         #region 修改工单记录
4753 4771
                         modelT_Bus_WorkOrder.F_Result = result;
@@ -4758,6 +4776,22 @@ namespace CallCenterApi.Interface.Controllers.workorder
4758 4776
                         modelT_Bus_WorkOrder.F_CloseTime = DateTime.Now;
4759 4777
                         modelT_Bus_WorkOrder.F_FinalOpinion = finalopinion;
4760 4778
 
4779
+                        if (isnotice == 1)
4780
+                        {
4781
+                            Model.T_Bus_NoticeCriticism modelT_Bus_NoticeCriticism = new Model.T_Bus_NoticeCriticism();
4782
+                            modelT_Bus_NoticeCriticism.F_DeptIds = deptids;
4783
+                            modelT_Bus_NoticeCriticism.F_WorkOrderId = modelT_Bus_WorkOrder.F_WorkOrderId;
4784
+                            modelT_Bus_NoticeCriticism.F_State = 1;
4785
+                            modelT_Bus_NoticeCriticism.F_IsDelete = 0;
4786
+                            modelT_Bus_NoticeCriticism.F_CreateTime = DateTime.Now;
4787
+                            modelT_Bus_NoticeCriticism.F_CreateUser = userModel.F_UserCode;
4788
+                            new BLL.T_Bus_NoticeCriticism().Add(modelT_Bus_NoticeCriticism);
4789
+
4790
+                            modelT_Bus_WorkOrder.F_IsNotice = 1;
4791
+                            modelT_Bus_WorkOrder.F_NoticeUser = userModel.F_UserCode;
4792
+                            modelT_Bus_WorkOrder.F_NoticeTime = DateTime.Now;
4793
+                        }
4794
+
4761 4795
                         workorderBLL.Update(modelT_Bus_WorkOrder);
4762 4796
                         #endregion
4763 4797
 
@@ -4926,6 +4960,95 @@ namespace CallCenterApi.Interface.Controllers.workorder
4926 4960
             }
4927 4961
         }
4928 4962
 
4963
+        ///// <summary>
4964
+        ///// 通告和撤销通告
4965
+        ///// </summary>
4966
+        ///// <returns></returns>
4967
+        //[Authority]
4968
+        //public ActionResult NoticeWorkOrder()
4969
+        //{
4970
+        //    int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
4971
+
4972
+        //    Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
4973
+
4974
+        //    if (userModel.F_RoleCode == "ZXLD" || userModel.F_RoleCode == "ZXLDGLY" || userModel.F_RoleCode == "GLY")
4975
+        //    {
4976
+        //        int assignid = RequestString.GetInt("id", 0);
4977
+        //        int isnotice = RequestString.GetInt("isnotice", -1);
4978
+        //        Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetModel(assignid);
4979
+        //        if (modelT_Bus_AssignedInfo != null)
4980
+        //        {
4981
+        //            if (isnotice == 0 && modelT_Bus_AssignedInfo.F_IsNotice == 1)
4982
+        //            {
4983
+        //                using (TransactionScope trans = new TransactionScope())
4984
+        //                {
4985
+        //                    #region 修改交办记录
4986
+        //                    modelT_Bus_AssignedInfo.F_IsNotice = 0;
4987
+        //                    assignBLL.Update(modelT_Bus_AssignedInfo);
4988
+        //                    #endregion
4989
+
4990
+        //                    #region 插入操作记录
4991
+        //                    Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
4992
+        //                    oper.F_WorkOrderId = modelT_Bus_AssignedInfo.F_WorkOrderId;
4993
+
4994
+        //                    var deptinfo = new BLL.T_Sys_Department().GetModel(modelT_Bus_AssignedInfo.F_MainDeptId.Value);
4995
+        //                    string userinfo = userModel.depname + "-" + userModel.F_UserName + "(" + userModel.F_UserCode + ")";
4996
+        //                    oper.F_Message = userinfo + " 撤销了通告交办单位:" + (deptinfo != null ? deptinfo.F_DeptName : "");
4997
+        //                    oper.F_CreateUser = userModel.F_UserCode;
4998
+        //                    oper.F_CreateTime = DateTime.Now;
4999
+        //                    oper.F_IsDelete = 0;
5000
+
5001
+        //                    operBLL.Add(oper);
5002
+        //                    #endregion
5003
+
5004
+        //                    trans.Complete();
5005
+        //                }
5006
+
5007
+        //                return Success("操作成功");
5008
+        //            }
5009
+        //            else if (isnotice == 1 && modelT_Bus_AssignedInfo.F_IsNotice == 0)
5010
+        //            {
5011
+        //                using (TransactionScope trans = new TransactionScope())
5012
+        //                {
5013
+        //                    #region 修改交办记录
5014
+        //                    modelT_Bus_AssignedInfo.F_IsNotice = 1;
5015
+        //                    assignBLL.Update(modelT_Bus_AssignedInfo);
5016
+        //                    #endregion
5017
+
5018
+        //                    #region 插入操作记录
5019
+        //                    Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
5020
+        //                    oper.F_WorkOrderId = modelT_Bus_AssignedInfo.F_WorkOrderId;
5021
+
5022
+        //                    var deptinfo = new BLL.T_Sys_Department().GetModel(modelT_Bus_AssignedInfo.F_MainDeptId.Value);
5023
+        //                    string userinfo = userModel.depname + "-" + userModel.F_UserName + "(" + userModel.F_UserCode + ")";
5024
+        //                    oper.F_Message = userinfo + " 通告了交办单位:" + (deptinfo != null ? deptinfo.F_DeptName : "");
5025
+        //                    oper.F_CreateUser = userModel.F_UserCode;
5026
+        //                    oper.F_CreateTime = DateTime.Now;
5027
+        //                    oper.F_IsDelete = 0;
5028
+
5029
+        //                    operBLL.Add(oper);
5030
+        //                    #endregion
5031
+
5032
+        //                    trans.Complete();
5033
+        //                }
5034
+        //                return Success("操作成功");
5035
+        //            }
5036
+        //            else
5037
+        //            {
5038
+        //                return Error("操作失败");
5039
+        //            }
5040
+        //        }
5041
+        //        else
5042
+        //        {
5043
+        //            return Error("操作失败");
5044
+        //        }
5045
+        //    }
5046
+        //    else
5047
+        //    {
5048
+        //        return Error("权限不足");
5049
+        //    }
5050
+        //}
5051
+
4929 5052
         /// <summary>
4930 5053
         /// 通告和撤销通告
4931 5054
         /// </summary>
@@ -4939,27 +5062,38 @@ namespace CallCenterApi.Interface.Controllers.workorder
4939 5062
 
4940 5063
             if (userModel.F_RoleCode == "ZXLD" || userModel.F_RoleCode == "ZXLDGLY" || userModel.F_RoleCode == "GLY")
4941 5064
             {
4942
-                int assignid = RequestString.GetInt("id", 0);
5065
+                string workorderid = RequestString.GetFormString("workorderid");
4943 5066
                 int isnotice = RequestString.GetInt("isnotice", -1);
4944
-                Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetModel(assignid);
4945
-                if (modelT_Bus_AssignedInfo != null)
5067
+                string deptids = RequestString.GetFormString("deptids");//通告单位
5068
+                Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
5069
+                if (modelT_Bus_WorkOrder != null)
4946 5070
                 {
4947
-                    if (isnotice == 0 && modelT_Bus_AssignedInfo.F_IsNotice == 1)
5071
+                    if (isnotice == 0 && modelT_Bus_WorkOrder.F_IsNotice == 1)
4948 5072
                     {
4949 5073
                         using (TransactionScope trans = new TransactionScope())
4950 5074
                         {
4951
-                            #region 修改交办记录
4952
-                            modelT_Bus_AssignedInfo.F_IsNotice = 0;
4953
-                            assignBLL.Update(modelT_Bus_AssignedInfo);
5075
+                            #region 修改工单记录
5076
+                            modelT_Bus_WorkOrder.F_IsNotice = 0;
5077
+                            modelT_Bus_WorkOrder.F_NoticeUser = "";
5078
+                            modelT_Bus_WorkOrder.F_NoticeTime = null;
5079
+                            workorderBLL.Update(modelT_Bus_WorkOrder);
5080
+                            #endregion
5081
+
5082
+                            #region 修改通告记录
5083
+                            Model.T_Bus_NoticeCriticism modelT_Bus_NoticeCriticism = new BLL.T_Bus_NoticeCriticism().GetModelList(" F_WorkOrderId='" + workorderid + "' and F_IsDelete=0 ").FirstOrDefault();
5084
+                            modelT_Bus_NoticeCriticism.F_IsDelete = 0;
5085
+                            modelT_Bus_NoticeCriticism.F_DeleteTime = DateTime.Now;
5086
+                            modelT_Bus_NoticeCriticism.F_DeleteUser = userModel.F_UserCode;
5087
+                            new BLL.T_Bus_NoticeCriticism().Update(modelT_Bus_NoticeCriticism); 
4954 5088
                             #endregion
4955 5089
 
4956 5090
                             #region 插入操作记录
4957 5091
                             Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
4958
-                            oper.F_WorkOrderId = modelT_Bus_AssignedInfo.F_WorkOrderId;
5092
+                            oper.F_WorkOrderId = modelT_Bus_WorkOrder.F_WorkOrderId;
4959 5093
 
4960
-                            var deptinfo = new BLL.T_Sys_Department().GetModel(modelT_Bus_AssignedInfo.F_MainDeptId.Value);
5094
+                            string sql = "select dbo.GetDeptNames('" + modelT_Bus_NoticeCriticism.F_DeptIds + "')";
4961 5095
                             string userinfo = userModel.depname + "-" + userModel.F_UserName + "(" + userModel.F_UserCode + ")";
4962
-                            oper.F_Message = userinfo + " 撤销了通告交办单位:" + (deptinfo != null ? deptinfo.F_DeptName : "");
5096
+                            oper.F_Message = userinfo + " 撤销了通告交办单位:" + DbHelperSQL.GetSingle(sql).ToString();
4963 5097
                             oper.F_CreateUser = userModel.F_UserCode;
4964 5098
                             oper.F_CreateTime = DateTime.Now;
4965 5099
                             oper.F_IsDelete = 0;
@@ -4972,22 +5106,35 @@ namespace CallCenterApi.Interface.Controllers.workorder
4972 5106
 
4973 5107
                         return Success("操作成功");
4974 5108
                     }
4975
-                    else if (isnotice == 1 && modelT_Bus_AssignedInfo.F_IsNotice == 0)
5109
+                    else if (isnotice == 1 && modelT_Bus_WorkOrder.F_IsNotice == 0)
4976 5110
                     {
4977 5111
                         using (TransactionScope trans = new TransactionScope())
4978 5112
                         {
4979
-                            #region 修改交办记录
4980
-                            modelT_Bus_AssignedInfo.F_IsNotice = 1;
4981
-                            assignBLL.Update(modelT_Bus_AssignedInfo);
5113
+                            #region 修改工单记录
5114
+                            modelT_Bus_WorkOrder.F_IsNotice = 1;
5115
+                            modelT_Bus_WorkOrder.F_NoticeUser = userModel.F_UserCode;
5116
+                            modelT_Bus_WorkOrder.F_NoticeTime = DateTime.Now;
5117
+                            workorderBLL.Update(modelT_Bus_WorkOrder);
5118
+                            #endregion
5119
+
5120
+                            #region 新增通告记录
5121
+                            Model.T_Bus_NoticeCriticism modelT_Bus_NoticeCriticism = new Model.T_Bus_NoticeCriticism();
5122
+                            modelT_Bus_NoticeCriticism.F_DeptIds = deptids;
5123
+                            modelT_Bus_NoticeCriticism.F_WorkOrderId = modelT_Bus_WorkOrder.F_WorkOrderId;
5124
+                            modelT_Bus_NoticeCriticism.F_State = 1;
5125
+                            modelT_Bus_NoticeCriticism.F_IsDelete = 0;
5126
+                            modelT_Bus_NoticeCriticism.F_CreateTime = DateTime.Now;
5127
+                            modelT_Bus_NoticeCriticism.F_CreateUser = userModel.F_UserCode;
5128
+                            new BLL.T_Bus_NoticeCriticism().Add(modelT_Bus_NoticeCriticism);
4982 5129
                             #endregion
4983 5130
 
4984 5131
                             #region 插入操作记录
4985 5132
                             Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
4986
-                            oper.F_WorkOrderId = modelT_Bus_AssignedInfo.F_WorkOrderId;
5133
+                            oper.F_WorkOrderId = modelT_Bus_WorkOrder.F_WorkOrderId;
4987 5134
 
4988
-                            var deptinfo = new BLL.T_Sys_Department().GetModel(modelT_Bus_AssignedInfo.F_MainDeptId.Value);
5135
+                            string sql = "select dbo.GetDeptNames('"+ deptids + "')";
4989 5136
                             string userinfo = userModel.depname + "-" + userModel.F_UserName + "(" + userModel.F_UserCode + ")";
4990
-                            oper.F_Message = userinfo + " 通告了交办单位:" + (deptinfo != null ? deptinfo.F_DeptName : "");
5137
+                            oper.F_Message = userinfo + " 通告了交办单位:" + DbHelperSQL.GetSingle(sql).ToString();
4991 5138
                             oper.F_CreateUser = userModel.F_UserCode;
4992 5139
                             oper.F_CreateTime = DateTime.Now;
4993 5140
                             oper.F_IsDelete = 0;

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

@@ -45,6 +45,7 @@
45 45
     <Compile Include="EmailrReceive.cs" />
46 46
     <Compile Include="Rep_Dept_Assessment.cs" />
47 47
     <Compile Include="T_Bus_AssignedItemInfo.cs" />
48
+    <Compile Include="T_Bus_NoticeCriticism.cs" />
48 49
     <Compile Include="T_Bus_VisitResultRecords.cs" />
49 50
     <Compile Include="T_Bus_WorkOrderReport.cs" />
50 51
     <Compile Include="T_Bus_UserWorkOrder.cs" />

+ 125 - 0
CallCenterApi/CallCenterApi.Model/T_Bus_NoticeCriticism.cs

@@ -0,0 +1,125 @@
1
+using System;
2
+namespace CallCenterApi.Model
3
+{
4
+    /// <summary>
5
+    /// T_Bus_NoticeCriticism:实体类(属性说明自动提取数据库字段的描述信息)
6
+    /// </summary>
7
+    [Serializable]
8
+    public partial class T_Bus_NoticeCriticism
9
+    {
10
+        public T_Bus_NoticeCriticism()
11
+        { }
12
+        #region Model
13
+        private int _f_id;
14
+        private string _f_workorderid;
15
+        private string _f_title;
16
+        private string _f_content;
17
+        private string _f_remark;
18
+        private int? _f_state;
19
+        private string _f_createuser;
20
+        private DateTime? _f_createtime;
21
+        private int? _f_isdelete;
22
+        private string _f_deleteuser;
23
+        private DateTime? _f_deletetime;
24
+        private string _f_deptids;
25
+        /// <summary>
26
+        /// 
27
+        /// </summary>
28
+        public int F_Id
29
+        {
30
+            set { _f_id = value; }
31
+            get { return _f_id; }
32
+        }
33
+        /// <summary>
34
+        /// 
35
+        /// </summary>
36
+        public string F_WorkOrderId
37
+        {
38
+            set { _f_workorderid = value; }
39
+            get { return _f_workorderid; }
40
+        }
41
+        /// <summary>
42
+        /// 
43
+        /// </summary>
44
+        public string F_Title
45
+        {
46
+            set { _f_title = value; }
47
+            get { return _f_title; }
48
+        }
49
+        /// <summary>
50
+        /// 
51
+        /// </summary>
52
+        public string F_Content
53
+        {
54
+            set { _f_content = value; }
55
+            get { return _f_content; }
56
+        }
57
+        /// <summary>
58
+        /// 
59
+        /// </summary>
60
+        public string F_Remark
61
+        {
62
+            set { _f_remark = value; }
63
+            get { return _f_remark; }
64
+        }
65
+        /// <summary>
66
+        /// 
67
+        /// </summary>
68
+        public int? F_State
69
+        {
70
+            set { _f_state = value; }
71
+            get { return _f_state; }
72
+        }
73
+        /// <summary>
74
+        /// 
75
+        /// </summary>
76
+        public string F_CreateUser
77
+        {
78
+            set { _f_createuser = value; }
79
+            get { return _f_createuser; }
80
+        }
81
+        /// <summary>
82
+        /// 
83
+        /// </summary>
84
+        public DateTime? F_CreateTime
85
+        {
86
+            set { _f_createtime = value; }
87
+            get { return _f_createtime; }
88
+        }
89
+        /// <summary>
90
+        /// 
91
+        /// </summary>
92
+        public int? F_IsDelete
93
+        {
94
+            set { _f_isdelete = value; }
95
+            get { return _f_isdelete; }
96
+        }
97
+        /// <summary>
98
+        /// 
99
+        /// </summary>
100
+        public string F_DeleteUser
101
+        {
102
+            set { _f_deleteuser = value; }
103
+            get { return _f_deleteuser; }
104
+        }
105
+        /// <summary>
106
+        /// 
107
+        /// </summary>
108
+        public DateTime? F_DeleteTime
109
+        {
110
+            set { _f_deletetime = value; }
111
+            get { return _f_deletetime; }
112
+        }
113
+        /// <summary>
114
+        /// 
115
+        /// </summary>
116
+        public string F_DeptIds
117
+        {
118
+            set { _f_deptids = value; }
119
+            get { return _f_deptids; }
120
+        }
121
+        #endregion Model
122
+
123
+    }
124
+}
125
+

+ 30 - 3
CallCenterApi/CallCenterApi.Model/T_Bus_WorkOrder.cs

@@ -55,8 +55,11 @@ namespace CallCenterApi.Model
55 55
         private int? _f_issatisfie;
56 56
         private string _f_finalopinion;
57 57
         private int? _f_isrelease;
58
-        private string _f_callid; 
58
+        private string _f_callid;
59 59
         private int? _f_isreturn;
60
+        private int? _f_isnotice;
61
+        private string _f_noticeuser;
62
+        private DateTime? _f_noticetime;
60 63
         /// <summary>
61 64
         /// 
62 65
         /// </summary>
@@ -418,7 +421,7 @@ namespace CallCenterApi.Model
418 421
             get { return _f_isrelease; }
419 422
         }
420 423
         /// <summary>
421
-        /// 呼叫编号
424
+        /// 
422 425
         /// </summary>
423 426
         public string F_CallId
424 427
         {
@@ -426,13 +429,37 @@ namespace CallCenterApi.Model
426 429
             get { return _f_callid; }
427 430
         }
428 431
         /// <summary>
429
-        ///  1已回退
432
+        /// 是否回退(1回退)
430 433
         /// </summary>
431 434
         public int? F_IsReturn
432 435
         {
433 436
             set { _f_isreturn = value; }
434 437
             get { return _f_isreturn; }
435 438
         }
439
+        /// <summary>
440
+        /// 是否通告(1是)
441
+        /// </summary>
442
+        public int? F_IsNotice
443
+        {
444
+            set { _f_isnotice = value; }
445
+            get { return _f_isnotice; }
446
+        }
447
+        /// <summary>
448
+        /// 通告人
449
+        /// </summary>
450
+        public string F_NoticeUser
451
+        {
452
+            set { _f_noticeuser = value; }
453
+            get { return _f_noticeuser; }
454
+        }
455
+        /// <summary>
456
+        /// 通告时间
457
+        /// </summary>
458
+        public DateTime? F_NoticeTime
459
+        {
460
+            set { _f_noticetime = value; }
461
+            get { return _f_noticetime; }
462
+        }
436 463
         #endregion Model
437 464
 
438 465
     }