Exemplo n.º 1
0
        protected void GetAliveStatus()
        {
            StatusDa da   = new StatusDa();
            DataSet  ds   = da.GetStatusField(_patientId, "Alive");
            DataView view = ds.Tables[0].DefaultView;

            if (view.Count >= 1)
            {
                SpineLastKnownAliveRpt.DataSource = view;
                SpineLastKnownAliveRpt.DataBind();
            }
        }
Exemplo n.º 2
0
        protected void GetStatus()
        {
            StatusDa da   = new StatusDa();
            DataSet  ds   = da.GetStatusField(_patientId, "Diagnosis Date");
            DataView view = ds.Tables[0].DefaultView;

            if (view.Count >= 1)
            {
                SpineStatusRpt.DataSource = view;
                SpineStatusRpt.DataBind();
            }
            else
            {
                NoSpineStatusMsgTr.Style.Add("display", "block");
            }
        }
Exemplo n.º 3
0
        protected void GetDiagnosis(int PatientID, string FormName, string FormType)
        {
            StatusDa statusDa = new StatusDa();
            DataSet  statusDs = statusDa.GetStatusField(PatientID, "Diagnosis Date");

            if (statusDs.Tables.Count > 0 && statusDs.Tables[0].Rows.Count > 0)
            {
                // limit to last 10 records
                PastRecordsCountStatus = statusDs.Tables[0].Rows.Count;
                DataView statusDv = new DataView(statusDs.Tables[0]);
                statusDv.Sort = Status.StatusDate + " DESC ";
                statusDv      = GetTopDataViewRows(statusDv, 10);
                statusDv.Sort = Status.StatusDate + " ASC ";

                DiagnosisHx.DataSource = statusDv;
                DiagnosisHx.DataBind();
            }
            else
            {
                PastRecordsCountStatus = 0;
            }
        }