liyuanyuan vor 3 Jahren
Ursprung
Commit
a1cfc96377

+ 24 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_TypeResult.cs

@@ -63,9 +63,9 @@ namespace CallCenterApi.DAL
63 63
 		{
64 64
 			StringBuilder strSql=new StringBuilder();
65 65
 			strSql.Append("insert into T_TypeResult(");
66
-			strSql.Append("F_PhoneID,F_typeName1,F_typeValue1,F_typeName2,F_typeValue2,F_typeName3,F_typeValue3,F_typeName4,F_typeValue4,F_typeName5,F_typeValue5,F_typeName6,F_typeValue6,F_typeName7,F_typeValue7,F_CreateOn,F_userId)");
66
+			strSql.Append("F_PhoneID,F_typeName1,F_typeValue1,F_typeName2,F_typeValue2,F_typeName3,F_typeValue3,F_typeName4,F_typeValue4,F_typeName5,F_typeValue5,F_typeName6,F_typeValue6,F_typeName7,F_typeValue7,F_typeValue12 ,F_typeValue22      ,F_typeValue32      ,F_typeValue42      ,F_typeValue52      ,F_typeValue62,F_CreateOn,F_userId)");
67 67
 			strSql.Append(" values (");
68
-			strSql.Append("@F_PhoneID,@F_typeName1,@F_typeValue1,@F_typeName2,@F_typeValue2,@F_typeName3,@F_typeValue3,@F_typeName4,@F_typeValue4,@F_typeName5,@F_typeValue5,@F_typeName6,@F_typeValue6,@F_typeName7,@F_typeValue7,@F_CreateOn,@F_userId)");
68
+			strSql.Append("@F_PhoneID,@F_typeName1,@F_typeValue1,@F_typeName2,@F_typeValue2,@F_typeName3,@F_typeValue3,@F_typeName4,@F_typeValue4,@F_typeName5,@F_typeValue5,@F_typeName6,@F_typeValue6,@F_typeName7,@F_typeValue7,@F_typeValue12 ,@F_typeValue22 ,@F_typeValue32 ,@F_typeValue42, @F_typeValue52 , @F_typeValue62, @F_CreateOn,@F_userId)");
69 69
 			strSql.Append(";select @@IDENTITY");
70 70
 			SqlParameter[] parameters = {
71 71
 					new SqlParameter("@F_PhoneID", SqlDbType.Int,4),
@@ -85,6 +85,18 @@ namespace CallCenterApi.DAL
85 85
                         new SqlParameter("@F_typeName7", SqlDbType.NVarChar,200),
86 86
                     new SqlParameter("@F_typeValue7", SqlDbType.NVarChar,1000),
87 87
 
88
+                     new SqlParameter("@F_typeValue12", SqlDbType.NVarChar,100),
89
+                        new SqlParameter("@F_typeValue22", SqlDbType.NVarChar,100),
90
+
91
+                                  new SqlParameter("@F_typeValue32", SqlDbType.NVarChar,100),
92
+
93
+                                               new SqlParameter("@F_typeValue42", SqlDbType.NVarChar,100),
94
+                        new SqlParameter("@F_typeValue52", SqlDbType.NVarChar,100),
95
+
96
+                                  new SqlParameter("@F_typeValue62", SqlDbType.NVarChar,100),
97
+
98
+
99
+
88 100
                     new SqlParameter("@F_CreateOn", SqlDbType.DateTime),
89 101
                 new SqlParameter("@F_userId", SqlDbType.NVarChar,50)};
90 102
 			parameters[0].Value = model.F_PhoneID;
@@ -105,8 +117,16 @@ namespace CallCenterApi.DAL
105 117
             parameters[14].Value = model.F_typeValue7;
106 118
 
107 119
 
108
-            parameters[15].Value = model.F_CreateOn;
109
-            parameters[16].Value = model.F_userId;
120
+            parameters[15].Value = model.F_typeValue12;
121
+            parameters[16].Value = model.F_typeValue22;
122
+            parameters[17].Value = model.F_typeValue32;
123
+            parameters[18].Value = model.F_typeValue42;
124
+            parameters[19].Value = model.F_typeValue52;
125
+            parameters[20].Value = model.F_typeValue62;
126
+
127
+
128
+            parameters[21].Value = model.F_CreateOn;
129
+            parameters[22].Value = model.F_userId;
110 130
 
111 131
             object obj = DbHelperSQL.GetSingle(strSql.ToString(),parameters);
112 132
 			if (obj == null)

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/AutomaticCallController.cs

@@ -549,14 +549,14 @@ namespace CallCenterApi.Interface.Controllers
549 549
                 //   "营业部","电话号码","用户分类","问题","结果","日期"
550 550
                 StringBuilder tablenew = new StringBuilder();
551 551
                 tablenew.Append("(select callState , phone, salesOffice, orderNature,question1,F_Id, ");
552
-                tablenew.Append(" (case when isconnect = 1   then     case result1 when  1 then '已解决'  when 2 then '未解决' when 3 then '不满意'          else '未评价' end else '' end ) result1,question2, ");
553
-                tablenew.Append(" ( case when isconnect = 1  then    case result2 when  1 then '已解决'    when 2 then '未解决'   when 3 then '不满意'   else '未评价'     end     else '' end )result2,question3,");
552
+                tablenew.Append(" (case when isconnect = 1   then     case result1 when  1 then '1'  when 2 then '2' when 3 then '3'    else '未评价' end else '' end ) result1,question2, ");
553
+                tablenew.Append(" ( case when isconnect = 1  then    case result2 when  1 then '1'    when 2 then '2'   when 3 then '3'   else '未评价'     end     else '' end )result2,question3,");
554 554
                 //  tablenew.Append(" case when isconnect = 1 then    case result3 when  1 then '十分满意'     when 2 then '满意'    when 3 then '不满意'   else '未评价'     end     else ''  end result3");
555 555
                 // tablenew.Append(" (case when question3 IS NULL  then ''   else  case  result3 when  1 then '十分满意'     when 2 then '满意'    when 3 then '不满意'   else '未评价'     end    end    else ''   end  ) result3 ");
556 556
 
557
-                tablenew.Append("(case when question3 IS NULL  then ''  else    case when isconnect = 1 then    case  result3 when  1 then '已解决'     when 2 then '未解决'    when 3 then '不满意'   else '未评价'   end  else ''  end end  ) result3  ,");
557
+                tablenew.Append("(case when question3 IS NULL  then ''  else    case when isconnect = 1 then    case  result3 when  1 then '1'     when 2 then '2'    when 3 then '3'   else '未评价'   end  else ''  end end  ) result3  ,");
558 558
 
559
-                tablenew.Append("  (case when isconnect =1 then '已接通' else '未接通' end ) connect, isconnect,calltime , phone.taskid  from T_AutomaticCall_Phone  phone  left join T_AutomaticCall_Task  task on phone.taskid = task.taskid) as t");
559
+                tablenew.Append("  (case when isconnect =1 then '是' else '否' end ) connect, isconnect,calltime , phone.taskid  from T_AutomaticCall_Phone  phone  left join T_AutomaticCall_Task  task on phone.taskid = task.taskid) as t");
560 560
                 var recordCount = 0;
561 561
                 dt = BLL.PagerBLL.GetListPager(
562 562
                    tablenew.ToString(),

+ 29 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallOutPlanController.cs

@@ -1675,7 +1675,9 @@ namespace CallCenterApi.Interface.Controllers.callout
1675 1675
         #endregion
1676 1676
 
1677 1677
 
1678
-        public ActionResult AddAnswers(int phoneid,string F_typeName1,string F_typeName2, string F_typeName3, string F_typeName4, string F_typeName5, string F_typeName6,string  value1, string value2, string value3, string value4, string value5, string value6, string F_TypeName7,string value7)
1678
+        public ActionResult AddAnswers(int phoneid,string F_typeName1,string F_typeName2, string F_typeName3, string F_typeName4, string F_typeName5, string F_typeName6,string  value1, string value2, string value3, string value4, string value5, string value6, string F_TypeName7,string value7,
1679
+            string value12,string value22,string value32,string value42,string value52,string value62)
1680
+       
1679 1681
         {
1680 1682
 
1681 1683
             Model.T_TypeResult remodel = new Model.T_TypeResult();
@@ -1696,6 +1698,17 @@ namespace CallCenterApi.Interface.Controllers.callout
1696 1698
             remodel.F_typeValue5 = value5;
1697 1699
             remodel.F_typeValue6 = value6;
1698 1700
             remodel.F_typeValue7 = value7;
1701
+
1702
+            remodel.F_typeValue12 = value12;
1703
+            remodel.F_typeValue22 = value22;
1704
+            remodel.F_typeValue32 = value32;
1705
+            remodel.F_typeValue42 = value42;
1706
+
1707
+            remodel.F_typeValue52 = value52;
1708
+            remodel.F_typeValue62 = value62;
1709
+
1710
+
1711
+
1699 1712
             remodel.F_userId = CurrentUser.UserData.F_UserId.ToString();
1700 1713
 
1701 1714
             BLL.T_TypeResult bll = new BLL.T_TypeResult();
@@ -1855,6 +1868,21 @@ namespace CallCenterApi.Interface.Controllers.callout
1855 1868
         }
1856 1869
         #endregion
1857 1870
 
1871
+        public ActionResult UdpateCallState(int phoneid)
1872
+        {
1873
+            string sql = " update T_Call_OutTaskTelNum set ExpandSintField5=1 where F_id='" + phoneid + "'";
1874
+            int i = DbHelperSQL.ExecuteSql(sql);
1875
+            if (i > 0)
1876
+            {
1877
+                return Success("更新通话状态成功");
1878
+            }
1879
+            else
1880
+            {
1881
+                return Success("更新通话状态失败");
1882
+            }
1883
+
1884
+        }
1885
+
1858 1886
 
1859 1887
         public ActionResult GetDepartList()
1860 1888
         {

+ 2 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/quality/IndexCategoryController.cs

@@ -180,5 +180,7 @@ namespace CallCenterApi.Interface.Controllers.quality
180 180
             }
181 181
 
182 182
         }
183
+
184
+
183 185
     }
184 186
 }

Datei-Diff unterdrückt, da er zu groß ist
+ 70 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/CallOutReportController.cs


+ 5 - 5
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/QCResultController.cs

@@ -205,8 +205,8 @@ namespace CallCenterApi.Interface.Controllers.report
205 205
                 strsql = " and UserId in(select F_UserId from T_Sys_UserAccount where F_DeptId=" + dpt.ToString() + ") ";
206 206
             }
207 207
 
208
-            DataSet ds = DbHelperSQL.Query("select *,(select F_UserName from  T_Sys_UserAccount as b where b.F_UserId=a.UserId) as name,(select F_WorkNumber from  T_Sys_UserAccount as b where b.F_UserId=a.UserId) as wknmb from (select COUNT(*) as ct,UserId from T_Call_CallRecords where F_QCState=1  and UserId is not null" + sqltimeCallRecords + strsql + " group by  UserId) as a order by wknmb asc");
209
-            DataTable dtTitle = DbHelperSQL.Query("select F_IndexId from T_QC_IndexBase where F_DeleteFlag=0").Tables[0];
208
+            DataSet ds = DbHelperSQL.Query("select *,(select F_UserName from  T_Sys_UserAccount as b where b.F_UserCode=a.UserCode) as name,(select F_WorkNumber from  T_Sys_UserAccount as b where b.F_UserCode=a.UserCode) as wknmb from (select COUNT(*) as ct,UserCode from T_Call_CallRecords where F_QCState=1  and UserCode !=0 " + sqltimeCallRecords + strsql + " group by  UserCode) as a order by wknmb asc");
209
+           // DataTable dtTitle = DbHelperSQL.Query("select F_IndexId from T_QC_IndexBase where F_DeleteFlag=0").Tables[0];
210 210
             if (ds != null && ds.Tables.Count > 0)
211 211
             {
212 212
                 DataTable dt = ds.Tables[0];
@@ -215,7 +215,7 @@ namespace CallCenterApi.Interface.Controllers.report
215 215
                 {
216 216
                     DataRow drNew = dtNew.NewRow();
217 217
 
218
-                    object obj = DbHelperSQL.GetSingle("select F_QCUserName from T_Call_CallRecords where UserId=" + dr["UserId"] + " and F_QCState=1 " + sqltimeCallRecords);
218
+                    object obj = DbHelperSQL.GetSingle("select F_QCUserName from T_Call_CallRecords where UserCode=" + dr["UserCode"] + " and F_QCState=1 " + sqltimeCallRecords);
219 219
                     if (obj != null)
220 220
                     {
221 221
                         strname = obj.ToString();
@@ -247,7 +247,7 @@ namespace CallCenterApi.Interface.Controllers.report
247 247
                             if (str != "")
248 248
                             {
249 249
                                 double fs = 0;//每一项分数
250
-                                obj = DbHelperSQL.GetSingle("select sum(F_QCScore) from T_QC_IndexRes where CallRecordsId in (select CallRecordsId from T_Call_CallRecords where F_QCState=1 and UserId=" + dr["UserId"] + " " + sqltimeCallRecords + ") and F_IndexId=" + str);
250
+                                obj = DbHelperSQL.GetSingle("select sum(F_QCScore) from T_QC_IndexRes where CallRecordsId in (select CallRecordsId from T_Call_CallRecords where F_QCState=1 and UserCode=" + dr["UserCode"] + " " + sqltimeCallRecords + ") and F_IndexId=" + str);
251 251
                                 if (obj != null && obj.ToString() != "")
252 252
                                 {
253 253
                                     if (ct != 0)
@@ -293,7 +293,7 @@ namespace CallCenterApi.Interface.Controllers.report
293 293
                     {
294 294
                         string question = "";
295 295
                         string advise = "";
296
-                        DataSet dss = DbHelperSQL.Query("select * from T_Call_CallRecords where UserId=" + dr["UserId"] + " and F_QCState=1 " + sqltimeCallRecords);
296
+                        DataSet dss = DbHelperSQL.Query("select * from T_Call_CallRecords where UserCode=" + dr["UserCode"] + " and F_QCState=1 " + sqltimeCallRecords);
297 297
                         if (dss.Tables[0].Rows.Count > 0)
298 298
                         {
299 299
                             for (int ii = 0; ii < dss.Tables[0].Rows.Count; ii++)

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/ZuoXiTongHuaController.cs

@@ -239,7 +239,7 @@ namespace CallCenterApi.Interface.Controllers.report
239 239
             }
240 240
 
241 241
             DataTable dt = new DataTable();
242
-            string sql = "SELECT  *,(SELECT sum(TalkLongTime)  FROM T_Call_CallRecords where  UserId=T_Sys_UserAccount.F_Userid " + sqltimeCallRecords + ") as counts from T_Sys_UserAccount order by counts desc ";
242
+            string sql = "SELECT  *,(SELECT sum(TalkLongTime)  FROM T_Call_CallRecords where  usercode=T_Sys_UserAccount.F_UserCode " + sqltimeCallRecords + ") as counts from T_Sys_UserAccount order by counts desc ";
243 243
             //zhengbingbing 20150508
244 244
             //string sql = "SELECT  *,(SELECT sum(TalkLongTime)  FROM T_Call_CallRecords where  UserId=T_Sys_UserAccount.F_Userid " + sqltimeCallRecords + ") as counts from T_Sys_UserAccount where F_RoleId in(1,28,29) order by counts desc ";
245 245
             dt = DbHelperSQL.Query(sql).Tables[0];
@@ -247,9 +247,9 @@ namespace CallCenterApi.Interface.Controllers.report
247 247
             {
248 248
                 DataRow drNew = dtNew.NewRow();
249 249
 
250
-                sql = "SELECT (SELECT sum(TalkLongTime)  FROM T_Call_CallRecords where  UserId=" + dt.Rows[i]["F_UserId"].ToString() + "" + sqltimeCallRecords + ") as sums,";
251
-                sql += "(SELECT sum(TalkLongTime) FROM T_Call_CallRecords where  UserId=" + dt.Rows[i]["F_UserId"].ToString() + " and CallType=0" + sqltimeCallRecords + ") as sumshuru,";
252
-                sql += "(SELECT sum(TalkLongTime)  FROM T_Call_CallRecords where  UserId=" + dt.Rows[i]["F_UserId"].ToString() + " and CallType=1" + sqltimeCallRecords + ") as sumshuchu";
250
+                sql = "SELECT (SELECT sum(TalkLongTime)  FROM T_Call_CallRecords where  usercode=" + dt.Rows[i]["F_UserCode"].ToString() + "" + sqltimeCallRecords + ") as sums,";
251
+                sql += "(SELECT sum(TalkLongTime) FROM T_Call_CallRecords where  usercode=" + dt.Rows[i]["F_UserCode"].ToString() + " and CallType=0" + sqltimeCallRecords + ") as sumshuru,";
252
+                sql += "(SELECT sum(TalkLongTime)  FROM T_Call_CallRecords where  usercode=" + dt.Rows[i]["F_UserCode"].ToString() + " and CallType=1" + sqltimeCallRecords + ") as sumshuchu";
253 253
                 DataTable dt1 = new DataTable();
254 254
                 dt1 = DbHelperSQL.Query(sql).Tables[0];
255 255
 

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -2252,7 +2252,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2252 2252
             #endregion
2253 2253
             sql = " select WorkOrderID as '工单编号',"
2254 2254
                 + " (case isnull(State,0) when 0 then '未指派' when 1 then '处理中' when 2 then '已完成' else '' end ) as '工单状态',"
2255
-                + " Detail as '反映问题',clcontent as '问题处理情况',InfoType as '问题分类',InfoTypeDetail as '热点问题',Unit as '交办单位',Customer as '客户姓名',CustomerTel as '客户电话',"
2255
+                + " Detail as '反映问题',clcontent as '问题处理情况',InfoType as '问题分类',InfoTypeDetail as '热点问题',Unit as '处理部门',Customer as '客户姓名',CustomerTel as '客户电话',"
2256 2256
 
2257 2257
                 + " CreateUser as '坐席工号',dbo.GetUserName(CreateUser) as '坐席姓名',"
2258 2258
                 + " CONVERT(varchar(19), CreateTime, 20) as '创建时间',Source as '工单来源'"

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Model/T_Call_OutTaskTelNum.cs

@@ -559,7 +559,7 @@ namespace CallCenterApi.Model
559 559
             get { return _expandsintfield4; }
560 560
         }
561 561
         /// <summary>
562
-        /// 
562
+        /// 是否拨打电话 0是false 1是true
563 563
         /// </summary>
564 564
         public int? ExpandSintField5
565 565
         {

+ 53 - 1
codegit/CallCenterApi/CallCenterApi.Model/T_TypeResult.cs

@@ -43,10 +43,62 @@ namespace CallCenterApi.Model
43 43
 
44 44
         private string _f_typename7;
45 45
         private string _f_typevalue7;
46
-
46
+        private string _f_typevalue12;
47
+        private string _f_typevalue22;
48
+        private string _f_typevalue32;
49
+        private string _f_typevalue42;
50
+        private string _f_typevalue52;
51
+        private string _f_typevalue62;
47 52
         private string _f_userid;
48 53
         private DateTime? _f_createon= DateTime.Now;
49 54
 
55
+        public string F_typeValue62
56
+        {
57
+            set { _f_typevalue62 = value; }
58
+            get { return _f_typevalue62; }
59
+        }
60
+
61
+
62
+
63
+        public string F_typeValue52
64
+        {
65
+            set { _f_typevalue52 = value; }
66
+            get { return _f_typevalue52; }
67
+        }
68
+
69
+
70
+
71
+        public string F_typeValue42
72
+        {
73
+            set { _f_typevalue42 = value; }
74
+            get { return _f_typevalue42; }
75
+        }
76
+
77
+
78
+
79
+        public string F_typeValue32
80
+        {
81
+            set { _f_typevalue32 = value; }
82
+            get { return _f_typevalue32; }
83
+        }
84
+
85
+
86
+        public string F_typeValue22
87
+        {
88
+            set { _f_typevalue22 = value; }
89
+            get { return _f_typevalue22; }
90
+        }
91
+
92
+
93
+
94
+
95
+        public string F_typeValue12
96
+        {
97
+            set { _f_typevalue12 = value; }
98
+            get { return _f_typevalue12; }
99
+        }
100
+
101
+
50 102
 
51 103
         public string F_typeName7
52 104
         {