gaobingyue лет назад: 5
Родитель
Сommit
abbfa783fc

+ 36 - 17
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/BusinessDockController.cs

@@ -8,6 +8,7 @@ using Newtonsoft.Json.Linq;
8 8
 using System;
9 9
 using System.Collections.Generic;
10 10
 using System.Data;
11
+using System.EnterpriseServices;
11 12
 using System.Linq;
12 13
 using System.Transactions;
13 14
 using System.Web;
@@ -123,18 +124,26 @@ namespace CallCenterApi.Interface.Controllers.workorder
123 124
         ///
124 125
         /// </summary>
125 126
         /// <returns></returns>
127
+        /// 
128
+        [AutoComplete(true)]
126 129
         public ActionResult ReceiveWorkOrder()
127 130
         {
128
-            string port_password = RequestString.GetFormString("port_password");   //加密信息(安全验证用)
129
-            string uuid = RequestString.GetFormString("uuid");          //客户唯一标识(安全验证用)
130
-            string content = RequestString.GetFormString("content");//查收详情
131
-            string usercode = RequestString.GetFormString("usercode");
131
+            //string port_password = RequestString.GetFormString("port_password");   //加密信息(安全验证用)
132
+            //string uuid = RequestString.GetFormString("uuid");          //客户唯一标识(安全验证用)
133
+            //string content = RequestString.GetFormString("content");//查收详情
134
+            //string usercode = RequestString.GetFormString("usercode");
132 135
 
133
-            //request.QueryString("abc")
136
+            //string pid = HttpUtility.UrlDecode(RequestString.GetQueryString("pid"));
134 137
 
138
+            string port_password = HttpUtility.UrlDecode(RequestString.GetQueryString("port_password"));   //加密信息(安全验证用)
139
+            string uuid = HttpUtility.UrlDecode(RequestString.GetQueryString("uuid"));          //客户唯一标识(安全验证用)
140
+            string content = HttpUtility.UrlDecode(RequestString.GetQueryString("content"));//查收详情
141
+            string usercode = HttpUtility.UrlDecode(RequestString.GetQueryString("usercode"));
135 142
 
136
-            using (TransactionScope trans = new TransactionScope())
137
-            {
143
+
144
+            //using (TransactionScope scope = new TransactionScope(
145
+            //   TransactionScopeOption.Required, new TimeSpan(6000000000)))
146
+            //{
138 147
                 #region 参数验证
139 148
                 if (string.IsNullOrEmpty(uuid))
140 149
                 {
@@ -161,12 +170,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
161 170
                     return Process();
162 171
                 }
163 172
 
164
-                //if (!Common.CodeValidate.ICodeValidateGridding(uuid, port_password))
165
-                //{
166
-                //    ajresult.state = (int)CodeStatus.安全验证未通过;
167
-                //    ajresult.message = "安全验证未通过";
168
-                //    return Process();
169
-                //}
173
+                if (!Common.CodeValidate.ICodeValidateGridding(uuid, port_password))
174
+                {
175
+                    ajresult.state = (int)CodeStatus.安全验证未通过;
176
+                    ajresult.message = "安全验证未通过";
177
+                    return Process();
178
+                }
170 179
                 #endregion
171 180
                 //通话记录
172 181
                 CallrecordsController wo = new CallrecordsController();
@@ -192,11 +201,21 @@ namespace CallCenterApi.Interface.Controllers.workorder
192 201
 
193 202
 
194 203
                 //添加操作记录
195
-                 AddGriddingLogs(uuid, port_password, "search", " Callrecords:" + ajresult.message + "||" + content + "||" + ajresult.state, usercode, "0", "", "", "", "", "", "", "", "", "", "",
204
+                 //AddGriddingLogs(uuid, port_password, "search", " Callrecords:" + ajresult.message + "||" + content + "||" + ajresult.state, usercode, "0", "", "", "", "", "", "", "", "", "", "",
205
+                 //    obj1[3].ToString(), "通讯记录", "查询表单",
206
+                 //    0, 0, 0, 0, 0);
207
+
208
+                AddGriddingLogs(uuid, port_password, "search", "Callrecords:" + ajresult.message + "||" + content + "||" + ajresult.state, usercode, "0", "", "", "", "", "", "", "", "", "", "",
196 209
                      obj1[3].ToString(), "通讯记录", "查询表单",
197
-                     0, 0, 0, 0, 0);
198
-                trans.Complete();
199
-            }
210
+                    0, 0, 0, 0, 0);
211
+
212
+
213
+
214
+
215
+
216
+
217
+        //        scope.Complete();
218
+        //}
200 219
             return Process();
201 220
         }
202 221
 

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallrecordsController.cs

@@ -833,7 +833,7 @@ UserCode,UserName,BeginTime,TalkStartTime,TalkEndTime,TalkLongTime,
833 833
                         //列
834 834
                         for (int j = 0; j < dt.Columns.Count; j++)
835 835
                         {
836
-                            tableInfo += dt.Rows[i][0].ToString() + ",";
836
+                            tableInfo += dt.Rows[i][j].ToString() + ",";
837 837
                         }
838 838
                         tableInfo += "|";
839 839
                     }