using Nirvana.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YBDevice.Entity
{
///
/// 儿童信息
///
public class ChildInfoModel
{
///
/// 身高值,CM
///
public decimal Height { get; set; } = 130.5m;
///
/// 体重,公斤
///
public decimal Weight { get; set; } = 25.7m;
///
/// 头围,厘米
///
public decimal Head { get; set; } = 0;
///
/// 成年身高,CM
///
public decimal GeneticHeight { get; set; }
///
/// 测量时间
///
public string Time { get; set; }
///
/// 标准遗传身高,CM
///
public decimal PredictHeight { get; set; }
///
/// 遗传身高是否大于实测身高,true-是,false-否
///
public bool IsHeight { get; set; }
///
/// 警告类型,1-红色警示,2-橙色警示,3-黄色警示,4-绿色警示,5-蓝色嘉奖
///
public int AlertType { get; set; }
///
/// 父亲身高,CM
///
public decimal DadHeight { get; set; } = 180;
///
/// 母亲身高
///
public decimal MomHeight { get; set; } = 165;
///
/// 半年的身高增长值,CM
///
public decimal HalfYearHeight { get; set; } = 3.5m;
///
/// 一年的身高增长值
///
public decimal YearHeight { get; set; } = 7;
///
/// 姓名
///
public string Name { get; set; } = "核桃(演示)";
///
/// 头像
///
public string HeadImg { get; set; }
///
/// 年龄
///
public string Age { get; set; }
///
/// 性别,1-男,2-女
///
public GenderType Sex { get; set; } = GenderType.FeMale;
///
/// 生日
///
public string Birthday { get; set; }
///
/// familyid
///
public int Id { get; set; } = 0;
///
/// 最新的身高测量时间
///
public string LastHeightTime { get; set; }
///
/// BMI值
///
public decimal BMI { get; set; }
///
/// BMI等级
///
public string BMILevel { get; set; }
///
/// 身高等级
///
public string HeightLevel { get; set; }
///
/// 体重等级
///
public string WeightLevel { get; set; }
///
/// 头围等级
///
public string HeadLevel { get; set; }
///
/// BMI等级颜色
///
public string BMILevelColor { get; set; }
///
/// 身高等级颜色
///
public string HeightLevelColor { get; set; }
///
/// 体重等级颜色
///
public string WeightLevelColor { get; set; }
///
/// 头围等级颜色
///
public string HeadLevelColor { get; set; }
///
/// BMI分级列表
///
public List BMILevelList { get; set; }
///
/// 身高分级列表
///
public List HeightLevelList { get; set; }
///
/// 体重分级列表
///
public List WeightLevelList { get; set; }
///
/// 头围分级列表
///
public List HeadLevelList { get; set; }
///
/// 标准体重,公斤
///
public decimal StandWeight { get; set; }
///
/// 成员类型
///
public FamilyType Type { get; set; }
///
/// 最新的记录ID
///
public Guid? ResultId { get; set; }
///
/// 儿童处方相关信息
///
public ChildPrescriptionS2CDto cplist { get; set; }
///
/// 文献引用列表
///
public List ReferList { get; set; }
///
/// 数据参考列表
///
public List DataReferList { get; set; }
}
///
/// 儿童处方相关信息
///
public class ChildPrescriptionS2CDto
{
///
/// 营养列表
///
public List NutritionList { get; set; }
///
/// 运动列表
///
public List SportList { get; set; }
///
/// 睡眠列表
///
public List SleepList { get; set; }
///
/// 情绪列表
///
public List MoodList { get; set; }
}
///
/// 成长曲线
///
public class ChildGrowthModel
{
///
/// 测量时间
///
public string Time { get; set; }
///
/// 身高
///
public decimal Height { get; set; }
///
/// 体重
///
public decimal Weight { get; set; }
///
/// 头围
///
public decimal Header { get; set; }
}
///
/// 历史曲线查询参数
///
public class ChildGrowthQueryModel
{
///
/// 家庭成员ID
///
public int familyid { get; set; } = 0;
///
/// 开始时间
///
public DateTime? StartTime { get; set; }
///
/// 结束时间
///
public DateTime EndTime { get; set; }
///
/// 页码
///
public int page { get; set; } = 1;
///
/// 每页显示的数量
///
public int pagesize { get; set; }
///
/// 设备类型
///
public int DevType { get; set; }
}
///
/// 儿童增量信息
///
public class ChildYearHeightModel
{
///
/// 实测身高
///
public decimal Height { get; set; }
///
/// 身高等级,1-正常,2-偏矮,3-偏高,4-矮,5高,6-异常
///
public ChildHeightLevel HeightLevel { get; set; }
///
/// 半年增高
///
public decimal HalfYearHeight { get; set; }
///
/// 半年增高等级,1-正常,2-偏低
///
public int HalfYearHeightLevel { get; set; }
///
/// 半年增量的标准身高,大于则正常,小于则偏低
///
public decimal HalfYearStandHeight { get; set; }
///
/// 近一年增高
///
public decimal YearHeight { get; set; }
///
/// 一年增高等级,1-正常,2-偏低
///
public int YearHeightLevel { get; set; }
///
/// 一年增量的标准身高,大于则正常,小于则偏低
///
public decimal YearStandHeight { get; set; }
///
/// 下下等标准值
///
public decimal f3sd { get; set; }
///
/// 下等标准值
///
public decimal f2sd { get; set; }
///
/// 中下标准值
///
public decimal f1sd { get; set; }
///
/// 中等标准值
///
public decimal median { get; set; }
///
/// 中上标准值
///
public decimal z1sd { get; set; }
///
/// 上等标准值
///
public decimal z2sd { get; set; }
///
/// 上上等标准值
///
public decimal z3sd { get; set; }
///
/// 等级列表
///
public List list { get; set; }
}
///
/// 身高/体重报告
///
public class ChildWHModel
{
///
/// 时间,年月
///
public string Time { get; set; }
///
/// 实测值
///
public decimal Value { get; set; }
///
/// 标准值
///
public decimal StandValue { get; set; }
}
///
/// 身高预测
///
public class ChildPredictHeightModel
{
///
/// 孩子身高
///
public decimal Height { get; set; }
///
/// 孩子体重
///
public decimal Weight { get; set; }
///
/// 爸爸身高
///
public decimal DadHeight { get; set; }
///
/// 妈妈身高
///
public decimal MomHeight { get; set; }
///
/// 生日
///
public DateTime Birthday { get; set; }
///
/// 性别,1-男,2-女
///
public GenderType sex { get; set; }
///
/// 家庭成员ID,如果没有传0即可
///
public int familyid { get; set; } = 0;
///
/// 小程序appid
///
public string AppId { get; set; }
}
///
/// 身高预测返回值
///
public class ChildPredictHeightReturnModel
{
///
/// 遗传身高
///
public decimal GeneticHeight { get; set; }
///
/// 成年身高
///
public decimal AdultHeight { get; set; }
///
/// 正负误差值
///
public decimal ErrorValue { get; set; }
}
///
/// 演示成员
///
public class YSFamily
{
///
/// ID
///
public int Id { get; set; } = 0;
///
/// 年龄,7岁
///
public int Age { get; set; } = 7;
///
/// 年龄,岁月格式
///
public string mAge
{
get
{
return DateTime.Now.AddYears(-7).Date.TomAge();
}
}
///
/// 性别,1-男,2-女
///
public int Sex { get; set; } = 1;
///
/// 体重,25KG
///
public decimal Weight { get; set; } = 25;
///
/// 身高,130CM
///
public decimal Height { get; set; } = 130;
///
/// 生日
///
public DateTime Birthday
{
get
{
return DateTime.Now.AddYears(-7).Date;
}
}
///
/// 月龄
///
public int Month
{
get
{
return DateTime.Now.AddYears(-7).ToMonth();
}
}
///
/// 半年增高的身高,CM
///
public decimal HalfYearHeight { get; set; } = 3.5m;
///
/// 一年增高的身高,CM
///
public decimal YearHeight { get; set; } = 6;
///
/// 父亲身高
///
public decimal DadHeight { get; set; } = 180;
///
/// 母亲身高
///
public decimal MomHeight { get; set; } = 165;
///
/// 测量时间
///
public DateTime Time
{
get
{
return DateTime.Now.Date;
}
}
///
/// 演示名称
///
public string Name { get; set; } = "核桃(演示)";
///
/// 头像
///
public string HeadImg
{
get
{
return $"{Configs.GetString("APICDNURL")}/img/child_male.png";
}
}
///
/// 演示的阻抗值
///
public int imp { get; set; } = 650;
///
/// 成人身高
///
public decimal ADHeight { get; set; } = 175;
///
/// 成人体重
///
public decimal ADWeight { get; set; } = 68;
///
/// 成人年龄
///
public int ADAge { get; set; } = 18;
}
}