|
|
@@ -156,8 +156,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
156
|
156
|
pagesize = Convert.ToInt32(strpagesize);
|
|
157
|
157
|
}
|
|
158
|
158
|
|
|
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";
|
|
|
159
|
+ string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName,dbo.GetDictionaryName(F_Key) as KeyName"
|
|
|
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
|
+ + ",((SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',2)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',3)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',4))) AS AddressName";
|
|
161
|
162
|
|
|
162
|
163
|
if (isdc > 0)
|
|
163
|
164
|
{
|
|
|
@@ -421,8 +422,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
421
|
422
|
{
|
|
422
|
423
|
pagesize = Convert.ToInt32(strpagesize);
|
|
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
|
+ string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName,dbo.GetDictionaryName(F_Key) as KeyName"
|
|
|
426
|
+ + ",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"
|
|
|
427
|
+ + ",((SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',2)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',3)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',4))) AS AddressName";
|
|
426
|
428
|
|
|
427
|
429
|
if (isdc > 0)
|
|
428
|
430
|
{
|
|
|
@@ -767,8 +769,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
767
|
769
|
pagesize = Convert.ToInt32(strpagesize);
|
|
768
|
770
|
}
|
|
769
|
771
|
|
|
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";
|
|
|
772
|
+ string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName,dbo.GetDictionaryName(F_Key) as KeyName"
|
|
|
773
|
+ + ",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"
|
|
|
774
|
+ + ",((SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',2)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',3)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',4))) AS AddressName";
|
|
772
|
775
|
|
|
773
|
776
|
if (isdc > 0)
|
|
774
|
777
|
{
|
|
|
@@ -1094,8 +1097,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1094
|
1097
|
{
|
|
1095
|
1098
|
pagesize = Convert.ToInt32(strpagesize);
|
|
1096
|
1099
|
}
|
|
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";
|
|
|
1100
|
+ string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName,dbo.GetDictionaryName(F_Key) as KeyName"
|
|
|
1101
|
+ + ",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"
|
|
|
1102
|
+ + ",((SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',2)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',3)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',4))) AS AddressName";
|
|
1099
|
1103
|
|
|
1100
|
1104
|
if (isdc > 0)
|
|
1101
|
1105
|
{
|
|
|
@@ -1350,8 +1354,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1350
|
1354
|
{
|
|
1351
|
1355
|
pagesize = Convert.ToInt32(strpagesize);
|
|
1352
|
1356
|
}
|
|
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";
|
|
|
1357
|
+ string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName,dbo.GetDictionaryName(F_Key) as KeyName"
|
|
|
1358
|
+ + ",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"
|
|
|
1359
|
+ + ",((SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',2)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',3)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',4))) AS AddressName";
|
|
1355
|
1360
|
|
|
1356
|
1361
|
if (isdc > 0)
|
|
1357
|
1362
|
{
|
|
|
@@ -1604,8 +1609,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1604
|
1609
|
pagesize = Convert.ToInt32(strpagesize);
|
|
1605
|
1610
|
}
|
|
1606
|
1611
|
|
|
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";
|
|
|
1612
|
+ string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName,dbo.GetDictionaryName(F_Key) as KeyName"
|
|
|
1613
|
+ + ",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"
|
|
|
1614
|
+ + ",((SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',2)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',3)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',4))) AS AddressName";
|
|
1609
|
1615
|
|
|
1610
|
1616
|
if (isdc > 0)
|
|
1611
|
1617
|
{
|
|
|
@@ -1851,8 +1857,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1851
|
1857
|
pagesize = Convert.ToInt32(strpagesize);
|
|
1852
|
1858
|
}
|
|
1853
|
1859
|
|
|
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";
|
|
|
1860
|
+ string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName,dbo.GetDictionaryName(F_Key) as KeyName"
|
|
|
1861
|
+ + ",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"
|
|
|
1862
|
+ + ",((SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',2)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',3)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',4))) AS AddressName";
|
|
1856
|
1863
|
|
|
1857
|
1864
|
if (isdc > 0)
|
|
1858
|
1865
|
{
|
|
|
@@ -2059,8 +2066,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2059
|
2066
|
pagesize = Convert.ToInt32(strpagesize);
|
|
2060
|
2067
|
}
|
|
2061
|
2068
|
|
|
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";
|
|
|
2069
|
+ string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName,dbo.GetDictionaryName(F_Key) as KeyName"
|
|
|
2070
|
+ + ",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"
|
|
|
2071
|
+ + ",((SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',2)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',3)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',4))) AS AddressName";
|
|
2064
|
2072
|
|
|
2065
|
2073
|
if (isdc > 0)
|
|
2066
|
2074
|
{
|
|
|
@@ -2224,7 +2232,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2224
|
2232
|
// pagesize = Convert.ToInt32(strpagesize);
|
|
2225
|
2233
|
// }
|
|
2226
|
2234
|
|
|
2227
|
|
- // string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName";
|
|
|
2235
|
+ // string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName,dbo.GetDictionaryName(F_Key) as KeyName";
|
|
2228
|
2236
|
|
|
2229
|
2237
|
// if (isdc > 0)
|
|
2230
|
2238
|
// {
|
|
|
@@ -2464,9 +2472,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2464
|
2472
|
pagesize = Convert.ToInt32(strpagesize);
|
|
2465
|
2473
|
}
|
|
2466
|
2474
|
|
|
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"
|
|
2469
|
|
- + ",dbo.GetDeptNames(F_NoticeDeptIds) as NoticeDeptName";
|
|
|
2475
|
+ string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName,dbo.GetDictionaryName(F_Key) as KeyName"
|
|
|
2476
|
+ + ",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"
|
|
|
2477
|
+ + ",((SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1))) AS AddressName"
|
|
|
2478
|
+ + ",dbo.GetDeptNames(F_NoticeDeptIds) as NoticeDeptName";
|
|
2470
|
2479
|
|
|
2471
|
2480
|
if (isdc > 0)
|
|
2472
|
2481
|
{
|
|
|
@@ -2650,9 +2659,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2650
|
2659
|
pagesize = Convert.ToInt32(strpagesize);
|
|
2651
|
2660
|
}
|
|
2652
|
2661
|
|
|
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"
|
|
2655
|
|
- + ",dbo.GetDeptNames(F_NoticeDeptIds) as NoticeDeptName";
|
|
|
2662
|
+ string cols = "*,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName,dbo.GetDictionaryName(F_Key) as KeyName"
|
|
|
2663
|
+ + ",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"
|
|
|
2664
|
+ + ",((SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1))) AS AddressName"
|
|
|
2665
|
+ + ",dbo.GetDeptNames(F_NoticeDeptIds) as NoticeDeptName";
|
|
2656
|
2666
|
|
|
2657
|
2667
|
if (isdc > 0)
|
|
2658
|
2668
|
{
|
|
|
@@ -2737,9 +2747,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2737
|
2747
|
//int type = RequestString.GetInt("type", 0);//0基本信息1监察意见2领导批示3办理情况4回访信息5督办信息6办理过程
|
|
2738
|
2748
|
if (!string.IsNullOrEmpty(strworkorderid))
|
|
2739
|
2749
|
{
|
|
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"
|
|
2742
|
|
- + ",dbo.GetDeptNames(F_NoticeDeptIds) as NoticeDeptName,dbo.GetAreaName(F_SourceArea) as AreaName "
|
|
|
2750
|
+ string sql = "select *,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName1,dbo.GetDictionaryName(F_InfoSource) as SourceName,dbo.GetDictionaryName(F_Key) as KeyName"
|
|
|
2751
|
+ + ",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"
|
|
|
2752
|
+ + ",((SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',1)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',2)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',3)) +' '+(SELECT Name FROM dbo.T_Sys_Address WHERE Code = dbo.Get_StrArrayStrOfIndex(F_AddressCodes,'|',4))) AS AddressName"
|
|
|
2753
|
+ + ",dbo.GetDeptNames(F_NoticeDeptIds) as NoticeDeptName,dbo.GetAreaName(F_SourceArea) as AreaName "
|
|
2743
|
2754
|
+ " from T_Bus_WorkOrder where F_WorkOrderId ='" + strworkorderid + "'";
|
|
2744
|
2755
|
var dt = DbHelperSQL.Query(sql).Tables[0];
|
|
2745
|
2756
|
if (dt.Rows.Count > 0)
|
|
|
@@ -3371,6 +3382,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
3371
|
3382
|
string callid = RequestString.GetFormString("callid");
|
|
3372
|
3383
|
int demandstype = RequestString.GetInt("demandstype",0);//诉求分类编号
|
|
3373
|
3384
|
int complainedunitid = RequestString.GetInt("complainedunitid", 0);//被投诉单位
|
|
|
3385
|
+ string addresscodes = RequestString.GetFormString("addresscodes"); //F_AddressCodes 地址 省市县乡编号 例如:1111|2222|3333|4444
|
|
3374
|
3386
|
|
|
3375
|
3387
|
|
|
3376
|
3388
|
using (TransactionScope trans = new TransactionScope())
|
|
|
@@ -3427,6 +3439,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
3427
|
3439
|
//20200109 lihai 新增 被投诉单位
|
|
3428
|
3440
|
if (complainedunitid > 0)
|
|
3429
|
3441
|
modelT_Bus_WorkOrder.F_ComplainedUnitID = complainedunitid;
|
|
|
3442
|
+ if(!string.IsNullOrEmpty(addresscodes))
|
|
|
3443
|
+ modelT_Bus_WorkOrder.F_AddressCodes = addresscodes;
|
|
3430
|
3444
|
|
|
3431
|
3445
|
//如果选择即刻答复:是,即为直办,工单结束
|
|
3432
|
3446
|
if (isresult == 1)
|