/// <summary> /// 录像结束 /// </summary> /// <param name="strCardNo"></param> public void sdnEndRecVideo(string strCardNo, string strqhsj) { HttpClient.sdnHttpWebRequest httpclient = new HttpClient.sdnHttpWebRequest(); string strSJ = Convert.ToDateTime(strqhsj).ToString("yyyyMMddHHmmss"); string strUrl = string.Format(YWUrl + "/api/RecVideoTemp/EndRecVideoTemp?filename={0}", strCardNo + "_" + strSJ); string reslut = httpclient.DoGet(strUrl); }
/// <summary> /// 录像开始 /// </summary> /// <param name="strCardNo">身份证号码</param> /// <param name="strWinIp"></param> public void sdnStartRecVideo(string strCardNo, string strWinIp, string strqhsj) { HttpClient.sdnHttpWebRequest httpclient = new HttpClient.sdnHttpWebRequest(); string strSJ = Convert.ToDateTime(strqhsj).ToString("yyyyMMddHHmmss"); string strUrl = string.Format(YWUrl + "/api/RecVideoTemp/AddRecVideoTemp?filename={0}&identitynum={1}&strWinIp={2}", strCardNo + "_" + strSJ, strCardNo, strWinIp); string reslut = httpclient.DoGet(strUrl); }
/// <summary> /// 通过API 更新中间库数据 /// </summary> /// <param name="QUEUE_NUM">排队号码</param> /// <param name="state">数据状态</param> /// <returns></returns> public int UpdateDBbyAPI(string QUEUE_NUM, int state) { HttpClient.sdnHttpWebRequest httpclient = new HttpClient.sdnHttpWebRequest(); string strUrl = string.Format(PDJUrl + "/api/yypd/UpdateYYState?DEPART_CODE={0}&STATE={1}&NUM={2}", BBDM, state.ToString(), QUEUE_NUM); string reslut = httpclient.DoGet(strUrl); return(0); }
/// <summary> /// 通过API 插入数据到中间库数据 /// </summary> /// <param name="QUEUE_NUM">排队号码</param> /// <param name="state">数据状态</param> /// <returns></returns> public string GetYYNum(string cardNum, string departCode) { HttpClient.sdnHttpWebRequest httpclient = new HttpClient.sdnHttpWebRequest(); string serviceAddress = PDJUrl + "/api/yypd/GetYYNum?cardNum=" + cardNum + "&departCode=" + departCode; string s = httpclient.DoGet(serviceAddress); return(s); }
/// <summary> /// 通过API 插入数据到中间库数据 /// </summary> /// <param name="QUEUE_NUM">排队号码</param> /// <param name="state">数据状态</param> /// <returns></returns> public int AddDBbyAPI(string json) { HttpClient.sdnHttpWebRequest httpclient = new HttpClient.sdnHttpWebRequest(); string strUrl = string.Format(PDJUrl + "/api/yypd/AddYYNum?json={0}", json); string reslut = httpclient.DoGet(strUrl); return(0); }
/// <summary> /// 通过API 更新中间库数据 /// </summary> /// <param name="QUEUE_NUM">排队号码</param> /// <param name="state">数据状态</param> /// <returns></returns> public int UpdateWJWYYDBbyAPI(string XH, int state) { HttpClient.sdnHttpWebRequest httpclient = new HttpClient.sdnHttpWebRequest(); string strUrl = string.Format(PDJUrl + "/api/yypd/UpdateWJWYYState?XH={0}&STATE={1}", XH, state.ToString()); string reslut = httpclient.DoGet(strUrl); return(0); }