protected void Page_Load(object sender, EventArgs e)
 {
     ClinicalDocumentList clinicaldoc = new ClinicalDocumentList();
     clinicaldoc = PHPService.GetClinicalDoc("selectAll",0,Convert.ToInt32(Session["PatientID"].ToString()));
     gdclicnicaldoc.DataSource = clinicaldoc.ClinicalDocumentLists;
     gdclicnicaldoc.DataBind();
 }
 protected void GetClinicalDocOnId(long clinicalId)
 {
     ClinicalDocumentList clinicaldoc = new ClinicalDocumentList();
     clinicaldoc = PHPService.GetClinicalDoc("SelectOnId", clinicalId, Convert.ToInt32(Session["PatientID"].ToString()));
     txt_clinicaldoc.Text = clinicaldoc.ClinicalDocumentLists.Select(m => m.FileName).FirstOrDefault();
     hdnClinicalDocId.Value = clinicalId.ToString();
     hdnUploadedFileName.Value = clinicaldoc.ClinicalDocumentLists.Select(m => m.UploadedFileName).FirstOrDefault();
     hdnFileSize.Value = clinicaldoc.ClinicalDocumentLists.Select(m => m.Size).FirstOrDefault();
     hdnFileExt.Value = clinicaldoc.ClinicalDocumentLists.Select(m => m.FileExt).FirstOrDefault();
 }