日期:2014-05-17 浏览次数:20751 次
private static void GetHCPInfo()
{
try
{
string json = HttpUtil.GetJson(""); //请求链接得道json数据
if (!string.IsNullOrEmpty(json))
{
JsonClientReceive jsonData = JsonUtil.Deserialize<JsonClientReceive>(json.Replace("\\", ""));
if (jsonData.success)
{
DataTable dt = new DataTable();
List<ClientReceive> list = (List<ClientReceive>)jsonData.data;
if (list.Count > 0)
{
dt = iPower.Common.Common.ListToDataTable<ClientReceive>(list);
}
Log.Debug(string.Format("获取{0}条数据", list.Count));
DBMethod(dt, @"DC.Proc_Interface_Hcp", "@BPIDTable");
}
else