|
|
@@ -748,7 +748,7 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
748
|
748
|
etime += " 23:59:59";
|
|
749
|
749
|
where += " and T_Worepairdate >='" +Convert.ToDateTime(stime)+ "' and T_Worepairdate<= '"+Convert.ToDateTime(etime)+"'";
|
|
750
|
750
|
}
|
|
751
|
|
- //var list = wrbBll.GetListByPage(where, "", pageindex, pagesise);
|
|
|
751
|
+ // var list = wrbBll.GetListByPage(where, "", pageindex, pagesise);
|
|
752
|
752
|
//return Success("成功",list);
|
|
753
|
753
|
string tablename = "";
|
|
754
|
754
|
tablename += "(select a.*,b.T_Woname,c.F_DeptName,d.F_UserName createrepairmanusername,e.F_UserName repairmanusername,f.F_UserName tousercodeusername,g.F_UserName dealrepairmanusername,h.F_Name T_Wowocodetypename from T_WowoRepair_Base a ";
|
|
|
@@ -776,6 +776,66 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
776
|
776
|
return Success("暂无记录");
|
|
777
|
777
|
}
|
|
778
|
778
|
/// <summary>
|
|
|
779
|
+ /// 获取报表所需信息
|
|
|
780
|
+ /// </summary>
|
|
|
781
|
+ /// <param name="T_Worepairman"></param>
|
|
|
782
|
+ /// <param name="T_Worepairmanphone"></param>
|
|
|
783
|
+ /// <param name="state"></param>
|
|
|
784
|
+ /// <param name="stime"></param>
|
|
|
785
|
+ /// <param name="etime"></param>
|
|
|
786
|
+ /// <param name="T_Wowocodetype"></param>
|
|
|
787
|
+ /// <param name="T_Worepairdeptid"></param>
|
|
|
788
|
+ /// <param name="pageindex"></param>
|
|
|
789
|
+ /// <param name="pagesise"></param>
|
|
|
790
|
+ /// <returns></returns>
|
|
|
791
|
+ public ActionResult GetListRepairlistall(string T_Worepairman, string T_Worepairmanphone, int state, string stime, string etime, int T_Wowocodetype = 0, int T_Worepairdeptid = 0)
|
|
|
792
|
+ {
|
|
|
793
|
+ DataTable date = new DataTable();
|
|
|
794
|
+ string where = "";
|
|
|
795
|
+ if (!string.IsNullOrEmpty(T_Worepairman))
|
|
|
796
|
+ {
|
|
|
797
|
+ where += " and T_Worepairman like '%" + T_Worepairman + "%'";
|
|
|
798
|
+ }
|
|
|
799
|
+ if (!string.IsNullOrEmpty(T_Worepairmanphone))
|
|
|
800
|
+ {
|
|
|
801
|
+ where += " and T_Worepairmanphone ='" + T_Worepairmanphone + "'";
|
|
|
802
|
+ }
|
|
|
803
|
+ if (T_Wowocodetype != 0)
|
|
|
804
|
+ {
|
|
|
805
|
+ where += " and T_Wowocodetype =" + T_Wowocodetype;
|
|
|
806
|
+ }
|
|
|
807
|
+ if (T_Worepairdeptid != 0)
|
|
|
808
|
+ {
|
|
|
809
|
+ where += " and T_Worepairdeptid =" + T_Worepairdeptid;
|
|
|
810
|
+ }
|
|
|
811
|
+ if (state >= 0)
|
|
|
812
|
+ {
|
|
|
813
|
+ where += " and T_Wowocodestate =" + state;
|
|
|
814
|
+ }
|
|
|
815
|
+
|
|
|
816
|
+ if (!string.IsNullOrEmpty(stime) && !string.IsNullOrEmpty(etime))
|
|
|
817
|
+ {
|
|
|
818
|
+ stime += " 00:00:00";
|
|
|
819
|
+ etime += " 23:59:59";
|
|
|
820
|
+ where += " and T_Worepairdate >='" + Convert.ToDateTime(stime) + "' and T_Worepairdate<= '" + Convert.ToDateTime(etime) + "'";
|
|
|
821
|
+ }
|
|
|
822
|
+ var list = wrbBll.GetListRepairlistall(where);
|
|
|
823
|
+ if (list.Count > 0)
|
|
|
824
|
+ {
|
|
|
825
|
+ var obj = new
|
|
|
826
|
+ {
|
|
|
827
|
+ state = "success",
|
|
|
828
|
+ message = "成功",
|
|
|
829
|
+ rows = list
|
|
|
830
|
+ };
|
|
|
831
|
+ return Content(obj.ToJson());
|
|
|
832
|
+ }
|
|
|
833
|
+ else
|
|
|
834
|
+ return Success("暂无记录");
|
|
|
835
|
+ }
|
|
|
836
|
+
|
|
|
837
|
+
|
|
|
838
|
+ /// <summary>
|
|
779
|
839
|
/// 获取工单流程
|
|
780
|
840
|
/// </summary>
|
|
781
|
841
|
/// <returns></returns>
|