Просмотр исходного кода

调整是否可以增加工单

zhengbingbing лет назад: 7
Родитель
Сommit
dd1dd5abc7

+ 26 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallOutPlanController.cs

@@ -835,7 +835,19 @@ namespace CallCenterApi.Interface.Controllers.callout
835 835
                     pageindex,
836 836
                     true,
837 837
                     out recordCount);
838
-
838
+            #region 判断是否已存在工单
839
+            foreach (DataRow item in dt.Rows)
840
+            {
841
+                string wjid = item["F_Id"].ToString();
842
+                int c=new BLL.T_Wo_WorkOrder().GetRecordCount(" isnull(WjID,'')='"+wjid+"'");
843
+                if (c > 0)
844
+                {
845
+                    item["ExpandSintField1"] = 1;
846
+                }
847
+                else
848
+                    item["ExpandSintField1"] = 0;
849
+            }
850
+            #endregion
839 851
             var obj = new
840 852
             {
841 853
                 rows = dt,
@@ -885,7 +897,19 @@ namespace CallCenterApi.Interface.Controllers.callout
885 897
                     pageindex,
886 898
                     true,
887 899
                     out recordCount);
888
-
900
+            #region 判断是否已存在工单
901
+            foreach (DataRow item in dt.Rows)
902
+            {
903
+                string wjid = item["F_Id"].ToString();
904
+                int c = new BLL.T_Wo_WorkOrder().GetRecordCount(" isnull(WjID,'')='" + wjid + "'");
905
+                if (c > 0)
906
+                {
907
+                    item["ExpandSintField1"] = 1;
908
+                }
909
+                else
910
+                    item["ExpandSintField1"] = 0;
911
+            }
912
+            #endregion
889 913
             var obj = new
890 914
             {
891 915
                 rows = dt,

+ 1 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

@@ -590,6 +590,7 @@ namespace CallCenterApi.Interface.Controllers.tel
590 590
                             model.Source = "微信";
591 591
                         #region 无需参数字段
592 592
                         model.Type = 3;//默认为投诉工单
593
+                        model.WjID = 0;
593 594
                         model.State = 0;
594 595
                         model.IsDel = 0;
595 596
                         model.IsReturn = 0;