using HL_FristAidPlatform_DataBase; using HL_FristAidPlatform_Help; using HL_FristAidPlatform_IDataBase; using HL_FristAidPlatform_Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HL_FristAidPlatform_Bussiness { public class T_Service_ApoplexyScreenLifeStyleBLL { IT_Service_ApoplexyScreenLifeStyle LifeStyle = new T_Service_ApoplexyScreenLifeStyleDB(); /// /// 保存生活方式 /// /// /// public MessageModel SaveScreenLifeStyle(T_Service_ApoplexyScreenLifeStyle lifeStyle) { lifeStyle.FillinStatus = "1"; if (lifeStyle.IsSmoke == "0") lifeStyle.SmokingStatus = ""; if (lifeStyle.SmokingStatus == "1") { lifeStyle.QuitSmokingYears = ""; lifeStyle.SmokerLength = ""; } if (lifeStyle.SmokingStatus == "2") { lifeStyle.SmokeYears = ""; lifeStyle.Quantity = ""; } if (LifeStyle.SaveScreenLifeStyle(lifeStyle)) { return new MessageModel { Success = true, Msg = "保存成功" }; } else { return new MessageModel { Success = false, Msg = "保存失败" }; } } /// /// 获取生活方式 /// /// /// public T_Service_ApoplexyScreenLifeStyle GetScreenLifeStyle(string patientGuid, string flag) { return LifeStyle.GetScreenLifeStyle(patientGuid,flag); } } }