Beispiel #1
0
 public List <Domain.PatientQuestion> GetVisit1Screen3(int patientID)
 {
     return(visRepos.GetVisit1Screen3(patientID));
 }
Beispiel #2
0
        private void LoadData()
        {
            List <Domain.PatientQuestion> lst = visRepos.GetVisit1Screen3(patientID);

            if (lst != null && lst.Count > 0)
            {
                this.txtMostRecentLabDate.Text = lst[0].Answer[0].Value;
                this.txtAST.Text        = lst[1].Answer[0].Value;
                this.txtALKPhotos.Text  = lst[2].Answer[0].Value;
                this.txtCreatinine.Text = lst[3].Answer[0].Value;

                string eGFR = lst[4].Answer[0].Value;
                string acr  = lst[5].Answer[0].Value;

                this.txteGFR.Text = eGFR;
                this.txtACR.Text  = acr;


                if (string.IsNullOrEmpty(this.txtAST.Text))
                {
                    chkALT.Checked       = true;
                    reqtxtAST.Enabled    = false;
                    this.txtAST.CssClass = "readonly";
                    //this.txtAST.ReadOnly = true;
                    this.txtAST.Attributes["readonly"] = "true";
                }
                else
                {
                    chkALT.Checked       = false;
                    reqtxtAST.Enabled    = true;
                    this.txtAST.CssClass = "Notreadonly";
                    //this.txtAST.ReadOnly = false;
                    this.txtAST.Attributes["readonly"] = "false";
                }

                if (string.IsNullOrEmpty(this.txtALKPhotos.Text))
                {
                    chkALKPOS.Checked          = true;
                    reqtxtALKPhotos.Enabled    = false;
                    this.txtALKPhotos.CssClass = "readonly";
                    //this.txtALKPhotos.ReadOnly = true;
                    this.txtALKPhotos.Attributes["readonly"] = "true";
                }
                else
                {
                    chkALKPOS.Checked          = false;
                    reqtxtALKPhotos.Enabled    = true;
                    this.txtALKPhotos.CssClass = "Notreadonly";
                    //this.txtALKPhotos.ReadOnly = false;
                    this.txtALKPhotos.Attributes["readonly"] = "false";
                }

                if (string.IsNullOrEmpty(this.txtCreatinine.Text))
                {
                    chkCreatinine.Checked       = true;
                    reqtxtCreatinine.Enabled    = false;
                    this.txtCreatinine.CssClass = "readonly";
                    //this.txtCreatinine.ReadOnly = true;
                    this.txtCreatinine.Attributes["readonly"] = "true";
                }
                else
                {
                    chkCreatinine.Checked       = false;
                    reqtxtCreatinine.Enabled    = true;
                    this.txtCreatinine.CssClass = "Notreadonly";
                    //this.txtCreatinine.ReadOnly = false;
                    this.txtCreatinine.Attributes["readonly"] = "false";
                }

                if (string.IsNullOrEmpty(this.txteGFR.Text))
                {
                    chkGFR.Checked        = true;
                    reqtxteGFR.Enabled    = false;
                    this.txteGFR.CssClass = "readonly";
                    //this.txteGFR.ReadOnly = true;
                    this.txteGFR.Attributes["readonly"] = "true";
                }
                else
                {
                    chkGFR.Checked        = false;
                    reqtxteGFR.Enabled    = true;
                    this.txteGFR.CssClass = "Notreadonly";
                    //this.txteGFR.ReadOnly = false;
                    this.txteGFR.Attributes["readonly"] = "false";
                }

                if (string.IsNullOrEmpty(this.txtACR.Text))
                {
                    chkACR.Checked       = true;
                    reqtxtACR.Enabled    = false;
                    this.txtACR.CssClass = "readonly";
                    //this.txtACR.ReadOnly = true;
                    this.txtACR.Attributes["readonly"] = "true";
                }
                else
                {
                    chkACR.Checked       = false;
                    reqtxtACR.Enabled    = true;
                    this.txtACR.CssClass = "Notreadonly";
                    //this.txtACR.ReadOnly = false;
                    this.txtACR.Attributes["readonly"] = "false";
                }
            }
        }