コード例 #1
0
        private void LoadAppointment(int appointmentID)
        {
            PatientAppointmentDAL   appointmentDAL   = new PatientAppointmentDAL();
            PatientAppointmentModel appointmentModel = new PatientAppointmentModel();

            appointmentModel.ID = appointmentID;
            oDs = new DataSet();

            oDs = appointmentDAL.SelectByID(appointmentModel);

            //  ddlHospitalName.SelectedValue = oDs.Tables[0].Rows[0]["FacilityID"].ToString();
            ddlPhysician.SelectedValue = oDs.Tables[0].Rows[0]["PhysicianID"].ToString();

            LoadPatient(oDs.Tables[0].Rows[0]["PatientNo"].ToString());
        }
コード例 #2
0
        private void PopulateData(int id)
        {
            oDAL   = new PatientAppointmentDAL();
            oClass = new PatientAppointmentModel();
            oDs    = new DataSet();

            oClass.ID = id;

            oDs = oDAL.SelectByID(oClass);
            AppointmentID.Value = oDs.Tables[0].Rows[0][0].ToString();
            // CaseNo.Value = oDs.Tables[0].Rows[0][1].ToString();
            AppointmentDate.Value      = oDs.Tables[0].Rows[0][2].ToString();
            PatientNo.Value            = oDs.Tables[0].Rows[0]["PatientNo"].ToString();
            PatientName.Value          = oDs.Tables[0].Rows[0]["PatientName"].ToString();
            DOB.Value                  = Convert.ToDateTime(oDs.Tables[0].Rows[0]["DOB"]).ToShortDateString();
            ddlPhysician.SelectedValue = oDs.Tables[0].Rows[0]["PhysicianID"].ToString();
            ddlHospital.SelectedValue  = oDs.Tables[0].Rows[0]["FacilityID"].ToString();

            //   ddlStatus.SelectedValue = oDs.Tables[0].Rows[0]["StatusID"].ToString();
            txtRemarks.Value = oDs.Tables[0].Rows[0][6].ToString();
        }