|
|
@@ -424,7 +424,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
424
|
424
|
if (newusercode.Trim() != "" && newusercode != "undefined")
|
|
425
|
425
|
{
|
|
426
|
426
|
sql += " and F_WorkOrderId in (select F_WorkOrderId from T_Bus_RemindRecord " +
|
|
427
|
|
- "where F_State != 2 and F_IsDelete = 0 and F_Type = 1 and Supervisor in ("+ newusercode + ")) ";
|
|
|
427
|
+ "where F_IsDelete = 0 and F_Type = 1 and Supervisor in ("+ newusercode + ")) ";
|
|
428
|
428
|
}
|
|
429
|
429
|
}
|
|
430
|
430
|
else
|
|
|
@@ -432,7 +432,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
432
|
432
|
if (newusercode.Trim() != "" && newusercode != "undefined")
|
|
433
|
433
|
{
|
|
434
|
434
|
sql += " and F_WorkOrderId in (select F_WorkOrderId from T_Bus_RemindRecord " +
|
|
435
|
|
- "where F_State != 2 and F_IsDelete = 0 and F_Type = 1 and Supervisor = " + newusercode + ") ";
|
|
|
435
|
+ "where F_IsDelete = 0 and F_Type = 1 and Supervisor = " + newusercode + ") ";
|
|
436
|
436
|
}
|
|
437
|
437
|
}
|
|
438
|
438
|
}
|
|
|
@@ -3000,10 +3000,19 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
3000
|
3000
|
int isyq = RequestString.GetInt("isyq", -1);
|
|
3001
|
3001
|
if (strstate.Trim() != "" && strstate != "undefined")
|
|
3002
|
3002
|
{
|
|
3003
|
|
- if (strstate.Trim() == ((int)EnumWorkState.neworder).ToString())
|
|
3004
|
|
- sql += " and F_WorkState in (" + (int)EnumWorkState.neworder + "," + (int)EnumWorkState.audit + ") ";
|
|
|
3003
|
+
|
|
|
3004
|
+ if (strstate=="4")
|
|
|
3005
|
+ {
|
|
|
3006
|
+ sql += " and (F_WorkState =4 or (F_Identification=0 and F_WorkState=8 ) )";
|
|
|
3007
|
+ }
|
|
3005
|
3008
|
else
|
|
3006
|
|
- sql += " and F_WorkState = '" + strstate.Trim() + "' ";
|
|
|
3009
|
+ {
|
|
|
3010
|
+ if (strstate.Trim() == ((int)EnumWorkState.neworder).ToString())
|
|
|
3011
|
+ sql += " and F_WorkState in (" + (int)EnumWorkState.neworder + "," + (int)EnumWorkState.audit + ") ";
|
|
|
3012
|
+ else
|
|
|
3013
|
+ sql += " and F_WorkState = '" + strstate.Trim() + "' ";
|
|
|
3014
|
+
|
|
|
3015
|
+ }
|
|
3007
|
3016
|
//sql += " and F_WorkState = '" + strstate.Trim() + "' ";
|
|
3008
|
3017
|
}
|
|
3009
|
3018
|
else
|