Browse Source

修改bug

zhoufan 8 years ago
parent
commit
7616b13a13

+ 6 - 5
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -3771,7 +3771,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3771 3771
                                 AssignedInfo.F_IsDelete = 0;
3772 3772
                                 AssignedInfo.F_IsOverdue = 0;
3773 3773
                                 AssignedInfo.F_IsSure = 0;
3774
-                                AssignedInfo.F_IsReload = 0;
3774
+                                AssignedInfo.F_IsReload = modelT_Bus_AssignedInfo.F_IsReload;
3775 3775
 
3776 3776
                                 assignBLL.Add(AssignedInfo);
3777 3777
                                 #endregion
@@ -4486,7 +4486,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4486 4486
             {
4487 4487
                 string workorderid = RequestString.GetFormString("workorderid");
4488 4488
                 string overseeopinion = RequestString.GetFormString("overseeopinion");//督办意见
4489
-                DateTime newlimittime = DateTime.Parse(RequestString.GetFormString("newlimittime"));//不满意,重办的办理时限
4489
+                DateTime newlimittime = DateTime.Parse(RequestString.GetFormString("newlimittime") + " 23:59:59");//不满意,重办的办理时限
4490 4490
 
4491 4491
                 Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
4492 4492
                 Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetNewModelByWorkOrderID(workorderid);
@@ -4504,7 +4504,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4504 4504
                             if (modelT_Bus_AssignedInfo != null)//转办后重办
4505 4505
                             {
4506 4506
                                 #region 插入交办记录
4507
-                                int n = Int32.Parse(DbHelperSQL.GetSingle("select count(1) from T_Bus_AssignedInfo where F_State=1 and F_IsDelete=0 and F_IsReload=1").ToString());
4507
+                                int n = Int32.Parse(DbHelperSQL.GetSingle("select count(1) from T_Bus_AssignedInfo where F_WorkOrderId='" + modelT_Bus_WorkOrder.F_WorkOrderId + "' and  F_State=1 and F_IsSure=1 and F_IsDelete=0 and isnull(F_IsReload,0)>0").ToString());
4508 4508
                                 Model.T_Bus_AssignedInfo AssignedInfo = new Model.T_Bus_AssignedInfo();
4509 4509
                                 AssignedInfo.F_WorkOrderId = modelT_Bus_WorkOrder.F_WorkOrderId;
4510 4510
                                 AssignedInfo.F_LimitTime = newlimittime;//办理时限
@@ -5424,11 +5424,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
5424 5424
                         #endregion
5425 5425
 
5426 5426
                         #region 保存工单信息
5427
+                        int maxid = Int32.Parse(DbHelperSQL.GetSingle("select max(F_Id) from T_Bus_AssignedInfo where F_WorkOrderId='" + model_T_Bus_Feedback.F_WorkOrderId + "' and  F_State=1 and F_IsSure=1 and F_IsDelete=0 and isnull(F_IsReload,0)>0").ToString());
5427 5428
                         var assign = assignBLL.GetModel(model_T_Bus_Feedback.F_AssignedId.Value);
5428
-                        if (assign.F_IsReload != null && assign.F_IsReload != 1)
5429
+                        if (maxid == assign.F_Id)
5429 5430
                         {
5430 5431
                             var order = workorderBLL.GetModel(model_T_Bus_Feedback.F_WorkOrderId);
5431
-                            order.F_Result= result;//反馈内容
5432
+                            order.F_Result = result;//反馈内容
5432 5433
 
5433 5434
                             workorderBLL.Update(order);
5434 5435
                         }