private void loadCarePlanDateTime()
    {
        ListItem li = new ListItem("Select CarePlanDateTime...", "0");

        ddlCarePlanDateTime.Items.Add(li);

        List <CarePlanDateTime> carePlanDateTimes = new List <CarePlanDateTime>();

        carePlanDateTimes = CarePlanDateTimeManager.GetAllCarePlanDateTimes();
        foreach (CarePlanDateTime carePlanDateTime in carePlanDateTimes)
        {
            ListItem item = new ListItem(carePlanDateTime.CarePlanDateTimeName.ToString(), carePlanDateTime.CarePlanDateTimeID.ToString());
            ddlCarePlanDateTime.Items.Add(item);
        }
    }
示例#2
0
 private void showCarePlanDateTimeGrid()
 {
     gvCarePlanDateTime.DataSource = CarePlanDateTimeManager.GetAllCarePlanDateTimes();
     gvCarePlanDateTime.DataBind();
 }