protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack && Master.SelectedPatientID == "") { GetPatientID(); } CDataUtils utils = new CDataUtils(); CCPAPResults cpap = new CCPAPResults(Master); CIntake intake = new CIntake(); if (!IsPostBack) { //load questionnaires dropdown //cpap.LoadQuestionnaireCombo(cboQuestionnaireScores); //get graphic raw data htxtTxAdherence.Value = cpap.GetTxAdherence(); htxtAHI.Value = cpap.GetAHI(); htxtMaskLeak.Value = cpap.GetMaskLeak(); htxtQuestionnaires.Value = utils.GetJSONString(intake.GetPatIntakeScoresDS(Master)); } cboSummaryTimeWindow.Attributes.Add("onchange", "patient.summary.timewindow(this);"); //cboQuestionnaireScores.Attributes.Add("onchange", "patient.summary.renderQuestionnaires(this);"); ShowSysFeedback(); }
protected void Page_Load(object sender, EventArgs e) { CCPAPResults cpap = new CCPAPResults(Master); CDataUtils utils = new CDataUtils(); CIntake intake = new CIntake(); if (!IsPostBack) { rblGraphicsMode.SelectedIndex = (int)Master.GraphicOption; rblGraphicsMode_OnSelectedIndexChanged(null, EventArgs.Empty); htxtTxAdherence.Value = cpap.GetTxAdherence(); htxtAHI.Value = cpap.GetAHI(); htxtBaselineAHI.Value = cpap.GetBaselineAHI(); string strLeakType; htxtMaskLeak.Value = cpap.GetMaskLeak(out strLeakType); htxtLeakType.Value = strLeakType; htxtQuestionnaires.Value = utils.GetStringValueFromDS(intake.GetScoreDataStringDS(Master, Master.SelectedPatientID), "MID_DATA"); CPatientEvent evt = new CPatientEvent(Master); evt.CheckPAPEvent(); ClearTxSessionVars(); loadPatient(); cpap.LoadQuestionnaireCombo(cboQuestionnaireScores); } cboSummaryTimeWindow.Attributes.Add("onchange", "patient.summary.timewindow(this);"); cboSummaryTimeWindow2.Attributes.Add("onchange", "patient.summary.graphs.timewindow(this);"); cboQuestionnaireScores.Attributes.Add("onchange", "patient.summary.renderQuestionnaires(this);"); ucPatEvt.BaseMstr = Master; //move to events tab if this is an event lookup if (!IsPostBack) { if (Session["EVENT_LOOKUP"] != null) { if ((bool)Session["EVENT_LOOKUP"]) { tcPatSummary.ActiveTabIndex = 1; Session["EVENT_LOOKUP"] = null; } } } }