Selaa lähdekoodia

工单添加”被投诉单位“字段

lihai 6 vuotta sitten
vanhempi
commit
c1e10219e9

File diff suppressed because it is too large
+ 22 - 8
CallCenterApi/CallCenterApi.DAL/T_Bus_WorkOrder.cs


+ 18 - 14
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -157,7 +157,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
157 157
             }
158 158
 
159 159
             string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName"
160
-                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName";
160
+                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
161 161
 
162 162
             if (isdc > 0)
163 163
             {
@@ -422,7 +422,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
422 422
                 pagesize = Convert.ToInt32(strpagesize);
423 423
             }
424 424
             string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName"
425
-                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName";
425
+                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
426 426
 
427 427
             if (isdc > 0)
428 428
             {
@@ -768,7 +768,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
768 768
             }
769 769
 
770 770
             string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName"
771
-                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName";
771
+                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
772 772
 
773 773
             if (isdc > 0)
774 774
             {
@@ -1095,7 +1095,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1095 1095
                 pagesize = Convert.ToInt32(strpagesize);
1096 1096
             }
1097 1097
             string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName"
1098
-                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName";
1098
+                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
1099 1099
 
1100 1100
             if (isdc > 0)
1101 1101
             {
@@ -1351,7 +1351,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1351 1351
                 pagesize = Convert.ToInt32(strpagesize);
1352 1352
             }
1353 1353
             string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName"
1354
-                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName";
1354
+                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
1355 1355
 
1356 1356
             if (isdc > 0)
1357 1357
             {
@@ -1605,7 +1605,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1605 1605
             }
1606 1606
 
1607 1607
             string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName"
1608
-                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName";
1608
+                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
1609 1609
 
1610 1610
             if (isdc > 0)
1611 1611
             {
@@ -1852,7 +1852,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1852 1852
             }
1853 1853
 
1854 1854
             string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName"
1855
-                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName";
1855
+                + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
1856 1856
 
1857 1857
             if (isdc > 0)
1858 1858
             {
@@ -2060,7 +2060,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2060 2060
             }
2061 2061
 
2062 2062
             string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName"
2063
-                 + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName";
2063
+                 + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
2064 2064
 
2065 2065
             if (isdc > 0)
2066 2066
             {
@@ -2465,7 +2465,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2465 2465
             }
2466 2466
 
2467 2467
             string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName"
2468
-                 + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName"
2468
+                 + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit"
2469 2469
                  + ",dbo.GetDeptNames(F_NoticeDeptIds) as NoticeDeptName";
2470 2470
 
2471 2471
             if (isdc > 0)
@@ -2651,7 +2651,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2651 2651
             }
2652 2652
 
2653 2653
             string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName"
2654
-                 + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName"
2654
+                 + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit"
2655 2655
                  + ",dbo.GetDeptNames(F_NoticeDeptIds) as NoticeDeptName";
2656 2656
 
2657 2657
             if (isdc > 0)
@@ -2738,7 +2738,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2738 2738
             if (!string.IsNullOrEmpty(strworkorderid))
2739 2739
             {
2740 2740
                 string sql = "select *,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName1,dbo.GetDictionaryName(F_InfoSource) as SourceName"
2741
-                 + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName"
2741
+                 + ",dbo.GetDeptNames(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName,dbo.GetDeptNames(F_DealDeptId) as DealDeptName,dbo.GetDemandsTypeName(F_DemandsTypeID) as DemandsTypeName,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit"
2742 2742
                  + ",dbo.GetDeptNames(F_NoticeDeptIds) as NoticeDeptName,dbo.GetAreaName(F_SourceArea) as AreaName "
2743 2743
                 + " from T_Bus_WorkOrder where F_WorkOrderId ='" + strworkorderid + "'";
2744 2744
                 var dt = DbHelperSQL.Query(sql).Tables[0];
@@ -3370,6 +3370,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3370 3370
 
3371 3371
                 string callid = RequestString.GetFormString("callid");
3372 3372
                 int demandstype = RequestString.GetInt("demandstype",0);//诉求分类编号
3373
+                int complainedunitid = RequestString.GetInt("complainedunitid", 0);//被投诉单位
3373 3374
 
3374 3375
 
3375 3376
                 using (TransactionScope trans = new TransactionScope())
@@ -3418,11 +3419,14 @@ namespace CallCenterApi.Interface.Controllers.workorder
3418 3419
                     //20191203 zhengbingbing 新增诉求分类字段
3419 3420
                     if (demandstype > 0)
3420 3421
                     {
3421
-                        modelT_Bus_WorkOrder.F_DemandsTypeID = demandstype;
3422
+                        modelT_Bus_WorkOrder.F_DemandsTypeID = demandstype.ToString();
3422 3423
                         Model.T_Bus_DemandsType dModel = demandstypeBLL.GetModel(demandstype);
3423 3424
                         if (dModel != null)
3424 3425
                             modelT_Bus_WorkOrder.F_DemandsType = dModel.F_Code;
3425 3426
                     }
3427
+                    //20200109 lihai 新增 被投诉单位
3428
+                    if (complainedunitid > 0)
3429
+                        modelT_Bus_WorkOrder.F_ComplainedUnitID = complainedunitid;
3426 3430
 
3427 3431
                     //如果选择即刻答复:是,即为直办,工单结束
3428 3432
                     if (isresult == 1)
@@ -3930,7 +3934,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3930 3934
 
3931 3935
                         if (demandstype > 0)
3932 3936
                         {
3933
-                            modelT_Bus_WorkOrder.F_DemandsTypeID = demandstype;
3937
+                            modelT_Bus_WorkOrder.F_DemandsTypeID = demandstype.ToString();
3934 3938
                             Model.T_Bus_DemandsType dModel = demandstypeBLL.GetModel(demandstype);
3935 3939
                             if (dModel != null)
3936 3940
                                 modelT_Bus_WorkOrder.F_DemandsType = dModel.F_Code;
@@ -6598,7 +6602,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
6598 6602
                         modelT_Bus_WorkOrder.F_Level = level;
6599 6603
                         if (demandstype > 0)
6600 6604
                         {
6601
-                            modelT_Bus_WorkOrder.F_DemandsTypeID = demandstype;
6605
+                            modelT_Bus_WorkOrder.F_DemandsTypeID = demandstype.ToString();
6602 6606
                             Model.T_Bus_DemandsType dModel = demandstypeBLL.GetModel(demandstype);
6603 6607
                             if (dModel != null)
6604 6608
                                 modelT_Bus_WorkOrder.F_DemandsType = dModel.F_Code;

+ 2 - 1
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Web.config

@@ -17,7 +17,8 @@
17 17
     <add key="smssign" value="中鑫之宝"/>
18 18
   </appSettings>
19 19
   <connectionStrings>
20
-    <add name="ConnectionString" connectionString="Data Source=192.168.4.18;User ID=sa;pwd=800100;Initial Catalog=XYX12345;"/>
20
+    <!--<add name="ConnectionString" connectionString="Data Source=192.168.4.18;User ID=sa;pwd=800100;Initial Catalog=XYX12345;"/>-->
21
+    <add name="ConnectionString" connectionString="Data Source=192.168.8.3;User ID=sa;pwd=800100;Initial Catalog=XinYe12345;"/>
21 22
   </connectionStrings>
22 23
   <system.web>
23 24
     <compilation debug="true" targetFramework="4.5"/>

+ 20 - 2
CallCenterApi/CallCenterApi.Model/T_Bus_WorkOrder.cs

@@ -67,8 +67,10 @@ namespace CallCenterApi.Model
67 67
         private int? _f_isdelete = 0;
68 68
         private string _f_deleteuser;
69 69
         private DateTime? _f_deletetime;
70
-        private int? _f_demandstypeid = 0;
70
+        //private int? _f_demandstypeid = 0;
71
+        private string _f_demandstypeid;
71 72
         private string _f_demandstype;
73
+        private int? _f_complainedunitid = 0;
72 74
         /// <summary>
73 75
         /// 
74 76
         /// </summary>
@@ -525,10 +527,18 @@ namespace CallCenterApi.Model
525 527
             set { _f_deletetime = value; }
526 528
             get { return _f_deletetime; }
527 529
         }
530
+        ///// <summary>
531
+        ///// 诉求分类编号
532
+        ///// </summary>
533
+        //public int? F_DemandsTypeID
534
+        //{
535
+        //    set { _f_demandstypeid = value; }
536
+        //    get { return _f_demandstypeid; }
537
+        //}
528 538
         /// <summary>
529 539
         /// 诉求分类编号
530 540
         /// </summary>
531
-        public int? F_DemandsTypeID
541
+        public string F_DemandsTypeID
532 542
         {
533 543
             set { _f_demandstypeid = value; }
534 544
             get { return _f_demandstypeid; }
@@ -541,6 +551,14 @@ namespace CallCenterApi.Model
541 551
             set { _f_demandstype = value; }
542 552
             get { return _f_demandstype; }
543 553
         }
554
+        /// <summary>
555
+        /// 被投诉单位Id
556
+        /// </summary>
557
+        public int? F_ComplainedUnitID
558
+        {
559
+            set { _f_complainedunitid = value; }
560
+            get { return _f_complainedunitid; }
561
+        }
544 562
         #endregion Model
545 563
 
546 564
     }

+ 8 - 0
sql/工单添加字段.sql

@@ -0,0 +1,8 @@
1
+
2
+ALTER TABLE T_Bus_WorkOrder ADD [F_ComplainedUnitID] INT DEFAULT(0)
3
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'±»Í¶Ëßµ¥Î»id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_WorkOrder', @level2type=N'COLUMN',@level2name=N'F_ComplainedUnitID'
4
+GO
5
+
6
+ALTER TABLE T_Bus_WorkOrder ADD [F_DemandsTypeID] VARCHAR(200) NULL
7
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ËßÇó·ÖÀàid' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_WorkOrder', @level2type=N'COLUMN',@level2name=N'F_DemandsTypeID'
8
+GO