|
|
@@ -2571,7 +2571,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2571
|
2571
|
private List<ItemListLog> ItemList(List<Model.T_Wo_WorkOrderItem_New> list)
|
|
2572
|
2572
|
{
|
|
2573
|
2573
|
List<ItemListLog> Modellist = new List<ItemListLog>();
|
|
2574
|
|
-
|
|
|
2574
|
+ string strsql = "";
|
|
2575
|
2575
|
foreach (var it in list)
|
|
2576
|
2576
|
{
|
|
2577
|
2577
|
ItemListLog log = new ItemListLog();
|
|
|
@@ -2584,7 +2584,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2584
|
2584
|
log.F_WoID = workOrder.GetModel(it.F_WoID).F_WorkOrderCode;
|
|
2585
|
2585
|
}
|
|
2586
|
2586
|
}
|
|
2587
|
|
-
|
|
|
2587
|
+ var womodel = workOrder.GetModel(it.F_WoID);
|
|
2588
|
2588
|
log.F_WoState = it.F_WoState;
|
|
2589
|
2589
|
log.F_ItemType = it.F_ItemType;
|
|
2590
|
2590
|
log.F_OptType = it.F_OptType;
|
|
|
@@ -2621,7 +2621,22 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2621
|
2621
|
}
|
|
2622
|
2622
|
|
|
2623
|
2623
|
}
|
|
2624
|
|
-
|
|
|
2624
|
+ if (womodel.F_Type == "2")
|
|
|
2625
|
+ {
|
|
|
2626
|
+ int Typeid = int.Parse(womodel.F_QuestionType.Trim());
|
|
|
2627
|
+ Model.T_Wo_QuestionManage manage = quesBLL.GetModel(Typeid);
|
|
|
2628
|
+ if (manage != null)
|
|
|
2629
|
+ {
|
|
|
2630
|
+ var Question3 = manage.F_QuestionName;
|
|
|
2631
|
+ if (manage.F_Label == "3")
|
|
|
2632
|
+ {
|
|
|
2633
|
+ var Manage1 = quesBLL.GetModel(int.Parse(manage.F_ParentId.ToString()));//获取问题类别
|
|
|
2634
|
+ var Manage2 = quesBLL.GetModel(int.Parse(Manage1.F_ParentId.ToString()));//获取问题类别
|
|
|
2635
|
+ var Question1 = Manage2.F_QuestionName;//问题类别1
|
|
|
2636
|
+ var Question2 = Manage1.F_QuestionName;//问题类别2
|
|
|
2637
|
+ }
|
|
|
2638
|
+ }
|
|
|
2639
|
+ }
|
|
2625
|
2640
|
var configlist = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='NodeLimit' ");
|
|
2626
|
2641
|
if (configlist != null && configlist.Count() > 0)
|
|
2627
|
2642
|
{
|
|
|
@@ -9648,7 +9663,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
9648
|
9663
|
{
|
|
9649
|
9664
|
foreach (var item in itemlist)
|
|
9650
|
9665
|
{
|
|
9651
|
|
- if (item.F_Type == 1 && model.F_State!=(int)EnumWorkOrderState.evaluate)
|
|
|
9666
|
+ if (item.F_Type == 1 && model.F_State != (int)EnumWorkOrderState.evaluate)
|
|
9652
|
9667
|
{
|
|
9653
|
9668
|
model.F_State = wostate;
|
|
9654
|
9669
|
AddLog((int)model.F_ID, wostate, content, (int)EnumItemType.evaluate, optbut, touser, 0, nowUser, model.F_limit, sms, "", 0, 1);
|
|
|
@@ -9658,6 +9673,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
9658
|
9673
|
model.F_State2 = wostate;
|
|
9659
|
9674
|
AddLog((int)model.F_ID, wostate, content, (int)EnumItemType.evaluate, optbut, touser, 0, nowUser, model.F_limit, sms, "", 0, 2);
|
|
9660
|
9675
|
}
|
|
|
9676
|
+ else if (item.F_Type == 3)
|
|
|
9677
|
+ {
|
|
|
9678
|
+ model.F_State = wostate;
|
|
|
9679
|
+ model.F_State2 = wostate;
|
|
|
9680
|
+ AddLog((int)model.F_ID, wostate, content, (int)EnumItemType.evaluate, optbut, touser, 0, nowUser, model.F_limit, sms, "", 0, 3);
|
|
|
9681
|
+ }
|
|
9661
|
9682
|
}
|
|
9662
|
9683
|
}
|
|
9663
|
9684
|
//var itemid = AddLog((int)model.F_ID, wostate, content, (int)EnumItemType.deal, optbut, touser, 0, nowUser, model.F_limit, sms);
|