lihai 6 gadi atpakaļ
vecāks
revīzija
5e853573cf

+ 12 - 0
API/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Base/BaseController.cs

@@ -51,6 +51,18 @@ namespace CallCenterApi.Interface.Controllers.Base
51 51
         }
52 52
 
53 53
         /// <summary>
54
+        /// 警告的消息格式化
55
+        /// </summary>
56
+        /// <param name="message"></param>
57
+        /// <returns></returns>
58
+        protected virtual ActionResult Warn(string message, object data)
59
+        {
60
+            var jsonMsg = new AjaxResult { state = ResultTypes.warning.ToString(), message = message, data = data }.ToJson();
61
+            FileLog.Warn(jsonMsg);
62
+            return Content(jsonMsg);
63
+        }
64
+
65
+        /// <summary>
54 66
         /// 跳转的消息格式化
55 67
         /// </summary>
56 68
         /// <param name="message"></param>

+ 3 - 1
API/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/LogController.cs

@@ -104,7 +104,9 @@ namespace CallCenterApi.Interface.Controllers
104 104
         /// <returns></returns>
105 105
         public ActionResult CallOpt(string direct, string type, string cont)
106 106
         {
107
-            string usercode = CurrentUser.UserData.F_UserCode;
107
+
108
+            //string usercode = CurrentUser.UserData.F_UserCode;
109
+            string usercode = User.UserData["F_UserCode"];
108 110
             string strtype = type;
109 111
             switch (type.ToLower())
110 112
             {

+ 2 - 2
API/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Web.config

@@ -15,8 +15,8 @@
15 15
     <add key="Redis_Port" value="6379"/>
16 16
   </appSettings>
17 17
   <connectionStrings>
18
-    <add name="ConnectionString" connectionString="Data Source=192.168.4.18;User ID=sa;pwd=800100;Initial Catalog=HBSZRX;"/>
19
-    <!--<add name="ConnectionString" connectionString="Data Source=192.168.4.18;User ID=sa;pwd=800100;Initial Catalog=HBSZRX_20190801;"/>-->
18
+    <!--<add name="ConnectionString" connectionString="Data Source=192.168.4.18;User ID=sa;pwd=800100;Initial Catalog=HBSZRX;"/>-->
19
+    <add name="ConnectionString" connectionString="Data Source=192.168.4.18;User ID=sa;pwd=800100;Initial Catalog=HBSZRX_20191121;"/>
20 20
     <!--<add name="ConnectionString" connectionString="Data Source=192.168.1.88;User ID=sa;pwd=800100;Initial Catalog=CallCenter_ZXZB2;"/>-->
21 21
   </connectionStrings>
22 22
   <system.web>

+ 13 - 0
文档/sql/rep_ext_call_out添加字段.sql

@@ -0,0 +1,13 @@
1
+
2
+
3
+SELECT * INTO rep_ext_call_out_20190926 FROM dbo.rep_ext_call_out
4
+
5
+ALTER TABLE rep_ext_call_out ADD [TaskType] NVARCHAR(10)
6
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÈÎÎñÀàÐÍ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'rep_ext_call_out', @level2type=N'COLUMN',@level2name=N'TaskType'
7
+GO
8
+ALTER TABLE rep_ext_call_out ADD [TaskPhoneID] NVARCHAR(10)
9
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÈÎÎñµç»°id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'rep_ext_call_out', @level2type=N'COLUMN',@level2name=N'TaskPhoneID'
10
+GO
11
+ALTER TABLE rep_ext_call_out ADD [TaskID] NVARCHAR(32)
12
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÈÎÎñid' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'rep_ext_call_out', @level2type=N'COLUMN',@level2name=N'TaskID'
13
+GO