|
|
@@ -63,7 +63,7 @@ namespace CallCenterApi.Interface.Controllers.information
|
|
63
|
63
|
dtrole = rolebll.GetAllList().Tables[0];
|
|
64
|
64
|
|
|
65
|
65
|
var users = ""; var roles = "";
|
|
66
|
|
- if (noticeid != null)
|
|
|
66
|
+ if (noticeid != null && noticeid.Trim()!="")
|
|
67
|
67
|
{
|
|
68
|
68
|
Model.T_Msg_NoticeInfo dModel = dBLL.GetModel(int.Parse(noticeid.Trim()));
|
|
69
|
69
|
if (dModel != null)
|
|
|
@@ -116,12 +116,12 @@ namespace CallCenterApi.Interface.Controllers.information
|
|
116
|
116
|
}
|
|
117
|
117
|
return Success("获取角色用户成功", newdt);
|
|
118
|
118
|
}
|
|
119
|
|
-
|
|
|
119
|
+
|
|
120
|
120
|
// 获取公告列表
|
|
121
|
121
|
public ActionResult GetList(string sdate,string edate,int pageindex=1,int pagesize=10)
|
|
122
|
122
|
{
|
|
123
|
123
|
DataTable dt = new DataTable();
|
|
124
|
|
- string sql = " ";
|
|
|
124
|
+ string sql = " and F_isDel=0 ";
|
|
125
|
125
|
if (sdate != null && sdate.Trim() != "")
|
|
126
|
126
|
{
|
|
127
|
127
|
sql += " and Datediff(day,F_CreateOn,'" + sdate.Trim() + "')>=0";
|
|
|
@@ -178,7 +178,7 @@ namespace CallCenterApi.Interface.Controllers.information
|
|
178
|
178
|
int roleId = CurrentUser.UserData.F_RoleId;
|
|
179
|
179
|
DataTable dt = new DataTable();
|
|
180
|
180
|
|
|
181
|
|
- string sql = " 1 = 1 and (ISNULL(F_UserId,'') = '' or ISNULL(F_UserId,'') like '%," + userID + ",%') ";
|
|
|
181
|
+ string sql = " F_isDel=0 and (ISNULL(F_UserId,'') = '' or ISNULL(F_UserId,'') like '%," + userID + ",%') ";
|
|
182
|
182
|
dt = new BLL.T_Msg_NoticeInfo().GetList(top, sql, " F_NoticeId desc ").Tables[0];
|
|
183
|
183
|
int recordCount = dt.Rows.Count;
|
|
184
|
184
|
var obj = new
|
|
|
@@ -231,7 +231,7 @@ namespace CallCenterApi.Interface.Controllers.information
|
|
231
|
231
|
if (title != null)
|
|
232
|
232
|
dModel.F_Title = title.Trim();
|
|
233
|
233
|
if (content != null)
|
|
234
|
|
- dModel.F_Content = WebHelper.UrlDecode(content);
|
|
|
234
|
+ dModel.F_Content = content.Trim();
|
|
235
|
235
|
dModel.F_isCus = iscus;
|
|
236
|
236
|
//添加权限
|
|
237
|
237
|
dModel.F_RoleId = "," + roleid + ",";
|
|
|
@@ -297,7 +297,7 @@ namespace CallCenterApi.Interface.Controllers.information
|
|
297
|
297
|
if (title != null)
|
|
298
|
298
|
dModel.F_Title = title.Trim();
|
|
299
|
299
|
if (content != null)
|
|
300
|
|
- dModel.F_Content = WebHelper.UrlDecode(content);
|
|
|
300
|
+ dModel.F_Content = content.Trim();
|
|
301
|
301
|
dModel.F_isCus = iscus;
|
|
302
|
302
|
//添加权限
|
|
303
|
303
|
dModel.F_RoleId = "," + roleid.Trim() + ",";//= roleid
|
|
|
@@ -383,7 +383,11 @@ namespace CallCenterApi.Interface.Controllers.information
|
|
383
|
383
|
bool r = dBLL.DeleteList(idds.Trim(','));
|
|
384
|
384
|
|
|
385
|
385
|
if (r)
|
|
|
386
|
+ {
|
|
|
387
|
+ //若通知删除则取消消息提醒
|
|
|
388
|
+ DbHelperSQL.ExecuteSql("update T_Msg_List set IsDel=1 where ToID in (" + idds.Trim(',') + ") and Type=5");
|
|
386
|
389
|
return Success("删除成功");
|
|
|
390
|
+ }
|
|
387
|
391
|
else
|
|
388
|
392
|
{
|
|
389
|
393
|
return Error("删除失败");
|