|
|
@@ -15,6 +15,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
15
|
15
|
{
|
|
16
|
16
|
public class IndexController : BaseController
|
|
17
|
17
|
{
|
|
|
18
|
+ private BLL.T_Sys_UserAccount userBLL = new BLL.T_Sys_UserAccount();
|
|
18
|
19
|
private BLL.T_Sys_Function moduleFunctionBLL = new BLL.T_Sys_Function();
|
|
19
|
20
|
private BLL.T_Sys_RoleFunction roleFunctionBLL = new BLL.T_Sys_RoleFunction();
|
|
20
|
21
|
private BLL.T_Sys_RoleInfo rolebll = new BLL.T_Sys_RoleInfo();
|
|
|
@@ -522,6 +523,57 @@ namespace CallCenterApi.Interface.Controllers
|
|
522
|
523
|
return Content(obj.ToJson());
|
|
523
|
524
|
}
|
|
524
|
525
|
|
|
|
526
|
+ /// <summary>
|
|
|
527
|
+ /// 及时提醒工单(获取最新工单数和内容) => 获取未处理的工单数
|
|
|
528
|
+ /// workorder\WorkOrderController.cs 接口:GetDWDealList
|
|
|
529
|
+ /// </summary>
|
|
|
530
|
+ /// <returns></returns>
|
|
|
531
|
+ [Authority]
|
|
|
532
|
+ public ActionResult GetNoDealOrder(string top)
|
|
|
533
|
+ {
|
|
|
534
|
+ DataTable dt = null;
|
|
|
535
|
+ int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
|
|
|
536
|
+ string strpageindex = RequestString.GetQueryString("page");
|
|
|
537
|
+ int pageindex = 1;
|
|
|
538
|
+ string strpagesize = RequestString.GetQueryString("top");
|
|
|
539
|
+ int pagesize = 10;
|
|
|
540
|
+ if (strpageindex.Trim() != "")
|
|
|
541
|
+ {
|
|
|
542
|
+ pageindex = Convert.ToInt32(strpageindex);
|
|
|
543
|
+ }
|
|
|
544
|
+ if (strpagesize.Trim() != "")
|
|
|
545
|
+ {
|
|
|
546
|
+ pagesize = Convert.ToInt32(strpagesize);
|
|
|
547
|
+ }
|
|
|
548
|
+ Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
|
|
|
549
|
+ string sql = " and F_IsDelete=0 and F_WorkState in (2,4,8)";
|
|
|
550
|
+ //管理员GLY
|
|
|
551
|
+ if (userModel.F_RoleCode != "GLY")
|
|
|
552
|
+ {
|
|
|
553
|
+ sql += " and F_WorkOrderId in (select F_WorkOrderId from T_Bus_AssignedInfo where F_State=1 and F_IsDelete=0 and "
|
|
|
554
|
+ + " ISNULL(F_FeedbackTime, '')='' and F_MainDeptId =" + userModel.F_DeptId + " and F_IsSure in (0,1)";
|
|
|
555
|
+ sql += ")";
|
|
|
556
|
+ }
|
|
|
557
|
+ string cols = "F_Id,F_WorkOrderId,F_CusName,F_CusPhone,F_ComTitle,F_ComContent,F_SourceAddress,F_CreateTime,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName ";
|
|
|
558
|
+ int recordCount = 0;
|
|
|
559
|
+ dt = BLL.PagerBLL.GetListPager(
|
|
|
560
|
+ "T_Bus_WorkOrder",
|
|
|
561
|
+ "F_WorkOrderId",
|
|
|
562
|
+ cols,
|
|
|
563
|
+ sql,
|
|
|
564
|
+ "ORDER BY F_CreateTime DESC",
|
|
|
565
|
+ pagesize,
|
|
|
566
|
+ pageindex,
|
|
|
567
|
+ true,
|
|
|
568
|
+ out recordCount);
|
|
|
569
|
+ var obj = new
|
|
|
570
|
+ {
|
|
|
571
|
+ rows = dt,
|
|
|
572
|
+ total = recordCount
|
|
|
573
|
+ };
|
|
|
574
|
+ return Content(obj.ToJson());
|
|
|
575
|
+ }
|
|
|
576
|
+
|
|
525
|
577
|
#region 及时通讯
|
|
526
|
578
|
|
|
527
|
579
|
#region 模仿微信聊天(暂时不用)
|