/// <summary> /// 完税信息-详细信息 /// </summary> public void GetHtmlSourceDetailsWS(string resourceId, string strTargerUrl) { string strContex = ReadHTML(strTargerUrl); ConvertWS convertWS = new ConvertWS(); var data = convertWS.getDetailsWS(resourceId, strContex); InsertWS insertWS = new InsertWS(); //insertWS.InsertDetailsWS(data); insertWS.InsertDBWS(data); //insertWS.InsertSingleDBWS(data); }
/// <summary> /// 插入数据库 /// </summary> /// <param name="strLoginUrl"></param> /// <param name="strTargerUrl"></param> /// <param name="data">列表数据</param> public void InsertDataWS(string strLoginUrl, string strTargerUrl, DataTable data) { string msg = string.Empty; try { string strContex = string.Empty; int dataCount = data.Rows.Count; InsertWS insertWS = new InsertWS(); insertWS.InsertDBWS(data); msg = string.Format("{0} 完税信息数据 插入列表{1}条数据", DateTime.Now.ToString("G"), dataCount.ToString()); LogWrite(msg); } catch (ArgumentException ex) { msg = string.Format("{0} 插入合格证详细信息,出错:{1}", DateTime.Now.ToString("G"), ex.Message); LogWrite(msg); } }