private StoreShowItem JTokenToModel(JToken item) { Model.StoreShowItem oStoreShowItem = new Model.StoreShowItem(); int id = int.Parse(item["id"].ToString()); int count = int.Parse(item["count"].ToString()); int rcount = int.Parse(item["rcount"].ToString()); int fcount = int.Parse(item["fcount"].ToString()); string name = item["name"].ToString() ?? ""; string img = item["img"].ToString() ?? ""; long area = long.Parse(item["area"].ToString()); //区域 string address = item["address"].ToString() ?? ""; // 地址 float x = float.Parse(item["x"].ToString()); // 地图x float y = float.Parse(item["y"].ToString()); // 地图y string tel = item["tel"].ToString() ?? ""; // 电话 string zipcode = item["zipcode"].ToString() ?? ""; // 邮编 string url = item["url"].ToString() ?? ""; // 网站URL string number = item["number"].ToString() ?? ""; // 电话 string legal = item["legal"].ToString() ?? ""; string charge = item["charge"].ToString() ?? ""; string leader = item["leader"].ToString() ?? ""; string type = item["type"].ToString() ?? ""; string business = item["business"].ToString() ?? ""; string waddress = item["waddress"].ToString() ?? ""; long supervise = long.Parse(item["supervise"].ToString()); string createdate = item["createdate"].ToString() ?? ""; oStoreShowItem.id = id; oStoreShowItem.count = count; oStoreShowItem.rcount = rcount; oStoreShowItem.fcount = fcount; oStoreShowItem.name = name;//疾病名称 oStoreShowItem.img = img;//图片 oStoreShowItem.area = area; oStoreShowItem.address = address; oStoreShowItem.x = x; oStoreShowItem.y = y; oStoreShowItem.tel = tel; oStoreShowItem.number = number; oStoreShowItem.zipcode = zipcode; oStoreShowItem.url = url; oStoreShowItem.legal = legal; oStoreShowItem.charge = charge; oStoreShowItem.leader = leader; oStoreShowItem.type = type; oStoreShowItem.business = business; oStoreShowItem.waddress = waddress; oStoreShowItem.business = business; oStoreShowItem.supervise = supervise; oStoreShowItem.createdate = createdate; return oStoreShowItem; }
private StoreShowItem JTokenToModel(JToken item) { Model.StoreShowItem oStoreShowItem = new Model.StoreShowItem(); int id = int.Parse(item["id"].ToString()); int count = int.Parse(item["count"].ToString()); int rcount = int.Parse(item["rcount"].ToString()); int fcount = int.Parse(item["fcount"].ToString()); string name = item["name"].ToString() ?? ""; string img = item["img"].ToString() ?? ""; long area = long.Parse(item["area"].ToString()); //区域 string address = item["address"].ToString() ?? ""; // 地址 float x = float.Parse(item["x"].ToString()); // 地图x float y = float.Parse(item["y"].ToString()); // 地图y string tel = item["tel"].ToString() ?? ""; // 电话 string zipcode = item["zipcode"].ToString() ?? ""; // 邮编 string url = item["url"].ToString() ?? ""; // 网站URL string number = item["number"].ToString() ?? ""; // 电话 string legal = item["legal"].ToString() ?? ""; string charge = item["charge"].ToString() ?? ""; string leader = item["leader"].ToString() ?? ""; string type = item["type"].ToString() ?? ""; string business = item["business"].ToString() ?? ""; string waddress = item["waddress"].ToString() ?? ""; long supervise = long.Parse(item["supervise"].ToString()); string createdate = item["createdate"].ToString() ?? ""; oStoreShowItem.id = id; oStoreShowItem.count = count; oStoreShowItem.rcount = rcount; oStoreShowItem.fcount = fcount; oStoreShowItem.name = name; //疾病名称 oStoreShowItem.img = img; //图片 oStoreShowItem.area = area; oStoreShowItem.address = address; oStoreShowItem.x = x; oStoreShowItem.y = y; oStoreShowItem.tel = tel; oStoreShowItem.number = number; oStoreShowItem.zipcode = zipcode; oStoreShowItem.url = url; oStoreShowItem.legal = legal; oStoreShowItem.charge = charge; oStoreShowItem.leader = leader; oStoreShowItem.type = type; oStoreShowItem.business = business; oStoreShowItem.waddress = waddress; oStoreShowItem.business = business; oStoreShowItem.supervise = supervise; oStoreShowItem.createdate = createdate; return(oStoreShowItem); }