示例#1
0
        protected virtual void BuildXRT(int PatientID, string FormName, string FormType)
        {
            RadiationTherapyDa Da = new RadiationTherapyDa();
            DataSet            Ds = Da.FormGetRecords(PatientID, FormName, FormType);

            if (Ds.Tables.Count > 0 && Ds.Tables[0].Rows.Count > 0)
            {
                XRT.DataSource = Ds.Tables[0].DefaultView;
                XRT.DataBind();
            }
        }
示例#2
0
        protected virtual void BuildRadTxHistory(int PatientID, string FormName, string FormType)
        {
            RadiationTherapyDa Da = new RadiationTherapyDa();
            DataSet            Ds = new DataSet();

            Ds = Da.FormGetRecords(PatientID, FormName, FormType);


            if (Ds.Tables.Count > 0 && Ds.Tables[0].Rows.Count > 0)
            {
                NoRadTxHxMsgTr.Visible = false;

                RadiationTxRptr.DataSource = Ds.Tables[0].DefaultView;
                RadiationTxRptr.DataBind();
            }
            else
            {
                NoRadTxHxMsgTr.Visible = true;
            }
        }
示例#3
0
        protected void GetRadTx(int PatientID, string FormName, string FormType)
        {
            RadiationTherapyDa radTxDa = new RadiationTherapyDa();
            DataSet            radTxDs = radTxDa.FormGetRecords(PatientID, FormName, FormType);

            if (radTxDs.Tables.Count > 0 && radTxDs.Tables[0].Rows.Count > 0)
            {
                // limit to last 10 records
                PastRecordsCountRadTx = radTxDs.Tables[0].Rows.Count;
                DataView radTxDv = new DataView(radTxDs.Tables[0]);
                radTxDv.Sort = RadiationTherapy.RadTxDate + " DESC ";
                radTxDv      = GetTopDataViewRows(radTxDv, 10);
                radTxDv.Sort = RadiationTherapy.RadTxDate + " ASC ";

                XRT.DataSource = radTxDv;
                XRT.DataBind();
            }
            else
            {
                PastRecordsCountRadTx = 0;
            }
        }