Example #1
0
        private void BindGridDetails()
        {
            try
            {
                if (GetPatientID() != Guid.Empty)
                {
                    var result = _objDL.GetLiverFunReports(new DC_LiverFunctionReports_Search()
                    {
                        PatientID = _patientId, PageNo = intPageIndex, PageSize = intPageSize
                    });
                    grdvwLiverFunctionDetails.DataSource = result;
                    if (result != null && result.Count > 0)
                    {
                        grdvwLiverFunctionDetails.VirtualItemCount = result[0].TotalRecord ?? 0;
                    }

                    grdvwLiverFunctionDetails.PageIndex = intPageIndex;
                    grdvwLiverFunctionDetails.PageSize  = intPageSize;
                    grdvwLiverFunctionDetails.DataBind();
                }
            }
            catch (Exception ex)
            {
                throw;
            }
        }
        public static List <DC_LiverFunctionReports> GetLiverFun(string _patientID)
        {
            DL_LiverFunReports             _objDL = new DL_LiverFunReports();
            List <DC_LiverFunctionReports> data   = _objDL.GetLiverFunReports(new DC_LiverFunctionReports_Search()
            {
                PatientID = Guid.Parse(_patientID), PageNo = 0, PageSize = 20
            });

            return(data);
        }