Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int centerId = Convert.ToInt32(Session["id"]);

            if (!IsPostBack)
            {
                doctorDropDownList.DataSource     = aDoctorManager.GetAll(centerId);
                doctorDropDownList.DataTextField  = "Name";
                doctorDropDownList.DataValueField = "Id";
                doctorDropDownList.DataBind();

                diseaseDropDownList.DataSource     = aDiseaseManager.GetAll();
                diseaseDropDownList.DataTextField  = "Name";
                diseaseDropDownList.DataValueField = "Id";
                diseaseDropDownList.DataBind();

                medicineDropDownList.DataSource     = aMedicineManager.GetAllMedicine();
                medicineDropDownList.DataTextField  = "Name";
                medicineDropDownList.DataValueField = "Id";
                medicineDropDownList.DataBind();

                doseDropDownList.DataSource     = aDoseManager.GetAll();
                doseDropDownList.DataTextField  = "Time";
                doseDropDownList.DataValueField = "Id";
                doseDropDownList.DataBind();
            }
        }