|
|
@@ -239,7 +239,7 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
239
|
239
|
if (User != null)
|
|
240
|
240
|
{
|
|
241
|
241
|
#region 添加判断
|
|
242
|
|
- if (!(input.F_Type1 > 0 && input.F_Type1 < 6))
|
|
|
242
|
+ if (!(input.F_Type1!=1001 || input.F_Type1 != 1002 ||input.F_Type1 != 1003 || input.F_Type1 != 1004 || input.F_Type1 != 1005))
|
|
243
|
243
|
return Error("工单类型错误!");
|
|
244
|
244
|
if (opt == 0)
|
|
245
|
245
|
return Error("请选择处理方式!");
|
|
|
@@ -247,12 +247,12 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
247
|
247
|
return Error("请输入客户姓名!");
|
|
248
|
248
|
if (string.IsNullOrEmpty(input.F_Phon))
|
|
249
|
249
|
return Error("请输入客户电话!");
|
|
250
|
|
- if (input.F_Type1 == 4)
|
|
|
250
|
+ if (input.F_Type1 == 1004)
|
|
251
|
251
|
{
|
|
252
|
252
|
if (string.IsNullOrEmpty(input.F_ServiceItems))
|
|
253
|
253
|
return Error("请选择服务项目!");
|
|
254
|
254
|
}
|
|
255
|
|
- if (input.F_Type1 == 3)
|
|
|
255
|
+ if (input.F_Type1 == 1003)
|
|
256
|
256
|
{
|
|
257
|
257
|
if (string.IsNullOrEmpty(input.F_Address))
|
|
258
|
258
|
return Error("请填写地区!");
|
|
|
@@ -278,7 +278,7 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
278
|
278
|
{
|
|
279
|
279
|
if (work != null)
|
|
280
|
280
|
{
|
|
281
|
|
- if(input.F_Type1==1 || input.F_Type1 == 3)
|
|
|
281
|
+ if(input.F_Type1==1001 || input.F_Type1 == 1003)
|
|
282
|
282
|
{
|
|
283
|
283
|
var res = DealWO(User, work, cont, "", 1);
|
|
284
|
284
|
if (res)
|
|
|
@@ -295,7 +295,7 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
295
|
295
|
}
|
|
296
|
296
|
else if (opt == 2)//提交审核
|
|
297
|
297
|
{
|
|
298
|
|
- if (input.F_Type1 == 2)//投诉建议需要提交审核
|
|
|
298
|
+ if (input.F_Type1 == 1002)//投诉建议需要提交审核
|
|
299
|
299
|
{
|
|
300
|
300
|
Model.T_Sys_UserAccount userleader = userbll.GetModelList(" F_DeptId=" + deptmodel.F_DeptId + " and F_RoleId=60 ").FirstOrDefault();//护士长角色
|
|
301
|
301
|
if (userleader != null)
|
|
|
@@ -310,7 +310,7 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
310
|
310
|
}
|
|
311
|
311
|
else if (opt == 3)//转派
|
|
312
|
312
|
{
|
|
313
|
|
- if (input.F_Type1 == 4 || input.F_Type1 == 5)//家庭预约,静脉置管维护 立即处理并给健康事业部或置管室 推送一条钉钉消息
|
|
|
313
|
+ if (input.F_Type1 == 1004 || input.F_Type1 == 1005)//家庭预约,静脉置管维护 立即处理并给健康事业部或置管室 推送一条钉钉消息
|
|
314
|
314
|
{
|
|
315
|
315
|
int clbm = 0;//健康事业部的部门Id
|
|
316
|
316
|
bool tt = DealWO(User, work, cont, "", 1);
|
|
|
@@ -420,7 +420,7 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
420
|
420
|
{
|
|
421
|
421
|
if (model != null)
|
|
422
|
422
|
{
|
|
423
|
|
- if (input.F_Type1 == 1 || input.F_Type1 == 3)
|
|
|
423
|
+ if (input.F_Type1 == 1001 || input.F_Type1 == 1003)
|
|
424
|
424
|
{
|
|
425
|
425
|
var res = DealWO(user, model, cont, "", 1);
|
|
426
|
426
|
if (res)
|
|
|
@@ -437,7 +437,7 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
437
|
437
|
}
|
|
438
|
438
|
else if (opt == 2)//提交审核
|
|
439
|
439
|
{
|
|
440
|
|
- if (input.F_Type1 == 2)//投诉建议需要提交审核
|
|
|
440
|
+ if (input.F_Type1 == 1002)//投诉建议需要提交审核
|
|
441
|
441
|
{
|
|
442
|
442
|
Model.T_Sys_UserAccount userleader = userbll.GetModelList(" F_DeptId=" + deptmodel.F_DeptId + " and F_RoleId=60 ").FirstOrDefault();//护士长角色
|
|
443
|
443
|
if (userleader != null)
|
|
|
@@ -452,7 +452,7 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
452
|
452
|
}
|
|
453
|
453
|
else if (opt == 3)//转派
|
|
454
|
454
|
{
|
|
455
|
|
- if (input.F_Type1 == 4 || input.F_Type1 == 5)//家庭预约,静脉置管维护 立即处理并给健康事业部或置管室 推送一条钉钉消息
|
|
|
455
|
+ if (input.F_Type1 == 1004 || input.F_Type1 == 1005)//家庭预约,静脉置管维护 立即处理并给健康事业部或置管室 推送一条钉钉消息
|
|
456
|
456
|
{
|
|
457
|
457
|
int clbm = 0;//健康事业部的部门Id
|
|
458
|
458
|
bool tt = DealWO(user, model, cont, "", 1);
|
|
|
@@ -537,11 +537,11 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
537
|
537
|
model.F_Phon = input.F_Phon;//来电人电话
|
|
538
|
538
|
model.F_CusAddress = input.F_CusAddress;//地址
|
|
539
|
539
|
model.F_IdCard = input.F_IdCard;//身份证号
|
|
540
|
|
- if (input.F_Type1 == 4)
|
|
|
540
|
+ if (input.F_Type1 == 1004)
|
|
541
|
541
|
{
|
|
542
|
542
|
model.F_ServiceItems = input.F_ServiceItems;//服务项目
|
|
543
|
543
|
}
|
|
544
|
|
- if (input.F_Type1 == 3)
|
|
|
544
|
+ if (input.F_Type1 == 1003)
|
|
545
|
545
|
{
|
|
546
|
546
|
model.F_Address = input.F_Address;//地区
|
|
547
|
547
|
model.F_FirstCheckHospital = input.F_FirstCheckHospital;//首次检查医院
|
|
|
@@ -552,7 +552,7 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
552
|
552
|
else
|
|
553
|
553
|
model.F_Urgency = model.F_Urgency;
|
|
554
|
554
|
}
|
|
555
|
|
- if (input.F_Type1 == 5)
|
|
|
555
|
+ if (input.F_Type1 == 1005)
|
|
556
|
556
|
{
|
|
557
|
557
|
model.F_Cathetertype = input.F_Cathetertype;//
|
|
558
|
558
|
model.F_Catheterdept = input.F_Catheterdept;//置管科室
|
|
|
@@ -644,19 +644,19 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
644
|
644
|
Inputmodel.F_Source = item.F_Source;//工单来源
|
|
645
|
645
|
|
|
646
|
646
|
Inputmodel.F_Type1 = item.F_type1;//工单来源
|
|
647
|
|
- if (item.F_type1 == 1)
|
|
|
647
|
+ if (item.F_type1 == 1001)
|
|
648
|
648
|
{
|
|
649
|
649
|
Inputmodel.F_TypeName1 = "健康咨询";//工单类别最高
|
|
650
|
650
|
}
|
|
651
|
|
- else if (item.F_type1 == 2)
|
|
|
651
|
+ else if (item.F_type1 == 1002)
|
|
652
|
652
|
{
|
|
653
|
653
|
Inputmodel.F_TypeName1 = "投诉建议";
|
|
654
|
654
|
}
|
|
655
|
|
- else if (item.F_type1 == 3)
|
|
|
655
|
+ else if (item.F_type1 == 1003)
|
|
656
|
656
|
{
|
|
657
|
657
|
Inputmodel.F_TypeName1 = "外聘专家咨询";
|
|
658
|
658
|
}
|
|
659
|
|
- else if (item.F_type1 == 4)
|
|
|
659
|
+ else if (item.F_type1 == 1004)
|
|
660
|
660
|
{
|
|
661
|
661
|
Inputmodel.F_TypeName1 = "家庭预约上门";
|
|
662
|
662
|
}
|
|
|
@@ -725,11 +725,11 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
725
|
725
|
Inputmodel.F_CusAddress = item.F_CusAddress;//地址
|
|
726
|
726
|
Inputmodel.F_Phon = item.F_Phon;//电话
|
|
727
|
727
|
Inputmodel.F_IdCard = item.F_IdCard;//身份证号
|
|
728
|
|
- if (item.F_type1 == 4)
|
|
|
728
|
+ if (item.F_type1 == 1004)
|
|
729
|
729
|
{
|
|
730
|
730
|
Inputmodel.F_ServiceItems = item.F_ServiceItems;//服务项目
|
|
731
|
731
|
}
|
|
732
|
|
- if (item.F_type1 == 3)
|
|
|
732
|
+ if (item.F_type1 == 1003)
|
|
733
|
733
|
{
|
|
734
|
734
|
Inputmodel.F_Address = item.F_Address;//地区
|
|
735
|
735
|
Inputmodel.F_FirstCheckHospital = item.F_FirstCheckHospital;//首次检查医院
|
|
|
@@ -737,7 +737,7 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
737
|
737
|
Inputmodel.F_FirstFindTime = item.F_FirstFindTime;//首次发现肺结节时间
|
|
738
|
738
|
Inputmodel.F_Urgency = item.F_Urgency;//紧急程度
|
|
739
|
739
|
}
|
|
740
|
|
- if (item.F_type1 == 5)
|
|
|
740
|
+ if (item.F_type1 == 1005)
|
|
741
|
741
|
{
|
|
742
|
742
|
Inputmodel.F_Cathetertype = item.F_Cathetertype;//置管类型
|
|
743
|
743
|
Inputmodel.F_Catheterdept = item.F_Catheterdept;//置管科室
|