liyuanyuan 3 lat temu
rodzic
commit
2226ae61ac

+ 4 - 4
RMYY_CallCenter_Api/Common/WorkOrderBase.cs

@@ -263,7 +263,7 @@ namespace RMYY_CallCenter_Api
263 263
         /// </summary>
264 264
         /// <param name="dt"></param>
265 265
         /// <returns></returns>
266
-        public static DataTable SetOtherField(DataTable dt, MENUENUM menuName,string usercode, int roleId = 0, int type = 0)
266
+        public static DataTable SetOtherField(DataTable dt, MENUENUM menuName,string usercode, int roleId = 0, int type = 0,int mysubmit=0)
267 267
         {
268 268
             if (dt.Columns.Contains("Buttons") && dt.Columns.Contains("GapTime") && dt.Columns.Contains("StateName"))
269 269
             {
@@ -355,7 +355,7 @@ namespace RMYY_CallCenter_Api
355 355
                 //接单人在接单之后,如果该工单类型上设置的“可延期次数”大于0显示“延期”按钮;点击延期按钮进行验证是否超过设定的延期次数,超过提醒“已超过规定延迟次数”
356 356
                 int categoryType = 0;
357 357
 
358
-                if (menuName == MENUENUM.工单列表 || menuName == MENUENUM.我的提交)
358
+                if (menuName == MENUENUM.工单列表 || (menuName == MENUENUM.我的提交 && mysubmit==0))
359 359
                 {
360 360
                     categoryType = Convert.ToInt32(dr["F_SonType"].ToString());
361 361
                 }
@@ -399,8 +399,8 @@ namespace RMYY_CallCenter_Api
399 399
 
400 400
                     allButtons.Remove(hasButton);
401 401
                 }
402
-                //  我的提交页面,数据有我的提交和我处理的, 只有自己申请的工单 能催单
403
-                if (menuName== MENUENUM.我的提交)
402
+                // 工单管理  我的提交页面,数据有我的提交和我处理的, 只有自己申请的工单 能催单
403
+                if (menuName== MENUENUM.我的提交 && mysubmit == 0)
404 404
                 {
405 405
                     if (dr["F_Proposer"].ToString() != usercode)
406 406
                     {

+ 11 - 0
RMYY_CallCenter_Api/Controllers/FaultRepairController.cs

@@ -1945,6 +1945,17 @@ namespace RMYY_CallCenter_Api.Controllers
1945 1945
 
1946 1946
 
1947 1947
         #region 添加操作记录
1948
+        public bool AddOperatorLogNew(string content, int type, string workordercode,string usercode)
1949
+        {
1950
+            Model.T_FaultRepair_OperationLog model = new Model.T_FaultRepair_OperationLog();
1951
+            model.F_LogContent = content;
1952
+            model.F_OperationTime = DateTime.Now;
1953
+            model.F_OperationType = type;
1954
+            model.F_Operator = usercode;
1955
+            model.F_WorkOrderCode = workordercode;
1956
+            logBll.Add(model);
1957
+            return true;
1958
+        }
1948 1959
         public bool AddOperatorLog(string content, int type, string workordercode)
1949 1960
         {
1950 1961
             Model.T_FaultRepair_OperationLog model = new Model.T_FaultRepair_OperationLog();

+ 15 - 2
RMYY_CallCenter_Api/Controllers/SchedulingController.cs

@@ -802,7 +802,7 @@ namespace RMYY_CallCenter_Api.Controllers
802 802
                                                 );
803 803
 
804 804
 
805
-                datatable = WorkOrderBase.SetOtherField(datatable, MENUENUM.我的提交,  User.F_UserCode, User.F_RoleId, 2000);
805
+                datatable = WorkOrderBase.SetOtherField(datatable, MENUENUM.我的提交,  User.F_UserCode, User.F_RoleId, 2000,1);
806 806
 
807 807
                 var obj = new
808 808
                 {
@@ -950,7 +950,20 @@ namespace RMYY_CallCenter_Api.Controllers
950 950
 
951 951
 
952 952
         #region 添加操作记录
953
-        public  bool AddOperatorLog(string content, int type, string workordercode)
953
+        public bool AddOperatorLogNew(string content, int type, string workordercode,string usercode)
954
+        {
955
+            Model.T_IntegratedScheduling_OperationLog model = new Model.T_IntegratedScheduling_OperationLog();
956
+            model.F_LogContent = content;
957
+            model.F_OperationTime = DateTime.Now;
958
+            model.F_OperationType = type;
959
+            model.F_Operator = usercode;
960
+            model.F_WorkOrderCode = workordercode;
961
+            logBll.Add(model);
962
+            return true;
963
+        }
964
+
965
+
966
+        public bool AddOperatorLog(string content, int type, string workordercode)
954 967
         {
955 968
             Model.T_IntegratedScheduling_OperationLog model = new Model.T_IntegratedScheduling_OperationLog();
956 969
             model.F_LogContent = content;

+ 2 - 2
RMYY_CallCenter_Api/Controllers/WorkOrder/WorkCommonController.cs

@@ -217,12 +217,12 @@ namespace RMYY_CallCenter_Api.Controllers.WorkOrder
217 217
                     break;
218 218
                 case 2000:
219 219
                     SchedulingController sc = new SchedulingController();
220
-                    sc.AddOperatorLog(content, (int)EnumOperatorType.urge, workordercode);
220
+                    sc.AddOperatorLogNew(content, (int)EnumOperatorType.urge, workordercode,User.F_UserCode);
221 221
                     smytype = EnumSmsType.comprehensive ;             
222 222
                     break;
223 223
                 case 3000:
224 224
                     FaultRepairController cc = new FaultRepairController();
225
-                    cc.AddOperatorLog(content, (int)EnumOperatorType.urge, workordercode);                  
225
+                    cc.AddOperatorLogNew(content, (int)EnumOperatorType.urge, workordercode,User.F_UserCode);                  
226 226
                     smytype = EnumSmsType.repair;
227 227
                     break;
228 228
                 case 4000: