|
|
@@ -638,6 +638,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
638
|
638
|
int smalltype = RequestString.GetInt("smalltype", 0);
|
|
639
|
639
|
int sourcearea = RequestString.GetInt("sourcearea", 0);
|
|
640
|
640
|
int deptid = RequestString.GetInt("deptid", 0);
|
|
|
641
|
+ int issatisfie = RequestString.GetInt("issatisfie", -1);//0不满意 1满意
|
|
641
|
642
|
|
|
642
|
643
|
string strpageindex = RequestString.GetQueryString("page");
|
|
643
|
644
|
int pageindex = 1;
|
|
|
@@ -650,6 +651,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
650
|
651
|
if (strstate.Trim() != "" && strstate != "undefined")
|
|
651
|
652
|
{
|
|
652
|
653
|
sql += " and F_WorkState = '" + strstate.Trim() + "' ";
|
|
|
654
|
+ if (strstate.Trim() == "7" && issatisfie != -1)
|
|
|
655
|
+ {
|
|
|
656
|
+ sql += " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_VisitResult where F_State=1 and F_IsDelete=0 ";
|
|
|
657
|
+ sql += " and F_IsSatisfie='" + issatisfie + "')";
|
|
|
658
|
+ }
|
|
653
|
659
|
}
|
|
654
|
660
|
else
|
|
655
|
661
|
{
|
|
|
@@ -2840,7 +2846,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2840
|
2846
|
string dbsql = "select *,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDeptName(F_DeptId) as DeptName "
|
|
2841
|
2847
|
+ "from T_Bus_RemindRecord where F_Type=1 and F_State=1 and F_IsDelete=0 and F_WorkOrderId ='" + strworkorderid + "'";
|
|
2842
|
2848
|
string pssql = "select *,dbo.GetUserName(F_CreateUser) as UserName "
|
|
2843
|
|
- + "from T_Bus_SubmitSuper where F_State=1 and F_IsDelete=0 and F_WorkOrderId ='" + strworkorderid + "'";
|
|
|
2849
|
+ + "from T_Bus_SubmitSuper where F_State=1 and F_IsDelete=0 and F_Type=1 and F_WorkOrderId ='" + strworkorderid + "'";
|
|
|
2850
|
+ string zssql = "select *,dbo.GetUserName(F_CreateUser) as UserName "
|
|
|
2851
|
+ + "from T_Bus_SubmitSuper where F_State=1 and F_IsDelete=0 and F_Type=2 and F_WorkOrderId ='" + strworkorderid + "'";
|
|
2844
|
2852
|
string jbsql = "select *,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDeptName(F_MainDeptId) as DeptName,dbo.GetDeptNames(F_OtherDeptIds) as OtherDeptName "
|
|
2845
|
2853
|
+ "from T_Bus_AssignedInfo where F_State=1 and F_IsDelete=0 and F_WorkOrderId ='" + strworkorderid + "'";
|
|
2846
|
2854
|
string thsql = "select *,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDeptName(F_CreateDeptId) as DeptName "
|
|
|
@@ -2893,6 +2901,14 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2893
|
2901
|
}
|
|
2894
|
2902
|
#endregion
|
|
2895
|
2903
|
|
|
|
2904
|
+ #region 指示信息
|
|
|
2905
|
+ var zsdt = DbHelperSQL.Query(zssql).Tables[0];
|
|
|
2906
|
+ if (configfj != null)
|
|
|
2907
|
+ {
|
|
|
2908
|
+ zsdt = BindFileData(zsdt, configfj.F_ParamValue);
|
|
|
2909
|
+ }
|
|
|
2910
|
+ #endregion
|
|
|
2911
|
+
|
|
2896
|
2912
|
#region 督办信息
|
|
2897
|
2913
|
var dbdt = DbHelperSQL.Query(dbsql).Tables[0];
|
|
2898
|
2914
|
if (configfj != null)
|
|
|
@@ -3027,6 +3043,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
3027
|
3043
|
data = dt,
|
|
3028
|
3044
|
jcdata = jcdt,
|
|
3029
|
3045
|
psdata = psdt,
|
|
|
3046
|
+ zsdata = zsdt,
|
|
3030
|
3047
|
dbdata = dbdt,
|
|
3031
|
3048
|
jbdata = jbdt,
|
|
3032
|
3049
|
thdata = thdt,
|