|
|
@@ -23,18 +23,68 @@ namespace CallCenterApi.Interface.Controllers
|
|
23
|
23
|
private BLL.T_Msg_Chat_Map bllmap = new BLL.T_Msg_Chat_Map();
|
|
24
|
24
|
private readonly BLL.T_Sys_UserAccount userAccount = new BLL.T_Sys_UserAccount();
|
|
25
|
25
|
private BLL.T_Sys_SystemConfig configBll = new BLL.T_Sys_SystemConfig();
|
|
26
|
|
-
|
|
|
26
|
+ private BLL.T_Bus_WorkOrder workorderBLL = new BLL.T_Bus_WorkOrder();
|
|
27
|
27
|
/// <summary>
|
|
28
|
28
|
/// 获取菜单
|
|
29
|
29
|
/// </summary>
|
|
30
|
30
|
/// <returns></returns>
|
|
31
|
31
|
[Authority]
|
|
32
|
|
- public ActionResult GetMenu()
|
|
|
32
|
+ public ActionResult GetCount()
|
|
33
|
33
|
{
|
|
34
|
|
-
|
|
|
34
|
+ int zxdcl = 0;
|
|
|
35
|
+ string zxdclsql = "";
|
|
|
36
|
+ if (User.F_RoleCode != "GLY" && User.F_RoleCode != "ZXLD" && User.F_RoleCode != "DDZG" && User.F_RoleCode != "MTDD")
|
|
|
37
|
+ {
|
|
|
38
|
+ if (User.F_RoleCode != "ZJZY" && User.F_RoleCode != "ZXHWY")
|
|
|
39
|
+ zxdclsql += " and F_CreateUser='" + User.F_UserCode + "'";
|
|
35
|
40
|
|
|
36
|
|
-
|
|
|
41
|
+ }
|
|
|
42
|
+ zxdclsql += "and F_ToBereply=0" ;
|
|
|
43
|
+ zxdclsql += "and (F_IsReturn !='1' or F_IsReturn is null)";
|
|
|
44
|
+ string sqlzxdcl = "SELECT count(1) from T_Bus_WorkOrder where F_IsDelete=0 " + zxdclsql;
|
|
|
45
|
+ zxdcl = Int32.Parse(DbHelperSQL.Query(sqlzxdcl).Tables[0].Rows[0][0].ToString());
|
|
|
46
|
+
|
|
|
47
|
+
|
|
|
48
|
+ int gdbh = 0;
|
|
|
49
|
+ string gdbhsql = " and F_WorkState in (0,10) and F_IsReturn=1";
|
|
|
50
|
+ if (User.F_RoleCode != "GLY" && User.F_RoleCode != "DDZG")
|
|
|
51
|
+ {
|
|
|
52
|
+ gdbhsql += " and F_CreateUser='" + User.F_UserCode + "'";
|
|
|
53
|
+ }
|
|
|
54
|
+ string sqlgdbh = "SELECT count(1) from T_Bus_WorkOrder where F_IsDelete=0 " + gdbhsql;
|
|
|
55
|
+ gdbh = Int32.Parse(DbHelperSQL.Query(sqlgdbh).Tables[0].Rows[0][0].ToString());
|
|
37
|
56
|
|
|
|
57
|
+
|
|
|
58
|
+ int ybdhf = 0;
|
|
|
59
|
+ string ybdhfsql = "";
|
|
|
60
|
+ if (User.F_RoleCode != "GLY" && User.F_RoleCode != "ZXLD" && User.F_RoleCode != "DDZG" && User.F_RoleCode != "MTDD")
|
|
|
61
|
+ {
|
|
|
62
|
+ if (User.F_RoleCode != "ZJZY" && User.F_RoleCode != "ZXHWY")
|
|
|
63
|
+ ybdhfsql += " and F_CreateUser='" + User.F_UserCode + "'";
|
|
|
64
|
+
|
|
|
65
|
+ }
|
|
|
66
|
+ ybdhfsql += "and F_ToBereply=1";
|
|
|
67
|
+ ybdhfsql += " and F_WorkState = '6' ";
|
|
|
68
|
+ ybdhfsql += "and F_WorkOrderID not in (select F_WorkOrderID from T_Bus_RemindRecord where F_Type=1 and F_IsDelete=0and F_Content != '推诿工单' and F_State!=2)";
|
|
|
69
|
+ string sqlybdhf = "SELECT count(1) from T_Bus_WorkOrder where F_IsDelete=0 " + ybdhfsql;
|
|
|
70
|
+ ybdhf = Int32.Parse(DbHelperSQL.Query(sqlybdhf).Tables[0].Rows[0][0].ToString());
|
|
|
71
|
+
|
|
|
72
|
+
|
|
|
73
|
+ var obj = new
|
|
|
74
|
+ {
|
|
|
75
|
+ zxdcl,
|
|
|
76
|
+ gdbh,
|
|
|
77
|
+ ybdhf
|
|
|
78
|
+ };
|
|
|
79
|
+ return Success("成功", obj);
|
|
|
80
|
+ }
|
|
|
81
|
+ /// <summary>
|
|
|
82
|
+ /// 获取菜单
|
|
|
83
|
+ /// </summary>
|
|
|
84
|
+ /// <returns></returns>
|
|
|
85
|
+ [Authority]
|
|
|
86
|
+ public ActionResult GetMenu()
|
|
|
87
|
+ {
|
|
38
|
88
|
var fids = new BLL.T_Sys_RoleFunction().GetModelList(" F_RoleId='" + User.F_RoleId + "'").Select(p => p.F_FunctionId).ToList();
|
|
39
|
89
|
if (fids.Count > 0)
|
|
40
|
90
|
{
|
|
|
@@ -61,10 +111,6 @@ namespace CallCenterApi.Interface.Controllers
|
|
61
|
111
|
[Authority]
|
|
62
|
112
|
public ActionResult UploadTX()
|
|
63
|
113
|
{
|
|
64
|
|
-
|
|
65
|
|
-
|
|
66
|
|
-
|
|
67
|
|
-
|
|
68
|
114
|
string path = string.Empty;
|
|
69
|
115
|
HttpPostedFile _upfile = RequestString.GetFile("upFile");
|
|
70
|
116
|
if (_upfile != null)
|
|
|
@@ -98,12 +144,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
98
|
144
|
[Authority]
|
|
99
|
145
|
public ActionResult UploadTX64()
|
|
100
|
146
|
{
|
|
101
|
|
-
|
|
102
|
|
-
|
|
103
|
|
-
|
|
104
|
|
-
|
|
105
|
147
|
string path = string.Empty;
|
|
106
|
|
-
|
|
107
|
148
|
string dataurl = HttpUtility.UrlDecode(RequestString.GetFormString("dataurl"));
|
|
108
|
149
|
if (!string.IsNullOrEmpty(dataurl))
|
|
109
|
150
|
{
|
|
|
@@ -150,10 +191,6 @@ namespace CallCenterApi.Interface.Controllers
|
|
150
|
191
|
[Authority]
|
|
151
|
192
|
public ActionResult GetTelRecordsTotal()
|
|
152
|
193
|
{
|
|
153
|
|
-
|
|
154
|
|
-
|
|
155
|
|
-
|
|
156
|
|
-
|
|
157
|
194
|
var date = DateTime.Now;
|
|
158
|
195
|
string strDate = date.ToString("yyyy-MM-dd");
|
|
159
|
196
|
string strMonth = date.ToString("yyyy-MM");
|