using CallCenter.Utility;
using CallCenterApi.DB;
using CallCenterApi.Interface.Controllers.Base;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading;
using System.Web;
using System.Web.Mvc;

namespace CallCenterApi.Interface.Controllers
{
    [Authority]
    public class BusPushWorkorderController : BaseController
    {
        //////public class submit_case_info
        //////{
        //////    public List<jsonList> jsonList { set; get; }
        //////}
        //////public class jsonList
        //////{
        //////    /// <summary>
        //////    /// "工单编号",
        //////    /// </summary>
        //////    public string CASE_SERIAL { set; get; }
        //////    /// <summary>
        //////    /// "行政区划代码",
        //////    /// </summary>
        //////    public string AREA_CODE { set; get; }
        //////    /// <summary>
        //////    /// "工单唯一标识",
        //////    /// </summary>
        //////    public string CASE_ID { set; get; }//
        //////    /// <summary>
        //////    /// 诉求人姓名
        //////    /// </summary>
        //////    public string APPLICANT_NAME { set; get; }
        //////    /// <summary>
        //////    /// 诉求人性别
        //////    /// </summary>
        //////    public string APPLICANT_SEX { set; get; }
        //////    /// <summary>
        //////    /// 诉求人年龄
        //////    /// </summary>
        //////    public string APPLICANT_AGE { set; get; }
        //////    /// <summary>
        //////    /// 诉求人联系电话
        //////    /// </summary>
        //////    public string APPLICANT_NUMBER { set; get; }
        //////    /// <summary>
        //////    /// 诉求时间
        //////    /// </summary>
        //////    public string APPLICANT_TIME { set; get; }
        //////    /// <summary>
        //////    /// 话务员姓名
        //////    /// </summary>
        //////    public string HWY_NAME { set; get; }
        //////    /// <summary>
        //////    /// 话务员工号
        //////    /// </summary>
        //////    public string HWY_LOGINID { set; get; }
        //////    /// <summary>
        //////    /// 登记时间
        //////    /// </summary>
        //////    public string CASE_TIME { set; get; }
        //////    /// <summary>
        //////    /// 服务工单标题
        //////    /// </summary>
        //////    public string CASE_TITLE { set; get; }
        //////    /// <summary>
        //////    /// 服务工单内容
        //////    /// </summary>
        //////    public string CASE_CONTENT { set; get; }
        //////    /// <summary>
        //////    /// 诉求渠道
        //////    /// </summary>
        //////    public string CASE_SOURCE { set; get; }
        //////    /// <summary>
        //////    /// 诉求类型
        //////    /// </summary>
        //////    public string CASE_TYPE { set; get; }
        //////    /// <summary>
        //////    /// 诉求归口
        //////    /// </summary>
        //////    public string CASE_ACCORD { set; get; }
        //////    /// <summary>
        //////    /// 诉求人信息是否公开
        //////    /// </summary>
        //////    public string CASE_ISPUBLIC { set; get; }
        //////    /// <summary>
        //////    /// 是否回访
        //////    /// </summary>
        //////    public string CASE_ISVISIT { set; get; }
        //////    /// <summary>
        //////    /// 紧急程度
        //////    /// </summary>
        //////    public string CASE_ISURGENT { set; get; }
        //////    /// <summary>
        //////    /// 经纬度
        //////    /// </summary>
        //////    public string CASE_LNGLAT { set; get; }
        //////    /// <summary>
        //////    /// 诉求情感
        //////    /// </summary>
        //////    public string CASE_EMOTION { set; get; }
        //////    /// <summary>
        //////    /// 诉求详细地址
        //////    /// </summary>
        //////    public string CASE_ADDRESS { set; get; }//""
        //////}
        //////string AREA_CODE = Configs.GetValue("AREACODE");
        //////private int id = 0; int count = 0;
        //////int id1 = 0; int id2 = 0; int id3 = 0; int id4 = 0; int id5 = 0; int id6 = 0;
        //////int id7 = 0; int id8 = 0; int id9 = 0; int count1 = 0; int count2 = 0; int count3 = 0; int count4 = 0; int count5 = 0;
        //////int count6 = 0; int count7 = 0; int count8 = 0; int count9 = 0;

        //////int id10 = 0, count10 = 0;
        //////int id11 = 0, count11 = 0;
        //////int id12 = 0, count12 = 0;
        //////int id13 = 0, count13 = 0;
        //////int id14 = 0, count14 = 0;
        //////int id15 = 0, count15 = 0;
        //////int id16 = 0, count16 = 0;
        //////int id17 = 0, count17 = 0;
        //////int id18 = 0, count18 = 0;
        //////int id19= 0, count19 = 0;
        //////int id20 = 0, count20 = 0;
        ////// int id21 = 0; int count21 = 0;
        ////// int id22 = 0; int count22 = 0;
        //////int id23 = 0; int count23 = 0;
        //////int id24 = 0; int count24 = 0;
        //////int id25 = 0; int count25 = 0;
        //////int id26= 0; int count26 = 0;
        //////int id27 = 0; int count27 = 0;
        //////int id28 = 0; int count28 = 0;
        //////int id29 = 0; int count29 = 0;
        //////int id30 = 0; int count30 = 0;
        //////int id31 = 0; int count31 = 0;
        //////int id32= 0; int count32 = 0;
        //////int id33= 0; int count33 = 0;
        //////int id34 = 0; int count34 = 0;
        //////int id35 = 0; int count35 = 0;
        //////public ActionResult GetLY()
        //////{
        //////    while (true)
        //////    {
        //////       // Thread.Sleep(1000);
        //////        string t = TSWORKORDER();
        //////        if (t == "推送完结")
        //////        {
        //////            return Success("");
        //////        }
        //////        if (t != "推送成功" && t != "推送失败")
        //////        {
                    
        //////            LogFactory.GetLogger("22222").Warn(t);
        //////            id = id + 1;
        //////          //  Thread.Sleep(1000);
        //////            continue;
        //////        }
        //////    }
        //////}


        //////public ActionResult GetLY1()
        //////{
        //////    while (true)
        //////    {
        //////     //   Thread.Sleep(1000);
        //////        string t = TSWORKORDER1();
        //////        if (t == "推送完结")
        //////        {
        //////            return Success("");
        //////        }
        //////        if (t != "推送成功" && t != "推送失败")
        //////        {

        //////            LogFactory.GetLogger("22222").Warn(t);
        //////            id1 = id1 + 1;
        //////           // Thread.Sleep(1000);
        //////            continue;
        //////        }
        //////    }
        //////}

        //////public ActionResult GetLY2()
        //////{
        //////    while (true)
        //////    {
        //////       // Thread.Sleep(1000);
        //////        string t = TSWORKORDER2();
        //////        if (t == "推送完结")
        //////        {
        //////            return Success("");
        //////        }
        //////        if (t != "推送成功" && t != "推送失败")
        //////        {

        //////            LogFactory.GetLogger("22222").Warn(t);
        //////            id2 = id2 + 1;
        //////            //Thread.Sleep(1000);
        //////            continue;
        //////        }
        //////    }
        //////}

        //////public ActionResult GetLY3()
        //////{
        //////    while (true)
        //////    {
        //////       // Thread.Sleep(1000);
        //////        string t = TSWORKORDER3();
        //////        if (t == "推送完结")
        //////        {
        //////            return Success("");
        //////        }
        //////        if (t != "推送成功" && t != "推送失败")
        //////        {

        //////            LogFactory.GetLogger("22222").Warn(t);
        //////            id3 = id3 + 1;
        //////          //  Thread.Sleep(1000);
        //////            continue;
        //////        }
        //////    }
        //////}

        //////public ActionResult GetLY4()
        //////{
        //////    while (true)
        //////    {
        //////      //  Thread.Sleep(1000);
        //////        string t = TSWORKORDER4();
        //////        if (t == "推送完结")
        //////        {
        //////            return Success("");
        //////        }
        //////        if (t != "推送成功" && t != "推送失败")
        //////        {

        //////            LogFactory.GetLogger("22222").Warn(t);
        //////            id4 = id4 + 1;
        //////           // Thread.Sleep(1000);
        //////            continue;
        //////        }
        //////    }
        //////}
        //////public ActionResult GetLY5()
        //////{
        //////    while (true)
        //////    {
        //////       // Thread.Sleep(1000);
        //////        string t = TSWORKORDER5();
        //////        if (t == "推送完结")
        //////        {
        //////            return Success("");
        //////        }
        //////        if (t != "推送成功" && t != "推送失败")
        //////        {

        //////            LogFactory.GetLogger("22222").Warn(t);
        //////            id5 = id5 + 1;
        //////            //Thread.Sleep(1000);
        //////            continue;
        //////        }
        //////    }
        //////}


        //////public ActionResult GetLY6()
        //////{
        //////    while (true)
        //////    {
        //////       // Thread.Sleep(1000);
        //////        string t = TSWORKORDER6();
        //////        if (t == "推送完结")
        //////        {
        //////            return Success("");
        //////        }
        //////        if (t != "推送成功" && t != "推送失败")
        //////        {

        //////            LogFactory.GetLogger("22222").Warn(t);
        //////            id6 = id6 + 1;
        //////           // Thread.Sleep(1000);
        //////            continue;
        //////        }
        //////    }
        //////}

        //////public ActionResult GetLY7()
        //////{
        //////    while (true)
        //////    {
        //////      //  Thread.Sleep(1000);
        //////        string t = TSWORKORDER7();
        //////        if (t == "推送完结")
        //////        {
        //////            return Success("");
        //////        }
        //////        if (t != "推送成功" && t != "推送失败")
        //////        {

        //////            LogFactory.GetLogger("22222").Warn(t);
        //////            id7 = id7 + 1;
        //////          //  Thread.Sleep(1000);
        //////            continue;
        //////        }
        //////    }
        //////}


        //////public ActionResult GetLY8()
        //////{
        //////    while (true)
        //////    {
        //////        //Thread.Sleep(1000);
        //////        string t = TSWORKORDER8();
        //////        if (t == "推送完结")
        //////        {
        //////            return Success("");
        //////        }
        //////        if (t != "推送成功" && t != "推送失败")
        //////        {

        //////            LogFactory.GetLogger("22222").Warn(t);
        //////            id8 = id8 + 1;
        //////           // Thread.Sleep(1000);
        //////            continue;
        //////        }
        //////    }
        //////}
        //////public ActionResult GetLY9()
        //////{
        //////    while (true)
        //////    {
        //////       // Thread.Sleep(1000);
        //////        string t = TSWORKORDER9();
        //////        if (t == "推送完结")
        //////        {
        //////            return Success("");
        //////        }
        //////        if (t != "推送成功" && t != "推送失败")
        //////        {

        //////            LogFactory.GetLogger("22222").Warn(t);
        //////            id9 = id9 + 1;
        //////           // Thread.Sleep(1000);
        //////            continue;
        //////        }
        //////    }
        //////}

        ////////public ActionResult GetLY10()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(1000);
        ////////        string t = TSWORKORDER10();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id10 = id10 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY11()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(1100);
        ////////        string t = TSWORKORDER11();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id11 = id11 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY12()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(1200);
        ////////        string t = TSWORKORDER12();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id12 = id12 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY13()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(1300);
        ////////        string t = TSWORKORDER13();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id13 = id13 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY14()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(1400);
        ////////        string t = TSWORKORDER14();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id14 = id14 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY15()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(1500);
        ////////        string t = TSWORKORDER15();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id15 = id15 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY16()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(1600);
        ////////        string t = TSWORKORDER16();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id16 = id16 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY17()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(1700);
        ////////        string t = TSWORKORDER17();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id17 = id17 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY18()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(1800);
        ////////        string t = TSWORKORDER18();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id18 = id18 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY19()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(1900);
        ////////        string t = TSWORKORDER19();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id19 = id19 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY20()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(2000);
        ////////        string t = TSWORKORDER20();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id20 = id20 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY21()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(2100);
        ////////        string t = TSWORKORDER21();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id21 = id21 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY22()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(2200);
        ////////        string t = TSWORKORDER22();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id22 = id22 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY23()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(2300);
        ////////        string t = TSWORKORDER23();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id23 = id23 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY24()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(2400);
        ////////        string t = TSWORKORDER24();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id24 = id24 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY25()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(2500);
        ////////        string t = TSWORKORDER25();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id25 = id25 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY26()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(2600);
        ////////        string t = TSWORKORDER26();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id26 = id26 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY27()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(2700);
        ////////        string t = TSWORKORDER27();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id27 = id27 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY28()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(2800);
        ////////        string t = TSWORKORDER28();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id28 = id28 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY29()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(2900);
        ////////        string t = TSWORKORDER29();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id29 = id29 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY30()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(3000);
        ////////        string t = TSWORKORDER30();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id30 = id30 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY31()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(3100);
        ////////        string t = TSWORKORDER31();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id31 = id31 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
        ////////public ActionResult GetLY32()
        ////////{
        ////////    while (true)
        ////////    {
        ////////        // Thread.Sleep(3200);
        ////////        string t = TSWORKORDER32();
        ////////        if (t == "推送完结")
        ////////        {
        ////////            return Success("");
        ////////        }
        ////////        if (t != "推送成功" && t != "推送失败")
        ////////        {
        ////////            id32 = id32 + 1;
        ////////            continue;
        ////////        }
        ////////    }
        ////////}
    




        //////public string TSWORKORDER1()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_1";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id1 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count1 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-06-01 01:31:35.160'and F_Id>" + id1 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-07-01 00:00:00' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl1(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua1(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id1 = modellist[modellist.Count - 1].F_Id;
        //////                        count1 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_1 set id='" + id1 + "' ,count='" + count1 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji1(token, modellist);
        //////                            erji1(token, modellist);
        //////                            pingjia1(token, modellist);
        //////                            bajie1(token, modellist);
        //////                            liucheng1(token, modellist);
        //////                            huifangjilu1(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id1 = modellist[modellist.Count - 1].F_Id;
        //////                        count1 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_1 set id='" + id1 + "' ,count='" + count1 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji1(token, modellist);
        //////                            erji1(token, modellist);
        //////                            pingjia1(token, modellist);
        //////                            bajie1(token, modellist);
        //////                            liucheng1(token, modellist);
        //////                            huifangjilu1(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id1 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_1 set id='" + id1 + "'";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}

        //////public string TSWORKORDER2()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_2";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id2 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count2 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-07-01 00:00:00'and F_Id>" + id2 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-08-01 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl2(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua2(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id2 = modellist[modellist.Count - 1].F_Id;
        //////                        count2 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_2 set id='" + id2 + "' ,count='" + count2 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji2(token, modellist);
        //////                            erji2(token, modellist);
        //////                            pingjia2(token, modellist);
        //////                            bajie2(token, modellist);
        //////                            liucheng2(token, modellist);
        //////                            huifangjilu2(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id2 = modellist[modellist.Count - 1].F_Id;
        //////                        count2 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_2 set id='" + id2 + "' ,count='" + count2 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji2(token, modellist);
        //////                            erji2(token, modellist);
        //////                            pingjia2(token, modellist);
        //////                            bajie2(token, modellist);
        //////                            liucheng2(token, modellist);
        //////                            huifangjilu2(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id2 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_2 set id='" + id2 + "'";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
        //////public string TSWORKORDER3()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_3";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id3 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count3 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-08-01 00:00:00'and F_Id>" + id3 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-10-01 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl3(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua3(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id3 = modellist[modellist.Count - 1].F_Id;
        //////                        count3 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_3 set id='" + id3 + "' ,count='" + count3 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji3(token, modellist);
        //////                            erji3(token, modellist);
        //////                            pingjia3(token, modellist);
        //////                            bajie3(token, modellist);
        //////                            liucheng3(token, modellist);
        //////                            huifangjilu3(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id3 = modellist[modellist.Count - 1].F_Id;
        //////                        count3 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_3 set id='" + id3 + "' ,count='" + count3 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji3(token, modellist);
        //////                            erji3(token, modellist);
        //////                            pingjia3(token, modellist);
        //////                            bajie3(token, modellist);
        //////                            liucheng3(token, modellist);
        //////                            huifangjilu3(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id3 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_3 set id='" + id3 + "'";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
        //////public string TSWORKORDER4()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_4";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id4 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count4 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-10-01 00:00:00'and F_Id>" + id4 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-10-15 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id4 = modellist[modellist.Count - 1].F_Id;
        //////                        count4 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_4 set id='" + id4 + "' ,count='" + count4 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id4 = modellist[modellist.Count - 1].F_Id;
        //////                        count4 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_4 set id='" + id4 + "' ,count='" + count4 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id4 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_4 set id='" + id4 + "'";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}



        //////public string TSWORKORDER10()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10  where ids=1 ";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id10 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count10 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-10-15 00:00:00'and F_Id>" + id10 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-10-20 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
                              
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        id10 = modellist[modellist.Count - 1].F_Id;
        //////                        count10 += modellist.Count;
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id10 + "' ,count='" + count10 + "' where ids=1";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id10 = modellist[modellist.Count - 1].F_Id;
        //////                        count10 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id10+ "' ,count='" + count10 + "' where ids=1";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id10 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id10 + "' where ids=1";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}


        //////public string TSWORKORDER11()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=2";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id11 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count11 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-10-20 00:00:00'and F_Id>" + id11 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-10-25 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id11 = modellist[modellist.Count - 1].F_Id;
        //////                        count11 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id11 + "' ,count='" + count11 + "' where ids=2";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id11 = modellist[modellist.Count - 1].F_Id;
        //////                        count11 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id11 + "' ,count='" + count11 + "' where ids=2";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id11 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id11 + "' where ids=2";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}


        //////public string TSWORKORDER12()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=3";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id12 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count12 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-10-25 00:00:00'and F_Id>" + id12 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-11-01 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id12 = modellist[modellist.Count - 1].F_Id;
        //////                        count12 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id12 + "' ,count='" + count12 + "' where ids=3 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id12 = modellist[modellist.Count - 1].F_Id;
        //////                        count12 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id12 + "' ,count='" + count12 + "' where ids=3";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id12 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id12 + "' where ids=3 ";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}




        //////public string TSWORKORDER13()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=4";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id13 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count13 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-11-15 00:00:00'and F_Id>" + id13 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-11-20 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id13 = modellist[modellist.Count - 1].F_Id;
        //////                        count13 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id13 + "' ,count='" + count13 + "' where ids=4 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id13 = modellist[modellist.Count - 1].F_Id;
        //////                        count13 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id13 + "' ,count='" + count13 + "' where ids=4 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id13 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id13 + "' where ids=4";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}




        //////public string TSWORKORDER14()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////         string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=5";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id14 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count14 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-11-20 00:00:00'and F_Id>" + id14 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-11-25 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id14 = modellist[modellist.Count - 1].F_Id;
        //////                        count14 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id14 + "' ,count='" + count14 + "'  where ids=5 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id14 = modellist[modellist.Count - 1].F_Id;
        //////                        count14 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id14 + "' ,count='" + count14 + "'  where ids=5 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id14 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id14 + "'  where ids=5";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}




        //////public string TSWORKORDER15()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////         string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=6";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id15 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count15 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-11-25 00:00:00'and F_Id>" + id15 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-12-01 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id15 = modellist[modellist.Count - 1].F_Id;
        //////                        count15 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id15 + "' ,count='" + count15 + "'  where ids=6 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id15 = modellist[modellist.Count - 1].F_Id;
        //////                        count15 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id15 + "' ,count='" + count15 + "'  where ids=6 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id15 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id15 + "'  where ids=6";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}



        //////public string TSWORKORDER16()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////         string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=7";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id16 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count16 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-11-10 00:00:00'and F_Id>" + id16 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-11-15 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id16 = modellist[modellist.Count - 1].F_Id;
        //////                        count16 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id16 + "' ,count='" + count16 + "'  where ids=7 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id16 = modellist[modellist.Count - 1].F_Id;
        //////                        count16 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id16 + "' ,count='" + count16 + "'  where ids=7 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id16 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id16 + "'  where ids=7";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
        //////public string TSWORKORDER17()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////         string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=8";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id17 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count17 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-11-05 00:00:00'and F_Id>" + id17 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-11-10 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id17 = modellist[modellist.Count - 1].F_Id;
        //////                        count17 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id17 + "' ,count='" + count17 + "'  where ids=8 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id17 = modellist[modellist.Count - 1].F_Id;
        //////                        count17 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id17 + "' ,count='" + count17 + "'  where ids=8 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id17 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id17 + "'  where ids=8";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
        //////public string TSWORKORDER18()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////         string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=9";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id18 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count18 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-11-01 00:00:00'and F_Id>" + id18 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-11-05 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id18 = modellist[modellist.Count - 1].F_Id;
        //////                        count18 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id18 + "' ,count='" + count18 + "'  where ids=9 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id18 = modellist[modellist.Count - 1].F_Id;
        //////                        count18 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id18 + "' ,count='" + count18 + "'  where ids=9 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id18 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id18 + "'  where ids=9";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}




        //////public string TSWORKORDER19()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////         string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=10";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id19 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count19 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-12-15 00:00:00'and F_Id>" + id19 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-12-20 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id19 = modellist[modellist.Count - 1].F_Id;
        //////                        count19 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id19 + "' ,count='" + count19 + "'  where ids=10 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id19 = modellist[modellist.Count - 1].F_Id;
        //////                        count19 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id19 + "' ,count='" + count19 + "'  where ids=10 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id19 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id19 + "'  where ids=10";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
        //////public string TSWORKORDER20()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////         string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=11";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id20 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count20 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-12-20 00:00:00'and F_Id>" + id20 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-12-25 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id20 = modellist[modellist.Count - 1].F_Id;
        //////                        count20 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id20 + "' ,count='" + count20 + "'  where ids=11 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id20 = modellist[modellist.Count - 1].F_Id;
        //////                        count20 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id20 + "' ,count='" + count20 + "'  where ids=11 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id20 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id20 + "'  where ids=11";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}

        //////public string TSWORKORDER21()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////         string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=12";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id21 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count21 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-12-25 00:00:00'and F_Id>" + id21 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-01-01 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id21 = modellist[modellist.Count - 1].F_Id;
        //////                        count21 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id21 + "' ,count='" + count21 + "'  where ids=12 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id21 = modellist[modellist.Count - 1].F_Id;
        //////                        count21 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id21 + "' ,count='" + count21 + "'  where ids=12 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id21 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id21 + "'  where ids=12";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}


        //////public string TSWORKORDER22()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////         string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=13";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id22 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count22 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-01-20 00:00:00'and F_Id>" + id22 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-01-28 18:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id22 = modellist[modellist.Count - 1].F_Id;
        //////                        count22 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id22 + "' ,count='" + count22 + "'  where ids=13 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id22 = modellist[modellist.Count - 1].F_Id;
        //////                        count22 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id22 + "' ,count='" + count22 + "'  where ids=13 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id22 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id22 + "'  where ids=13";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}




        //////public string TSWORKORDER23()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////         string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=14";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id23 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count23 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-03-20 00:00:00'and F_Id>" + id23 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-03-25 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id23 = modellist[modellist.Count - 1].F_Id;
        //////                        count23 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id23 + "' ,count='" + count23 + "'  where ids=14 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id23 = modellist[modellist.Count - 1].F_Id;
        //////                        count23 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id23 + "' ,count='" + count23 + "'  where ids=14 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id23 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id23 + "'  where ids=14";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}


        //////public string TSWORKORDER24()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////         string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=15";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id24 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count24 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-03-25 00:00:00'and F_Id>" + id24 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-04-01 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id24 = modellist[modellist.Count - 1].F_Id;
        //////                        count24 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id24 + "' ,count='" + count24 + "'  where ids=15 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id24 = modellist[modellist.Count - 1].F_Id;
        //////                        count24 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id24 + "' ,count='" + count24 + "'  where ids=15 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id24 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id24 + "'  where ids=15";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}




        //////public string TSWORKORDER25()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////         string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=16";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id25 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count25 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-04-20 00:00:00'and F_Id>" + id25 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-04-25 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id25 = modellist[modellist.Count - 1].F_Id;
        //////                        count25 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id25 + "' ,count='" + count25 + "'  where ids=16 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id25 = modellist[modellist.Count - 1].F_Id;
        //////                        count25 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id25 + "' ,count='" + count25 + "'  where ids=16 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id25 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id25 + "'  where ids=16";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}



        //////public string TSWORKORDER26()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////         string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=17";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id26 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count26 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-04-25 00:00:00'and F_Id>" + id26 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-05-01 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id26 = modellist[modellist.Count - 1].F_Id;
        //////                        count26 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id26 + "' ,count='" + count26 + "'  where ids=17 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id26 = modellist[modellist.Count - 1].F_Id;
        //////                        count26 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id26 + "' ,count='" + count26 + "'  where ids=17 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id26 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id26 + "'  where ids=17";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}

        //////public string TSWORKORDER27()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=18";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id27 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count27 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-05-10 00:00:00'and F_Id>" + id27 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-05-15 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id27 = modellist[modellist.Count - 1].F_Id;
        //////                        count27 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id27 + "' ,count='" + count27 + "'  where ids=18 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id27 = modellist[modellist.Count - 1].F_Id;
        //////                        count27 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id27 + "' ,count='" + count27 + "'  where ids=18 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id27 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id27 + "'  where ids=18";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
        //////public string TSWORKORDER28()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=19";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id28 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count28 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-05-15 00:00:00'and F_Id>" + id28 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-05-20 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id28 = modellist[modellist.Count - 1].F_Id;
        //////                        count28 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id28 + "' ,count='" + count28 + "'  where ids=19 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id28 = modellist[modellist.Count - 1].F_Id;
        //////                        count28 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id28 + "' ,count='" + count28 + "'  where ids=19 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id28 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id28 + "'  where ids=19";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
        //////public string TSWORKORDER29()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=20";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id29 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count29 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-05-25 00:00:00'and F_Id>" + id29 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-06-01 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id29 = modellist[modellist.Count - 1].F_Id;
        //////                        count29 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id29 + "' ,count='" + count29 + "'  where ids=20 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id29 = modellist[modellist.Count - 1].F_Id;
        //////                        count29 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id29 + "' ,count='" + count29 + "'  where ids=20 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id29 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id29 + "'  where ids=20";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
        //////public string TSWORKORDER30()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=21";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id30 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count30 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-06-15 00:00:00'and F_Id>" + id30 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-06-20 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id30 = modellist[modellist.Count - 1].F_Id;
        //////                        count30 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id30 + "' ,count='" + count30 + "'  where ids=21 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id30 = modellist[modellist.Count - 1].F_Id;
        //////                        count30 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id30 + "' ,count='" + count30 + "'  where ids=21 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id30 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id30 + "'  where ids=21";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
        //////public string TSWORKORDER31()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=22";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id31 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count31 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-06-25 00:00:00'and F_Id>" + id31 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-07-01 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id31 = modellist[modellist.Count - 1].F_Id;
        //////                        count31 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id31 + "' ,count='" + count31 + "'  where ids=22 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id31 = modellist[modellist.Count - 1].F_Id;
        //////                        count31 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id31 + "' ,count='" + count31 + "'  where ids=22 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id31 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id31 + "'  where ids=22";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
        //////public string TSWORKORDER32()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=23";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id32 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count32 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-07-01 00:00:00'and F_Id>" + id32 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-07-06 18:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl4(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua4(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id32 = modellist[modellist.Count - 1].F_Id;
        //////                        count32 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id32 + "' ,count='" + count32 + "'  where ids=23 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id32 = modellist[modellist.Count - 1].F_Id;
        //////                        count32 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id32 + "' ,count='" + count32 + "'  where ids=23 ";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji4(token, modellist);
        //////                            erji4(token, modellist);
        //////                            pingjia4(token, modellist);
        //////                            bajie4(token, modellist);
        //////                            liucheng4(token, modellist);
        //////                            huifangjilu4(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id32 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id32 + "'  where ids=23";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
      


        //////public string TSWORKORDER5()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_5";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id5 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count5 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-12-01 00:00:00'and F_Id>" + id5 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2022-12-15 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl5(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua5(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id5 = modellist[modellist.Count - 1].F_Id;
        //////                        count5 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_5 set id='" + id5 + "' ,count='" + count5 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji5(token, modellist);
        //////                            erji5(token, modellist);
        //////                            pingjia5(token, modellist);
        //////                            bajie5(token, modellist);
        //////                            liucheng5(token, modellist);
        //////                            huifangjilu5(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id5 = modellist[modellist.Count - 1].F_Id;
        //////                        count5 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_5 set id='" + id5 + "' ,count='" + count5 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji5(token, modellist);
        //////                            erji5(token, modellist);
        //////                            pingjia5(token, modellist);
        //////                            bajie5(token, modellist);
        //////                            liucheng5(token, modellist);
        //////                            huifangjilu5(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id5 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_5 set id='" + id5 + "'";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}




        //////public string TSWORKORDER6()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_6";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id6 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count6 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-01-01 00:00:00'and F_Id>" + id6 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-01-20 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl6(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua6(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id6 = modellist[modellist.Count - 1].F_Id;
        //////                        count6 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_6 set id='" + id6 + "' ,count='" + count6 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji6(token, modellist);
        //////                            erji6(token, modellist);
        //////                            pingjia6(token, modellist);
        //////                            bajie6(token, modellist);
        //////                            liucheng6(token, modellist);
        //////                            huifangjilu6(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id6 = modellist[modellist.Count - 1].F_Id;
        //////                        count6 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_6 set id='" + id6 + "' ,count='" + count6 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji6(token, modellist);
        //////                            erji6(token, modellist);
        //////                            pingjia6(token, modellist);
        //////                            bajie6(token, modellist);
        //////                            liucheng6(token, modellist);
        //////                            huifangjilu6(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id6 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_6 set id='" + id6 + "'";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}



        //////public string TSWORKORDER7()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_7";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id7 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count7 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-04-01 00:00:00'and F_Id>" + id7 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-04-20 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl7(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua7(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id7 = modellist[modellist.Count - 1].F_Id;
        //////                        count7 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_7 set id='" + id7 + "' ,count='" + count7 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji7(token, modellist);
        //////                            erji7(token, modellist);
        //////                            pingjia7(token, modellist);
        //////                            bajie7(token, modellist);
        //////                            liucheng7(token, modellist);
        //////                            huifangjilu7(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id7 = modellist[modellist.Count - 1].F_Id;
        //////                        count7 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_7 set id='" + id7 + "' ,count='" + count7 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji7(token, modellist);
        //////                            erji7(token, modellist);
        //////                            pingjia7(token, modellist);
        //////                            bajie7(token, modellist);
        //////                            liucheng7(token, modellist);
        //////                            huifangjilu7(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id7 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_7 set id='" + id7 + "'";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
        //////public string TSWORKORDER8()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_8";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id8 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count8 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-05-01 00:00:00'and F_Id>" + id8 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-05-10 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl8(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua8(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id8 = modellist[modellist.Count - 1].F_Id;
        //////                        count8 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_8 set id='" + id8 + "' ,count='" + count8 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji8(token, modellist);
        //////                            erji8(token, modellist);
        //////                            pingjia8(token, modellist);
        //////                            bajie8(token, modellist);
        //////                            liucheng8(token, modellist);
        //////                            huifangjilu8(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id8 = modellist[modellist.Count - 1].F_Id;
        //////                        count8 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_8 set id='" + id8 + "' ,count='" + count8 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji8(token, modellist);
        //////                            erji8(token, modellist);
        //////                            pingjia8(token, modellist);
        //////                            bajie8(token, modellist);
        //////                            liucheng8(token, modellist);
        //////                            huifangjilu8(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id8 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_8 set id='" + id8 + "'";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
        //////public string TSWORKORDER9()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_9";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id9 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count9 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2023-06-01 00:00:00.000'and F_Id>" + id9 +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-06-15 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl9(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua9(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id9 = modellist[modellist.Count - 1].F_Id;
        //////                        count9 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_9 set id='" + id9 + "' ,count='" + count9 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji9(token, modellist);
        //////                            erji9(token, modellist);
        //////                            pingjia9(token, modellist);
        //////                            bajie9(token, modellist);
        //////                            liucheng9(token, modellist);
        //////                            huifangjilu9(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id9 = modellist[modellist.Count - 1].F_Id;
        //////                        count9 += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_9 set id='" + id9 + "' ,count='" + count9 + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji9(token, modellist);
        //////                            erji9(token, modellist);
        //////                            pingjia9(token, modellist);
        //////                            bajie9(token, modellist);
        //////                            liucheng9(token, modellist);
        //////                            huifangjilu9(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id9 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_9 set id='" + id9 + "'";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}
        //////public string  TSWORKORDER()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return   "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(10, "F_CreateTime>='2022-06-01 01:31:35.160'and F_Id>" + id +
        //////            " and F_IsDelete=0 and F_CreateTime <'2023-03-20 00:00:00.000' AND F_Email ='' "
        //////           , " F_CreateTime ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";


        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

        //////                try
        //////                {
        //////                    if (!string.IsNullOrEmpty(model.F_File))
        //////                    {
        //////                        fjcl(token, newwokrkorder, model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                    }
        //////                    if (model.F_CallRecordId > 0)
        //////                    {
        //////                        dianhua(token, model.F_WorkOrderId);
        //////                    }
        //////                }
        //////                catch
        //////                {

        //////                }


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id = modellist[modellist.Count - 1].F_Id;
        //////                        count += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder set id='" + id + "' ,count='" + count + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji(token, modellist);
        //////                            erji(token, modellist);
        //////                            pingjia(token, modellist);
        //////                            bajie(token, modellist);
        //////                            liucheng(token, modellist);
        //////                            huifangjilu(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id = modellist[modellist.Count - 1].F_Id;
        //////                        count += modellist.Count;
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder set id='" + id + "' ,count='" + count + "'";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji(token, modellist);
        //////                            erji(token, modellist);
        //////                            pingjia(token, modellist);
        //////                            bajie(token, modellist);
        //////                            liucheng(token, modellist);
        //////                            huifangjilu(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder set id='" + id + "'";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}



        //////public void bajie(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_finish_info paras = new submit_case_finish_info();
        //////    paras.jsonList = new List<finish_info>();

        //////    foreach (var model in modellist)
        //////    {
        //////        if (model.F_WorkState == 9 && model.F_DealTime != null)
        //////        {
        //////            finish_info jsonList = new finish_info();
        //////            string newwokrkorder = model.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;

        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            if (model.F_IsResult == null || model.F_IsResult == 1)
        //////            {
        //////                jsonList.FINISH_TYPE = "10";
        //////                jsonList.DEPT_NAME = "热线中心";
        //////                if (model.F_CloseTime != null)
        //////                    jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else if (model.F_DealTime != null)
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else
        //////                    jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.DEPT_CODE = "4106000299";
        //////            }
        //////            else
        //////            {
        //////                jsonList.FINISH_TYPE = "20";
        //////                if (model.F_MainDeptId != null && model.F_MainDeptId > 0 && model.F_DealTime != null)
        //////                {
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')") != null)
        //////                        jsonList.DEPT_NAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')").ToString();
        //////                    if (DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'") != null)
        //////                        jsonList.DEPT_CODE = DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'").ToString();
        //////                }
        //////                else
        //////                {
        //////                    if (model.F_CloseTime != null)
        //////                        jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else if (model.F_DealTime != null)
        //////                        jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else
        //////                        jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    jsonList.DEPT_NAME = "热线中心";
        //////                    jsonList.DEPT_CODE = "4106000299";
        //////                }

        //////            }
        //////            if (model.F_CloseTime != null)
        //////                jsonList.FINISH_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else if (model.F_DealTime != null)
        //////                jsonList.FINISH_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else
        //////                jsonList.FINISH_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");


        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')") != null)
        //////                jsonList.FINISH_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')").ToString();
        //////            else
        //////                jsonList.FINISH_NAME = model.F_DealUser;
        //////            if (string.IsNullOrEmpty(jsonList.FINISH_NAME))
        //////                jsonList.FINISH_NAME = "热线中心";
        //////            jsonList.FINISH_CONTENT = model.F_Result;
        //////            jsonList.END_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + model.F_CreateTime + "', '" + model.F_DealTime + "')").ToString());
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdbj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void yiji(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (models.F_MainDeptId != null && models.F_MainDeptId > 0)
        //////        {
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = "TOP";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                else
        //////                    jsonList.TASK_OUNAME = "";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.TASK_CONTENT = "无";
        //////                else
        //////                    jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                if (info.F_IsNext > 0)
        //////                {
        //////                    jsonList.TASK_ISALLOT = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISALLOT = "0";
        //////                }
        //////                if (!string.IsNullOrEmpty(model.F_File))
        //////                {
        //////                    fjcl(token, newwokrkorder, model.F_File, models.F_SourceArea.ToString(), model.F_Id, "20");
        //////                }
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void erji(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (!string.IsNullOrEmpty(models.F_MainDeptID3))
        //////        {
        //////            var info1 = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null && info1 != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = info1.F_Id.ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                jsonList.TASK_ISALLOT = "1";
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);


        //////            }
        //////        }


        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }

        //////    }

        //////}
        //////public void dianhua(string token, string WorkOrderId)
        //////{
        //////    var workorder = workorderBLL.GetModel(WorkOrderId);

        //////    var model = new CallCenterApi.BLL.T_Call_CallRecords().GetModelByCallId(workorder.F_CallId);

        //////    if (model != null)
        //////    {
        //////        submit_case_record paras = new submit_case_record();
        //////        paras.jsonList = new List<record>();
        //////        record jsonList = new record();
        //////        string newwokrkorder = WorkOrderId;
        //////        if (WorkOrderId.Contains("QT"))
        //////            newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////        else
        //////            newwokrkorder = WorkOrderId;
        //////        jsonList.CASE_SERIAL = newwokrkorder;
        //////        jsonList.AREA_CODE = AREA_CODE;
        //////        jsonList.RECORD_ID = model.CallRecordsId.ToString();
        //////        jsonList.RECORD_PHONE = model.CallNumber;
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_STATUS = "30";
        //////        else
        //////            jsonList.RECORD_STATUS = "10";
        //////        if (model.CallType == 0)
        //////            jsonList.RECORD_TYPE = "10";
        //////        else
        //////            jsonList.RECORD_TYPE = "30";
        //////        if (model.TalkStartTime != null)
        //////            jsonList.RECORD_STARTTIME = model.TalkStartTime
        //////                .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_ENDTIME = model.TalkEndTime
        //////            .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        else
        //////            jsonList.RECORD_ENDTIME = "";
        //////        jsonList.RECORD_LENGTH = model.TalkLongTime;
        //////        jsonList.RECORD_LOGINID = model.UserCode;
        //////        // var config = new CallCenterApi.BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
        //////        if (model.FilePath != null)
        //////        {
        //////            var ym = "http://222.143.144.10:12000/";
        //////            if (ym.Substring(ym.Length - 1) == "/")
        //////            {
        //////                ym = ym.Substring(0, ym.Length - 1);
        //////            }

        //////            string lujing = model.FilePath.Substring(model.FilePath.IndexOf(':') + 1).Replace('\\', '/');
        //////            string wlpath = ym + lujing;

        //////            jsonList.RECORD_URL = wlpath;
        //////        }
        //////        paras.jsonList.Add(jsonList);
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();

        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/dhfwjl", jsonParam);

        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }

        //////}
        //////public void pingjia(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_info paras = new submit_case_visit_info();
        //////    paras.jsonList = new List<visit_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        var model = new CallCenterApi.BLL.T_Bus_VisitResult().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////        if (model != null)
        //////        {
        //////            visit_info jsonList = new visit_info();
        //////            string newwokrkorder = models.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.VISIT_TYPE = "DH";
        //////            jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////            else
        //////                jsonList.VISIT_NAME = model.F_CreateUser;
        //////            if (string.IsNullOrEmpty(model.F_Result))
        //////                jsonList.VISIT_CONTENT = "无";
        //////            else
        //////                jsonList.VISIT_CONTENT = model.F_Result;
        //////            if (model.F_IsSatisfie == 0)
        //////                jsonList.VISIT_SATISFY = "2";
        //////            else
        //////                jsonList.VISIT_SATISFY = "4";

        //////            jsonList.VISIT_NUMBER = int.Parse(DbHelperSQL.GetSingle(" select count(1) from T_Bus_VisitResult  where F_WorkOrderId ='" + model.F_WorkOrderId + "'").ToString());
        //////            paras.jsonList.Add(jsonList);




        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdzzpj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }



        //////    }


        //////}
        //////public void liucheng(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{

        //////    submit_case_process_info paras = new submit_case_process_info();
        //////    paras.jsonList = new List<process_info>();
        //////    foreach (var models in modellist)
        //////    {
        //////        var process = new CallCenterApi.BLL.T_Bus_Operation().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (process != null)
        //////        {
        //////            foreach (var model in process)
        //////            {
        //////                if (model.F_Message.Contains("查收了") || model.F_Message.Contains("交办了")
        //////                    || model.F_Message.Contains("回访了"))
        //////                {
        //////                    process_info jsonList = new process_info();
        //////                    string newwokrkorder = model.F_WorkOrderId;
        //////                    if (model.F_WorkOrderId.Contains("QT"))
        //////                        newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                    else
        //////                        newwokrkorder = model.F_WorkOrderId;
        //////                    jsonList.CASE_SERIAL = newwokrkorder;

        //////                    jsonList.AREA_CODE = AREA_CODE;
        //////                    jsonList.PROCESS_ID = model.F_Id.ToString();
        //////                    jsonList.DEPT_NAME = model.F_Message.Split('(')[0];
        //////                    if (model.F_Message.Contains("查收了"))
        //////                        jsonList.TACHE_NAME = "查收工单";
        //////                    else if (model.F_Message.Contains("交办了"))
        //////                        jsonList.TACHE_NAME = "交办工单";
        //////                    else if (model.F_Message.Contains("回访了"))
        //////                        jsonList.TACHE_NAME = "审核工单";
        //////                    jsonList.PROCESS_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                        jsonList.PROCESS_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                    else
        //////                        jsonList.PROCESS_NAME = model.F_CreateUser;
        //////                    jsonList.PROCESS_NOTE = model.F_Message;
        //////                    paras.jsonList.Add(jsonList);
        //////                }
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdcllc", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }

        //////}
        //////public void huifangjilu(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_detail_info paras = new submit_case_visit_detail_info();
        //////    paras.jsonList = new List<detail_info>();
        //////    //  LogFactory.GetLogger("HttpPost").Warn(modellist.ToJson()+"ttssds");
        //////    foreach (var models in modellist)
        //////    {
        //////        var modelslist = new CallCenterApi.BLL.T_Bus_VisitResult().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (modelslist != null && modelslist.Count > 0)
        //////        {
        //////            foreach (var model in modelslist)
        //////            {
        //////                detail_info jsonList = new detail_info();
        //////                string newwokrkorder = model.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;

        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.VISIT_ID = model.F_Id.ToString();

        //////                jsonList.VISIT_TYPE = "DH";
        //////                jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.VISIT_NAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.VISIT_CONTENT = "无";
        //////                else
        //////                    jsonList.VISIT_CONTENT = model.F_Result;
        //////                if (model.F_IsSatisfie == 0)
        //////                    jsonList.VISIT_SATISFY = "2";
        //////                else
        //////                    jsonList.VISIT_SATISFY = "4";
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdhfjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }

        //////    }



        //////}
        //////public void fjcl(string token, string WorkOrderId, string file, string area, int id, string type)
        //////{
        //////    string ParamValue = "http://222.143.144.10:8002";
        //////    //  var configfj = configBll.GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
        //////    // if (configfj != null)
        //////    // {
        //////    // ParamValue = configfj.F_ParamValue;
        //////    // }
        //////    submit_case_material_info paras = new submit_case_material_info();
        //////    paras.jsonList = new List<material_info>();
        //////    var Accessories = new CallCenterApi.BLL.T_Sys_Accessories().GetModelList("F_FileId in (" + file + ")");
        //////    if (Accessories != null && Accessories.Count > 0)
        //////    {
        //////        foreach (var it in Accessories)
        //////        {
        //////            material_info jsonList = new material_info();
        //////            string newwokrkorder = "";
        //////            if (WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.MATERIAL_ID = it.F_FileId.ToString();
        //////            jsonList.MATERIAL_NAME = it.F_FileName;
        //////            jsonList.MATERIAL_FILE_TYPE = it.F_FileType;
        //////            jsonList.MATERIAL_TYPE = type;
        //////            jsonList.MATERIAL_CONTACTID = id.ToString();
        //////            jsonList.MATERAIL_URL = ParamValue + it.F_FileUrl;
        //////            paras.jsonList.Add(jsonList);
        //////        }
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdcl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var iv in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + iv.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + iv.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送标识:" + iv.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + iv.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }


        //////}
        //////public class submit_case_record
        //////{
        //////    public List<record> jsonList { set; get; }
        //////}
        //////private CallCenterApi.BLL.T_Bus_WorkOrder workorderBLL = new CallCenterApi.BLL.T_Bus_WorkOrder();
        //////public class record
        //////{
        //////    /// <summary>
        //////    /// "工单编号",
        //////    /// </summary>
        //////    public string CASE_SERIAL { set; get; }
        //////    /// <summary>
        //////    /// "行政区划代码",
        //////    /// </summary>
        //////    public string AREA_CODE { set; get; }
        //////    ///<summary>
        //////    /// 录音唯一标识
        //////    /// </summary>
        //////    public string RECORD_ID { set; get; }

        //////    /// <summary>
        //////    /// 电话号码
        //////    /// </summary>
        //////    public string RECORD_PHONE { set; get; }

        //////    /// <summary>
        //////    /// 通话状态
        //////    /// </summary>
        //////    public string RECORD_STATUS { set; get; }
        //////    /// <summary>
        //////    /// 通话类型
        //////    /// </summary>
        //////    public string RECORD_TYPE { set; get; }
        //////    /// <summary>
        //////    /// 通话开始时间
        //////    /// </summary>
        //////    public string RECORD_STARTTIME { set; get; }
        //////    /// <summary>
        //////    /// 通话结束时间
        //////    /// </summary>
        //////    public string RECORD_ENDTIME { set; get; }
        //////    /// <summary>
        //////    /// 通话时长
        //////    /// </summary>
        //////    public int? RECORD_LENGTH { set; get; }
        //////    /// <summary>
        //////    /// 座席人员工号
        //////    /// </summary>
        //////    public string RECORD_LOGINID { set; get; }
        //////    /// <summary>
        //////    /// 录音路径
        //////    /// </summary>
        //////    public string RECORD_URL { set; get; }
        //////}
        //////public class submit_case_material_info
        //////{
        //////    public List<material_info> jsonList { set; get; }
        //////}
        //////public class material_info
        //////{
        //////    /// <summary>
        //////    /// "工单编号",
        //////    /// </summary>
        //////    public string CASE_SERIAL { set; get; }
        //////    /// <summary>
        //////    /// "行政区划代码",
        //////    /// </summary>
        //////    public string AREA_CODE { set; get; }
        //////    ///<summary>
        //////    /// 附件唯一标识
        //////    /// </summary>
        //////    public string MATERIAL_ID { set; get; }

        //////    /// <summary>
        //////    /// 材料名称
        //////    /// </summary>
        //////    public string MATERIAL_NAME { set; get; }

        //////    /// <summary>
        //////    /// 材料文件类型
        //////    /// </summary>
        //////    public string MATERIAL_FILE_TYPE { set; get; }
        //////    /// <summary>
        //////    /// 材料类别
        //////    /// </summary>
        //////    public string MATERIAL_TYPE { set; get; }
        //////    /// <summary>
        //////    /// 材料关联标识
        //////    /// </summary>
        //////    public string MATERIAL_CONTACTID { set; get; }
        //////    /// <summary>
        //////    /// 材料路径
        //////    /// </summary>
        //////    public string MATERAIL_URL { set; get; }
        //////}
        ////////  private CallCenterApi.BLL.T_Sys_SystemConfig configBll = new CallCenterApi.BLL.T_Sys_SystemConfig();
        //////public class submit_case_visit_detail_info
        //////{
        //////    public List<detail_info> jsonList { set; get; }
        //////}
        //////public class detail_info
        //////{
        //////    /// <summary>
        //////    /// "工单编号",
        //////    /// </summary>
        //////    public string CASE_SERIAL { set; get; }
        //////    /// <summary>
        //////    /// "行政区划代码",
        //////    /// </summary>
        //////    public string AREA_CODE { set; get; }
        //////    ///<summary>
        //////    /// 回访唯一标识
        //////    /// </summary>
        //////    public string VISIT_ID { set; get; }

        //////    /// <summary>
        //////    /// 回访评价方式
        //////    /// </summary>
        //////    public string VISIT_TYPE { set; get; }

        //////    /// <summary>
        //////    /// 回访时间
        //////    /// </summary>
        //////    public string VISIT_TIME { set; get; }
        //////    /// <summary>
        //////    /// 回访人
        //////    /// </summary>
        //////    public string VISIT_NAME { set; get; }
        //////    /// <summary>
        //////    /// 回访评价情况
        //////    /// </summary>
        //////    public string VISIT_CONTENT { set; get; }
        //////    /// <summary>
        //////    /// 回访结果满意度
        //////    /// </summary>
        //////    public string VISIT_SATISFY { set; get; }
        //////}
        //////public class submit_case_process_info
        //////{
        //////    public List<process_info> jsonList { set; get; }
        //////}
        //////public class process_info
        //////{
        //////    /// <summary>
        //////    /// "工单编号",
        //////    /// </summary>
        //////    public string CASE_SERIAL { set; get; }
        //////    /// <summary>
        //////    /// "行政区划代码",
        //////    /// </summary>
        //////    public string AREA_CODE { set; get; }
        //////    ///<summary>
        //////    /// 流程唯一标识
        //////    /// </summary>
        //////    public string PROCESS_ID { set; get; }

        //////    /// <summary>
        //////    /// 环节名称
        //////    /// </summary>
        //////    public string TACHE_NAME { set; get; }

        //////    /// <summary>
        //////    /// 处理部门
        //////    /// </summary>
        //////    public string DEPT_NAME { set; get; }
        //////    /// <summary>
        //////    /// 处理时间
        //////    /// </summary>
        //////    public string PROCESS_TIME { set; get; }
        //////    /// <summary>
        //////    /// 处理人员
        //////    /// </summary>
        //////    public string PROCESS_NAME { set; get; }
        //////    /// <summary>
        //////    /// 处办意见
        //////    /// </summary>
        //////    public string PROCESS_NOTE { set; get; }
        //////}

        //////public class submit_case_finish_info
        //////{
        //////    public List<finish_info> jsonList { set; get; }
        //////}
        //////public class finish_info
        //////{
        //////    /// <summary>
        //////    /// "工单编号",
        //////    /// </summary>
        //////    public string CASE_SERIAL { set; get; }
        //////    /// <summary>
        //////    /// "行政区划代码",
        //////    /// </summary>
        //////    public string AREA_CODE { set; get; }
        //////    ///<summary>
        //////    /// 办结方式
        //////    /// </summary>
        //////    public string FINISH_TYPE { set; get; }

        //////    /// <summary>
        //////    /// 答复单位
        //////    /// </summary>
        //////    public string DEPT_NAME { set; get; }

        //////    /// <summary>
        //////    /// 答复单位组织架构编码
        //////    /// </summary>
        //////    public string DEPT_CODE { set; get; }
        //////    /// <summary>
        //////    /// 答复时间
        //////    /// </summary>
        //////    public string FINISH_TIME { set; get; }
        //////    /// <summary>
        //////    /// 答复人员
        //////    /// </summary>
        //////    public string FINISH_NAME { set; get; }
        //////    /// <summary>
        //////    /// 答复结果
        //////    /// </summary>
        //////    public string FINISH_CONTENT { set; get; }
        //////    /// <summary>
        //////    /// 答复结果
        //////    /// </summary>
        //////    public string END_TIME { set; get; }
        //////    /// <summary>
        //////    /// 处办时长
        //////    /// </summary>
        //////    public int END_LENGTH { set; get; }
        //////}
        //////public class submit_case_visit_info
        //////{
        //////    public List<visit_info> jsonList { set; get; }
        //////}
        //////public class visit_info
        //////{
        //////    /// <summary>
        //////    /// "工单编号",
        //////    /// </summary>
        //////    public string CASE_SERIAL { set; get; }
        //////    /// <summary>
        //////    /// "行政区划代码",
        //////    /// </summary>
        //////    public string AREA_CODE { set; get; }
        //////    ///<summary>
        //////    /// 回访评价方式
        //////    /// </summary>
        //////    public string VISIT_TYPE { set; get; }

        //////    /// <summary>
        //////    /// 回访时间
        //////    /// </summary>
        //////    public string VISIT_TIME { set; get; }

        //////    /// <summary>
        //////    /// 回访人
        //////    /// </summary>
        //////    public string VISIT_NAME { set; get; }
        //////    /// <summary>
        //////    /// 回访评价情况
        //////    /// </summary>
        //////    public string VISIT_CONTENT { set; get; }
        //////    /// <summary>
        //////    /// 回访结果满意度
        //////    /// </summary>
        //////    public string VISIT_SATISFY { set; get; }

        //////    /// <summary>
        //////    /// 回访次数
        //////    /// </summary>
        //////    public int VISIT_NUMBER { set; get; }
        //////}
        //////public class submit_task_handle_info
        //////{
        //////    public List<handle_info> jsonList { set; get; }
        //////}
        //////public class handle_info
        //////{
        //////    /// <summary>
        //////    /// "工单编号",
        //////    /// </summary>
        //////    public string CASE_SERIAL { set; get; }
        //////    /// <summary>
        //////    /// "行政区划代码",
        //////    /// </summary>
        //////    public string AREA_CODE { set; get; }
        //////    /// <summary>
        //////    /// "工单唯一标识",
        //////    /// </summary>                                   
        //////    public string CASE_ID { set; get; }//
        //////    /// <summary>
        //////    /// 任务单唯一标识
        //////    /// </summary>
        //////    public string TASK_ID { set; get; }
        //////    /// <summary>
        //////    /// 父任务单标识
        //////    /// </summary>
        //////    public string TASK_PARENTID { set; get; }
        //////    /// <summary>
        //////    /// 办理部门
        //////    /// </summary>                                         
        //////    public string TASK_OUNAME { set; get; }

        //////    /// <summary>
        //////    /// 办理人员
        //////    /// </summary>            
        //////    public string TASK_USERNAME { set; get; }
        //////    /// <summary>
        //////    /// 反馈意见
        //////    /// </summary>
        //////    public string TASK_CONTENT { set; get; }
        //////    /// <summary>
        //////    /// 交办时间
        //////    /// </summary>
        //////    public string TASK_ASSIGNTIME { set; get; }

        //////    /// <summary>
        //////    /// 签收时间
        //////    /// </summary>
        //////    public string TASK_SIGNTIME { set; get; }
        //////    /// <summary>
        //////    /// 反馈时间
        //////    /// </summary>
        //////    public string TASK_FINISHTIME { set; get; }
        //////    /// <summary>
        //////    /// 应反馈时间
        //////    /// </summary>
        //////    public string TASK_FINISHTIME_BF { set; get; }
        //////    /// <summary>
        //////    /// 是否退回
        //////    /// </summary>
        //////    public string TASK_ISBACK { set; get; }
        //////    /// <summary>
        //////    /// 是否分派
        //////    /// </summary>
        //////    public string TASK_ISALLOT { set; get; }
        //////    /// <summary>
        //////    /// 处办时长
        //////    /// </summary>
        //////    public int TASK_HANDLE_LENGTH { set; get; }

        //////}
        //////private string GetToken()
        //////{

        //////    //Dictionary<string, object> values = new Dictionary<string, object>();
        //////    //values.Add("client_id", "d620caf2-d00f-41a9-ae99-c6dfd435875e");
        //////    //values.Add("client_secret", "4f75914e-d517-4325-ac64-c321377b12f0");
        //////    //values.Add("grant_type", "client_credentials");
        //////    //var jsonParam = JsonConvert.SerializeObject(values);

        //////    string jsonParam = "client_id=b3e2ed3b-672a-43a0-80db-21f790c0368d&client_secret=362b50d7-2aa5-4874-9363-6c0ba483dfe9&grant_type=client_credentials";
        //////    var responseString = HttpMethods.HttpPost("http://59.227.93.14:8183/rzpt_edc/rest/oauth2/token", jsonParam);
        //////    Token jo = responseString.ToObject<Token>();
        //////    if (jo.status.code == "1")
        //////    {
        //////        if (!string.IsNullOrEmpty(jo.custom.access_token))
        //////            return jo.custom.access_token;
        //////        else
        //////            return "";
        //////    }
        //////    else
        //////        return "";

        //////}

        //////public class Token
        //////{
        //////    public List<Controls> controls { set; get; }
        //////    public Custom custom { set; get; }
        //////    public Status status { set; get; }
        //////}
        //////public class Controls
        //////{

        //////}
        //////public class Custom
        //////{
        //////    public string access_token { set; get; }
        //////    public string refresh_token { set; get; }
        //////    public string jsessionid { set; get; }
        //////    public string expires_in { set; get; }
        //////}
        //////public class Status
        //////{
        //////    public string code { set; get; }
        //////}
        //////public class Push
        //////{
        //////    public string code { set; get; }
        //////    public string message { set; get; }

        //////    public body body { set; get; }
        //////}
        //////public class body
        //////{
        //////    public errorObjs[] errorObjs { set; get; }
        //////    public string successCount { set; get; }
        //////    public string totalCount { set; get; }
        //////}
        //////public class goback
        //////{
        //////    public string code { set; get; }
        //////    public string message { set; get; }
        //////}

        //////public class errorObjs
        //////{
        //////    public string resturl { set; get; }
        //////    public string errorid { set; get; }
        //////    public string errormsg { set; get; }
        //////    public string caseserial { set; get; }
        //////}


        //////public void bajie1(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_finish_info paras = new submit_case_finish_info();
        //////    paras.jsonList = new List<finish_info>();

        //////    foreach (var model in modellist)
        //////    {
        //////        if (model.F_WorkState == 9 && model.F_DealTime != null)
        //////        {
        //////            finish_info jsonList = new finish_info();
        //////            string newwokrkorder = model.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;

        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            if (model.F_IsResult == null || model.F_IsResult == 1)
        //////            {
        //////                jsonList.FINISH_TYPE = "10";
        //////                jsonList.DEPT_NAME = "热线中心";
        //////                if (model.F_CloseTime != null)
        //////                    jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else if (model.F_DealTime != null)
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else
        //////                    jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.DEPT_CODE = "4106000299";
        //////            }
        //////            else
        //////            {
        //////                jsonList.FINISH_TYPE = "20";
        //////                if (model.F_MainDeptId != null && model.F_MainDeptId > 0 && model.F_DealTime != null)
        //////                {
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')") != null)
        //////                        jsonList.DEPT_NAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')").ToString();
        //////                    if (DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'") != null)
        //////                        jsonList.DEPT_CODE = DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'").ToString();
        //////                }
        //////                else
        //////                {
        //////                    if (model.F_CloseTime != null)
        //////                        jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else if (model.F_DealTime != null)
        //////                        jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else
        //////                        jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    jsonList.DEPT_NAME = "热线中心";
        //////                    jsonList.DEPT_CODE = "4106000299";
        //////                }

        //////            }
        //////            if (model.F_CloseTime != null)
        //////                jsonList.FINISH_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else if (model.F_DealTime != null)
        //////                jsonList.FINISH_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else
        //////                jsonList.FINISH_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");


        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')") != null)
        //////                jsonList.FINISH_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')").ToString();
        //////            else
        //////                jsonList.FINISH_NAME = model.F_DealUser;
        //////            if (string.IsNullOrEmpty(jsonList.FINISH_NAME))
        //////                jsonList.FINISH_NAME = "热线中心";
        //////            jsonList.FINISH_CONTENT = model.F_Result;
        //////            jsonList.END_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + model.F_CreateTime + "', '" + model.F_DealTime + "')").ToString());
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdbj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void yiji1(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (models.F_MainDeptId != null && models.F_MainDeptId > 0)
        //////        {
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = "TOP";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                else
        //////                    jsonList.TASK_OUNAME = "";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.TASK_CONTENT = "无";
        //////                else
        //////                    jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                if (info.F_IsNext > 0)
        //////                {
        //////                    jsonList.TASK_ISALLOT = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISALLOT = "0";
        //////                }
        //////                if (!string.IsNullOrEmpty(model.F_File))
        //////                {
        //////                    fjcl1(token, newwokrkorder, model.F_File, models.F_SourceArea.ToString(), model.F_Id, "20");
        //////                }
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void erji1(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (!string.IsNullOrEmpty(models.F_MainDeptID3))
        //////        {
        //////            var info1 = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null && info1 != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = info1.F_Id.ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                jsonList.TASK_ISALLOT = "1";
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);


        //////            }
        //////        }


        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }

        //////    }

        //////}
        //////public void dianhua1(string token, string WorkOrderId)
        //////{
        //////    var workorder = workorderBLL.GetModel(WorkOrderId);

        //////    var model = new CallCenterApi.BLL.T_Call_CallRecords().GetModelByCallId(workorder.F_CallId);

        //////    if (model != null)
        //////    {
        //////        submit_case_record paras = new submit_case_record();
        //////        paras.jsonList = new List<record>();
        //////        record jsonList = new record();
        //////        string newwokrkorder = WorkOrderId;
        //////        if (WorkOrderId.Contains("QT"))
        //////            newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////        else
        //////            newwokrkorder = WorkOrderId;
        //////        jsonList.CASE_SERIAL = newwokrkorder;
        //////        jsonList.AREA_CODE = AREA_CODE;
        //////        jsonList.RECORD_ID = model.CallRecordsId.ToString();
        //////        jsonList.RECORD_PHONE = model.CallNumber;
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_STATUS = "30";
        //////        else
        //////            jsonList.RECORD_STATUS = "10";
        //////        if (model.CallType == 0)
        //////            jsonList.RECORD_TYPE = "10";
        //////        else
        //////            jsonList.RECORD_TYPE = "30";
        //////        if (model.TalkStartTime != null)
        //////            jsonList.RECORD_STARTTIME = model.TalkStartTime
        //////                .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_ENDTIME = model.TalkEndTime
        //////            .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        else
        //////            jsonList.RECORD_ENDTIME = "";
        //////        jsonList.RECORD_LENGTH = model.TalkLongTime;
        //////        jsonList.RECORD_LOGINID = model.UserCode;
        //////        // var config = new CallCenterApi.BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
        //////        if (model.FilePath != null)
        //////        {
        //////            var ym = "http://222.143.144.10:12000/";
        //////            if (ym.Substring(ym.Length - 1) == "/")
        //////            {
        //////                ym = ym.Substring(0, ym.Length - 1);
        //////            }

        //////            string lujing = model.FilePath.Substring(model.FilePath.IndexOf(':') + 1).Replace('\\', '/');
        //////            string wlpath = ym + lujing;

        //////            jsonList.RECORD_URL = wlpath;
        //////        }
        //////        paras.jsonList.Add(jsonList);
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();

        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/dhfwjl", jsonParam);

        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }

        //////}
        //////public void pingjia1(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_info paras = new submit_case_visit_info();
        //////    paras.jsonList = new List<visit_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        var model = new CallCenterApi.BLL.T_Bus_VisitResult().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////        if (model != null)
        //////        {
        //////            visit_info jsonList = new visit_info();
        //////            string newwokrkorder = models.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.VISIT_TYPE = "DH";
        //////            jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////            else
        //////                jsonList.VISIT_NAME = model.F_CreateUser;
        //////            if (string.IsNullOrEmpty(model.F_Result))
        //////                jsonList.VISIT_CONTENT = "无";
        //////            else
        //////                jsonList.VISIT_CONTENT = model.F_Result;
        //////            if (model.F_IsSatisfie == 0)
        //////                jsonList.VISIT_SATISFY = "2";
        //////            else
        //////                jsonList.VISIT_SATISFY = "4";

        //////            jsonList.VISIT_NUMBER = int.Parse(DbHelperSQL.GetSingle(" select count(1) from T_Bus_VisitResult  where F_WorkOrderId ='" + model.F_WorkOrderId + "'").ToString());
        //////            paras.jsonList.Add(jsonList);




        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdzzpj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }



        //////    }


        //////}
        //////public void liucheng1(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{

        //////    submit_case_process_info paras = new submit_case_process_info();
        //////    paras.jsonList = new List<process_info>();
        //////    foreach (var models in modellist)
        //////    {
        //////        var process = new CallCenterApi.BLL.T_Bus_Operation().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (process != null)
        //////        {
        //////            foreach (var model in process)
        //////            {
        //////                if (model.F_Message.Contains("查收了") || model.F_Message.Contains("交办了")
        //////                    || model.F_Message.Contains("回访了"))
        //////                {
        //////                    process_info jsonList = new process_info();
        //////                    string newwokrkorder = model.F_WorkOrderId;
        //////                    if (model.F_WorkOrderId.Contains("QT"))
        //////                        newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                    else
        //////                        newwokrkorder = model.F_WorkOrderId;
        //////                    jsonList.CASE_SERIAL = newwokrkorder;

        //////                    jsonList.AREA_CODE = AREA_CODE;
        //////                    jsonList.PROCESS_ID = model.F_Id.ToString();
        //////                    jsonList.DEPT_NAME = model.F_Message.Split('(')[0];
        //////                    if (model.F_Message.Contains("查收了"))
        //////                        jsonList.TACHE_NAME = "查收工单";
        //////                    else if (model.F_Message.Contains("交办了"))
        //////                        jsonList.TACHE_NAME = "交办工单";
        //////                    else if (model.F_Message.Contains("回访了"))
        //////                        jsonList.TACHE_NAME = "审核工单";
        //////                    jsonList.PROCESS_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                        jsonList.PROCESS_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                    else
        //////                        jsonList.PROCESS_NAME = model.F_CreateUser;
        //////                    jsonList.PROCESS_NOTE = model.F_Message;
        //////                    paras.jsonList.Add(jsonList);
        //////                }
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdcllc", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }

        //////}
        //////public void huifangjilu1(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_detail_info paras = new submit_case_visit_detail_info();
        //////    paras.jsonList = new List<detail_info>();
        //////    //  LogFactory.GetLogger("HttpPost").Warn(modellist.ToJson()+"ttssds");
        //////    foreach (var models in modellist)
        //////    {
        //////        var modelslist = new CallCenterApi.BLL.T_Bus_VisitResult().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (modelslist != null && modelslist.Count > 0)
        //////        {
        //////            foreach (var model in modelslist)
        //////            {
        //////                detail_info jsonList = new detail_info();
        //////                string newwokrkorder = model.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;

        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.VISIT_ID = model.F_Id.ToString();

        //////                jsonList.VISIT_TYPE = "DH";
        //////                jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.VISIT_NAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.VISIT_CONTENT = "无";
        //////                else
        //////                    jsonList.VISIT_CONTENT = model.F_Result;
        //////                if (model.F_IsSatisfie == 0)
        //////                    jsonList.VISIT_SATISFY = "2";
        //////                else
        //////                    jsonList.VISIT_SATISFY = "4";
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdhfjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }

        //////    }



        //////}
        //////public void fjcl1(string token, string WorkOrderId, string file, string area, int id, string type)
        //////{
        //////    string ParamValue = "http://222.143.144.10:8002";
        //////    //  var configfj = configBll.GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
        //////    // if (configfj != null)
        //////    // {
        //////    // ParamValue = configfj.F_ParamValue;
        //////    // }
        //////    submit_case_material_info paras = new submit_case_material_info();
        //////    paras.jsonList = new List<material_info>();
        //////    var Accessories = new CallCenterApi.BLL.T_Sys_Accessories().GetModelList("F_FileId in (" + file + ")");
        //////    if (Accessories != null && Accessories.Count > 0)
        //////    {
        //////        foreach (var it in Accessories)
        //////        {
        //////            material_info jsonList = new material_info();
        //////            string newwokrkorder = "";
        //////            if (WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.MATERIAL_ID = it.F_FileId.ToString();
        //////            jsonList.MATERIAL_NAME = it.F_FileName;
        //////            jsonList.MATERIAL_FILE_TYPE = it.F_FileType;
        //////            jsonList.MATERIAL_TYPE = type;
        //////            jsonList.MATERIAL_CONTACTID = id.ToString();
        //////            jsonList.MATERAIL_URL = ParamValue + it.F_FileUrl;
        //////            paras.jsonList.Add(jsonList);
        //////        }
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdcl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var iv in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + iv.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + iv.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送标识:" + iv.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + iv.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }


        //////}
        //////public void bajie2(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_finish_info paras = new submit_case_finish_info();
        //////    paras.jsonList = new List<finish_info>();

        //////    foreach (var model in modellist)
        //////    {
        //////        if (model.F_WorkState == 9 && model.F_DealTime != null)
        //////        {
        //////            finish_info jsonList = new finish_info();
        //////            string newwokrkorder = model.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;

        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            if (model.F_IsResult == null || model.F_IsResult == 1)
        //////            {
        //////                jsonList.FINISH_TYPE = "10";
        //////                jsonList.DEPT_NAME = "热线中心";
        //////                if (model.F_CloseTime != null)
        //////                    jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else if (model.F_DealTime != null)
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else
        //////                    jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.DEPT_CODE = "4106000299";
        //////            }
        //////            else
        //////            {
        //////                jsonList.FINISH_TYPE = "20";
        //////                if (model.F_MainDeptId != null && model.F_MainDeptId > 0 && model.F_DealTime != null)
        //////                {
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')") != null)
        //////                        jsonList.DEPT_NAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')").ToString();
        //////                    if (DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'") != null)
        //////                        jsonList.DEPT_CODE = DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'").ToString();
        //////                }
        //////                else
        //////                {
        //////                    if (model.F_CloseTime != null)
        //////                        jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else if (model.F_DealTime != null)
        //////                        jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else
        //////                        jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    jsonList.DEPT_NAME = "热线中心";
        //////                    jsonList.DEPT_CODE = "4106000299";
        //////                }

        //////            }
        //////            if (model.F_CloseTime != null)
        //////                jsonList.FINISH_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else if (model.F_DealTime != null)
        //////                jsonList.FINISH_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else
        //////                jsonList.FINISH_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");


        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')") != null)
        //////                jsonList.FINISH_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')").ToString();
        //////            else
        //////                jsonList.FINISH_NAME = model.F_DealUser;
        //////            if (string.IsNullOrEmpty(jsonList.FINISH_NAME))
        //////                jsonList.FINISH_NAME = "热线中心";
        //////            jsonList.FINISH_CONTENT = model.F_Result;
        //////            jsonList.END_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + model.F_CreateTime + "', '" + model.F_DealTime + "')").ToString());
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdbj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void yiji2(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (models.F_MainDeptId != null && models.F_MainDeptId > 0)
        //////        {
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = "TOP";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                else
        //////                    jsonList.TASK_OUNAME = "";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.TASK_CONTENT = "无";
        //////                else
        //////                    jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                if (info.F_IsNext > 0)
        //////                {
        //////                    jsonList.TASK_ISALLOT = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISALLOT = "0";
        //////                }
        //////                if (!string.IsNullOrEmpty(model.F_File))
        //////                {
        //////                    fjcl2(token, newwokrkorder, model.F_File, models.F_SourceArea.ToString(), model.F_Id, "20");
        //////                }
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void erji2(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (!string.IsNullOrEmpty(models.F_MainDeptID3))
        //////        {
        //////            var info1 = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null && info1 != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = info1.F_Id.ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                jsonList.TASK_ISALLOT = "1";
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);


        //////            }
        //////        }


        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }

        //////    }

        //////}
        //////public void dianhua2(string token, string WorkOrderId)
        //////{
        //////    var workorder = workorderBLL.GetModel(WorkOrderId);

        //////    var model = new CallCenterApi.BLL.T_Call_CallRecords().GetModelByCallId(workorder.F_CallId);

        //////    if (model != null)
        //////    {
        //////        submit_case_record paras = new submit_case_record();
        //////        paras.jsonList = new List<record>();
        //////        record jsonList = new record();
        //////        string newwokrkorder = WorkOrderId;
        //////        if (WorkOrderId.Contains("QT"))
        //////            newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////        else
        //////            newwokrkorder = WorkOrderId;
        //////        jsonList.CASE_SERIAL = newwokrkorder;
        //////        jsonList.AREA_CODE = AREA_CODE;
        //////        jsonList.RECORD_ID = model.CallRecordsId.ToString();
        //////        jsonList.RECORD_PHONE = model.CallNumber;
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_STATUS = "30";
        //////        else
        //////            jsonList.RECORD_STATUS = "10";
        //////        if (model.CallType == 0)
        //////            jsonList.RECORD_TYPE = "10";
        //////        else
        //////            jsonList.RECORD_TYPE = "30";
        //////        if (model.TalkStartTime != null)
        //////            jsonList.RECORD_STARTTIME = model.TalkStartTime
        //////                .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_ENDTIME = model.TalkEndTime
        //////            .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        else
        //////            jsonList.RECORD_ENDTIME = "";
        //////        jsonList.RECORD_LENGTH = model.TalkLongTime;
        //////        jsonList.RECORD_LOGINID = model.UserCode;
        //////        // var config = new CallCenterApi.BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
        //////        if (model.FilePath != null)
        //////        {
        //////            var ym = "http://222.143.144.10:12000/";
        //////            if (ym.Substring(ym.Length - 1) == "/")
        //////            {
        //////                ym = ym.Substring(0, ym.Length - 1);
        //////            }

        //////            string lujing = model.FilePath.Substring(model.FilePath.IndexOf(':') + 1).Replace('\\', '/');
        //////            string wlpath = ym + lujing;

        //////            jsonList.RECORD_URL = wlpath;
        //////        }
        //////        paras.jsonList.Add(jsonList);
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();

        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/dhfwjl", jsonParam);

        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }

        //////}
        //////public void pingjia2(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_info paras = new submit_case_visit_info();
        //////    paras.jsonList = new List<visit_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        var model = new CallCenterApi.BLL.T_Bus_VisitResult().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////        if (model != null)
        //////        {
        //////            visit_info jsonList = new visit_info();
        //////            string newwokrkorder = models.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.VISIT_TYPE = "DH";
        //////            jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////            else
        //////                jsonList.VISIT_NAME = model.F_CreateUser;
        //////            if (string.IsNullOrEmpty(model.F_Result))
        //////                jsonList.VISIT_CONTENT = "无";
        //////            else
        //////                jsonList.VISIT_CONTENT = model.F_Result;
        //////            if (model.F_IsSatisfie == 0)
        //////                jsonList.VISIT_SATISFY = "2";
        //////            else
        //////                jsonList.VISIT_SATISFY = "4";

        //////            jsonList.VISIT_NUMBER = int.Parse(DbHelperSQL.GetSingle(" select count(1) from T_Bus_VisitResult  where F_WorkOrderId ='" + model.F_WorkOrderId + "'").ToString());
        //////            paras.jsonList.Add(jsonList);




        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdzzpj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }



        //////    }


        //////}
        //////public void liucheng2(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{

        //////    submit_case_process_info paras = new submit_case_process_info();
        //////    paras.jsonList = new List<process_info>();
        //////    foreach (var models in modellist)
        //////    {
        //////        var process = new CallCenterApi.BLL.T_Bus_Operation().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (process != null)
        //////        {
        //////            foreach (var model in process)
        //////            {
        //////                if (model.F_Message.Contains("查收了") || model.F_Message.Contains("交办了")
        //////                    || model.F_Message.Contains("回访了"))
        //////                {
        //////                    process_info jsonList = new process_info();
        //////                    string newwokrkorder = model.F_WorkOrderId;
        //////                    if (model.F_WorkOrderId.Contains("QT"))
        //////                        newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                    else
        //////                        newwokrkorder = model.F_WorkOrderId;
        //////                    jsonList.CASE_SERIAL = newwokrkorder;

        //////                    jsonList.AREA_CODE = AREA_CODE;
        //////                    jsonList.PROCESS_ID = model.F_Id.ToString();
        //////                    jsonList.DEPT_NAME = model.F_Message.Split('(')[0];
        //////                    if (model.F_Message.Contains("查收了"))
        //////                        jsonList.TACHE_NAME = "查收工单";
        //////                    else if (model.F_Message.Contains("交办了"))
        //////                        jsonList.TACHE_NAME = "交办工单";
        //////                    else if (model.F_Message.Contains("回访了"))
        //////                        jsonList.TACHE_NAME = "审核工单";
        //////                    jsonList.PROCESS_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                        jsonList.PROCESS_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                    else
        //////                        jsonList.PROCESS_NAME = model.F_CreateUser;
        //////                    jsonList.PROCESS_NOTE = model.F_Message;
        //////                    paras.jsonList.Add(jsonList);
        //////                }
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdcllc", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }

        //////}
        //////public void huifangjilu2(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_detail_info paras = new submit_case_visit_detail_info();
        //////    paras.jsonList = new List<detail_info>();
        //////    //  LogFactory.GetLogger("HttpPost").Warn(modellist.ToJson()+"ttssds");
        //////    foreach (var models in modellist)
        //////    {
        //////        var modelslist = new CallCenterApi.BLL.T_Bus_VisitResult().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (modelslist != null && modelslist.Count > 0)
        //////        {
        //////            foreach (var model in modelslist)
        //////            {
        //////                detail_info jsonList = new detail_info();
        //////                string newwokrkorder = model.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;

        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.VISIT_ID = model.F_Id.ToString();

        //////                jsonList.VISIT_TYPE = "DH";
        //////                jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.VISIT_NAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.VISIT_CONTENT = "无";
        //////                else
        //////                    jsonList.VISIT_CONTENT = model.F_Result;
        //////                if (model.F_IsSatisfie == 0)
        //////                    jsonList.VISIT_SATISFY = "2";
        //////                else
        //////                    jsonList.VISIT_SATISFY = "4";
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdhfjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }

        //////    }



        //////}
        //////public void fjcl2(string token, string WorkOrderId, string file, string area, int id, string type)
        //////{
        //////    string ParamValue = "http://222.143.144.10:8002";
        //////    //  var configfj = configBll.GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
        //////    // if (configfj != null)
        //////    // {
        //////    // ParamValue = configfj.F_ParamValue;
        //////    // }
        //////    submit_case_material_info paras = new submit_case_material_info();
        //////    paras.jsonList = new List<material_info>();
        //////    var Accessories = new CallCenterApi.BLL.T_Sys_Accessories().GetModelList("F_FileId in (" + file + ")");
        //////    if (Accessories != null && Accessories.Count > 0)
        //////    {
        //////        foreach (var it in Accessories)
        //////        {
        //////            material_info jsonList = new material_info();
        //////            string newwokrkorder = "";
        //////            if (WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.MATERIAL_ID = it.F_FileId.ToString();
        //////            jsonList.MATERIAL_NAME = it.F_FileName;
        //////            jsonList.MATERIAL_FILE_TYPE = it.F_FileType;
        //////            jsonList.MATERIAL_TYPE = type;
        //////            jsonList.MATERIAL_CONTACTID = id.ToString();
        //////            jsonList.MATERAIL_URL = ParamValue + it.F_FileUrl;
        //////            paras.jsonList.Add(jsonList);
        //////        }
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdcl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var iv in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + iv.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + iv.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送标识:" + iv.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + iv.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }


        //////}
        //////public void bajie3(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_finish_info paras = new submit_case_finish_info();
        //////    paras.jsonList = new List<finish_info>();

        //////    foreach (var model in modellist)
        //////    {
        //////        if (model.F_WorkState == 9 && model.F_DealTime != null)
        //////        {
        //////            finish_info jsonList = new finish_info();
        //////            string newwokrkorder = model.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;

        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            if (model.F_IsResult == null || model.F_IsResult == 1)
        //////            {
        //////                jsonList.FINISH_TYPE = "10";
        //////                jsonList.DEPT_NAME = "热线中心";
        //////                if (model.F_CloseTime != null)
        //////                    jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else if (model.F_DealTime != null)
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else
        //////                    jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.DEPT_CODE = "4106000299";
        //////            }
        //////            else
        //////            {
        //////                jsonList.FINISH_TYPE = "20";
        //////                if (model.F_MainDeptId != null && model.F_MainDeptId > 0 && model.F_DealTime != null)
        //////                {
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')") != null)
        //////                        jsonList.DEPT_NAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')").ToString();
        //////                    if (DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'") != null)
        //////                        jsonList.DEPT_CODE = DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'").ToString();
        //////                }
        //////                else
        //////                {
        //////                    if (model.F_CloseTime != null)
        //////                        jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else if (model.F_DealTime != null)
        //////                        jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else
        //////                        jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    jsonList.DEPT_NAME = "热线中心";
        //////                    jsonList.DEPT_CODE = "4106000299";
        //////                }

        //////            }
        //////            if (model.F_CloseTime != null)
        //////                jsonList.FINISH_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else if (model.F_DealTime != null)
        //////                jsonList.FINISH_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else
        //////                jsonList.FINISH_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");


        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')") != null)
        //////                jsonList.FINISH_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')").ToString();
        //////            else
        //////                jsonList.FINISH_NAME = model.F_DealUser;
        //////            if (string.IsNullOrEmpty(jsonList.FINISH_NAME))
        //////                jsonList.FINISH_NAME = "热线中心";
        //////            jsonList.FINISH_CONTENT = model.F_Result;
        //////            jsonList.END_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + model.F_CreateTime + "', '" + model.F_DealTime + "')").ToString());
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdbj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void yiji3(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (models.F_MainDeptId != null && models.F_MainDeptId > 0)
        //////        {
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = "TOP";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                else
        //////                    jsonList.TASK_OUNAME = "";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.TASK_CONTENT = "无";
        //////                else
        //////                    jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                if (info.F_IsNext > 0)
        //////                {
        //////                    jsonList.TASK_ISALLOT = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISALLOT = "0";
        //////                }
        //////                if (!string.IsNullOrEmpty(model.F_File))
        //////                {
        //////                    fjcl3(token, newwokrkorder, model.F_File, models.F_SourceArea.ToString(), model.F_Id, "20");
        //////                }
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void erji3(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (!string.IsNullOrEmpty(models.F_MainDeptID3))
        //////        {
        //////            var info1 = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null && info1 != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = info1.F_Id.ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                jsonList.TASK_ISALLOT = "1";
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);


        //////            }
        //////        }


        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }

        //////    }

        //////}
        //////public void dianhua3(string token, string WorkOrderId)
        //////{
        //////    var workorder = workorderBLL.GetModel(WorkOrderId);

        //////    var model = new CallCenterApi.BLL.T_Call_CallRecords().GetModelByCallId(workorder.F_CallId);

        //////    if (model != null)
        //////    {
        //////        submit_case_record paras = new submit_case_record();
        //////        paras.jsonList = new List<record>();
        //////        record jsonList = new record();
        //////        string newwokrkorder = WorkOrderId;
        //////        if (WorkOrderId.Contains("QT"))
        //////            newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////        else
        //////            newwokrkorder = WorkOrderId;
        //////        jsonList.CASE_SERIAL = newwokrkorder;
        //////        jsonList.AREA_CODE = AREA_CODE;
        //////        jsonList.RECORD_ID = model.CallRecordsId.ToString();
        //////        jsonList.RECORD_PHONE = model.CallNumber;
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_STATUS = "30";
        //////        else
        //////            jsonList.RECORD_STATUS = "10";
        //////        if (model.CallType == 0)
        //////            jsonList.RECORD_TYPE = "10";
        //////        else
        //////            jsonList.RECORD_TYPE = "30";
        //////        if (model.TalkStartTime != null)
        //////            jsonList.RECORD_STARTTIME = model.TalkStartTime
        //////                .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_ENDTIME = model.TalkEndTime
        //////            .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        else
        //////            jsonList.RECORD_ENDTIME = "";
        //////        jsonList.RECORD_LENGTH = model.TalkLongTime;
        //////        jsonList.RECORD_LOGINID = model.UserCode;
        //////        // var config = new CallCenterApi.BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
        //////        if (model.FilePath != null)
        //////        {
        //////            var ym = "http://222.143.144.10:12000/";
        //////            if (ym.Substring(ym.Length - 1) == "/")
        //////            {
        //////                ym = ym.Substring(0, ym.Length - 1);
        //////            }

        //////            string lujing = model.FilePath.Substring(model.FilePath.IndexOf(':') + 1).Replace('\\', '/');
        //////            string wlpath = ym + lujing;

        //////            jsonList.RECORD_URL = wlpath;
        //////        }
        //////        paras.jsonList.Add(jsonList);
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();

        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/dhfwjl", jsonParam);

        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }

        //////}
        //////public void pingjia3(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_info paras = new submit_case_visit_info();
        //////    paras.jsonList = new List<visit_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        var model = new CallCenterApi.BLL.T_Bus_VisitResult().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////        if (model != null)
        //////        {
        //////            visit_info jsonList = new visit_info();
        //////            string newwokrkorder = models.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.VISIT_TYPE = "DH";
        //////            jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////            else
        //////                jsonList.VISIT_NAME = model.F_CreateUser;
        //////            if (string.IsNullOrEmpty(model.F_Result))
        //////                jsonList.VISIT_CONTENT = "无";
        //////            else
        //////                jsonList.VISIT_CONTENT = model.F_Result;
        //////            if (model.F_IsSatisfie == 0)
        //////                jsonList.VISIT_SATISFY = "2";
        //////            else
        //////                jsonList.VISIT_SATISFY = "4";

        //////            jsonList.VISIT_NUMBER = int.Parse(DbHelperSQL.GetSingle(" select count(1) from T_Bus_VisitResult  where F_WorkOrderId ='" + model.F_WorkOrderId + "'").ToString());
        //////            paras.jsonList.Add(jsonList);




        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdzzpj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }



        //////    }


        //////}
        //////public void liucheng3(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{

        //////    submit_case_process_info paras = new submit_case_process_info();
        //////    paras.jsonList = new List<process_info>();
        //////    foreach (var models in modellist)
        //////    {
        //////        var process = new CallCenterApi.BLL.T_Bus_Operation().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (process != null)
        //////        {
        //////            foreach (var model in process)
        //////            {
        //////                if (model.F_Message.Contains("查收了") || model.F_Message.Contains("交办了")
        //////                    || model.F_Message.Contains("回访了"))
        //////                {
        //////                    process_info jsonList = new process_info();
        //////                    string newwokrkorder = model.F_WorkOrderId;
        //////                    if (model.F_WorkOrderId.Contains("QT"))
        //////                        newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                    else
        //////                        newwokrkorder = model.F_WorkOrderId;
        //////                    jsonList.CASE_SERIAL = newwokrkorder;

        //////                    jsonList.AREA_CODE = AREA_CODE;
        //////                    jsonList.PROCESS_ID = model.F_Id.ToString();
        //////                    jsonList.DEPT_NAME = model.F_Message.Split('(')[0];
        //////                    if (model.F_Message.Contains("查收了"))
        //////                        jsonList.TACHE_NAME = "查收工单";
        //////                    else if (model.F_Message.Contains("交办了"))
        //////                        jsonList.TACHE_NAME = "交办工单";
        //////                    else if (model.F_Message.Contains("回访了"))
        //////                        jsonList.TACHE_NAME = "审核工单";
        //////                    jsonList.PROCESS_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                        jsonList.PROCESS_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                    else
        //////                        jsonList.PROCESS_NAME = model.F_CreateUser;
        //////                    jsonList.PROCESS_NOTE = model.F_Message;
        //////                    paras.jsonList.Add(jsonList);
        //////                }
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdcllc", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }

        //////}
        //////public void huifangjilu3(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_detail_info paras = new submit_case_visit_detail_info();
        //////    paras.jsonList = new List<detail_info>();
        //////    //  LogFactory.GetLogger("HttpPost").Warn(modellist.ToJson()+"ttssds");
        //////    foreach (var models in modellist)
        //////    {
        //////        var modelslist = new CallCenterApi.BLL.T_Bus_VisitResult().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (modelslist != null && modelslist.Count > 0)
        //////        {
        //////            foreach (var model in modelslist)
        //////            {
        //////                detail_info jsonList = new detail_info();
        //////                string newwokrkorder = model.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;

        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.VISIT_ID = model.F_Id.ToString();

        //////                jsonList.VISIT_TYPE = "DH";
        //////                jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.VISIT_NAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.VISIT_CONTENT = "无";
        //////                else
        //////                    jsonList.VISIT_CONTENT = model.F_Result;
        //////                if (model.F_IsSatisfie == 0)
        //////                    jsonList.VISIT_SATISFY = "2";
        //////                else
        //////                    jsonList.VISIT_SATISFY = "4";
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdhfjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }

        //////    }



        //////}
        //////public void fjcl3(string token, string WorkOrderId, string file, string area, int id, string type)
        //////{
        //////    string ParamValue = "http://222.143.144.10:8002";
        //////    //  var configfj = configBll.GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
        //////    // if (configfj != null)
        //////    // {
        //////    // ParamValue = configfj.F_ParamValue;
        //////    // }
        //////    submit_case_material_info paras = new submit_case_material_info();
        //////    paras.jsonList = new List<material_info>();
        //////    var Accessories = new CallCenterApi.BLL.T_Sys_Accessories().GetModelList("F_FileId in (" + file + ")");
        //////    if (Accessories != null && Accessories.Count > 0)
        //////    {
        //////        foreach (var it in Accessories)
        //////        {
        //////            material_info jsonList = new material_info();
        //////            string newwokrkorder = "";
        //////            if (WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.MATERIAL_ID = it.F_FileId.ToString();
        //////            jsonList.MATERIAL_NAME = it.F_FileName;
        //////            jsonList.MATERIAL_FILE_TYPE = it.F_FileType;
        //////            jsonList.MATERIAL_TYPE = type;
        //////            jsonList.MATERIAL_CONTACTID = id.ToString();
        //////            jsonList.MATERAIL_URL = ParamValue + it.F_FileUrl;
        //////            paras.jsonList.Add(jsonList);
        //////        }
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdcl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var iv in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + iv.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + iv.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送标识:" + iv.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + iv.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }


        //////}
        //////public void bajie4(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_finish_info paras = new submit_case_finish_info();
        //////    paras.jsonList = new List<finish_info>();

        //////    foreach (var model in modellist)
        //////    {
        //////        if (model.F_WorkState == 9 && model.F_DealTime != null)
        //////        {
        //////            finish_info jsonList = new finish_info();
        //////            string newwokrkorder = model.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;

        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            if (model.F_IsResult == null || model.F_IsResult == 1)
        //////            {
        //////                jsonList.FINISH_TYPE = "10";
        //////                jsonList.DEPT_NAME = "热线中心";
        //////                if (model.F_CloseTime != null)
        //////                    jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else if (model.F_DealTime != null)
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else
        //////                    jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.DEPT_CODE = "4106000299";
        //////            }
        //////            else
        //////            {
        //////                jsonList.FINISH_TYPE = "20";
        //////                if (model.F_MainDeptId != null && model.F_MainDeptId > 0 && model.F_DealTime != null)
        //////                {
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')") != null)
        //////                        jsonList.DEPT_NAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')").ToString();
        //////                    if (DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'") != null)
        //////                        jsonList.DEPT_CODE = DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'").ToString();
        //////                }
        //////                else
        //////                {
        //////                    if (model.F_CloseTime != null)
        //////                        jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else if (model.F_DealTime != null)
        //////                        jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else
        //////                        jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    jsonList.DEPT_NAME = "热线中心";
        //////                    jsonList.DEPT_CODE = "4106000299";
        //////                }

        //////            }
        //////            if (model.F_CloseTime != null)
        //////                jsonList.FINISH_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else if (model.F_DealTime != null)
        //////                jsonList.FINISH_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else
        //////                jsonList.FINISH_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");


        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')") != null)
        //////                jsonList.FINISH_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')").ToString();
        //////            else
        //////                jsonList.FINISH_NAME = model.F_DealUser;
        //////            if (string.IsNullOrEmpty(jsonList.FINISH_NAME))
        //////                jsonList.FINISH_NAME = "热线中心";
        //////            jsonList.FINISH_CONTENT = model.F_Result;
        //////            jsonList.END_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + model.F_CreateTime + "', '" + model.F_DealTime + "')").ToString());
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdbj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void yiji4(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (models.F_MainDeptId != null && models.F_MainDeptId > 0)
        //////        {
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = "TOP";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                else
        //////                    jsonList.TASK_OUNAME = "";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.TASK_CONTENT = "无";
        //////                else
        //////                    jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                if (info.F_IsNext > 0)
        //////                {
        //////                    jsonList.TASK_ISALLOT = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISALLOT = "0";
        //////                }
        //////                if (!string.IsNullOrEmpty(model.F_File))
        //////                {
        //////                    fjcl4(token, newwokrkorder, model.F_File, models.F_SourceArea.ToString(), model.F_Id, "20");
        //////                }
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void erji4(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (!string.IsNullOrEmpty(models.F_MainDeptID3))
        //////        {
        //////            var info1 = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null && info1 != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = info1.F_Id.ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                jsonList.TASK_ISALLOT = "1";
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);


        //////            }
        //////        }


        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }

        //////    }

        //////}
        //////public void dianhua4(string token, string WorkOrderId)
        //////{
        //////    var workorder = workorderBLL.GetModel(WorkOrderId);

        //////    var model = new CallCenterApi.BLL.T_Call_CallRecords().GetModelByCallId(workorder.F_CallId);

        //////    if (model != null)
        //////    {
        //////        submit_case_record paras = new submit_case_record();
        //////        paras.jsonList = new List<record>();
        //////        record jsonList = new record();
        //////        string newwokrkorder = WorkOrderId;
        //////        if (WorkOrderId.Contains("QT"))
        //////            newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////        else
        //////            newwokrkorder = WorkOrderId;
        //////        jsonList.CASE_SERIAL = newwokrkorder;
        //////        jsonList.AREA_CODE = AREA_CODE;
        //////        jsonList.RECORD_ID = model.CallRecordsId.ToString();
        //////        jsonList.RECORD_PHONE = model.CallNumber;
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_STATUS = "30";
        //////        else
        //////            jsonList.RECORD_STATUS = "10";
        //////        if (model.CallType == 0)
        //////            jsonList.RECORD_TYPE = "10";
        //////        else
        //////            jsonList.RECORD_TYPE = "30";
        //////        if (model.TalkStartTime != null)
        //////            jsonList.RECORD_STARTTIME = model.TalkStartTime
        //////                .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_ENDTIME = model.TalkEndTime
        //////            .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        else
        //////            jsonList.RECORD_ENDTIME = "";
        //////        jsonList.RECORD_LENGTH = model.TalkLongTime;
        //////        jsonList.RECORD_LOGINID = model.UserCode;
        //////        // var config = new CallCenterApi.BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
        //////        if (model.FilePath != null)
        //////        {
        //////            var ym = "http://222.143.144.10:12000/";
        //////            if (ym.Substring(ym.Length - 1) == "/")
        //////            {
        //////                ym = ym.Substring(0, ym.Length - 1);
        //////            }

        //////            string lujing = model.FilePath.Substring(model.FilePath.IndexOf(':') + 1).Replace('\\', '/');
        //////            string wlpath = ym + lujing;

        //////            jsonList.RECORD_URL = wlpath;
        //////        }
        //////        paras.jsonList.Add(jsonList);
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();

        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/dhfwjl", jsonParam);

        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }

        //////}
        //////public void pingjia4(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_info paras = new submit_case_visit_info();
        //////    paras.jsonList = new List<visit_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        var model = new CallCenterApi.BLL.T_Bus_VisitResult().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////        if (model != null)
        //////        {
        //////            visit_info jsonList = new visit_info();
        //////            string newwokrkorder = models.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.VISIT_TYPE = "DH";
        //////            jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////            else
        //////                jsonList.VISIT_NAME = model.F_CreateUser;
        //////            if (string.IsNullOrEmpty(model.F_Result))
        //////                jsonList.VISIT_CONTENT = "无";
        //////            else
        //////                jsonList.VISIT_CONTENT = model.F_Result;
        //////            if (model.F_IsSatisfie == 0)
        //////                jsonList.VISIT_SATISFY = "2";
        //////            else
        //////                jsonList.VISIT_SATISFY = "4";

        //////            jsonList.VISIT_NUMBER = int.Parse(DbHelperSQL.GetSingle(" select count(1) from T_Bus_VisitResult  where F_WorkOrderId ='" + model.F_WorkOrderId + "'").ToString());
        //////            paras.jsonList.Add(jsonList);




        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdzzpj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }



        //////    }


        //////}
        //////public void liucheng4(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{

        //////    submit_case_process_info paras = new submit_case_process_info();
        //////    paras.jsonList = new List<process_info>();
        //////    foreach (var models in modellist)
        //////    {
        //////        var process = new CallCenterApi.BLL.T_Bus_Operation().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (process != null)
        //////        {
        //////            foreach (var model in process)
        //////            {
        //////                if (model.F_Message.Contains("查收了") || model.F_Message.Contains("交办了")
        //////                    || model.F_Message.Contains("回访了"))
        //////                {
        //////                    process_info jsonList = new process_info();
        //////                    string newwokrkorder = model.F_WorkOrderId;
        //////                    if (model.F_WorkOrderId.Contains("QT"))
        //////                        newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                    else
        //////                        newwokrkorder = model.F_WorkOrderId;
        //////                    jsonList.CASE_SERIAL = newwokrkorder;

        //////                    jsonList.AREA_CODE = AREA_CODE;
        //////                    jsonList.PROCESS_ID = model.F_Id.ToString();
        //////                    jsonList.DEPT_NAME = model.F_Message.Split('(')[0];
        //////                    if (model.F_Message.Contains("查收了"))
        //////                        jsonList.TACHE_NAME = "查收工单";
        //////                    else if (model.F_Message.Contains("交办了"))
        //////                        jsonList.TACHE_NAME = "交办工单";
        //////                    else if (model.F_Message.Contains("回访了"))
        //////                        jsonList.TACHE_NAME = "审核工单";
        //////                    jsonList.PROCESS_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                        jsonList.PROCESS_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                    else
        //////                        jsonList.PROCESS_NAME = model.F_CreateUser;
        //////                    jsonList.PROCESS_NOTE = model.F_Message;
        //////                    paras.jsonList.Add(jsonList);
        //////                }
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdcllc", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }

        //////}
        //////public void huifangjilu4(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_detail_info paras = new submit_case_visit_detail_info();
        //////    paras.jsonList = new List<detail_info>();
        //////    //  LogFactory.GetLogger("HttpPost").Warn(modellist.ToJson()+"ttssds");
        //////    foreach (var models in modellist)
        //////    {
        //////        var modelslist = new CallCenterApi.BLL.T_Bus_VisitResult().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (modelslist != null && modelslist.Count > 0)
        //////        {
        //////            foreach (var model in modelslist)
        //////            {
        //////                detail_info jsonList = new detail_info();
        //////                string newwokrkorder = model.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;

        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.VISIT_ID = model.F_Id.ToString();

        //////                jsonList.VISIT_TYPE = "DH";
        //////                jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.VISIT_NAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.VISIT_CONTENT = "无";
        //////                else
        //////                    jsonList.VISIT_CONTENT = model.F_Result;
        //////                if (model.F_IsSatisfie == 0)
        //////                    jsonList.VISIT_SATISFY = "2";
        //////                else
        //////                    jsonList.VISIT_SATISFY = "4";
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdhfjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }

        //////    }



        //////}
        //////public void fjcl4(string token, string WorkOrderId, string file, string area, int id, string type)
        //////{
        //////    string ParamValue = "http://222.143.144.10:8002";
        //////    //  var configfj = configBll.GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
        //////    // if (configfj != null)
        //////    // {
        //////    // ParamValue = configfj.F_ParamValue;
        //////    // }
        //////    submit_case_material_info paras = new submit_case_material_info();
        //////    paras.jsonList = new List<material_info>();
        //////    var Accessories = new CallCenterApi.BLL.T_Sys_Accessories().GetModelList("F_FileId in (" + file + ")");
        //////    if (Accessories != null && Accessories.Count > 0)
        //////    {
        //////        foreach (var it in Accessories)
        //////        {
        //////            material_info jsonList = new material_info();
        //////            string newwokrkorder = "";
        //////            if (WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.MATERIAL_ID = it.F_FileId.ToString();
        //////            jsonList.MATERIAL_NAME = it.F_FileName;
        //////            jsonList.MATERIAL_FILE_TYPE = it.F_FileType;
        //////            jsonList.MATERIAL_TYPE = type;
        //////            jsonList.MATERIAL_CONTACTID = id.ToString();
        //////            jsonList.MATERAIL_URL = ParamValue + it.F_FileUrl;
        //////            paras.jsonList.Add(jsonList);
        //////        }
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdcl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var iv in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + iv.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + iv.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送标识:" + iv.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + iv.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }


        //////}
        //////public void bajie5(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_finish_info paras = new submit_case_finish_info();
        //////    paras.jsonList = new List<finish_info>();

        //////    foreach (var model in modellist)
        //////    {
        //////        if (model.F_WorkState == 9 && model.F_DealTime != null)
        //////        {
        //////            finish_info jsonList = new finish_info();
        //////            string newwokrkorder = model.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;

        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            if (model.F_IsResult == null || model.F_IsResult == 1)
        //////            {
        //////                jsonList.FINISH_TYPE = "10";
        //////                jsonList.DEPT_NAME = "热线中心";
        //////                if (model.F_CloseTime != null)
        //////                    jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else if (model.F_DealTime != null)
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else
        //////                    jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.DEPT_CODE = "4106000299";
        //////            }
        //////            else
        //////            {
        //////                jsonList.FINISH_TYPE = "20";
        //////                if (model.F_MainDeptId != null && model.F_MainDeptId > 0 && model.F_DealTime != null)
        //////                {
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')") != null)
        //////                        jsonList.DEPT_NAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')").ToString();
        //////                    if (DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'") != null)
        //////                        jsonList.DEPT_CODE = DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'").ToString();
        //////                }
        //////                else
        //////                {
        //////                    if (model.F_CloseTime != null)
        //////                        jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else if (model.F_DealTime != null)
        //////                        jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else
        //////                        jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    jsonList.DEPT_NAME = "热线中心";
        //////                    jsonList.DEPT_CODE = "4106000299";
        //////                }

        //////            }
        //////            if (model.F_CloseTime != null)
        //////                jsonList.FINISH_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else if (model.F_DealTime != null)
        //////                jsonList.FINISH_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else
        //////                jsonList.FINISH_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");


        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')") != null)
        //////                jsonList.FINISH_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')").ToString();
        //////            else
        //////                jsonList.FINISH_NAME = model.F_DealUser;
        //////            if (string.IsNullOrEmpty(jsonList.FINISH_NAME))
        //////                jsonList.FINISH_NAME = "热线中心";
        //////            jsonList.FINISH_CONTENT = model.F_Result;
        //////            jsonList.END_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + model.F_CreateTime + "', '" + model.F_DealTime + "')").ToString());
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdbj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void yiji5(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (models.F_MainDeptId != null && models.F_MainDeptId > 0)
        //////        {
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = "TOP";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                else
        //////                    jsonList.TASK_OUNAME = "";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.TASK_CONTENT = "无";
        //////                else
        //////                    jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                if (info.F_IsNext > 0)
        //////                {
        //////                    jsonList.TASK_ISALLOT = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISALLOT = "0";
        //////                }
        //////                if (!string.IsNullOrEmpty(model.F_File))
        //////                {
        //////                    fjcl5(token, newwokrkorder, model.F_File, models.F_SourceArea.ToString(), model.F_Id, "20");
        //////                }
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void erji5(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (!string.IsNullOrEmpty(models.F_MainDeptID3))
        //////        {
        //////            var info1 = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null && info1 != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = info1.F_Id.ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                jsonList.TASK_ISALLOT = "1";
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);


        //////            }
        //////        }


        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }

        //////    }

        //////}
        //////public void dianhua5(string token, string WorkOrderId)
        //////{
        //////    var workorder = workorderBLL.GetModel(WorkOrderId);

        //////    var model = new CallCenterApi.BLL.T_Call_CallRecords().GetModelByCallId(workorder.F_CallId);

        //////    if (model != null)
        //////    {
        //////        submit_case_record paras = new submit_case_record();
        //////        paras.jsonList = new List<record>();
        //////        record jsonList = new record();
        //////        string newwokrkorder = WorkOrderId;
        //////        if (WorkOrderId.Contains("QT"))
        //////            newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////        else
        //////            newwokrkorder = WorkOrderId;
        //////        jsonList.CASE_SERIAL = newwokrkorder;
        //////        jsonList.AREA_CODE = AREA_CODE;
        //////        jsonList.RECORD_ID = model.CallRecordsId.ToString();
        //////        jsonList.RECORD_PHONE = model.CallNumber;
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_STATUS = "30";
        //////        else
        //////            jsonList.RECORD_STATUS = "10";
        //////        if (model.CallType == 0)
        //////            jsonList.RECORD_TYPE = "10";
        //////        else
        //////            jsonList.RECORD_TYPE = "30";
        //////        if (model.TalkStartTime != null)
        //////            jsonList.RECORD_STARTTIME = model.TalkStartTime
        //////                .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_ENDTIME = model.TalkEndTime
        //////            .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        else
        //////            jsonList.RECORD_ENDTIME = "";
        //////        jsonList.RECORD_LENGTH = model.TalkLongTime;
        //////        jsonList.RECORD_LOGINID = model.UserCode;
        //////        // var config = new CallCenterApi.BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
        //////        if (model.FilePath != null)
        //////        {
        //////            var ym = "http://222.143.144.10:12000/";
        //////            if (ym.Substring(ym.Length - 1) == "/")
        //////            {
        //////                ym = ym.Substring(0, ym.Length - 1);
        //////            }

        //////            string lujing = model.FilePath.Substring(model.FilePath.IndexOf(':') + 1).Replace('\\', '/');
        //////            string wlpath = ym + lujing;

        //////            jsonList.RECORD_URL = wlpath;
        //////        }
        //////        paras.jsonList.Add(jsonList);
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();

        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/dhfwjl", jsonParam);

        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }

        //////}
        //////public void pingjia5(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_info paras = new submit_case_visit_info();
        //////    paras.jsonList = new List<visit_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        var model = new CallCenterApi.BLL.T_Bus_VisitResult().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////        if (model != null)
        //////        {
        //////            visit_info jsonList = new visit_info();
        //////            string newwokrkorder = models.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.VISIT_TYPE = "DH";
        //////            jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////            else
        //////                jsonList.VISIT_NAME = model.F_CreateUser;
        //////            if (string.IsNullOrEmpty(model.F_Result))
        //////                jsonList.VISIT_CONTENT = "无";
        //////            else
        //////                jsonList.VISIT_CONTENT = model.F_Result;
        //////            if (model.F_IsSatisfie == 0)
        //////                jsonList.VISIT_SATISFY = "2";
        //////            else
        //////                jsonList.VISIT_SATISFY = "4";

        //////            jsonList.VISIT_NUMBER = int.Parse(DbHelperSQL.GetSingle(" select count(1) from T_Bus_VisitResult  where F_WorkOrderId ='" + model.F_WorkOrderId + "'").ToString());
        //////            paras.jsonList.Add(jsonList);




        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdzzpj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }



        //////    }


        //////}
        //////public void liucheng5(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{

        //////    submit_case_process_info paras = new submit_case_process_info();
        //////    paras.jsonList = new List<process_info>();
        //////    foreach (var models in modellist)
        //////    {
        //////        var process = new CallCenterApi.BLL.T_Bus_Operation().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (process != null)
        //////        {
        //////            foreach (var model in process)
        //////            {
        //////                if (model.F_Message.Contains("查收了") || model.F_Message.Contains("交办了")
        //////                    || model.F_Message.Contains("回访了"))
        //////                {
        //////                    process_info jsonList = new process_info();
        //////                    string newwokrkorder = model.F_WorkOrderId;
        //////                    if (model.F_WorkOrderId.Contains("QT"))
        //////                        newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                    else
        //////                        newwokrkorder = model.F_WorkOrderId;
        //////                    jsonList.CASE_SERIAL = newwokrkorder;

        //////                    jsonList.AREA_CODE = AREA_CODE;
        //////                    jsonList.PROCESS_ID = model.F_Id.ToString();
        //////                    jsonList.DEPT_NAME = model.F_Message.Split('(')[0];
        //////                    if (model.F_Message.Contains("查收了"))
        //////                        jsonList.TACHE_NAME = "查收工单";
        //////                    else if (model.F_Message.Contains("交办了"))
        //////                        jsonList.TACHE_NAME = "交办工单";
        //////                    else if (model.F_Message.Contains("回访了"))
        //////                        jsonList.TACHE_NAME = "审核工单";
        //////                    jsonList.PROCESS_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                        jsonList.PROCESS_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                    else
        //////                        jsonList.PROCESS_NAME = model.F_CreateUser;
        //////                    jsonList.PROCESS_NOTE = model.F_Message;
        //////                    paras.jsonList.Add(jsonList);
        //////                }
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdcllc", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }

        //////}
        //////public void huifangjilu5(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_detail_info paras = new submit_case_visit_detail_info();
        //////    paras.jsonList = new List<detail_info>();
        //////    //  LogFactory.GetLogger("HttpPost").Warn(modellist.ToJson()+"ttssds");
        //////    foreach (var models in modellist)
        //////    {
        //////        var modelslist = new CallCenterApi.BLL.T_Bus_VisitResult().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (modelslist != null && modelslist.Count > 0)
        //////        {
        //////            foreach (var model in modelslist)
        //////            {
        //////                detail_info jsonList = new detail_info();
        //////                string newwokrkorder = model.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;

        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.VISIT_ID = model.F_Id.ToString();

        //////                jsonList.VISIT_TYPE = "DH";
        //////                jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.VISIT_NAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.VISIT_CONTENT = "无";
        //////                else
        //////                    jsonList.VISIT_CONTENT = model.F_Result;
        //////                if (model.F_IsSatisfie == 0)
        //////                    jsonList.VISIT_SATISFY = "2";
        //////                else
        //////                    jsonList.VISIT_SATISFY = "4";
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdhfjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }

        //////    }



        //////}
        //////public void fjcl5(string token, string WorkOrderId, string file, string area, int id, string type)
        //////{
        //////    string ParamValue = "http://222.143.144.10:8002";
        //////    //  var configfj = configBll.GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
        //////    // if (configfj != null)
        //////    // {
        //////    // ParamValue = configfj.F_ParamValue;
        //////    // }
        //////    submit_case_material_info paras = new submit_case_material_info();
        //////    paras.jsonList = new List<material_info>();
        //////    var Accessories = new CallCenterApi.BLL.T_Sys_Accessories().GetModelList("F_FileId in (" + file + ")");
        //////    if (Accessories != null && Accessories.Count > 0)
        //////    {
        //////        foreach (var it in Accessories)
        //////        {
        //////            material_info jsonList = new material_info();
        //////            string newwokrkorder = "";
        //////            if (WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.MATERIAL_ID = it.F_FileId.ToString();
        //////            jsonList.MATERIAL_NAME = it.F_FileName;
        //////            jsonList.MATERIAL_FILE_TYPE = it.F_FileType;
        //////            jsonList.MATERIAL_TYPE = type;
        //////            jsonList.MATERIAL_CONTACTID = id.ToString();
        //////            jsonList.MATERAIL_URL = ParamValue + it.F_FileUrl;
        //////            paras.jsonList.Add(jsonList);
        //////        }
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdcl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var iv in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + iv.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + iv.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送标识:" + iv.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + iv.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }


        //////}
        //////public void bajie6(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_finish_info paras = new submit_case_finish_info();
        //////    paras.jsonList = new List<finish_info>();

        //////    foreach (var model in modellist)
        //////    {
        //////        if (model.F_WorkState == 9 && model.F_DealTime != null)
        //////        {
        //////            finish_info jsonList = new finish_info();
        //////            string newwokrkorder = model.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;

        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            if (model.F_IsResult == null || model.F_IsResult == 1)
        //////            {
        //////                jsonList.FINISH_TYPE = "10";
        //////                jsonList.DEPT_NAME = "热线中心";
        //////                if (model.F_CloseTime != null)
        //////                    jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else if (model.F_DealTime != null)
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else
        //////                    jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.DEPT_CODE = "4106000299";
        //////            }
        //////            else
        //////            {
        //////                jsonList.FINISH_TYPE = "20";
        //////                if (model.F_MainDeptId != null && model.F_MainDeptId > 0 && model.F_DealTime != null)
        //////                {
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')") != null)
        //////                        jsonList.DEPT_NAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')").ToString();
        //////                    if (DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'") != null)
        //////                        jsonList.DEPT_CODE = DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'").ToString();
        //////                }
        //////                else
        //////                {
        //////                    if (model.F_CloseTime != null)
        //////                        jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else if (model.F_DealTime != null)
        //////                        jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else
        //////                        jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    jsonList.DEPT_NAME = "热线中心";
        //////                    jsonList.DEPT_CODE = "4106000299";
        //////                }

        //////            }
        //////            if (model.F_CloseTime != null)
        //////                jsonList.FINISH_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else if (model.F_DealTime != null)
        //////                jsonList.FINISH_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else
        //////                jsonList.FINISH_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");


        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')") != null)
        //////                jsonList.FINISH_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')").ToString();
        //////            else
        //////                jsonList.FINISH_NAME = model.F_DealUser;
        //////            if (string.IsNullOrEmpty(jsonList.FINISH_NAME))
        //////                jsonList.FINISH_NAME = "热线中心";
        //////            jsonList.FINISH_CONTENT = model.F_Result;
        //////            jsonList.END_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + model.F_CreateTime + "', '" + model.F_DealTime + "')").ToString());
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdbj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void yiji6(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (models.F_MainDeptId != null && models.F_MainDeptId > 0)
        //////        {
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = "TOP";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                else
        //////                    jsonList.TASK_OUNAME = "";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.TASK_CONTENT = "无";
        //////                else
        //////                    jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                if (info.F_IsNext > 0)
        //////                {
        //////                    jsonList.TASK_ISALLOT = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISALLOT = "0";
        //////                }
        //////                if (!string.IsNullOrEmpty(model.F_File))
        //////                {
        //////                    fjcl6(token, newwokrkorder, model.F_File, models.F_SourceArea.ToString(), model.F_Id, "20");
        //////                }
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void erji6(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (!string.IsNullOrEmpty(models.F_MainDeptID3))
        //////        {
        //////            var info1 = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null && info1 != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = info1.F_Id.ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                jsonList.TASK_ISALLOT = "1";
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);


        //////            }
        //////        }


        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }

        //////    }

        //////}
        //////public void dianhua6(string token, string WorkOrderId)
        //////{
        //////    var workorder = workorderBLL.GetModel(WorkOrderId);

        //////    var model = new CallCenterApi.BLL.T_Call_CallRecords().GetModelByCallId(workorder.F_CallId);

        //////    if (model != null)
        //////    {
        //////        submit_case_record paras = new submit_case_record();
        //////        paras.jsonList = new List<record>();
        //////        record jsonList = new record();
        //////        string newwokrkorder = WorkOrderId;
        //////        if (WorkOrderId.Contains("QT"))
        //////            newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////        else
        //////            newwokrkorder = WorkOrderId;
        //////        jsonList.CASE_SERIAL = newwokrkorder;
        //////        jsonList.AREA_CODE = AREA_CODE;
        //////        jsonList.RECORD_ID = model.CallRecordsId.ToString();
        //////        jsonList.RECORD_PHONE = model.CallNumber;
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_STATUS = "30";
        //////        else
        //////            jsonList.RECORD_STATUS = "10";
        //////        if (model.CallType == 0)
        //////            jsonList.RECORD_TYPE = "10";
        //////        else
        //////            jsonList.RECORD_TYPE = "30";
        //////        if (model.TalkStartTime != null)
        //////            jsonList.RECORD_STARTTIME = model.TalkStartTime
        //////                .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_ENDTIME = model.TalkEndTime
        //////            .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        else
        //////            jsonList.RECORD_ENDTIME = "";
        //////        jsonList.RECORD_LENGTH = model.TalkLongTime;
        //////        jsonList.RECORD_LOGINID = model.UserCode;
        //////        // var config = new CallCenterApi.BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
        //////        if (model.FilePath != null)
        //////        {
        //////            var ym = "http://222.143.144.10:12000/";
        //////            if (ym.Substring(ym.Length - 1) == "/")
        //////            {
        //////                ym = ym.Substring(0, ym.Length - 1);
        //////            }

        //////            string lujing = model.FilePath.Substring(model.FilePath.IndexOf(':') + 1).Replace('\\', '/');
        //////            string wlpath = ym + lujing;

        //////            jsonList.RECORD_URL = wlpath;
        //////        }
        //////        paras.jsonList.Add(jsonList);
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();

        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/dhfwjl", jsonParam);

        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }

        //////}
        //////public void pingjia6(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_info paras = new submit_case_visit_info();
        //////    paras.jsonList = new List<visit_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        var model = new CallCenterApi.BLL.T_Bus_VisitResult().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////        if (model != null)
        //////        {
        //////            visit_info jsonList = new visit_info();
        //////            string newwokrkorder = models.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.VISIT_TYPE = "DH";
        //////            jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////            else
        //////                jsonList.VISIT_NAME = model.F_CreateUser;
        //////            if (string.IsNullOrEmpty(model.F_Result))
        //////                jsonList.VISIT_CONTENT = "无";
        //////            else
        //////                jsonList.VISIT_CONTENT = model.F_Result;
        //////            if (model.F_IsSatisfie == 0)
        //////                jsonList.VISIT_SATISFY = "2";
        //////            else
        //////                jsonList.VISIT_SATISFY = "4";

        //////            jsonList.VISIT_NUMBER = int.Parse(DbHelperSQL.GetSingle(" select count(1) from T_Bus_VisitResult  where F_WorkOrderId ='" + model.F_WorkOrderId + "'").ToString());
        //////            paras.jsonList.Add(jsonList);




        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdzzpj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }



        //////    }


        //////}
        //////public void liucheng6(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{

        //////    submit_case_process_info paras = new submit_case_process_info();
        //////    paras.jsonList = new List<process_info>();
        //////    foreach (var models in modellist)
        //////    {
        //////        var process = new CallCenterApi.BLL.T_Bus_Operation().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (process != null)
        //////        {
        //////            foreach (var model in process)
        //////            {
        //////                if (model.F_Message.Contains("查收了") || model.F_Message.Contains("交办了")
        //////                    || model.F_Message.Contains("回访了"))
        //////                {
        //////                    process_info jsonList = new process_info();
        //////                    string newwokrkorder = model.F_WorkOrderId;
        //////                    if (model.F_WorkOrderId.Contains("QT"))
        //////                        newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                    else
        //////                        newwokrkorder = model.F_WorkOrderId;
        //////                    jsonList.CASE_SERIAL = newwokrkorder;

        //////                    jsonList.AREA_CODE = AREA_CODE;
        //////                    jsonList.PROCESS_ID = model.F_Id.ToString();
        //////                    jsonList.DEPT_NAME = model.F_Message.Split('(')[0];
        //////                    if (model.F_Message.Contains("查收了"))
        //////                        jsonList.TACHE_NAME = "查收工单";
        //////                    else if (model.F_Message.Contains("交办了"))
        //////                        jsonList.TACHE_NAME = "交办工单";
        //////                    else if (model.F_Message.Contains("回访了"))
        //////                        jsonList.TACHE_NAME = "审核工单";
        //////                    jsonList.PROCESS_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                        jsonList.PROCESS_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                    else
        //////                        jsonList.PROCESS_NAME = model.F_CreateUser;
        //////                    jsonList.PROCESS_NOTE = model.F_Message;
        //////                    paras.jsonList.Add(jsonList);
        //////                }
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdcllc", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }

        //////}
        //////public void huifangjilu6(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_detail_info paras = new submit_case_visit_detail_info();
        //////    paras.jsonList = new List<detail_info>();
        //////    //  LogFactory.GetLogger("HttpPost").Warn(modellist.ToJson()+"ttssds");
        //////    foreach (var models in modellist)
        //////    {
        //////        var modelslist = new CallCenterApi.BLL.T_Bus_VisitResult().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (modelslist != null && modelslist.Count > 0)
        //////        {
        //////            foreach (var model in modelslist)
        //////            {
        //////                detail_info jsonList = new detail_info();
        //////                string newwokrkorder = model.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;

        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.VISIT_ID = model.F_Id.ToString();

        //////                jsonList.VISIT_TYPE = "DH";
        //////                jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.VISIT_NAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.VISIT_CONTENT = "无";
        //////                else
        //////                    jsonList.VISIT_CONTENT = model.F_Result;
        //////                if (model.F_IsSatisfie == 0)
        //////                    jsonList.VISIT_SATISFY = "2";
        //////                else
        //////                    jsonList.VISIT_SATISFY = "4";
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdhfjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }

        //////    }



        //////}
        //////public void fjcl6(string token, string WorkOrderId, string file, string area, int id, string type)
        //////{
        //////    string ParamValue = "http://222.143.144.10:8002";
        //////    //  var configfj = configBll.GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
        //////    // if (configfj != null)
        //////    // {
        //////    // ParamValue = configfj.F_ParamValue;
        //////    // }
        //////    submit_case_material_info paras = new submit_case_material_info();
        //////    paras.jsonList = new List<material_info>();
        //////    var Accessories = new CallCenterApi.BLL.T_Sys_Accessories().GetModelList("F_FileId in (" + file + ")");
        //////    if (Accessories != null && Accessories.Count > 0)
        //////    {
        //////        foreach (var it in Accessories)
        //////        {
        //////            material_info jsonList = new material_info();
        //////            string newwokrkorder = "";
        //////            if (WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.MATERIAL_ID = it.F_FileId.ToString();
        //////            jsonList.MATERIAL_NAME = it.F_FileName;
        //////            jsonList.MATERIAL_FILE_TYPE = it.F_FileType;
        //////            jsonList.MATERIAL_TYPE = type;
        //////            jsonList.MATERIAL_CONTACTID = id.ToString();
        //////            jsonList.MATERAIL_URL = ParamValue + it.F_FileUrl;
        //////            paras.jsonList.Add(jsonList);
        //////        }
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdcl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var iv in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + iv.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + iv.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送标识:" + iv.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + iv.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }


        //////}
        //////public void bajie7(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_finish_info paras = new submit_case_finish_info();
        //////    paras.jsonList = new List<finish_info>();

        //////    foreach (var model in modellist)
        //////    {
        //////        if (model.F_WorkState == 9 && model.F_DealTime != null)
        //////        {
        //////            finish_info jsonList = new finish_info();
        //////            string newwokrkorder = model.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;

        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            if (model.F_IsResult == null || model.F_IsResult == 1)
        //////            {
        //////                jsonList.FINISH_TYPE = "10";
        //////                jsonList.DEPT_NAME = "热线中心";
        //////                if (model.F_CloseTime != null)
        //////                    jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else if (model.F_DealTime != null)
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else
        //////                    jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.DEPT_CODE = "4106000299";
        //////            }
        //////            else
        //////            {
        //////                jsonList.FINISH_TYPE = "20";
        //////                if (model.F_MainDeptId != null && model.F_MainDeptId > 0 && model.F_DealTime != null)
        //////                {
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')") != null)
        //////                        jsonList.DEPT_NAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')").ToString();
        //////                    if (DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'") != null)
        //////                        jsonList.DEPT_CODE = DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'").ToString();
        //////                }
        //////                else
        //////                {
        //////                    if (model.F_CloseTime != null)
        //////                        jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else if (model.F_DealTime != null)
        //////                        jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else
        //////                        jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    jsonList.DEPT_NAME = "热线中心";
        //////                    jsonList.DEPT_CODE = "4106000299";
        //////                }

        //////            }
        //////            if (model.F_CloseTime != null)
        //////                jsonList.FINISH_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else if (model.F_DealTime != null)
        //////                jsonList.FINISH_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else
        //////                jsonList.FINISH_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");


        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')") != null)
        //////                jsonList.FINISH_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')").ToString();
        //////            else
        //////                jsonList.FINISH_NAME = model.F_DealUser;
        //////            if (string.IsNullOrEmpty(jsonList.FINISH_NAME))
        //////                jsonList.FINISH_NAME = "热线中心";
        //////            jsonList.FINISH_CONTENT = model.F_Result;
        //////            jsonList.END_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + model.F_CreateTime + "', '" + model.F_DealTime + "')").ToString());
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdbj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void yiji7(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (models.F_MainDeptId != null && models.F_MainDeptId > 0)
        //////        {
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = "TOP";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                else
        //////                    jsonList.TASK_OUNAME = "";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.TASK_CONTENT = "无";
        //////                else
        //////                    jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                if (info.F_IsNext > 0)
        //////                {
        //////                    jsonList.TASK_ISALLOT = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISALLOT = "0";
        //////                }
        //////                if (!string.IsNullOrEmpty(model.F_File))
        //////                {
        //////                    fjcl7(token, newwokrkorder, model.F_File, models.F_SourceArea.ToString(), model.F_Id, "20");
        //////                }
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void erji7(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (!string.IsNullOrEmpty(models.F_MainDeptID3))
        //////        {
        //////            var info1 = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null && info1 != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = info1.F_Id.ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                jsonList.TASK_ISALLOT = "1";
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);


        //////            }
        //////        }


        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }

        //////    }

        //////}
        //////public void dianhua7(string token, string WorkOrderId)
        //////{
        //////    var workorder = workorderBLL.GetModel(WorkOrderId);

        //////    var model = new CallCenterApi.BLL.T_Call_CallRecords().GetModelByCallId(workorder.F_CallId);

        //////    if (model != null)
        //////    {
        //////        submit_case_record paras = new submit_case_record();
        //////        paras.jsonList = new List<record>();
        //////        record jsonList = new record();
        //////        string newwokrkorder = WorkOrderId;
        //////        if (WorkOrderId.Contains("QT"))
        //////            newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////        else
        //////            newwokrkorder = WorkOrderId;
        //////        jsonList.CASE_SERIAL = newwokrkorder;
        //////        jsonList.AREA_CODE = AREA_CODE;
        //////        jsonList.RECORD_ID = model.CallRecordsId.ToString();
        //////        jsonList.RECORD_PHONE = model.CallNumber;
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_STATUS = "30";
        //////        else
        //////            jsonList.RECORD_STATUS = "10";
        //////        if (model.CallType == 0)
        //////            jsonList.RECORD_TYPE = "10";
        //////        else
        //////            jsonList.RECORD_TYPE = "30";
        //////        if (model.TalkStartTime != null)
        //////            jsonList.RECORD_STARTTIME = model.TalkStartTime
        //////                .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_ENDTIME = model.TalkEndTime
        //////            .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        else
        //////            jsonList.RECORD_ENDTIME = "";
        //////        jsonList.RECORD_LENGTH = model.TalkLongTime;
        //////        jsonList.RECORD_LOGINID = model.UserCode;
        //////        // var config = new CallCenterApi.BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
        //////        if (model.FilePath != null)
        //////        {
        //////            var ym = "http://222.143.144.10:12000/";
        //////            if (ym.Substring(ym.Length - 1) == "/")
        //////            {
        //////                ym = ym.Substring(0, ym.Length - 1);
        //////            }

        //////            string lujing = model.FilePath.Substring(model.FilePath.IndexOf(':') + 1).Replace('\\', '/');
        //////            string wlpath = ym + lujing;

        //////            jsonList.RECORD_URL = wlpath;
        //////        }
        //////        paras.jsonList.Add(jsonList);
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();

        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/dhfwjl", jsonParam);

        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }

        //////}
        //////public void pingjia7(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_info paras = new submit_case_visit_info();
        //////    paras.jsonList = new List<visit_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        var model = new CallCenterApi.BLL.T_Bus_VisitResult().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////        if (model != null)
        //////        {
        //////            visit_info jsonList = new visit_info();
        //////            string newwokrkorder = models.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.VISIT_TYPE = "DH";
        //////            jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////            else
        //////                jsonList.VISIT_NAME = model.F_CreateUser;
        //////            if (string.IsNullOrEmpty(model.F_Result))
        //////                jsonList.VISIT_CONTENT = "无";
        //////            else
        //////                jsonList.VISIT_CONTENT = model.F_Result;
        //////            if (model.F_IsSatisfie == 0)
        //////                jsonList.VISIT_SATISFY = "2";
        //////            else
        //////                jsonList.VISIT_SATISFY = "4";

        //////            jsonList.VISIT_NUMBER = int.Parse(DbHelperSQL.GetSingle(" select count(1) from T_Bus_VisitResult  where F_WorkOrderId ='" + model.F_WorkOrderId + "'").ToString());
        //////            paras.jsonList.Add(jsonList);




        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdzzpj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }



        //////    }


        //////}
        //////public void liucheng7(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{

        //////    submit_case_process_info paras = new submit_case_process_info();
        //////    paras.jsonList = new List<process_info>();
        //////    foreach (var models in modellist)
        //////    {
        //////        var process = new CallCenterApi.BLL.T_Bus_Operation().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (process != null)
        //////        {
        //////            foreach (var model in process)
        //////            {
        //////                if (model.F_Message.Contains("查收了") || model.F_Message.Contains("交办了")
        //////                    || model.F_Message.Contains("回访了"))
        //////                {
        //////                    process_info jsonList = new process_info();
        //////                    string newwokrkorder = model.F_WorkOrderId;
        //////                    if (model.F_WorkOrderId.Contains("QT"))
        //////                        newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                    else
        //////                        newwokrkorder = model.F_WorkOrderId;
        //////                    jsonList.CASE_SERIAL = newwokrkorder;

        //////                    jsonList.AREA_CODE = AREA_CODE;
        //////                    jsonList.PROCESS_ID = model.F_Id.ToString();
        //////                    jsonList.DEPT_NAME = model.F_Message.Split('(')[0];
        //////                    if (model.F_Message.Contains("查收了"))
        //////                        jsonList.TACHE_NAME = "查收工单";
        //////                    else if (model.F_Message.Contains("交办了"))
        //////                        jsonList.TACHE_NAME = "交办工单";
        //////                    else if (model.F_Message.Contains("回访了"))
        //////                        jsonList.TACHE_NAME = "审核工单";
        //////                    jsonList.PROCESS_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                        jsonList.PROCESS_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                    else
        //////                        jsonList.PROCESS_NAME = model.F_CreateUser;
        //////                    jsonList.PROCESS_NOTE = model.F_Message;
        //////                    paras.jsonList.Add(jsonList);
        //////                }
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdcllc", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }

        //////}
        //////public void huifangjilu7(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_detail_info paras = new submit_case_visit_detail_info();
        //////    paras.jsonList = new List<detail_info>();
        //////    //  LogFactory.GetLogger("HttpPost").Warn(modellist.ToJson()+"ttssds");
        //////    foreach (var models in modellist)
        //////    {
        //////        var modelslist = new CallCenterApi.BLL.T_Bus_VisitResult().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (modelslist != null && modelslist.Count > 0)
        //////        {
        //////            foreach (var model in modelslist)
        //////            {
        //////                detail_info jsonList = new detail_info();
        //////                string newwokrkorder = model.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;

        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.VISIT_ID = model.F_Id.ToString();

        //////                jsonList.VISIT_TYPE = "DH";
        //////                jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.VISIT_NAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.VISIT_CONTENT = "无";
        //////                else
        //////                    jsonList.VISIT_CONTENT = model.F_Result;
        //////                if (model.F_IsSatisfie == 0)
        //////                    jsonList.VISIT_SATISFY = "2";
        //////                else
        //////                    jsonList.VISIT_SATISFY = "4";
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdhfjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }

        //////    }



        //////}
        //////public void fjcl7(string token, string WorkOrderId, string file, string area, int id, string type)
        //////{
        //////    string ParamValue = "http://222.143.144.10:8002";
        //////    //  var configfj = configBll.GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
        //////    // if (configfj != null)
        //////    // {
        //////    // ParamValue = configfj.F_ParamValue;
        //////    // }
        //////    submit_case_material_info paras = new submit_case_material_info();
        //////    paras.jsonList = new List<material_info>();
        //////    var Accessories = new CallCenterApi.BLL.T_Sys_Accessories().GetModelList("F_FileId in (" + file + ")");
        //////    if (Accessories != null && Accessories.Count > 0)
        //////    {
        //////        foreach (var it in Accessories)
        //////        {
        //////            material_info jsonList = new material_info();
        //////            string newwokrkorder = "";
        //////            if (WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.MATERIAL_ID = it.F_FileId.ToString();
        //////            jsonList.MATERIAL_NAME = it.F_FileName;
        //////            jsonList.MATERIAL_FILE_TYPE = it.F_FileType;
        //////            jsonList.MATERIAL_TYPE = type;
        //////            jsonList.MATERIAL_CONTACTID = id.ToString();
        //////            jsonList.MATERAIL_URL = ParamValue + it.F_FileUrl;
        //////            paras.jsonList.Add(jsonList);
        //////        }
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdcl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var iv in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + iv.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + iv.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送标识:" + iv.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + iv.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }


        //////}
        //////public void bajie8(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_finish_info paras = new submit_case_finish_info();
        //////    paras.jsonList = new List<finish_info>();

        //////    foreach (var model in modellist)
        //////    {
        //////        if (model.F_WorkState == 9 && model.F_DealTime != null)
        //////        {
        //////            finish_info jsonList = new finish_info();
        //////            string newwokrkorder = model.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;

        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            if (model.F_IsResult == null || model.F_IsResult == 1)
        //////            {
        //////                jsonList.FINISH_TYPE = "10";
        //////                jsonList.DEPT_NAME = "热线中心";
        //////                if (model.F_CloseTime != null)
        //////                    jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else if (model.F_DealTime != null)
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else
        //////                    jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.DEPT_CODE = "4106000299";
        //////            }
        //////            else
        //////            {
        //////                jsonList.FINISH_TYPE = "20";
        //////                if (model.F_MainDeptId != null && model.F_MainDeptId > 0 && model.F_DealTime != null)
        //////                {
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')") != null)
        //////                        jsonList.DEPT_NAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')").ToString();
        //////                    if (DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'") != null)
        //////                        jsonList.DEPT_CODE = DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'").ToString();
        //////                }
        //////                else
        //////                {
        //////                    if (model.F_CloseTime != null)
        //////                        jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else if (model.F_DealTime != null)
        //////                        jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else
        //////                        jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    jsonList.DEPT_NAME = "热线中心";
        //////                    jsonList.DEPT_CODE = "4106000299";
        //////                }

        //////            }
        //////            if (model.F_CloseTime != null)
        //////                jsonList.FINISH_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else if (model.F_DealTime != null)
        //////                jsonList.FINISH_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else
        //////                jsonList.FINISH_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");


        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')") != null)
        //////                jsonList.FINISH_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')").ToString();
        //////            else
        //////                jsonList.FINISH_NAME = model.F_DealUser;
        //////            if (string.IsNullOrEmpty(jsonList.FINISH_NAME))
        //////                jsonList.FINISH_NAME = "热线中心";
        //////            jsonList.FINISH_CONTENT = model.F_Result;
        //////            jsonList.END_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + model.F_CreateTime + "', '" + model.F_DealTime + "')").ToString());
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdbj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void yiji8(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (models.F_MainDeptId != null && models.F_MainDeptId > 0)
        //////        {
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = "TOP";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                else
        //////                    jsonList.TASK_OUNAME = "";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.TASK_CONTENT = "无";
        //////                else
        //////                    jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                if (info.F_IsNext > 0)
        //////                {
        //////                    jsonList.TASK_ISALLOT = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISALLOT = "0";
        //////                }
        //////                if (!string.IsNullOrEmpty(model.F_File))
        //////                {
        //////                    fjcl8(token, newwokrkorder, model.F_File, models.F_SourceArea.ToString(), model.F_Id, "20");
        //////                }
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void erji8(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (!string.IsNullOrEmpty(models.F_MainDeptID3))
        //////        {
        //////            var info1 = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null && info1 != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = info1.F_Id.ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                jsonList.TASK_ISALLOT = "1";
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);


        //////            }
        //////        }


        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }

        //////    }

        //////}
        //////public void dianhua8(string token, string WorkOrderId)
        //////{
        //////    var workorder = workorderBLL.GetModel(WorkOrderId);

        //////    var model = new CallCenterApi.BLL.T_Call_CallRecords().GetModelByCallId(workorder.F_CallId);

        //////    if (model != null)
        //////    {
        //////        submit_case_record paras = new submit_case_record();
        //////        paras.jsonList = new List<record>();
        //////        record jsonList = new record();
        //////        string newwokrkorder = WorkOrderId;
        //////        if (WorkOrderId.Contains("QT"))
        //////            newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////        else
        //////            newwokrkorder = WorkOrderId;
        //////        jsonList.CASE_SERIAL = newwokrkorder;
        //////        jsonList.AREA_CODE = AREA_CODE;
        //////        jsonList.RECORD_ID = model.CallRecordsId.ToString();
        //////        jsonList.RECORD_PHONE = model.CallNumber;
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_STATUS = "30";
        //////        else
        //////            jsonList.RECORD_STATUS = "10";
        //////        if (model.CallType == 0)
        //////            jsonList.RECORD_TYPE = "10";
        //////        else
        //////            jsonList.RECORD_TYPE = "30";
        //////        if (model.TalkStartTime != null)
        //////            jsonList.RECORD_STARTTIME = model.TalkStartTime
        //////                .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_ENDTIME = model.TalkEndTime
        //////            .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        else
        //////            jsonList.RECORD_ENDTIME = "";
        //////        jsonList.RECORD_LENGTH = model.TalkLongTime;
        //////        jsonList.RECORD_LOGINID = model.UserCode;
        //////        // var config = new CallCenterApi.BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
        //////        if (model.FilePath != null)
        //////        {
        //////            var ym = "http://222.143.144.10:12000/";
        //////            if (ym.Substring(ym.Length - 1) == "/")
        //////            {
        //////                ym = ym.Substring(0, ym.Length - 1);
        //////            }

        //////            string lujing = model.FilePath.Substring(model.FilePath.IndexOf(':') + 1).Replace('\\', '/');
        //////            string wlpath = ym + lujing;

        //////            jsonList.RECORD_URL = wlpath;
        //////        }
        //////        paras.jsonList.Add(jsonList);
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();

        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/dhfwjl", jsonParam);

        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }

        //////}
        //////public void pingjia8(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_info paras = new submit_case_visit_info();
        //////    paras.jsonList = new List<visit_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        var model = new CallCenterApi.BLL.T_Bus_VisitResult().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////        if (model != null)
        //////        {
        //////            visit_info jsonList = new visit_info();
        //////            string newwokrkorder = models.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.VISIT_TYPE = "DH";
        //////            jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////            else
        //////                jsonList.VISIT_NAME = model.F_CreateUser;
        //////            if (string.IsNullOrEmpty(model.F_Result))
        //////                jsonList.VISIT_CONTENT = "无";
        //////            else
        //////                jsonList.VISIT_CONTENT = model.F_Result;
        //////            if (model.F_IsSatisfie == 0)
        //////                jsonList.VISIT_SATISFY = "2";
        //////            else
        //////                jsonList.VISIT_SATISFY = "4";

        //////            jsonList.VISIT_NUMBER = int.Parse(DbHelperSQL.GetSingle(" select count(1) from T_Bus_VisitResult  where F_WorkOrderId ='" + model.F_WorkOrderId + "'").ToString());
        //////            paras.jsonList.Add(jsonList);




        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdzzpj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }



        //////    }


        //////}
        //////public void liucheng8(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{

        //////    submit_case_process_info paras = new submit_case_process_info();
        //////    paras.jsonList = new List<process_info>();
        //////    foreach (var models in modellist)
        //////    {
        //////        var process = new CallCenterApi.BLL.T_Bus_Operation().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (process != null)
        //////        {
        //////            foreach (var model in process)
        //////            {
        //////                if (model.F_Message.Contains("查收了") || model.F_Message.Contains("交办了")
        //////                    || model.F_Message.Contains("回访了"))
        //////                {
        //////                    process_info jsonList = new process_info();
        //////                    string newwokrkorder = model.F_WorkOrderId;
        //////                    if (model.F_WorkOrderId.Contains("QT"))
        //////                        newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                    else
        //////                        newwokrkorder = model.F_WorkOrderId;
        //////                    jsonList.CASE_SERIAL = newwokrkorder;

        //////                    jsonList.AREA_CODE = AREA_CODE;
        //////                    jsonList.PROCESS_ID = model.F_Id.ToString();
        //////                    jsonList.DEPT_NAME = model.F_Message.Split('(')[0];
        //////                    if (model.F_Message.Contains("查收了"))
        //////                        jsonList.TACHE_NAME = "查收工单";
        //////                    else if (model.F_Message.Contains("交办了"))
        //////                        jsonList.TACHE_NAME = "交办工单";
        //////                    else if (model.F_Message.Contains("回访了"))
        //////                        jsonList.TACHE_NAME = "审核工单";
        //////                    jsonList.PROCESS_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                        jsonList.PROCESS_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                    else
        //////                        jsonList.PROCESS_NAME = model.F_CreateUser;
        //////                    jsonList.PROCESS_NOTE = model.F_Message;
        //////                    paras.jsonList.Add(jsonList);
        //////                }
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdcllc", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }

        //////}
        //////public void huifangjilu8(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_detail_info paras = new submit_case_visit_detail_info();
        //////    paras.jsonList = new List<detail_info>();
        //////    //  LogFactory.GetLogger("HttpPost").Warn(modellist.ToJson()+"ttssds");
        //////    foreach (var models in modellist)
        //////    {
        //////        var modelslist = new CallCenterApi.BLL.T_Bus_VisitResult().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (modelslist != null && modelslist.Count > 0)
        //////        {
        //////            foreach (var model in modelslist)
        //////            {
        //////                detail_info jsonList = new detail_info();
        //////                string newwokrkorder = model.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;

        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.VISIT_ID = model.F_Id.ToString();

        //////                jsonList.VISIT_TYPE = "DH";
        //////                jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.VISIT_NAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.VISIT_CONTENT = "无";
        //////                else
        //////                    jsonList.VISIT_CONTENT = model.F_Result;
        //////                if (model.F_IsSatisfie == 0)
        //////                    jsonList.VISIT_SATISFY = "2";
        //////                else
        //////                    jsonList.VISIT_SATISFY = "4";
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdhfjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }

        //////    }



        //////}
        //////public void fjcl8(string token, string WorkOrderId, string file, string area, int id, string type)
        //////{
        //////    string ParamValue = "http://222.143.144.10:8002";
        //////    //  var configfj = configBll.GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
        //////    // if (configfj != null)
        //////    // {
        //////    // ParamValue = configfj.F_ParamValue;
        //////    // }
        //////    submit_case_material_info paras = new submit_case_material_info();
        //////    paras.jsonList = new List<material_info>();
        //////    var Accessories = new CallCenterApi.BLL.T_Sys_Accessories().GetModelList("F_FileId in (" + file + ")");
        //////    if (Accessories != null && Accessories.Count > 0)
        //////    {
        //////        foreach (var it in Accessories)
        //////        {
        //////            material_info jsonList = new material_info();
        //////            string newwokrkorder = "";
        //////            if (WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.MATERIAL_ID = it.F_FileId.ToString();
        //////            jsonList.MATERIAL_NAME = it.F_FileName;
        //////            jsonList.MATERIAL_FILE_TYPE = it.F_FileType;
        //////            jsonList.MATERIAL_TYPE = type;
        //////            jsonList.MATERIAL_CONTACTID = id.ToString();
        //////            jsonList.MATERAIL_URL = ParamValue + it.F_FileUrl;
        //////            paras.jsonList.Add(jsonList);
        //////        }
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdcl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var iv in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + iv.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + iv.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送标识:" + iv.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + iv.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }


        //////}
        //////public void bajie9(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_finish_info paras = new submit_case_finish_info();
        //////    paras.jsonList = new List<finish_info>();

        //////    foreach (var model in modellist)
        //////    {
        //////        if (model.F_WorkState == 9 && model.F_DealTime != null)
        //////        {
        //////            finish_info jsonList = new finish_info();
        //////            string newwokrkorder = model.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;

        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            if (model.F_IsResult == null || model.F_IsResult == 1)
        //////            {
        //////                jsonList.FINISH_TYPE = "10";
        //////                jsonList.DEPT_NAME = "热线中心";
        //////                if (model.F_CloseTime != null)
        //////                    jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else if (model.F_DealTime != null)
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                else
        //////                    jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.DEPT_CODE = "4106000299";
        //////            }
        //////            else
        //////            {
        //////                jsonList.FINISH_TYPE = "20";
        //////                if (model.F_MainDeptId != null && model.F_MainDeptId > 0 && model.F_DealTime != null)
        //////                {
        //////                    jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')") != null)
        //////                        jsonList.DEPT_NAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_MainDeptId + "')").ToString();
        //////                    if (DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'") != null)
        //////                        jsonList.DEPT_CODE = DbHelperSQL.GetSingle(" select F_DeptNameSpell  from T_Sys_Department where F_DeptId= '" + model.F_MainDeptId + "'").ToString();
        //////                }
        //////                else
        //////                {
        //////                    if (model.F_CloseTime != null)
        //////                        jsonList.END_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else if (model.F_DealTime != null)
        //////                        jsonList.END_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else
        //////                        jsonList.END_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    jsonList.DEPT_NAME = "热线中心";
        //////                    jsonList.DEPT_CODE = "4106000299";
        //////                }

        //////            }
        //////            if (model.F_CloseTime != null)
        //////                jsonList.FINISH_TIME = model.F_CloseTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else if (model.F_DealTime != null)
        //////                jsonList.FINISH_TIME = model.F_DealTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            else
        //////                jsonList.FINISH_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");


        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')") != null)
        //////                jsonList.FINISH_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_DealUser + "')").ToString();
        //////            else
        //////                jsonList.FINISH_NAME = model.F_DealUser;
        //////            if (string.IsNullOrEmpty(jsonList.FINISH_NAME))
        //////                jsonList.FINISH_NAME = "热线中心";
        //////            jsonList.FINISH_CONTENT = model.F_Result;
        //////            jsonList.END_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + model.F_CreateTime + "', '" + model.F_DealTime + "')").ToString());
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdbj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单办结", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void yiji9(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (models.F_MainDeptId != null && models.F_MainDeptId > 0)
        //////        {
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = "TOP";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                else
        //////                    jsonList.TASK_OUNAME = "";
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.TASK_CONTENT = "无";
        //////                else
        //////                    jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                if (info.F_IsNext > 0)
        //////                {
        //////                    jsonList.TASK_ISALLOT = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISALLOT = "0";
        //////                }
        //////                if (!string.IsNullOrEmpty(model.F_File))
        //////                {
        //////                    fjcl9(token, newwokrkorder, model.F_File, models.F_SourceArea.ToString(), model.F_Id, "20");
        //////                }
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送一级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }
        //////}
        //////public void erji9(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_task_handle_info paras = new submit_task_handle_info();
        //////    paras.jsonList = new List<handle_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        if (!string.IsNullOrEmpty(models.F_MainDeptID3))
        //////        {
        //////            var info1 = new CallCenterApi.BLL.T_Bus_AssignedInfo().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var model = new CallCenterApi.BLL.T_Bus_Feedback_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            var info = new CallCenterApi.BLL.T_Bus_AssignedInfo_Next().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////            if (model != null && info != null && info1 != null)
        //////            {
        //////                handle_info jsonList = new handle_info();
        //////                string newwokrkorder = models.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.TASK_ID = model.F_Id.ToString();
        //////                jsonList.TASK_PARENTID = info1.F_Id.ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')") != null)
        //////                    jsonList.TASK_OUNAME = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + model.F_CreateDeptId + "')").ToString();
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.TASK_USERNAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.TASK_USERNAME = model.F_CreateUser;
        //////                jsonList.TASK_CONTENT = model.F_Result;
        //////                jsonList.TASK_ASSIGNTIME = info.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_SIGNTIME = info.F_SureTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.TASK_FINISHTIME_BF = info.F_LimitTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (info.F_State == 2)
        //////                {
        //////                    jsonList.TASK_ISBACK = "1";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.TASK_ISBACK = "0";
        //////                }
        //////                jsonList.TASK_ISALLOT = "1";
        //////                jsonList.TASK_HANDLE_LENGTH = int.Parse(DbHelperSQL.GetSingle(" SELECT DATEDIFF(SECOND,'" + jsonList.TASK_ASSIGNTIME + "', '" + jsonList.TASK_FINISHTIME + "')").ToString());
        //////                paras.jsonList.Add(jsonList);


        //////            }
        //////        }


        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/bmcbjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送二级部门处办记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }

        //////    }

        //////}
        //////public void dianhua9(string token, string WorkOrderId)
        //////{
        //////    var workorder = workorderBLL.GetModel(WorkOrderId);

        //////    var model = new CallCenterApi.BLL.T_Call_CallRecords().GetModelByCallId(workorder.F_CallId);

        //////    if (model != null)
        //////    {
        //////        submit_case_record paras = new submit_case_record();
        //////        paras.jsonList = new List<record>();
        //////        record jsonList = new record();
        //////        string newwokrkorder = WorkOrderId;
        //////        if (WorkOrderId.Contains("QT"))
        //////            newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////        else
        //////            newwokrkorder = WorkOrderId;
        //////        jsonList.CASE_SERIAL = newwokrkorder;
        //////        jsonList.AREA_CODE = AREA_CODE;
        //////        jsonList.RECORD_ID = model.CallRecordsId.ToString();
        //////        jsonList.RECORD_PHONE = model.CallNumber;
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_STATUS = "30";
        //////        else
        //////            jsonList.RECORD_STATUS = "10";
        //////        if (model.CallType == 0)
        //////            jsonList.RECORD_TYPE = "10";
        //////        else
        //////            jsonList.RECORD_TYPE = "30";
        //////        if (model.TalkStartTime != null)
        //////            jsonList.RECORD_STARTTIME = model.TalkStartTime
        //////                .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        if (model.TalkEndTime != null)
        //////            jsonList.RECORD_ENDTIME = model.TalkEndTime
        //////            .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////        else
        //////            jsonList.RECORD_ENDTIME = "";
        //////        jsonList.RECORD_LENGTH = model.TalkLongTime;
        //////        jsonList.RECORD_LOGINID = model.UserCode;
        //////        // var config = new CallCenterApi.BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
        //////        if (model.FilePath != null)
        //////        {
        //////            var ym = "http://222.143.144.10:12000/";
        //////            if (ym.Substring(ym.Length - 1) == "/")
        //////            {
        //////                ym = ym.Substring(0, ym.Length - 1);
        //////            }

        //////            string lujing = model.FilePath.Substring(model.FilePath.IndexOf(':') + 1).Replace('\\', '/');
        //////            string wlpath = ym + lujing;

        //////            jsonList.RECORD_URL = wlpath;
        //////        }
        //////        paras.jsonList.Add(jsonList);
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();

        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/dhfwjl", jsonParam);

        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }

        //////}
        //////public void pingjia9(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_info paras = new submit_case_visit_info();
        //////    paras.jsonList = new List<visit_info>();

        //////    foreach (var models in modellist)
        //////    {
        //////        var model = new CallCenterApi.BLL.T_Bus_VisitResult().GetNewModelByWorkOrderID(models.F_WorkOrderId);
        //////        if (model != null)
        //////        {
        //////            visit_info jsonList = new visit_info();
        //////            string newwokrkorder = models.F_WorkOrderId;
        //////            if (model.F_WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = model.F_WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.VISIT_TYPE = "DH";
        //////            jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////            if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////            else
        //////                jsonList.VISIT_NAME = model.F_CreateUser;
        //////            if (string.IsNullOrEmpty(model.F_Result))
        //////                jsonList.VISIT_CONTENT = "无";
        //////            else
        //////                jsonList.VISIT_CONTENT = model.F_Result;
        //////            if (model.F_IsSatisfie == 0)
        //////                jsonList.VISIT_SATISFY = "2";
        //////            else
        //////                jsonList.VISIT_SATISFY = "4";

        //////            jsonList.VISIT_NUMBER = int.Parse(DbHelperSQL.GetSingle(" select count(1) from T_Bus_VisitResult  where F_WorkOrderId ='" + model.F_WorkOrderId + "'").ToString());
        //////            paras.jsonList.Add(jsonList);




        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdzzpj", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单最终评价", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }



        //////    }


        //////}
        //////public void liucheng9(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{

        //////    submit_case_process_info paras = new submit_case_process_info();
        //////    paras.jsonList = new List<process_info>();
        //////    foreach (var models in modellist)
        //////    {
        //////        var process = new CallCenterApi.BLL.T_Bus_Operation().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (process != null)
        //////        {
        //////            foreach (var model in process)
        //////            {
        //////                if (model.F_Message.Contains("查收了") || model.F_Message.Contains("交办了")
        //////                    || model.F_Message.Contains("回访了"))
        //////                {
        //////                    process_info jsonList = new process_info();
        //////                    string newwokrkorder = model.F_WorkOrderId;
        //////                    if (model.F_WorkOrderId.Contains("QT"))
        //////                        newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                    else
        //////                        newwokrkorder = model.F_WorkOrderId;
        //////                    jsonList.CASE_SERIAL = newwokrkorder;

        //////                    jsonList.AREA_CODE = AREA_CODE;
        //////                    jsonList.PROCESS_ID = model.F_Id.ToString();
        //////                    jsonList.DEPT_NAME = model.F_Message.Split('(')[0];
        //////                    if (model.F_Message.Contains("查收了"))
        //////                        jsonList.TACHE_NAME = "查收工单";
        //////                    else if (model.F_Message.Contains("交办了"))
        //////                        jsonList.TACHE_NAME = "交办工单";
        //////                    else if (model.F_Message.Contains("回访了"))
        //////                        jsonList.TACHE_NAME = "审核工单";
        //////                    jsonList.PROCESS_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                        jsonList.PROCESS_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                    else
        //////                        jsonList.PROCESS_NAME = model.F_CreateUser;
        //////                    jsonList.PROCESS_NOTE = model.F_Message;
        //////                    paras.jsonList.Add(jsonList);
        //////                }
        //////            }
        //////        }
        //////    }

        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdcllc", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单处理流程", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////    }

        //////}
        //////public void huifangjilu9(string token, List<CallCenterApi.Model.T_Bus_WorkOrder> modellist)
        //////{
        //////    submit_case_visit_detail_info paras = new submit_case_visit_detail_info();
        //////    paras.jsonList = new List<detail_info>();
        //////    //  LogFactory.GetLogger("HttpPost").Warn(modellist.ToJson()+"ttssds");
        //////    foreach (var models in modellist)
        //////    {
        //////        var modelslist = new CallCenterApi.BLL.T_Bus_VisitResult().GetModelList("F_WorkOrderId='" + models.F_WorkOrderId + "'");
        //////        if (modelslist != null && modelslist.Count > 0)
        //////        {
        //////            foreach (var model in modelslist)
        //////            {
        //////                detail_info jsonList = new detail_info();
        //////                string newwokrkorder = model.F_WorkOrderId;
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;
        //////                jsonList.CASE_SERIAL = newwokrkorder;

        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.VISIT_ID = model.F_Id.ToString();

        //////                jsonList.VISIT_TYPE = "DH";
        //////                jsonList.VISIT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.VISIT_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.VISIT_NAME = model.F_CreateUser;
        //////                if (string.IsNullOrEmpty(model.F_Result))
        //////                    jsonList.VISIT_CONTENT = "无";
        //////                else
        //////                    jsonList.VISIT_CONTENT = model.F_Result;
        //////                if (model.F_IsSatisfie == 0)
        //////                    jsonList.VISIT_SATISFY = "2";
        //////                else
        //////                    jsonList.VISIT_SATISFY = "4";
        //////                paras.jsonList.Add(jsonList);
        //////            }
        //////        }
        //////    }
        //////    if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////    {
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/gdhfjl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var it in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + it.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + it.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送标识:" + it.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(it.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + it.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单回访记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }

        //////    }



        //////}
        //////public void fjcl9(string token, string WorkOrderId, string file, string area, int id, string type)
        //////{
        //////    string ParamValue = "http://222.143.144.10:8002";
        //////    //  var configfj = configBll.GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
        //////    // if (configfj != null)
        //////    // {
        //////    // ParamValue = configfj.F_ParamValue;
        //////    // }
        //////    submit_case_material_info paras = new submit_case_material_info();
        //////    paras.jsonList = new List<material_info>();
        //////    var Accessories = new CallCenterApi.BLL.T_Sys_Accessories().GetModelList("F_FileId in (" + file + ")");
        //////    if (Accessories != null && Accessories.Count > 0)
        //////    {
        //////        foreach (var it in Accessories)
        //////        {
        //////            material_info jsonList = new material_info();
        //////            string newwokrkorder = "";
        //////            if (WorkOrderId.Contains("QT"))
        //////                newwokrkorder = "WZ" + WorkOrderId.Substring(2, WorkOrderId.Length - 2);
        //////            else
        //////                newwokrkorder = WorkOrderId;
        //////            jsonList.CASE_SERIAL = newwokrkorder;
        //////            jsonList.AREA_CODE = AREA_CODE;
        //////            jsonList.MATERIAL_ID = it.F_FileId.ToString();
        //////            jsonList.MATERIAL_NAME = it.F_FileName;
        //////            jsonList.MATERIAL_FILE_TYPE = it.F_FileType;
        //////            jsonList.MATERIAL_TYPE = type;
        //////            jsonList.MATERIAL_CONTACTID = id.ToString();
        //////            jsonList.MATERAIL_URL = ParamValue + it.F_FileUrl;
        //////            paras.jsonList.Add(jsonList);
        //////        }
        //////        string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////        var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdcl", jsonParam);
        //////        Push jo = responseString.ToObject<Push>();
        //////        if (jo.code == "1")
        //////        {

        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);
        //////        }
        //////        else
        //////        {
        //////            string error = "";
        //////            if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////            {
        //////                foreach (var iv in jo.body.errorObjs)
        //////                {
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送接口名称:" + iv.resturl;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.caseserial))
        //////                    {
        //////                        error += " 推送工单号:" + iv.caseserial;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送标识:" + iv.errorid;
        //////                    }
        //////                    if (!string.IsNullOrEmpty(iv.resturl))
        //////                    {
        //////                        error += " 推送失败原因:" + iv.errormsg;
        //////                    }
        //////                }
        //////            }
        //////            string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送服务工单材料", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////            object objres = DbHelperSQL.GetSingle(strSql);

        //////        }
        //////    }


        //////}





        //////public ActionResult GetLY33()
        //////{
        //////    while (true)
        //////    {

        //////        string t = Dianhua33();
        //////        if (t == "推送完结")
        //////        {
        //////            return Success("");
        //////        }
        //////        else if (t != "推送成功" && t != "推送失败")
        //////        {
        //////            return Error(t);
        //////        }
        //////    }
        //////}
        //////public ActionResult GetLY36()
        //////{
        //////    while (true)
        //////    {
              
        //////        string t = TSWORKORDER34();
        //////        if (t == "推送完结")
        //////        {
        //////            return Success("");
        //////        }
        //////        if (t != "推送成功" && t != "推送失败")
        //////        {
        //////            id35 = id35 + 1;
        //////            continue;
        //////        }
        //////    }
        //////}

        //////public string  Dianhua33()
        //////{
        //////    string token = GetToken();
        //////    if (string.IsNullOrEmpty(token))
        //////        return "token 错误";
        //////    DataTable Push = new DataTable();
        //////    string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=24 ";
        //////    Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////    if (Push != null)
        //////    {
        //////        id33 = int.Parse(Push.Rows[0]["id"].ToString());
        //////        count33 = int.Parse(Push.Rows[0]["count"].ToString());
        //////    }
        //////    var modellist = new CallCenterApi.BLL.T_Call_CallRecords().GetModelList(1, " WorkOrderId is not null and WorkOrderId !='' " +
        //////        " and BeginTime >='2022-10-01 00:00:00' and BeginTime<='2023-07-06 18:00:00' AND CallRecordsId>'"+ id33 + "' "
        //////           , " BeginTime ASC");


        //////    try
        //////    {
        //////        if (modellist != null && modellist.Count > 0)

        //////        {
        //////            submit_case_record paras = new submit_case_record();
        //////            paras.jsonList = new List<record>();
        //////            foreach (var model in modellist)
        //////            {
        //////                if (model != null)
        //////                {
        //////                    record jsonList = new record();
        //////                    string newwokrkorder = model.WorkOrderId;
        //////                    if (model.WorkOrderId.Contains("QT"))
        //////                        newwokrkorder = "WZ" + model.WorkOrderId.Substring(2, model.WorkOrderId.Length - 2);
        //////                    else
        //////                        newwokrkorder = model.WorkOrderId;
        //////                    jsonList.CASE_SERIAL = newwokrkorder;
        //////                    jsonList.AREA_CODE = AREA_CODE;
        //////                    jsonList.RECORD_ID = model.CallRecordsId.ToString();
        //////                    jsonList.RECORD_PHONE = model.CallNumber;
        //////                    if (model.TalkEndTime != null)
        //////                        jsonList.RECORD_STATUS = "30";
        //////                    else
        //////                        jsonList.RECORD_STATUS = "10";
        //////                    if (model.CallType == 0)
        //////                        jsonList.RECORD_TYPE = "10";
        //////                    else
        //////                        jsonList.RECORD_TYPE = "30";
        //////                    if (model.TalkStartTime != null)
        //////                        jsonList.RECORD_STARTTIME = model.TalkStartTime
        //////                            .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    if (model.TalkEndTime != null)
        //////                        jsonList.RECORD_ENDTIME = model.TalkEndTime
        //////                        .Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                    else
        //////                        jsonList.RECORD_ENDTIME = "";
        //////                    jsonList.RECORD_LENGTH = model.TalkLongTime;
        //////                    jsonList.RECORD_LOGINID = model.UserCode;
        //////                    // var config = new CallCenterApi.BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
        //////                    if (model.FilePath != null)
        //////                    {
        //////                        var ym = "http://222.143.144.10:12000/";
        //////                        if (ym.Substring(ym.Length - 1) == "/")
        //////                        {
        //////                            ym = ym.Substring(0, ym.Length - 1);
        //////                        }

        //////                        string lujing = model.FilePath.Substring(model.FilePath.IndexOf(':') + 1).Replace('\\', '/');
        //////                        string wlpath = ym + lujing;

        //////                        jsonList.RECORD_URL = wlpath;
        //////                    }
        //////                    paras.jsonList.Add(jsonList);

        //////                }
        //////            }

        //////            string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();
        //////            try
        //////            {
        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/dhfwjl", jsonParam);

        //////                Push jo = responseString.ToObject<Push>();
        //////                if (jo.code == "1")
        //////                {
        //////                    string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                    object objres = DbHelperSQL.GetSingle(strSql);

        //////                    id33 = modellist[modellist.Count - 1].CallRecordsId;
        //////                    count33 += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id33 + "' ,count='" + count33 + "' where ids=24";
        //////                    var rh = DbHelperSQL.GetSingle(ts);

        //////                    return "推送成功";
        //////                }
        //////                else
        //////                {
        //////                    string error = "";
        //////                    if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                    {
        //////                        foreach (var it in jo.body.errorObjs)
        //////                        {
        //////                            if (!string.IsNullOrEmpty(it.resturl))
        //////                            {
        //////                                error += " 推送接口名称:" + it.resturl;
        //////                            }
        //////                            if (!string.IsNullOrEmpty(it.caseserial))
        //////                            {
        //////                                error += " 推送工单号:" + it.caseserial;
        //////                            }
        //////                            if (!string.IsNullOrEmpty(it.resturl))
        //////                            {
        //////                                error += " 推送标识:" + it.errorid;
        //////                            }
        //////                            if (!string.IsNullOrEmpty(it.resturl))
        //////                            {
        //////                                error += " 推送失败原因:" + it.errormsg;
        //////                            }
        //////                        }
        //////                    }
        //////                    string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送电话服务记录", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                    object objres = DbHelperSQL.GetSingle(strSql);

        //////                    id33 = modellist[modellist.Count - 1].CallRecordsId;
        //////                    count33 += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id33 + "' ,count='" + count33 + "' where ids=24";
        //////                    var rh = DbHelperSQL.GetSingle(ts);

        //////                    return "推送失败";

        //////                }
        //////            }
        //////            catch
        //////            {
        //////                id33 = modellist[modellist.Count - 1].CallRecordsId;
        //////                string ts = "update T_Bus_PushWorkorder_10 set id='" + id33 + "' where ids=24";
        //////                var rh = DbHelperSQL.GetSingle(ts);
        //////                return "推送失败";

        //////            }

        //////        }
        //////        else
        //////            return "推送完结";

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.Message;
        //////    }




        //////}




        //////public string TSWORKORDER34()
        //////{
        //////    try
        //////    {

        //////        string token = GetToken();
        //////        if (string.IsNullOrEmpty(token))
        //////            return "token 错误";
        //////        DataTable Push = new DataTable();
        //////        string PushWorkorder = "SELECT top 1  *  FROM T_Bus_PushWorkorder_10 where ids=26 ";
        //////        Push = DbHelperSQL.Query(PushWorkorder).Tables[0];
        //////        if (Push != null)
        //////        {
        //////            id35 = int.Parse(Push.Rows[0]["id"].ToString());
        //////            count35 = int.Parse(Push.Rows[0]["count"].ToString());
        //////        }
        //////        var modellist = new CallCenterApi.BLL.T_Bus_WorkOrder().GetModelList(5, "F_CreateTime>='2022-06-01 00:00:00.000'and F_Id>" + id35 +
        //////             " and F_IsDelete=0 and F_CreateTime <'2023-07-06 18:00:00.000' "
        //////            , " F_Id ASC");
        //////        if (modellist != null && modellist.Count > 0)
        //////        {
        //////            submit_case_info paras = new submit_case_info();
        //////            paras.jsonList = new List<jsonList>();
        //////            foreach (var model in modellist)
        //////            {

        //////                jsonList jsonList = new jsonList();
        //////                string newwokrkorder = "";
        //////                if (model.F_WorkOrderId.Contains("QT"))
        //////                    newwokrkorder = "WZ" + model.F_WorkOrderId.Substring(2, model.F_WorkOrderId.Length - 2);
        //////                else
        //////                    newwokrkorder = model.F_WorkOrderId;

        //////                jsonList.CASE_SERIAL = newwokrkorder;
        //////                jsonList.AREA_CODE = AREA_CODE;
        //////                jsonList.CASE_ID = model.F_Id.ToString();
        //////                if (string.IsNullOrEmpty(model.F_CusName))
        //////                    jsonList.APPLICANT_NAME = "匿名";
        //////                else
        //////                    jsonList.APPLICANT_NAME = model.F_CusName;
        //////                if (model.F_CusSex == "0")
        //////                    jsonList.APPLICANT_SEX = "1";
        //////                else if (model.F_CusSex == "1")
        //////                    jsonList.APPLICANT_SEX = "2";
        //////                else
        //////                    jsonList.APPLICANT_SEX = "3";

        //////                jsonList.APPLICANT_AGE = "8";//没有
        //////                jsonList.APPLICANT_NUMBER = model.F_CusPhone;
        //////                jsonList.APPLICANT_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");//没有
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')") != null)
        //////                    jsonList.HWY_NAME = DbHelperSQL.GetSingle(" select dbo.GetUserName('" + model.F_CreateUser + "')").ToString();
        //////                else
        //////                    jsonList.HWY_NAME = model.F_CreateUser;
        //////                jsonList.HWY_LOGINID = model.F_CreateUser;
        //////                jsonList.CASE_TIME = model.F_CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        //////                jsonList.CASE_TITLE = model.F_ComTitle;
        //////                jsonList.CASE_CONTENT = model.F_ComContent;
        //////                jsonList.CASE_SOURCE = model.F_WorkOrderId.Substring(0, 2);
        //////                if (model.F_InfoType == 9)//咨询
        //////                    jsonList.CASE_TYPE = "10";
        //////                else if (model.F_InfoType == 12)//建议
        //////                    jsonList.CASE_TYPE = "15";
        //////                else if (model.F_InfoType == 11)//投诉
        //////                    jsonList.CASE_TYPE = "20";
        //////                else if (model.F_InfoType == 10)//求助
        //////                    jsonList.CASE_TYPE = "30";
        //////                else if (model.F_InfoType == 13)//表扬
        //////                    jsonList.CASE_TYPE = "35";
        //////                else
        //////                    jsonList.CASE_TYPE = "40";//其他
        //////                if (DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')") != null)
        //////                    jsonList.CASE_ACCORD = DbHelperSQL.GetSingle(" select dbo.GetDicRemark('" + model.F_Key + "')").ToString();
        //////                else
        //////                    jsonList.CASE_ACCORD = "";
        //////                jsonList.CASE_ISPUBLIC = model.F_IsProtect.ToString();
        //////                if (model.F_IsResult == 0)
        //////                    jsonList.CASE_ISPUBLIC = "1";
        //////                else
        //////                    jsonList.CASE_ISPUBLIC = "0";
        //////                if (model.F_Level == 2 || model.F_Level == 3)
        //////                {
        //////                    jsonList.CASE_ISURGENT = "20";
        //////                }
        //////                else
        //////                {
        //////                    jsonList.CASE_ISURGENT = "30";
        //////                }
        //////                if (model.F_IsResult == 1)
        //////                    jsonList.CASE_ISVISIT = "0";
        //////                else
        //////                    jsonList.CASE_ISVISIT = "1";

        //////                jsonList.CASE_LNGLAT = model.F_Latitude + "," + model.F_Longitude;
        //////                jsonList.CASE_EMOTION = "70";
        //////                jsonList.CASE_ADDRESS = model.F_SourceAddress;

                      


        //////                paras.jsonList.Add(jsonList);
        //////            }

        //////            if (paras.jsonList != null && paras.jsonList.Count > 0)
        //////            {
        //////                string jsonParam = "access_token=" + token + "&paras=" + paras.ToJson();


        //////                var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fwgdsl", jsonParam
        //////                  );
        //////                try
        //////                {
        //////                    foreach (var model in modellist )
        //////                    {
        //////                        try
        //////                        {
        //////                            if (!string.IsNullOrEmpty(model.F_File))
        //////                            {
        //////                                fjcl5(token, model.F_WorkOrderId , model.F_File, model.F_SourceArea.ToString(), model.F_Id, "10");
        //////                            }
        //////                            if (model.F_CallRecordId > 0)
        //////                            {
        //////                                dianhua5(token, model.F_WorkOrderId);
        //////                            }
        //////                        }
        //////                        catch
        //////                        {

        //////                        }
        //////                    }


        //////                    Push jo = responseString.ToObject<Push>();
        //////                    if (jo.code == "1")
        //////                    {
        //////                        id35 = modellist[modellist.Count - 1].F_Id;
        //////                        count35 += modellist.Count;
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", modellist.FirstOrDefault().F_Id, "", DateTime.Now, jo.code, jo.message, "批量推送工单", "", "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id35 + "' ,count='" + count35 + "' where ids=26";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji5(token, modellist);
        //////                            erji5(token, modellist);
        //////                            pingjia5(token, modellist);
        //////                            bajie5(token, modellist);
        //////                            liucheng5(token, modellist);
        //////                            huifangjilu5(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }

        //////                        return "推送成功";
        //////                    }
        //////                    else
        //////                    {
        //////                        id35 = modellist[modellist.Count - 1].F_Id;
                               
        //////                        string error = "";
        //////                        if (jo.body.errorObjs != null && jo.body.errorObjs.Length > 0)
        //////                        {
        //////                            foreach (var it in jo.body.errorObjs)
        //////                            {
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送接口名称:" + it.resturl;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.caseserial))
        //////                                {
        //////                                    error += " 推送工单号:" + it.caseserial;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送标识:" + it.errorid;
        //////                                }
        //////                                if (!string.IsNullOrEmpty(it.resturl))
        //////                                {
        //////                                    error += " 推送失败原因:" + it.errormsg;
        //////                                }
        //////                            }
        //////                        }
        //////                        try
        //////                        {
        //////                            count35 += int .Parse (jo.body.successCount);
        //////                        }
        //////                        catch
        //////                        {
        //////                            count35 += modellist.Count;
        //////                        }
                              
        //////                        string strSql = string.Format(@"INSERT INTO T_Sys_PushMsg ( [WorkOrderId], [Conent], [CreatTime], [Code], [Message], [Title], [ErrorObjs], [Remarks]) 
        //////           values   ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}') ;select @@IDENTITY ", "", jsonParam, DateTime.Now, jo.code, jo.message, "批量推送工单失败", error, "推送成功数：" + jo.body.successCount + " 推送总数：" + jo.body.totalCount);
        //////                        object objres = DbHelperSQL.GetSingle(strSql);
        //////                        string ts = "update T_Bus_PushWorkorder_10 set id='" + id35 + "' ,count='" + count35 + "' where ids=26";
        //////                        var rh = DbHelperSQL.GetSingle(ts);
        //////                        try
        //////                        {
        //////                            yiji5(token, modellist);
        //////                            erji5(token, modellist);
        //////                            pingjia5(token, modellist);
        //////                            bajie5(token, modellist);
        //////                            liucheng5(token, modellist);
        //////                            huifangjilu5(token, modellist);

        //////                        }
        //////                        catch
        //////                        {
        //////                            return "推送失败";
        //////                        }
        //////                        return "推送失败";
        //////                    }
        //////                }
        //////                catch
        //////                {
        //////                    id5 = modellist[modellist.Count - 1].F_Id;
        //////                    //   count += modellist.Count;
        //////                    string ts = "update T_Bus_PushWorkorder_10 set id='" + id35 + "' where ids=26";
        //////                    var rh = DbHelperSQL.GetSingle(ts);
        //////                    return "推送失败";
        //////                }

        //////            }
        //////            else
        //////            {
        //////                return "推送失败空";
        //////            }


        //////        }
        //////        else
        //////        {
        //////            return "推送完结";
        //////        }

        //////    }
        //////    catch (Exception e)
        //////    {
        //////        return e.ToString();
        //////    }
        //////}














    }
}