Procházet zdrojové kódy

被投诉单位 调整

lihai %!s(int64=6) %!d(string=před) roky
rodič
revize
4b55d25103

+ 11 - 11
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,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
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.GetDeptNames(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,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
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.GetDeptNames(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,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
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.GetDeptNames(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,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
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.GetDeptNames(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,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
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.GetDeptNames(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,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
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.GetDeptNames(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,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
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.GetDeptNames(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,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit";
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.GetDeptNames(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,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit"
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.GetDeptNames(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,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit"
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.GetDeptNames(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,dbo.GetDictionaryName(F_ComplainedUnitID) as ComplainedUnit"
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.GetDeptNames(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];