Ejemplo n.º 1
0
        private void SelectPatient(string Prefix)
        {
            OPDPatientMasterBLL        objOPDPatient = new OPDPatientMasterBLL();
            List <EntityPatientMaster> lst           = objOPDPatient.SearchPatient(Prefix);

            if (lst != null)
            {
                dgvPatientList.DataSource = lst;
                dgvPatientList.DataBind();

                lblRowCount.Text = string.Empty;
            }
        }
Ejemplo n.º 2
0
 private void GetPatientListsearch(string Prefix)
 {
     try
     {
         OPDPatientMasterBLL        mobjPatientMasterBLL = new OPDPatientMasterBLL();
         List <EntityPatientMaster> ldtRequisition       = mobjPatientMasterBLL.GetAllPatientssearch(Prefix);
         ldtRequisition.Insert(0, new EntityPatientMaster()
         {
             PatientId = 0, FullName = "----Select----"
         });
         ddlPatient.DataSource     = ldtRequisition;
         ddlPatient.DataTextField  = "FullName";
         ddlPatient.DataValueField = "PatientId";
         ddlPatient.DataBind();
     }
     catch (Exception ex)
     {
         lblMsg.Text = ex.Message;
     }
 }