private Model.CheckShowItem JTokenToModel(JToken item) { Model.CheckShowItem oCheckShowItem = new Model.CheckShowItem(); int id = int.Parse(item["id"].ToString() ?? "0"); int count = int.Parse(item["count"].ToString() ?? "0"); int rcount = int.Parse(item["rcount"].ToString() ?? "0"); int fcount = int.Parse(item["fcount"].ToString() ?? "0"); string name = item["name"].ToString() ?? ""; string img = item["img"].ToString() ?? ""; string keywords = item["keywords"].ToString() ?? ""; string description = item["description"].ToString() ?? ""; string department = item["department"].ToString() ?? ""; string place = item["place"].ToString() ?? ""; string message = item["message"].ToString() ?? ""; string disease = item["disease"].ToString() ?? ""; string symptom = item["symptom"].ToString() ?? ""; int checkclass = int.Parse(item["checkclass"].ToString() ?? "0"); oCheckShowItem.id = id; oCheckShowItem.count = count; oCheckShowItem.rcount = rcount; oCheckShowItem.fcount = fcount; oCheckShowItem.keywords = keywords; oCheckShowItem.name = name; oCheckShowItem.img = img; oCheckShowItem.description = description; oCheckShowItem.department = department; oCheckShowItem.place = place; oCheckShowItem.message = message; oCheckShowItem.disease = disease; oCheckShowItem.symptom = symptom; oCheckShowItem.place = place; oCheckShowItem.checkclass = checkclass; return(oCheckShowItem); }
private Model.CheckShowItem JTokenToModel(JToken item) { Model.CheckShowItem oCheckShowItem = new Model.CheckShowItem(); int id = int.Parse(item["id"].ToString() ?? "0"); int count = int.Parse(item["count"].ToString() ?? "0"); int rcount = int.Parse(item["rcount"].ToString() ?? "0"); int fcount = int.Parse(item["fcount"].ToString() ?? "0"); string name = item["name"].ToString() ?? ""; string img = item["img"].ToString() ?? ""; string keywords = item["keywords"].ToString() ?? ""; string description = item["description"].ToString() ?? ""; string department = item["department"].ToString() ?? ""; string place = item["place"].ToString() ?? ""; string message = item["message"].ToString() ?? ""; string disease = item["disease"].ToString() ?? ""; string symptom = item["symptom"].ToString() ?? ""; int checkclass = int.Parse(item["checkclass"].ToString() ?? "0"); oCheckShowItem.id = id; oCheckShowItem.count = count; oCheckShowItem.rcount = rcount; oCheckShowItem.fcount = fcount; oCheckShowItem.keywords = keywords; oCheckShowItem.name = name; oCheckShowItem.img = img; oCheckShowItem.description = description; oCheckShowItem.department = department; oCheckShowItem.place = place; oCheckShowItem.message = message; oCheckShowItem.disease = disease; oCheckShowItem.symptom = symptom; oCheckShowItem.place = place; oCheckShowItem.checkclass = checkclass; return oCheckShowItem; }