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

                    grdvwBoneProfileDetails.PageSize  = intPageSize;
                    grdvwBoneProfileDetails.PageIndex = intPageIndex;
                    grdvwBoneProfileDetails.DataBind();
                }
            }
            catch (Exception ex)
            {
                throw;
            }
        }
        public static List <DC_BoneProfileReports> GetBoneProfile(string _patientID)
        {
            DL_BoneProfileReports        _objDL = new DL_BoneProfileReports();
            List <DC_BoneProfileReports> data   = _objDL.GetBoneProfileReports(new DC_BoneProfileReports_Search()
            {
                PatientID = Guid.Parse(_patientID), PageNo = 0, PageSize = 20
            });

            return(data);
        }