Przeglądaj źródła

提交日志更新

zhangkun 5 lat temu
rodzic
commit
28dc9e1ae8
20 zmienionych plików z 227 dodań i 53 usunięć
  1. 5 0
      web/BaseCallCenter.BLL/T_Wo_WorkOrderBase.cs
  2. 54 0
      web/BaseCallCenter.Common/Web/CheckPwd.cs
  3. 1 1
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/WebHelper.cs
  4. 2 0
      web/BaseCallCenter.Common/YTSoft.Common.csproj
  5. 1 1
      web/BaseCallCenter.DAL/T_Wo_WorkOrderBase.cs
  6. 2 2
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/APIController.cs
  7. 16 0
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/BaseController.cs
  8. 5 6
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/Com/ClassController.cs
  9. 13 5
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/Com/LogActionController.cs
  10. 1 0
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/CustomerController.cs
  11. 24 3
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/HW/CallRecordController.cs
  12. 12 3
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/HW/DutyNumberController.cs
  13. 10 0
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/KF/QuickMsgsController.cs
  14. 4 0
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/Order/OrderController.cs
  15. 5 5
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/OtherPageController.cs
  16. 0 5
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/Report/ReportController.cs
  17. 67 18
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/SystemManageController.cs
  18. 1 1
      web/YTSoft.BaseCallCenter.MVCWeb/Controllers/WXInterFaceController.cs
  19. 4 2
      web/YTSoft.BaseCallCenter.MVCWeb/Views/Default/SSO.cshtml
  20. 0 1
      web/YTSoft.BaseCallCenter.MVCWeb/YTSoft.BaseCallCenter.MVCWeb.csproj

+ 5 - 0
web/BaseCallCenter.BLL/T_Wo_WorkOrderBase.cs

@@ -551,6 +551,11 @@ namespace YTSoft.BaseCallCenter.BLL
551 551
         {
552 552
             return dal.UpdateWorkOrderInfoModel(model);
553 553
         }
554
+
555
+        public string GetOrderNumber(int ordertype)
556
+        {
557
+            return dal.GetOrderNumber(ordertype);
558
+        }
554 559
         /// <summary>
555 560
         /// 修改转办信息
556 561
         /// </summary>

+ 54 - 0
web/BaseCallCenter.Common/Web/CheckPwd.cs

@@ -0,0 +1,54 @@
1
+using System.Text.RegularExpressions;
2
+namespace YTSoft.Common
3
+{
4
+    public class checkpwd
5
+    {
6
+        /// <summary>
7
+        /// 计算密码强度
8
+        /// </summary>
9
+        /// <param name="password">密码字符串</param>
10
+        /// <returns></returns>
11
+        /// 
12
+
13
+        public class Chkrslt
14
+        {
15
+            public bool RSL { set; get; }
16
+            public string MSG { set; get; }
17
+        }
18
+
19
+        public static Chkrslt PasswordStrength(string password)
20
+        {
21
+
22
+
23
+            if (password.Length < 8 || password.Length > 16)
24
+            {
25
+                return new Chkrslt() { RSL = false, MSG = "密码长度不符合,密码长度:8-16" };
26
+            }
27
+
28
+            Regex rgx = new Regex(@"^[0-9a-zA-Z\x21-\x7e]{8,16}$");
29
+            if (!rgx.IsMatch(password))
30
+            {
31
+                return new Chkrslt() { RSL = false, MSG = "密码只能包含数字,字母和字符" };
32
+            }
33
+
34
+            //字符统计
35
+            int iNum = 0, iLtt = 0, iSym = 0;
36
+            foreach (char c in password)
37
+            {
38
+                if (c >= '0' && c <= '9') iNum++;
39
+                else if (c >= 'a' && c <= 'z') iLtt++;
40
+                else if (c >= 'A' && c <= 'Z') iLtt++;
41
+                else iSym++;
42
+            }
43
+            if (iLtt == 0 && iSym == 0) return new Chkrslt() { RSL = false, MSG = "纯数字密码,请加入字符和字母" }; //纯数字密码
44
+            if (iNum == 0 && iLtt == 0) return new Chkrslt() { RSL = false, MSG = "纯符号密码,请加入数字和字母" };  //纯符号密码
45
+            if (iNum == 0 && iSym == 0) return new Chkrslt() { RSL = false, MSG = "纯字母密码,请加入字符和数字" }; //纯字母密码
46
+
47
+            if (iLtt == 0) return new Chkrslt() { RSL = true, MSG = "数字和符号构成的密码,请加入字母" }; ; //数字和符号构成的密码
48
+            if (iSym == 0) return new Chkrslt() { RSL = true, MSG = "数字和字母构成的密码,请加入字符" }; ; //数字和字母构成的密码
49
+            if (iNum == 0) return new Chkrslt() { RSL = true, MSG = "字母和符号构成的密码,请加入数字" }; //字母和符号构成的密码
50
+            return new Chkrslt() { RSL = true, MSG = "密码符合" };
51
+        }
52
+
53
+    }
54
+}

+ 1 - 1
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/WebHelper.cs

@@ -5,7 +5,7 @@ using System.Net;
5 5
 using System.Text;
6 6
 using System.Text.RegularExpressions;
7 7
 using System.Web;
8
-namespace CallCenter.Utility
8
+namespace YTSoft.Common
9 9
 {
10 10
     public class WebHelper
11 11
     {

+ 2 - 0
web/BaseCallCenter.Common/YTSoft.Common.csproj

@@ -101,8 +101,10 @@
101 101
     <Compile Include="Thumbnail.cs" />
102 102
     <Compile Include="Utils.cs" />
103 103
     <Compile Include="WaterMark.cs" />
104
+    <Compile Include="Web\CheckPwd.cs" />
104 105
     <Compile Include="Web\Tree.cs" />
105 106
     <Compile Include="Web\TreeModel.cs" />
107
+    <Compile Include="Web\WebHelper.cs" />
106 108
     <Compile Include="XmlHelper.cs" />
107 109
   </ItemGroup>
108 110
   <ItemGroup>

+ 1 - 1
web/BaseCallCenter.DAL/T_Wo_WorkOrderBase.cs

@@ -1554,7 +1554,7 @@ F_SERVICETYPE,F_DECLARATIONTIME,F_SERVICENATURE,F_SERVICEWAY,F_RETURNVISITMAN,F_
1554 1554
                     new SqlParameter("@F_RETURNVISITCONTENT", model.F_RETURNVISITCONTENT),
1555 1555
                     new SqlParameter("@F_RETURNVISITFLAG", model.F_RETURNVISITFLAG),
1556 1556
                     new SqlParameter("@F_RETURNVISITTIME ", model.F_RETURNVISITTIME),
1557
-                    new SqlParameter("@F_CODE ", GetOrderNumber(int.Parse(model.F_REPAIRLEVEL.ToString()))),
1557
+                    new SqlParameter("@F_CODE ", model.F_CODE),
1558 1558
                     new SqlParameter("@F_FILEFLAG", model.F_FILEFLAG),
1559 1559
                     new SqlParameter("@F_HOUSING ", model.F_HOUSING),
1560 1560
                    // new SqlParameter("@F_LINKMAN", SqlDbType.NVarChar,200),

+ 2 - 2
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/APIController.cs

@@ -874,11 +874,11 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
874 874
                 StringBuilder returnStr = new StringBuilder();
875 875
                 if (busType == 4)
876 876
                 {
877
-                    wxAddUrl = "http://zzmetro-kf.sujie-china.com/api/external/wbcount";
877
+                    wxAddUrl = "http://rexian.zzmetro.com/api/external/wbcount";
878 878
                 }
879 879
                 else
880 880
                 {
881
-                    wxAddUrl = "http://zzmetro-kf.sujie-china.com/api/external/wxcount";
881
+                    wxAddUrl = "http://rexian.zzmetro.com/api/external/wxcount";
882 882
                 }
883 883
                 string paramsStr = "begin=" + startDate + "&end=" + endDate;
884 884
                 string addWxResult = HttpHelper.HttpGet(wxAddUrl, paramsStr);

+ 16 - 0
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/BaseController.cs

@@ -356,6 +356,22 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
356 356
             return busLog.Add(modellog);
357 357
         }
358 358
 
359
+        public bool AddAction(string TableName, string id, string ActionName, string oldobj="")
360
+        {
361
+            Model.T_Com_LogAction modellog = new T_Com_LogAction();
362
+            modellog.ActionName = ActionName;
363
+            modellog.AddUser = HttpUtility.UrlDecode(F_UserName);
364
+            modellog.AddUserId = F_UserID;
365
+            modellog.Atime = DateTime.Now;
366
+            modellog.ActionUrl = string.Format("/{0}/{1}", RouteData.Values["controller"], RouteData.Values["action"]);
367
+            modellog.ContentNew = "操作记录";
368
+            modellog.ContentOld = oldobj;
369
+            modellog.TableId = id.ToMyString();
370
+            modellog.TableName = TableName;
371
+
372
+            return busLog.Add(modellog);
373
+        }
374
+
359 375
         #endregion
360 376
 
361 377
         #region 公共返回参数

+ 5 - 6
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/Com/ClassController.cs

@@ -79,7 +79,7 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
79 79
         {
80 80
             if (busClass.Delete(id))
81 81
             {
82
-                //AddLog("T_Com_LogAction", model.Id, "删除消息", model, "");
82
+                AddAction("t_com_class", id.ToMyString(), "删除分类名称");
83 83
                 return Success("删除成功");
84 84
             }              
85 85
             else
@@ -127,10 +127,10 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
127 127
 
128 128
 
129 129
 
130
-
131
-            if (busClass.Add(model) >0)
130
+            int id = busClass.Add(model);
131
+            if (id > 0)
132 132
             {
133
-                //AddLog("T_Com_Tag", model.F_Id.ToString(), "添加标签", "", model);
133
+                AddAction("t_com_class", id.ToMyString(), "添加分类名称", model.Classname);
134 134
                 return Success("成功", modelinput, 1);
135 135
             }
136 136
             else
@@ -172,10 +172,9 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
172 172
                     model.typeid = modeltemp.typeid;
173 173
             }
174 174
 
175
-
176 175
             if (busClass.Update(model))
177 176
             {
178
-                //AddLog("T_Com_Tag", model.F_Id.ToString(), "修改消息", modelold, model);
177
+                AddAction("t_com_class", model.Classid.ToMyString(), "更新分类名称", model.Classname);
179 178
                 return Success("成功", model, 1);
180 179
             }
181 180
             else

+ 13 - 5
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/Com/LogActionController.cs

@@ -34,14 +34,22 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
34 34
         [ActionName("GetListData")]
35 35
         public string GetListData(string Table = "", string id = "", int page = 0, int limit = 20)
36 36
         {
37
-            string strWhere = " 1=1 ";
37
+            string strWhere = "";
38
+            if (Table == "kf_quick_msgs")
39
+            {
40
+                strWhere = " 1=1 ";
41
+            }
42
+            else
43
+            {
44
+                strWhere += " ContentNew='操作记录' ";
45
+            }
38 46
             if (!string.IsNullOrEmpty(Table))
39 47
             {
40 48
                 strWhere += string.Format(" and TableName = '{0}'", Table);
41 49
             }
42 50
             if (!string.IsNullOrEmpty(id))
43 51
             {
44
-                strWhere += string.Format(" and TableId ={0}", id);
52
+                strWhere += string.Format(" and TableId ='{0}'", id);
45 53
             }
46 54
 
47 55
             DataTable dt = busLogAction.GetListByPage(strWhere, " atime desc ", (page - 1) * limit, limit).Tables[0];
@@ -65,10 +73,10 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
65 73
             if (string.IsNullOrEmpty(id))
66 74
                 return Error("请输入ID");
67 75
 
68
-            Model.T_Com_LogAction model = busLogAction.GetModel(id);
76
+            //Model.T_Com_LogAction model = busLogAction.GetModel(id);
69 77
             if (busLogAction.Delete(id))
70
-            {
71
-                AddLog("T_Com_LogAction", model.Id, "删除消息", JsonConvert.SerializeObject(model), "");
78
+            {//JsonConvert.SerializeObject(model)
79
+                AddAction("t_com_logaction", id, "删除操作日志" );
72 80
                 return Success("删除成功");
73 81
             }              
74 82
             else

+ 1 - 0
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/CustomerController.cs

@@ -38,6 +38,7 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
38 38
         /// <returns></returns>
39 39
         public bool SaveReceivedData(string keyList, int status)
40 40
         {
41
+            AddAction("t_cus_customerbase", keyList, "修改客户状态",status.ToMyString());
41 42
             return cusBLL.EditCustonStatus(keyList, status);
42 43
         }
43 44
         #region 加载客户列表

+ 24 - 3
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/HW/CallRecordController.cs

@@ -11,6 +11,7 @@ using System.Web.Mvc;
11 11
 using YTSoft.BaseCallCenter.Model;
12 12
 using YTSoft.BaseCallCenter.MVCWeb.Commons;
13 13
 using YTSoft.BaseCallCenter.MVCWeb.Models;
14
+using YTSoft.Common;
14 15
 using YTSoft.DBUtility;
15 16
 
16 17
 namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
@@ -343,7 +344,14 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
343 344
             {
344 345
                 CustomerBaseModel.F_CustomerNature = "语音";
345 346
             }
346
-
347
+            if (CustomerBaseModel.F_CustomerId > 0)
348
+            {
349
+                AddAction("t_cus_customerbase", CustomerBaseModel.F_CustomerId.ToMyString(), "更新客户信息", CustomerBaseModel.F_CustomerName);
350
+            }
351
+            else
352
+            {
353
+                AddAction("t_cus_customerbase", CustomerBaseModel.F_Telephone, "添加客户信息", CustomerBaseModel.F_CustomerName);
354
+            }
347 355
             return cusBLL.UpdateCusInfoModel(CustomerBaseModel);
348 356
         }
349 357
 
@@ -567,7 +575,20 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
567 575
                 }
568 576
             }
569 577
 
570
-
578
+            if (workOrderBaseModel.F_WORKORDERSTATEID > 0)
579
+            {
580
+                workOrderBaseModel.F_CODE= orderBLL.GetOrderNumber(workOrderBaseModel.F_REPAIRLEVEL.ToInt32());
581
+                if (workOrderBaseModel.F_WORKORDERTYPEID == 1)
582
+                {
583
+                    AddAction("t_wo_workorderbase", workOrderBaseModel.F_WORKORDERID.ToMyString(), "转单处理工单", workOrderBaseModel.F_CODE);
584
+                }
585
+                else
586
+                {
587
+                    AddAction("t_wo_workorderbase", workOrderBaseModel.F_WORKORDERID.ToMyString(), "即时处理工单", workOrderBaseModel.F_CODE);
588
+                }
589
+            }
590
+            else
591
+            { workOrderBaseModel.F_CODE = ""; }
571 592
 
572 593
             return orderBLL.UpdateWorkOrderInfoModel(workOrderBaseModel);
573 594
         }
@@ -1310,7 +1331,7 @@ F_DealContent = '留言创建工单' where F_Id = " + leavemodel.F_Id;
1310 1331
         public string  GetCallOutprefix(string phone)      {
1311 1332
 
1312 1333
            
1313
-                string phone1 = CallCenter.Utility.RequestString.ToDBC(RequestString.RemoveNotNumber(WebHelper.NoHtml(phone)));
1334
+                string phone1 = CallCenter.Utility.RequestString.ToDBC(RequestString.RemoveNotNumber(StringHelper.NoHTML(phone)));
1314 1335
                 string tophone = phone1;
1315 1336
                 string zipcode = ""; string bfix = ""; string wfix = ""; string fix = "";
1316 1337
             // string userseatgroupid = CurrentUser.UserData.F_SeartGroupID.ToString();

+ 12 - 3
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/HW/DutyNumberController.cs

@@ -99,9 +99,12 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
99 99
             model.F_State = 0;
100 100
             model.F_Group = "";
101 101
             model.F_Groupid = 0;
102
-            int n = busdutyNumber.Add(model);
103
-            if(n>0)
104
-                return Success("成功", model, n);
102
+            int id = busdutyNumber.Add(model);
103
+            if (id > 0)
104
+            {
105
+                AddAction("t_hw_dutynumber", id.ToMyString(), "新增值班电话", phone);
106
+                return Success("成功", model, id);
107
+            }
105 108
             else
106 109
                 return Error("失败");
107 110
         }
@@ -137,7 +140,10 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
137 140
             model.F_Group = "";
138 141
             model.F_Groupid = 0;
139 142
             if (busdutyNumber.Update(model))
143
+            {
144
+                AddAction("t_hw_dutynumber", id.ToMyString(), "更新值班电话", phone);
140 145
                 return Success("成功");
146
+            }
141 147
             else
142 148
                 return Error("失败");
143 149
         }
@@ -145,7 +151,10 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
145 151
         public string DeleteData( int id = 0)
146 152
         {
147 153
             if (busdutyNumber.Delete(id))
154
+            {
155
+                AddAction("t_hw_dutynumber", id.ToMyString(), "删除值班电话");
148 156
                 return Success("删除成功");
157
+            }
149 158
             else
150 159
                 return Error("失败");
151 160
         }

+ 10 - 0
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/KF/QuickMsgsController.cs

@@ -46,6 +46,16 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
46 46
             return View();
47 47
         }
48 48
 
49
+
50
+        /// <summary>
51
+        /// 历史记录
52
+        /// </summary>
53
+        /// <returns></returns>
54
+        public ActionResult GetHistory()
55
+        {
56
+            return View();
57
+        }
58
+
49 59
         #endregion
50 60
 
51 61
         [ActionName("GetListData")]

+ 4 - 0
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/Order/OrderController.cs

@@ -184,6 +184,7 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
184 184
         [AcceptVerbs(HttpVerbs.Post)]
185 185
         public bool SubmitOrder(T_Wo_WorkOrderHistory workOrderBaseModel)
186 186
         {
187
+            AddAction("t_wo_workorderhistory", workOrderBaseModel.F_HISTORYID.ToMyString(), "部门提交工单", workOrderBaseModel.F_INSTANCEID.ToMyString());
187 188
             return orderBLL.SubmitOrder(workOrderBaseModel);
188 189
         }
189 190
 
@@ -218,6 +219,7 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
218 219
         [AcceptVerbs(HttpVerbs.Post)]
219 220
         public bool SubmitOrderHF(T_Wo_WorkOrderBase workOrderBaseModel)
220 221
         {
222
+            AddAction("t_wo_workorderbase", workOrderBaseModel.F_WORKORDERID.ToMyString(), "回访提交工单", workOrderBaseModel.F_CODE);
221 223
             return orderBLL.SubmitOrderHF(workOrderBaseModel);
222 224
         }
223 225
 
@@ -441,6 +443,8 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
441 443
 
442 444
                 }
443 445
             }
446
+            AddAction("t_wo_workorderbase", modelorder.F_WORKORDERID.ToMyString(), "提交定责工单", modelorder.F_CODE);
447
+
444 448
             return orderBLL.UpdateDZClass(modelorder);
445 449
         }
446 450
 

+ 5 - 5
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/OtherPageController.cs

@@ -24,11 +24,11 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
24 24
         //{
25 25
         //    if (pageType == 1)
26 26
         //    {
27
-        //        return Redirect("http://zzmetro-kf.sujie-china.com/customer/" + F_PId);
27
+        //        return Redirect("http://rexian.zzmetro.com/customer/" + F_PId);
28 28
         //    }
29 29
         //    else
30 30
         //    {
31
-        //        return Redirect("http://zzmetro-kf.sujie-china.com/customer_weibo/" + F_PId);
31
+        //        return Redirect("http://rexian.zzmetro.com/customer_weibo/" + F_PId);
32 32
         //    }
33 33
 
34 34
 
@@ -60,17 +60,17 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
60 60
         //                string wxAddUrl = "";
61 61
         //                if (pageType == 1)
62 62
         //                {
63
-        //                    wxAddUrl = "http://zzmetro-kf.sujie-china.com/api/customer/unread/" + F_PId;
63
+        //                    wxAddUrl = "http://rexian.zzmetro.com/api/customer/unread/" + F_PId;
64 64
 
65 65
         //                }
66 66
         //                else
67 67
         //                {
68
-        //                    wxAddUrl = "http://zzmetro-kf.sujie-china.com/api/customer_weibo/unread/" + F_PId;
68
+        //                    wxAddUrl = "http://rexian.zzmetro.com/api/customer_weibo/unread/" + F_PId;
69 69
         //                }
70 70
         //                //if (pageType == 1)
71 71
         //                //{
72 72
         //                //    wxAddUrl = "http://rexian.zzmetro.com/api/customer/unread/" + F_PId;
73
-        //                //               //"http://zzmetro-kf.sujie-china.com/customer_weibo/" + F_PId
73
+        //                //               //"http://rexian.zzmetro.com/customer_weibo/" + F_PId
74 74
         //                //    //"http://rexian.zzmetro.com/
75 75
         //                //}
76 76
         //                //else

+ 0 - 5
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/Report/ReportController.cs

@@ -919,11 +919,9 @@ BType, case when (isnull(BusinessType,0)>0 or isnull(F_ServiceType,0)>0) then '
919 919
                 StringBuilder returnStr = new StringBuilder();
920 920
                 if (busType==4)
921 921
                 {
922
-                    //wxAddUrl = "http://zzmetro-kf.sujie-china.com/api/external/wbcount";
923 922
                     wxAddUrl = "http://rexian.zzmetro.com/api/external/wbcount";
924 923
                 }
925 924
                 else {
926
-                    //  wxAddUrl = "http://zzmetro-kf.sujie-china.com/api/external/wxcount";
927 925
                     wxAddUrl = "http://rexian.zzmetro.com/api/external/wxcount";
928 926
                 }
929 927
                 string paramsStr = "begin=" + startDate + "&end=" + endDate;
@@ -9251,7 +9249,6 @@ BType, case when (isnull(BusinessType,0)>0 or isnull(F_ServiceType,0)>0) then '
9251 9249
             try
9252 9250
             {
9253 9251
                 StringBuilder returnStr = new StringBuilder();
9254
-                //string wxAddUrl = "http://zzmetro-kf.sujie-china.com/api/external/" + type;
9255 9252
                 string wxAddUrl = "http://rexian.zzmetro.com/api/external/" + type;
9256 9253
                 string paramsStr = "begin=" + startDate + "&end=" + endDate;
9257 9254
                 string addWxResult = HttpHelper.HttpGet(wxAddUrl, paramsStr);
@@ -9289,7 +9286,6 @@ BType, case when (isnull(BusinessType,0)>0 or isnull(F_ServiceType,0)>0) then '
9289 9286
                 totalCount = recordBLL.WorkOrderCount(busType, startDate, endDate);
9290 9287
 
9291 9288
                 StringBuilder returnStr = new StringBuilder();
9292
-                // string wxAddUrl = "http://zzmetro-kf.sujie-china.com/api/external/wxcount";
9293 9289
                 string wxAddUrl = "http://rexian.zzmetro.com/api/external/wxcount";
9294 9290
                
9295 9291
                 string paramsStr = "begin=" + startDate + "&end=" + endDate;
@@ -9327,7 +9323,6 @@ BType, case when (isnull(BusinessType,0)>0 or isnull(F_ServiceType,0)>0) then '
9327 9323
                 int allWXCount = recordBLL.WorkOrderCount(busType, startDate, endDate);
9328 9324
 
9329 9325
                 StringBuilder returnStr = new StringBuilder();
9330
-                //string wxAddUrl = "http://zzmetro-kf.sujie-china.com/api/external/wxcount";
9331 9326
                 string wxAddUrl = "http://rexian.zzmetro.com/api/external/wxcount";
9332 9327
                 // rexian.zzmetro.com
9333 9328
                 string paramsStr = "begin=" + startDate + "&end=" + endDate;

+ 67 - 18
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/SystemManageController.cs

@@ -11,6 +11,7 @@ using System.Web.Mvc;
11 11
 using YTSoft.BaseCallCenter.Model;
12 12
 using YTSoft.BaseCallCenter.MVCWeb.Commons;
13 13
 using YTSoft.BaseCallCenter.MVCWeb.Models;
14
+using YTSoft.Common;
14 15
 
15 16
 namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
16 17
 {
@@ -77,11 +78,16 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
77 78
 
78 79
             if (deptModel.F_DeptId > 0)
79 80
             {
81
+                AddAction("t_sys_department", deptModel.F_DeptId.ToMyString(), "更新部门", deptModel.F_DeptName);
82
+
80 83
                 return deptBLL.Update(deptModel);
81 84
             }
82 85
             else
83 86
             {
84
-                return deptBLL.Add(deptModel) > 0;
87
+                int id = deptBLL.Add(deptModel);
88
+                AddAction("t_sys_department", id.ToMyString(), "添加部门", deptModel.F_DeptName);
89
+
90
+                return  id> 0;
85 91
             }
86 92
         }
87 93
         /// <summary>
@@ -92,6 +98,7 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
92 98
         [AcceptVerbs(HttpVerbs.Get)]
93 99
         public bool DeleteDeptData(int deptId)
94 100
         {
101
+            AddAction("t_sys_department", deptId.ToMyString(), "删除部门");
95 102
             return deptBLL.Delete(deptId);
96 103
 
97 104
         }
@@ -216,11 +223,15 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
216 223
 
217 224
             if (roleInfoModel.F_RoleId > 0)
218 225
             {
226
+                AddAction("t_sys_roleinfo", roleInfoModel.F_RoleId.ToMyString(), "更新角色", roleInfoModel.F_RoleName);
227
+
219 228
                 return roleBLL.Update(roleInfoModel);
220 229
             }
221 230
             else
222 231
             {
223
-                return roleBLL.Add(roleInfoModel) > 0;
232
+                int id = roleBLL.Add(roleInfoModel);
233
+                AddAction("t_sys_roleinfo", id.ToMyString(), "添加角色", roleInfoModel.F_RoleName);
234
+                return id > 0;
224 235
             }
225 236
         }
226 237
 
@@ -235,6 +246,7 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
235 246
         [AcceptVerbs(HttpVerbs.Get)]
236 247
         public bool DeleteRoleData(string roleId)
237 248
         {
249
+            AddAction("t_sys_roleinfo", roleId.ToMyString(), "删除角色");
238 250
             return roleBLL.DeleteList(roleId);
239 251
 
240 252
         }
@@ -405,11 +417,14 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
405 417
 
406 418
             if (WorkOrderTypeModel.F_WorkOrderTypeId > 0)
407 419
             {
420
+                AddAction("t_wo_workordertype", WorkOrderTypeModel.F_WorkOrderTypeId.ToMyString(), "更新工单分类",WorkOrderTypeModel.F_Name);
408 421
                 return dicTittleBLL.Update(WorkOrderTypeModel) > 0;
409 422
             }
410 423
             else
411 424
             {
412
-                return dicTittleBLL.Add(WorkOrderTypeModel) > 0;
425
+                int id = dicTittleBLL.Add(WorkOrderTypeModel);
426
+                AddAction("t_wo_workordertype", id.ToMyString(), "添加工单分类", WorkOrderTypeModel.F_Name);
427
+                return id > 0;
413 428
             }
414 429
         }
415 430
 
@@ -422,8 +437,8 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
422 437
         [AcceptVerbs(HttpVerbs.Get)]
423 438
         public bool DeleteBussiTypeData(int WorkOrderTypeId)
424 439
         {
440
+            AddAction("t_wo_workordertype", WorkOrderTypeId.ToMyString(), "删除工单分类");
425 441
             return dicTittleBLL.Delete(WorkOrderTypeId);
426
-
427 442
         }
428 443
         #endregion
429 444
 
@@ -541,10 +556,12 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
541 556
         {
542 557
             if (!string.IsNullOrEmpty(dicBaseModel.F_DictionaryFlagType))
543 558
             {
559
+                AddAction("t_sys_dictionarybase", dicBaseModel.F_DictionaryFlagType, "更新字典项");
544 560
                 return dicBaseBLL.Update(dicBaseModel);
545 561
             }
546 562
             else
547 563
             {
564
+                AddAction("t_sys_dictionarybase", dicBaseModel.F_DictionaryFlagType, "添加字典项");
548 565
                 return dicBaseBLL.Add(dicBaseModel);
549 566
             }
550 567
         }
@@ -557,8 +574,8 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
557 574
         [AcceptVerbs(HttpVerbs.Get)]
558 575
         public bool DeleteBaseData(string baseCode)
559 576
         {
577
+            AddAction("t_sys_dictionarybase", baseCode,"删除字典项");
560 578
             return dicBaseBLL.Delete(baseCode);
561
-
562 579
         }
563 580
 
564 581
         /// <summary>
@@ -593,11 +610,15 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
593 610
         {
594 611
             if (dicBaseModel.F_DictionaryValueId > 0)
595 612
             {
613
+                AddAction("t_sys_dictionaryvalue", dicBaseModel.F_DictionaryValueId.ToMyString(), "更新字典值");
596 614
                 return dicValueBLL.Update(dicBaseModel);
597 615
             }
598 616
             else
599 617
             {
600
-                return dicValueBLL.Add(dicBaseModel) > 0;
618
+                
619
+                int id = dicValueBLL.Add(dicBaseModel);
620
+                AddAction("t_sys_dictionaryvalue", id.ToMyString(), "添加字典值");
621
+                return id > 0;
601 622
             }
602 623
         }
603 624
 
@@ -609,6 +630,7 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
609 630
         [AcceptVerbs(HttpVerbs.Get)]
610 631
         public bool DeleteValueData(int id)
611 632
         {
633
+            AddAction("t_sys_dictionaryvalue", id.ToMyString(), "删除字典值");
612 634
             return dicValueBLL.Delete(id);
613 635
 
614 636
         }
@@ -711,14 +733,17 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
711 733
         public bool SaveMenuData(T_Sys_ModuleFunctions menuModel)
712 734
         {
713 735
 
714
-
715 736
             if (menuModel.F_FunctionId > 0)
716 737
             {
738
+                AddAction("t_sys_modulefunctions", menuModel.F_FunctionId.ToMyString(), "更新菜单", menuModel.F_Name);
739
+
717 740
                 return menuBLL.Update(menuModel);
718 741
             }
719 742
             else
720 743
             {
721
-                return menuBLL.Add(menuModel) > 0;
744
+              int id = menuBLL.Add(menuModel);
745
+              AddAction("t_sys_modulefunctions", id.ToMyString(), "添加菜单", menuModel.F_Name);
746
+              return id > 0;
722 747
             }
723 748
         }
724 749
 
@@ -731,6 +756,7 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
731 756
         [AcceptVerbs(HttpVerbs.Get)]
732 757
         public bool DeleteMenuData(int menuId)
733 758
         {
759
+            AddAction("t_sys_modulefunctions", menuId.ToMyString(), "删除菜单");
734 760
             return menuBLL.Delete(menuId);
735 761
 
736 762
         }
@@ -804,6 +830,7 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
804 830
                 oldUserModel.F_SeatRight = userModel.F_SeatRight;
805 831
                 oldUserModel.F_Password = userModel.F_Password;
806 832
                 oldUserModel.F_Remark = userModel.F_Remark;
833
+                AddAction("t_sys_useraccount", userModel.F_UserId.ToMyString(), "更新用户", userModel.F_UserName);
807 834
                 return userBLL.Update(oldUserModel);
808 835
             }
809 836
             else
@@ -811,13 +838,13 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
811 838
                 userModel.F_HJType = 0;
812 839
                 userModel.F_GroupId = 1;
813 840
 
814
-                if (userModel.F_SeatFlag)
841
+                if (userModel.F_SeatFlag&&false)
815 842
                 {
816 843
                     #region 调用接口插入用户信息
817 844
                     try
818 845
                     {
819 846
                         StringBuilder returnStr = new StringBuilder();
820
-                        string wxAddUrl = "http://zzmetro-kf.sujie-china.com/api/customer/insert";
847
+                        string wxAddUrl = "http://rexian.zzmetro.com/api/customer/insert";
821 848
                         UserInfo model = new UserInfo();
822 849
                         model.name = userModel.F_UserCode;
823 850
 
@@ -834,10 +861,10 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
834 861
                 }
835 862
 
836 863
 
837
-
838
-
839
-
840
-                return userBLL.Add(userModel) > 0;
864
+                
865
+                int userid = userBLL.Add(userModel);
866
+                AddAction("t_sys_useraccount", userid.ToMyString(), "新增用户", userModel.F_UserName);
867
+                return userid > 0;
841 868
             }
842 869
         }
843 870
         /// <summary>
@@ -848,8 +875,8 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
848 875
         [AcceptVerbs(HttpVerbs.Get)]
849 876
         public bool DeleteUserData(int userId)
850 877
         {
878
+            AddAction("t_sys_useraccount", userId.ToMyString(), "删除用户");
851 879
             return userBLL.Delete(userId);
852
-
853 880
         }
854 881
         /// <summary>
855 882
         /// 获取用户数据
@@ -919,13 +946,30 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
919 946
             return View(model);
920 947
         }
921 948
 
949
+        /// </summary>
950
+        [AcceptVerbs(HttpVerbs.Post)]
951
+        public ActionResult CheckPwd(string pwd)
952
+        {
953
+            checkpwd.Chkrslt chkrslt = checkpwd.PasswordStrength(pwd);
954
+
955
+            return Json(new
956
+            {
957
+                code = chkrslt.RSL ? 0 : 1,
958
+                msg = chkrslt.MSG
959
+            });
960
+        }
961
+
922 962
         /// <summary>
923 963
         ///保存修改密码
924 964
         /// </summary>
925 965
         [AcceptVerbs(HttpVerbs.Post)]
926 966
         public string UpdateUserPwd(Model.T_Sys_UserAccount model)
927 967
         {
928
-
968
+            checkpwd.Chkrslt chkrslt = checkpwd.PasswordStrength(model.password);
969
+            if(!chkrslt.RSL)
970
+            {
971
+                return chkrslt.MSG;
972
+            }
929 973
             string AddRersult = "false";
930 974
             if (model.F_UserId > 0)
931 975
             {
@@ -936,6 +980,7 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
936 980
                     newModel.F_Password = model.password;
937 981
                     if (userBLL.Update(newModel))
938 982
                     {
983
+                        AddAction("t_sys_useraccount", model.F_UserId.ToMyString(), "修改密码");
939 984
                         AddRersult = "True";
940 985
                     }
941 986
                 }
@@ -1209,8 +1254,9 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
1209 1254
                     oldnoticeinfoModel.F_Content = noticeinfoModel.F_Content;
1210 1255
                     oldnoticeinfoModel.F_ReceiveInfo = noticeinfoModel.F_ReceiveInfo;
1211 1256
                     oldnoticeinfoModel.F_DeviceId = noticeinfoModel.F_DeviceId;
1212
-                    oldnoticeinfoModel.F_State = 1;
1257
+                    oldnoticeinfoModel.F_State = 1;                    
1213 1258
                     result = noticeBLL.Update(oldnoticeinfoModel);
1259
+                    AddAction("t_msg_noticeinfo", oldnoticeinfoModel.F_NoticeId.ToMyString(), "修改公告");
1214 1260
                 }
1215 1261
                 else
1216 1262
                 {
@@ -1219,7 +1265,9 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
1219 1265
                     noticeinfoModel.F_State = 1;
1220 1266
                     noticeinfoModel.F_CreateOn = DateTime.Now;
1221 1267
                     readdate = noticeinfoModel.F_CreateOn;
1222
-                    noticeid = noticeBLL.Add(noticeinfoModel); 
1268
+                    
1269
+                    noticeid = noticeBLL.Add(noticeinfoModel);
1270
+                    AddAction("t_msg_noticeinfo", noticeid.ToMyString(), "添加公告");
1223 1271
                 } 
1224 1272
                 //指定方式发送公告
1225 1273
                 if (noticeinfoModel.F_DeviceId > 0)
@@ -1287,6 +1335,7 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
1287 1335
                 if (dt.Rows.Count > 0)
1288 1336
                 { 
1289 1337
                     res = noticeBLL.Delete(noticeId);
1338
+                    AddAction("t_msg_noticeinfo", noticeId.ToMyString(), "删除公告");
1290 1339
                     //指定部门发公告 
1291 1340
                     dtuser = new YTSoft.BaseCallCenter.BLL.T_Sys_UserAccount().GetList("1=1 and F_DeptId= " + Convert.ToInt32( dt.Rows[0]["F_ReceiveInfo"].ToString()) ).Tables[0];
1292 1341
                     foreach (DataRow dr in dtuser.Rows)

+ 1 - 1
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/WXInterFaceController.cs

@@ -274,7 +274,7 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
274 274
                     try
275 275
                     {
276 276
                         StringBuilder returnStr = new StringBuilder();
277
-                        string wxAddUrl = string.Format("http://zzmetro-kf.sujie-china.com/api/customer/close/{0}/{1}", recordId, resorderbase);
277
+                        string wxAddUrl = string.Format("http://rexian.zzmetro.com/api/customer/close/{0}/{1}", recordId, resorderbase);
278 278
                         HttpHelper.HttpGet(wxAddUrl);
279 279
 
280 280
                     }

+ 4 - 2
web/YTSoft.BaseCallCenter.MVCWeb/Views/Default/SSO.cshtml

@@ -61,15 +61,17 @@
61 61
   <script type="text/javascript">
62 62
       $(function () {
63 63
           //任何需要执行的js特效
64
-          if ("@ViewBag.Return"== "success") {
64
+          if ("@ViewBag.Return" == "success") {
65 65
               location.href = "/Main/Index";
66 66
               helper.cookies.set('callState', 1);
67 67
               helper.cookies.set('clsCookie', "");
68 68
           }
69
-          else {
69
+          else if ("@ViewBag.Return" == "没有登录") {
70 70
               alert("这时候跳转到集团登陆页-" + "@ViewBag.Return");
71 71
               window.location = "https://portal.zzmetro.cn:4443/ZZMSsoLogin/zzmteroLogin.jsp";
72 72
           }
73
+          else {
74
+              alert("没有权限,这个没权限展示好看点");}
73 75
       })
74 76
 </script>
75 77
 </body>

+ 0 - 1
web/YTSoft.BaseCallCenter.MVCWeb/YTSoft.BaseCallCenter.MVCWeb.csproj

@@ -141,7 +141,6 @@
141 141
     <Compile Include="Controllers\SMSManagerController.cs" />
142 142
     <Compile Include="Controllers\SysAdmin\DepartmentController.cs" />
143 143
     <Compile Include="Controllers\SystemManageController.cs" />
144
-    <Compile Include="Controllers\WebHelper.cs" />
145 144
     <Compile Include="Controllers\WorkFlowController.cs" />
146 145
     <Compile Include="Controllers\Order\WorkOrderController.cs" />
147 146
     <Compile Include="Controllers\WXInterFaceController.cs" />