Exemplo n.º 1
0
    private void showADLHeaderDetailnDateTimeData()
    {
        ADLHeaderDetailnDateTime aDLHeaderDetailnDateTime = new ADLHeaderDetailnDateTime();

        aDLHeaderDetailnDateTime = ADLHeaderDetailnDateTimeManager.GetADLHeaderDetailnDateTimeByID(Int32.Parse(Request.QueryString["aDLHeaderDetailnDateTimeID"]));

        ddlADLDateTime.SelectedValue     = aDLHeaderDetailnDateTime.ADLDateTimeID.ToString();
        ddlADLHeaderDetail.SelectedValue = aDLHeaderDetailnDateTime.ADLHeaderDetailID.ToString();
        ddlADLHeaderDetail.SelectedValue = aDLHeaderDetailnDateTime.ADLHeaderDetailID.ToString();
        txtExtraField1.Text = aDLHeaderDetailnDateTime.ExtraField1;
        txtExtraField2.Text = aDLHeaderDetailnDateTime.ExtraField2;
        txtExtraField3.Text = aDLHeaderDetailnDateTime.ExtraField3;
        txtExtraField4.Text = aDLHeaderDetailnDateTime.ExtraField4;
        txtExtraField5.Text = aDLHeaderDetailnDateTime.ExtraField5;
    }
Exemplo n.º 2
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        ADLHeaderDetailnDateTime aDLHeaderDetailnDateTime = new ADLHeaderDetailnDateTime();

        aDLHeaderDetailnDateTime = ADLHeaderDetailnDateTimeManager.GetADLHeaderDetailnDateTimeByID(Int32.Parse(Request.QueryString["aDLHeaderDetailnDateTimeID"]));
        ADLHeaderDetailnDateTime tempADLHeaderDetailnDateTime = new ADLHeaderDetailnDateTime();

        tempADLHeaderDetailnDateTime.ADLHeaderDetailnDateTimeID = aDLHeaderDetailnDateTime.ADLHeaderDetailnDateTimeID;

        tempADLHeaderDetailnDateTime.ADLDateTimeID     = Int32.Parse(ddlADLDateTime.SelectedValue);
        tempADLHeaderDetailnDateTime.ADLHeaderDetailID = Int32.Parse(ddlADLHeaderDetail.SelectedValue);
        tempADLHeaderDetailnDateTime.ADLHeaderDetailID = Int32.Parse(ddlADLHeaderDetail.SelectedValue);
        tempADLHeaderDetailnDateTime.ExtraField1       = txtExtraField1.Text;
        tempADLHeaderDetailnDateTime.ExtraField2       = txtExtraField2.Text;
        tempADLHeaderDetailnDateTime.ExtraField3       = txtExtraField3.Text;
        tempADLHeaderDetailnDateTime.ExtraField4       = txtExtraField4.Text;
        tempADLHeaderDetailnDateTime.ExtraField5       = txtExtraField5.Text;
        bool result = ADLHeaderDetailnDateTimeManager.UpdateADLHeaderDetailnDateTime(tempADLHeaderDetailnDateTime);

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