private DataSet GetLabTestDataSet(int PatientID, string formName, string formType) { LabTestDa da = new LabTestDa(); // return da.FormGetRecords(PatientID, formName, formType); return(da.FormGetAllLabs(PatientID, formName, formType)); }
protected void GetLabs(int PatientID, string formName, string formType) { LabTestDa da = new LabTestDa(); DataSet labDs = da.FormGetAllLabs(PatientID, formName, formType); if (labDs.Tables.Count > 0 && labDs.Tables[0].Rows.Count > 0) { // limit to last 10 records PastRecordsCountLabs = labDs.Tables[0].Rows.Count; DataView labsDv = new DataView(labDs.Tables[0]); labsDv.Sort = LabTest.LabDate + " DESC "; labsDv = GetTopDataViewRows(labsDv, 10); labsDv.Sort = LabTest.LabDate + " ASC "; LabTestsHx.DataSource = labsDv; LabTestsHx.DataBind(); } else { PastRecordsCountLabs = 0; } }