Ejemplo n.º 1
0
        private void BindGridDetails()
        {
            try
            {
                if (GetPatientID() != Guid.Empty)
                {
                    var result = _objDL.GetBloodCountReports(new DC_BloodCountReports_Search()
                    {
                        PatientID = _patientId, PageNo = intPageIndex, PageSize = intPageSize
                    });
                    grdvwBloodCountRptDetails.DataSource = result;
                    if (result != null && result.Count > 0)
                    {
                        grdvwBloodCountRptDetails.VirtualItemCount = result[0].TotalRecord ?? 0;
                    }

                    grdvwBloodCountRptDetails.PageIndex = intPageIndex;
                    grdvwBloodCountRptDetails.PageSize  = intPageSize;
                    grdvwBloodCountRptDetails.DataBind();
                }
            }
            catch (Exception ex)
            {
                throw;
            }
        }
        public static List <DC_BloodCountReports> GetBloodCount(string _patientID)
        {
            DL_BloodCountReports        _objDL = new DL_BloodCountReports();
            List <DC_BloodCountReports> data   = _objDL.GetBloodCountReports(new DC_BloodCountReports_Search()
            {
                PatientID = Guid.Parse(_patientID), PageNo = 0, PageSize = 20
            });

            return(data);
        }