public AdminBasePage() : base() { this.Init += (a, b) => { if (QueryDiseaseId.HasValue) { BOL.Disease disease = new BOL.Disease(); disease.Get(QueryDiseaseId.Value); _queryDiseaseName = disease[BOL.Disease.DiseaseName].ToString(); } }; }
private void SetViewMode(int?datasetId) { if (datasetId.HasValue) { DiseaseController dc = new DiseaseController(); var datasetDisease = dc.GetDiseaseAttributeValue(BOL.Dataset.DatasetId, datasetId.Value.ToString()); if (datasetDisease != null) { var disease = new BOL.Disease(); disease.Get((int)datasetDisease[BOL.DiseaseAttributeValue.DiseaseId]); Caisis.Security.CustomPrincipal cp = System.Threading.Thread.CurrentPrincipal as Caisis.Security.CustomPrincipal; string diseaseView = disease[BOL.Disease.DiseaseName].ToString(); cp.UserProfile["diseaseView"] = diseaseView; } } }