예제 #1
0
        private OperationShowItem JTokenToModel(JToken item)
        {
            Model.OperationShowItem oOperationShowItem = new Model.OperationShowItem();
            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() ?? "";
            string department = item["department"].ToString() ?? "";
            string place = item["place"].ToString() ?? "";
            string message = item["message"].ToString() ?? "";
            string keywords = item["keywords"].ToString() ?? "";
            string description = item["description"].ToString() ?? "";

            oOperationShowItem.id = id;
            oOperationShowItem.rcount = rcount;
            oOperationShowItem.fcount = fcount;
            oOperationShowItem.name = name;//疾病名称
            oOperationShowItem.img = img;//图片
            oOperationShowItem.department = department;//疾病科
            oOperationShowItem.place = place;//疾病部位
            oOperationShowItem.message = message;//简介,摘要
            oOperationShowItem.keywords = keywords;
            oOperationShowItem.description = description;
            
            return oOperationShowItem;
        }
예제 #2
0
        private OperationShowItem JTokenToModel(JToken item)
        {
            Model.OperationShowItem oOperationShowItem = new Model.OperationShowItem();
            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() ?? "";
            string department  = item["department"].ToString() ?? "";
            string place       = item["place"].ToString() ?? "";
            string message     = item["message"].ToString() ?? "";
            string keywords    = item["keywords"].ToString() ?? "";
            string description = item["description"].ToString() ?? "";

            oOperationShowItem.id          = id;
            oOperationShowItem.rcount      = rcount;
            oOperationShowItem.fcount      = fcount;
            oOperationShowItem.name        = name;       //疾病名称
            oOperationShowItem.img         = img;        //图片
            oOperationShowItem.department  = department; //疾病科
            oOperationShowItem.place       = place;      //疾病部位
            oOperationShowItem.message     = message;    //简介,摘要
            oOperationShowItem.keywords    = keywords;
            oOperationShowItem.description = description;

            return(oOperationShowItem);
        }