|
|
@@ -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;
|