コード例 #1
0
    private void showCarePlanDateTimeData()
    {
        CarePlanDateTime carePlanDateTime = new CarePlanDateTime();

        carePlanDateTime = CarePlanDateTimeManager.GetCarePlanDateTimeByID(Int32.Parse(Request.QueryString["carePlanDateTimeID"]));

        txtCarePlanDateTimeValue.Text = carePlanDateTime.CarePlanDateTimeValue;
    }
コード例 #2
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        CarePlanDateTime carePlanDateTime = new CarePlanDateTime();

        carePlanDateTime = CarePlanDateTimeManager.GetCarePlanDateTimeByID(Int32.Parse(Request.QueryString["carePlanDateTimeID"]));
        CarePlanDateTime tempCarePlanDateTime = new CarePlanDateTime();

        tempCarePlanDateTime.CarePlanDateTimeID = carePlanDateTime.CarePlanDateTimeID;

        tempCarePlanDateTime.CarePlanDateTimeValue = txtCarePlanDateTimeValue.Text;
        bool result = CarePlanDateTimeManager.UpdateCarePlanDateTime(tempCarePlanDateTime);

        Response.Redirect("AdminCarePlanDateTimeDisplay.aspx");
    }