Selaa lähdekoodia

知识库等文档问题

liyuanyuan 2 vuotta sitten
vanhempi
commit
f15306e498

+ 5 - 1
RMYY_CallCenter_Api.Dal/T_Con_WorkOrder.cs

@@ -792,7 +792,11 @@ namespace RMYY_CallCenter_Api.Dal
792 792
                 {
793 793
                     model.F_AppointmentTime = DateTime.Parse(row["F_AppointmentTime"].ToString());
794 794
                 }
795
-                
795
+                if (row["F_ComplaintSource"] != null && row["F_ComplaintSource"].ToString() != "")
796
+                {
797
+                    model.F_ComplaintSource  = int.Parse(row["F_ComplaintSource"].ToString());
798
+                }
799
+
796 800
             }
797 801
             return model;
798 802
         }

+ 15 - 0
RMYY_CallCenter_Api/Controllers/FaultRepairController.cs

@@ -764,8 +764,17 @@ namespace RMYY_CallCenter_Api.Controllers
764 764
         public ActionResult DDZXTransfer(string WorkOrderCode, string ToUserCode, string ToDept)
765 765
         {
766 766
             Model.T_FaultRepair_Base model = baseBll.GetModel(WorkOrderCode);
767
+
768
+
769
+
767 770
             if (model != null)// && !string.IsNullOrEmpty(ToUserCode) && !string.IsNullOrEmpty(ToDept))
768 771
             {
772
+                if (model.F_WorkOrderState == (int)EnumFaultRepairWorkOrderState.receive )
773
+                {
774
+                    return Error("工单已经指派");
775
+                }
776
+
777
+
769 778
                 string mes = "";
770 779
                 var dicvalue = new Model.T_Sys_GongDan();
771 780
                 dicvalue = new Bll.T_Sys_GongDan().GetModel(Convert.ToInt32(model.F_WorkOrderCategory));
@@ -908,6 +917,12 @@ namespace RMYY_CallCenter_Api.Controllers
908 917
                 return Error("没有获取到工单号");
909 918
             }
910 919
 
920
+            if (model.F_WorkOrderState == (int)EnumFaultRepairWorkOrderState.receive)
921
+            {
922
+                return Error("工单已经指派");
923
+            }
924
+
925
+
911 926
             if (!string.IsNullOrEmpty(maintenanceDept))
912 927
             {
913 928
                 model.F_AssignTime = DateTime.Now;

+ 8 - 1
RMYY_CallCenter_Api/Controllers/SchedulingController.cs

@@ -608,12 +608,19 @@ namespace RMYY_CallCenter_Api.Controllers
608 608
         //调度中心指派
609 609
         public ActionResult DDZXTransfer(string WorkOrderCode, string DealMan, string DealDept)
610 610
         {
611
+            Model.T_IntegratedScheduling_Base model = baseBll.GetModel(WorkOrderCode);
612
+
613
+            if (model!=null && model.F_WorkOrderState == (int)EnumSchedullingWorkOrderState.receive)
614
+            {
615
+                return Error("工单已经指派");
616
+            }
617
+
611 618
             if (string.IsNullOrEmpty(DealMan))
612 619
             {
613 620
                 return Error("请选择处理人");
614 621
             }
615 622
 
616
-            Model.T_IntegratedScheduling_Base model = baseBll.GetModel(WorkOrderCode);
623
+           
617 624
             if (model != null)
618 625
             {
619 626
                 string message = "";

+ 3 - 2
RMYY_CallCenter_Api/Controllers/System/KnowledgeController.cs

@@ -32,8 +32,9 @@ namespace RMYY_CallCenter_Api.Controllers.System
32 32
                 sql += $" and (F_KeyWords like'%" + keywords.Trim() + "%' or F_Title like '%" + keywords.Trim() + "%' or F_Content like '%" + keywords.Trim() + "%')";
33 33
             if (typeid != 0)
34 34
             {
35
-                if(GetKnType(typeid)!="")
36
-                sql += $" and F_TypeId in (" + GetKnType(typeid) + ")";
35
+                //if(GetKnType(typeid)!="")
36
+                //sql += $" and F_TypeId in (" + GetKnType(typeid) + ")";
37
+                sql += $" and F_TypeId  ='"+typeid+"'";
37 38
             }
38 39
             int recordCount = 0;
39 40
             dt = Bll.PagerBll.GetListPager

+ 15 - 0
RMYY_CallCenter_Api/Controllers/WorkOrder/Con_WorkOrderController.cs

@@ -613,6 +613,10 @@ namespace RMYY_CallCenter_Api.Controllers
613 613
                         }
614 614
                         else if (opt == 3)//转派
615 615
                         {
616
+                            if (work.F_State == (int)EnumWorkOrderState.assign)
617
+                            {
618
+                                return Error("工单已经指派");
619
+                            }
616 620
                             bool tt = AssignWO(User, work, cont, clid, clbm);
617 621
                             if (tt)
618 622
                             {
@@ -727,6 +731,11 @@ namespace RMYY_CallCenter_Api.Controllers
727 731
                         }
728 732
                         else if (opt == 3)//转派
729 733
                         {
734
+                            if (model.F_State == (int)EnumWorkOrderState.assign)
735
+                            {
736
+                                return Error("工单已经指派");
737
+                            }
738
+
730 739
                             bool tt = AssignWO(User, model, cont, clid , clbm );
731 740
                             if (tt)
732 741
                             {
@@ -1275,6 +1284,12 @@ namespace RMYY_CallCenter_Api.Controllers
1275 1284
                         if (AuditState == 1)
1276 1285
                         {
1277 1286
                             res =logbll.AddLog(wmodel.F_ID, wmodel.F_State.Value,(int)wmodel.F_type1, deptname + ua.F_UserName + "(" + ua.F_UserCode + ")" + "工单审批:已同意审批" + AuditCont, (int)EnumItemType.audit, (int)EnumItemOpt.reaudit, ua.F_UserCode, ua.F_DeptId, ua.F_UserCode);
1287
+                            if (wmodel.F_State == (int)EnumWorkOrderState.assign)
1288
+                            {
1289
+                                return Error("工单已经指派");
1290
+                            }
1291
+
1292
+
1278 1293
                             AssignWO(User, wmodel, "", "", (int)clbm);
1279 1294
                             wmodel.F_State = (int)EnumWorkOrderState.assign;//待处理
1280 1295
                             wmodel.F_AuditState = 1;