protected void grdvwPatientDetails_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Edit") { if (Convert.ToInt32(e.CommandArgument) != 0) { int patientMedicalId = Convert.ToInt32(e.CommandArgument); var PatientMedicalRecords = objPMBBL.getPatientMedicalRecordsById(patientMedicalId); if (PatientMedicalRecords != null) { BindNewPatientDetails(PatientMedicalRecords.PatientId.Value); txtbpSys.Text = PatientMedicalRecords.BPSystolic; txtbpDias.Text = PatientMedicalRecords.BPDiastolic; txttemp.Text = PatientMedicalRecords.Temperature; txtpuls.Text = PatientMedicalRecords.Pulse; txtrespRate.Text = PatientMedicalRecords.RespiratoryRate; txtweght.Text = PatientMedicalRecords.Weight.ToString(); txtheight.Text = PatientMedicalRecords.Height.ToString(); BindSymptom(PatientMedicalRecords.Id); UpdatePanel_newMedicleRecord.Update(); } } } }
private void BindSymptom(int PMRId) { var PatientSymptomList = objPMBBL.getGetSymptomBY_PMD_idById(PMRId); if (PatientSymptomList.Count > 0) { grdSymtom.DataSource = PatientSymptomList; grdSymtom.DataBind(); if (PatientSymptomList.Count > 0) grdSymtom.HeaderRow.TableSection = TableRowSection.TableHeader; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)