Procházet zdrojové kódy

Merge branch 'master' of http://192.168.1.222:3000/duhongyu/Anyang_api

zhoufan %!s(int64=4) %!d(string=před) roky
rodič
revize
1bffdec1b9

+ 19 - 3
CallCenterApi/CallCenterApi.DAL/T_Bus_WorkOrder.cs

@@ -279,6 +279,8 @@ namespace CallCenterApi.DAL
279 279
             strSql.Append("F_Content=@F_Content, ");
280 280
             strSql.Append("F_MainWorkorder=@F_MainWorkorder, ");
281 281
             strSql.Append("F_SubWorkorder=@F_SubWorkorder, ");
282
+            strSql.Append("F_MainWorkorder1=@F_MainWorkorder1, ");
283
+            strSql.Append("F_SubWorkorder1=@F_SubWorkorder1, ");
282 284
             strSql.Append("F_Administrative=@F_Administrative, ");
283 285
             
284 286
             strSql.Append("F_IsSms=@F_IsSms ");
@@ -356,6 +358,8 @@ namespace CallCenterApi.DAL
356 358
                    new SqlParameter("@F_Content", SqlDbType.VarChar,-1),
357 359
                    new SqlParameter("@F_MainWorkorder", SqlDbType.VarChar,100),
358 360
                     new SqlParameter("@F_SubWorkorder", SqlDbType.VarChar,-1),
361
+                     new SqlParameter("@F_MainWorkorder1", SqlDbType.VarChar,500),
362
+                    new SqlParameter("@F_SubWorkorder1", SqlDbType.VarChar,500),
359 363
                        new SqlParameter("@F_Administrative", SqlDbType.VarChar,500),
360 364
                     
361 365
                        new SqlParameter("@F_IsSms", SqlDbType.Int,4),
@@ -432,9 +436,11 @@ namespace CallCenterApi.DAL
432 436
             parameters[69].Value = model.F_Content;
433 437
             parameters[70].Value = model.F_MainWorkorder;
434 438
             parameters[71].Value = model.F_SubWorkorder ;
435
-            parameters[72].Value = model.F_Administrative;
436
-            parameters[73].Value = model.F_IsSms;
437
-            parameters[74].Value = model.F_Id;
439
+            parameters[72].Value = model.F_MainWorkorder1;
440
+            parameters[73].Value = model.F_SubWorkorder1;
441
+            parameters[74].Value = model.F_Administrative;
442
+            parameters[75].Value = model.F_IsSms;
443
+            parameters[76].Value = model.F_Id;
438 444
 
439 445
             int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
440 446
             if (rows > 0)
@@ -870,6 +876,16 @@ namespace CallCenterApi.DAL
870 876
                 {
871 877
                     model.F_SubWorkorder = row["F_SubWorkorder"].ToString();
872 878
                 }
879
+
880
+
881
+                if (row["F_MainWorkorder1"] != null)
882
+                {
883
+                    model.F_MainWorkorder1 = row["F_MainWorkorder1"].ToString();
884
+                }
885
+                if (row["F_SubWorkorder1"] != null)
886
+                {
887
+                    model.F_SubWorkorder1 = row["F_SubWorkorder1"].ToString();
888
+                }
873 889
                 if (row["F_PhoneType"] != null)
874 890
                 {
875 891
                     model.F_PhoneType = row["F_PhoneType"].ToString();

+ 13 - 35
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -204,7 +204,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
204 204
                         if (jianhang==3)
205 205
                             sql += " and F_InfoSource = '2501' ";
206 206
                         else 
207
-                        sql += " and F_InfoSource != '1' ";
207
+                        sql += " and F_InfoSource != '1' and F_InfoSource != '2501'";
208 208
                         
209 209
                     }
210 210
                     else
@@ -771,7 +771,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
771 771
                 if (jianhang == 3)
772 772
                     sql += " and F_InfoSource = '2501' ";
773 773
                 else
774
-                    sql += " and F_InfoSource != '1' ";
774
+                    sql += " and F_InfoSource != '1'and F_InfoSource != '2501' ";
775 775
             }
776 776
             else
777 777
             {
@@ -1513,7 +1513,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1513 1513
                 if (jianhang == 3)
1514 1514
                     sql += " and F_InfoSource = '2501' ";
1515 1515
                 else
1516
-                    sql += " and F_InfoSource != '1' ";
1516
+                    sql += " and F_InfoSource != '1' and F_InfoSource != '2501'";
1517 1517
             }
1518 1518
             else
1519 1519
             {
@@ -2372,10 +2372,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
2372 2372
             else if (jianhang == 1)
2373 2373
             {
2374 2374
 
2375
-                sql += " and F_InfoSource != '1' ";
2375
+                sql += " and F_InfoSource != '1' and F_InfoSource != '2501'";
2376 2376
             }
2377 2377
             else if (jianhang == 3)
2378
-                sql += " and F_InfoSource = '2501' ";
2378
+                sql += " and F_InfoSource = '2501'  ";
2379 2379
             
2380 2380
                 string incomingcall = RequestString.GetString("incomingcall");//来电电话
2381 2381
             if (incomingcall.Trim() != "" && incomingcall != "undefined")
@@ -2844,7 +2844,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2844 2844
                 if (jianhang == 3)
2845 2845
                     sql += " and F_InfoSource = '2501' ";
2846 2846
                 else
2847
-                    sql += " and F_InfoSource != '1' ";
2847
+                    sql += " and F_InfoSource != '1' and F_InfoSource != '2501'";
2848 2848
             }
2849 2849
             else
2850 2850
             {
@@ -3282,7 +3282,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3282 3282
                 if (jianhang == 3)
3283 3283
                     sql += " and F_InfoSource = '2501' ";
3284 3284
                 else
3285
-                    sql += " and F_InfoSource != '1' ";
3285
+                    sql += " and F_InfoSource != '1' and F_InfoSource != '2501'";
3286 3286
             }
3287 3287
             else
3288 3288
             {
@@ -4124,7 +4124,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4124 4124
                 if (jianhang == 3)
4125 4125
                     sql += " and F_InfoSource = '2501' ";
4126 4126
                 else
4127
-                    sql += " and F_InfoSource != '1' ";
4127
+                    sql += " and F_InfoSource != '1' and F_InfoSource != '2501'";
4128 4128
             }
4129 4129
             else
4130 4130
             {
@@ -4498,7 +4498,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4498 4498
                 if (jianhang == 3)
4499 4499
                     sql += " and F_InfoSource = '2501' ";
4500 4500
                 else
4501
-                    sql += " and F_InfoSource != '1' ";
4501
+                    sql += " and F_InfoSource != '1' and F_InfoSource != '2501'";
4502 4502
             }
4503 4503
             else
4504 4504
             {
@@ -4879,7 +4879,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4879 4879
             }
4880 4880
             else if (jianhang ==1)
4881 4881
             {
4882
-                sql += " and F_InfoSource != '1' ";
4882
+                sql += " and F_InfoSource != '1' and F_InfoSource != '2501'";
4883 4883
             }
4884 4884
            else  if (jianhang == 3)
4885 4885
                 sql += " and F_InfoSource = '2501' ";
@@ -5777,7 +5777,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
5777 5777
                 if (jianhang == 3)
5778 5778
                     sql += " and F_InfoSource = '2501' ";
5779 5779
                 else
5780
-                    sql += " and F_InfoSource != '1' ";
5780
+                    sql += " and F_InfoSource != '1'and F_InfoSource != '2501' ";
5781 5781
             }
5782 5782
             else
5783 5783
             {
@@ -6176,7 +6176,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
6176 6176
                 if (jianhang == 3)
6177 6177
                     sql += " and F_InfoSource = '2501' ";
6178 6178
                 else
6179
-                    sql += " and F_InfoSource != '1' ";
6179
+                    sql += " and F_InfoSource != '1' and F_InfoSource != '2501'";
6180 6180
             }
6181 6181
             else
6182 6182
             {
@@ -6565,7 +6565,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
6565 6565
                 if (jianhang == 3)
6566 6566
                     sql += " and F_InfoSource = '2501' ";
6567 6567
                 else
6568
-                    sql += " and F_InfoSource != '1' ";
6568
+                    sql += " and F_InfoSource != '1' and F_InfoSource != '2501'";
6569 6569
             }
6570 6570
             else
6571 6571
             {
@@ -9869,11 +9869,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
9869 9869
         //[Authority]
9870 9870
         public ActionResult AssignWorkOrderNew()
9871 9871
         {
9872
-            
9873
-
9874
-            
9875
-
9876
-
9877 9872
             if (User.F_RoleCode == "ZXLD" || User.F_RoleCode == "ZXLDGLYGLY" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG"|| User .F_RoleCode == "DBZY"|| User.F_RoleCode == "MTDD")
9878 9873
             {
9879 9874
                 string workorderid = RequestString.GetFormString("workorderid");
@@ -10433,22 +10428,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
10433 10428
                 string files = RequestString.GetFormString("files");
10434 10429
                 int state = RequestString.GetInt("state", 0);
10435 10430
                 int nextid = RequestString.GetInt("nextid", 0);
10436
-
10437
-              
10438
-                //string resdatetime = "";
10439
-                //if (limittime > 0)
10440
-                //{
10441
-                //    string resdate = DateTime.Now.Date.ToString("yyyy-MM-dd");
10442
-                //    DataTable dt = DbHelperSQL.Query("select top " + limittime + " F_OffDate from  T_Sys_WorkOFFDays  where F_OffState = 1   and F_OffDate>'" + resdate + "' order by F_OffDate").Tables[0];
10443
-                //    resdatetime = dt.Rows[dt.Rows.Count - 1]["F_OffDate"].ToString();
10444
-                //}
10445
-                //else
10446
-                //{
10447
-                //    return Error("请选择办理时限");
10448
-                //}
10449
-                //  resdatetime = Convert.ToDateTime(resdatetime).ToString("yyyy-MM-dd") + " 23:59:59 ";
10450
-
10451
-
10452 10431
                 Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
10453 10432
                 Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetNewModelByWorkOrderID(workorderid);
10454 10433
                 Model.T_Bus_AssignedInfo_Next modelT_Bus_AssignedInfo_Next = new Model.T_Bus_AssignedInfo_Next();
@@ -10460,7 +10439,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
10460 10439
                         return Error("办理时限不能大于当前办理时限");
10461 10440
                     }
10462 10441
                     int type = AssignDeptType(modelT_Bus_AssignedInfo, User.F_DeptId);
10463
-                    //if ((type == 1 && modelT_Bus_WorkOrder.F_WorkState == 4) || User.F_RoleCode == "GLY")
10464 10442
                     if ((type == 1 && (modelT_Bus_WorkOrder.F_WorkState == (int)EnumWorkState.dealing|| modelT_Bus_WorkOrder.F_WorkState == (int)EnumWorkState.reload )) || (User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG"))
10465 10443
                     {
10466 10444
                         if (modelT_Bus_AssignedInfo.F_IsNext == null || modelT_Bus_AssignedInfo.F_IsNext.Value == 0 || modelT_Bus_AssignedInfo.F_IsNext.Value == 4)

+ 11 - 4
CallCenterApi/CallCenterApi.Model/T_Bus_WorkOrder.cs

@@ -672,15 +672,22 @@ namespace CallCenterApi.Model
672 672
         public string F_AdditionalReply { set; get; }
673 673
 
674 674
         public string F_Content { set; get; }
675
-       /// <summary>
675
+         /// <summary>
676 676
         /// 主工单编号
677
-       /// </summary>
678
-      public string F_MainWorkorder { set; get; }
677
+        /// </summary>
678
+        public string F_MainWorkorder { set; get; }
679 679
         /// <summary>
680 680
         /// 子工单编号
681 681
         /// </summary>
682 682
         public string F_SubWorkorder { set; get; }
683
-
683
+        /// <summary>
684
+        /// 主工单编号
685
+        /// </summary>
686
+        public string F_MainWorkorder1 { set; get; }
687
+        /// <summary>
688
+        /// 子工单编号
689
+        /// </summary>
690
+        public string F_SubWorkorder1 { set; get; }
684 691
         public string F_PhoneType { set; get; }
685 692
         #endregion Model
686 693