Esempio n. 1
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        ACC_ChartOfAccountLabel3 aCC_ChartOfAccountLabel3 = new ACC_ChartOfAccountLabel3();

        aCC_ChartOfAccountLabel3 = ACC_ChartOfAccountLabel3Manager.GetACC_ChartOfAccountLabel3ByID(Int32.Parse(hfaCC_ChartOfAccountLabel3ID.Value));
        ACC_ChartOfAccountLabel3 tempACC_ChartOfAccountLabel3 = new ACC_ChartOfAccountLabel3();

        tempACC_ChartOfAccountLabel3.ACC_ChartOfAccountLabel3ID = aCC_ChartOfAccountLabel3.ACC_ChartOfAccountLabel3ID;

        tempACC_ChartOfAccountLabel3.Code = txtCode.Text;
        tempACC_ChartOfAccountLabel3.ACC_ChartOfAccountLabel2ID = Int32.Parse(ddlACC_ChartOfAccountLabel2.SelectedValue);
        tempACC_ChartOfAccountLabel3.ChartOfAccountLabel3Text   = txtChartOfAccountLabel3Text.Text;
        tempACC_ChartOfAccountLabel3.ExtraField1 = txtExtraField1.Text;
        tempACC_ChartOfAccountLabel3.ExtraField2 = txtExtraField2.Text;
        tempACC_ChartOfAccountLabel3.ExtraField3 = txtExtraField3.Text;
        tempACC_ChartOfAccountLabel3.AddedBy     = getLogin().LoginID;
        tempACC_ChartOfAccountLabel3.AddedDate   = DateTime.Now;
        tempACC_ChartOfAccountLabel3.UpdatedBy   = getLogin().LoginID;
        tempACC_ChartOfAccountLabel3.UpdatedDate = DateTime.Now;
        tempACC_ChartOfAccountLabel3.RowStatusID = Int32.Parse(ddlRowStatus.SelectedValue);
        bool result = ACC_ChartOfAccountLabel3Manager.UpdateACC_ChartOfAccountLabel3(tempACC_ChartOfAccountLabel3);

        showACC_ChartOfAccountLabel3Grid();
        btnUpdate.Visible = false;
        btnAdd.Visible    = true;
        btnClear_Click(this, new EventArgs());
    }
Esempio n. 2
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        ACC_ChartOfAccountLabel3 aCC_ChartOfAccountLabel3 = new ACC_ChartOfAccountLabel3();

        aCC_ChartOfAccountLabel3 = ACC_ChartOfAccountLabel3Manager.GetACC_ChartOfAccountLabel3ByID(Int32.Parse(Request.QueryString["aCC_ChartOfAccountLabel3ID"]));
        ACC_ChartOfAccountLabel3 tempACC_ChartOfAccountLabel3 = new ACC_ChartOfAccountLabel3();

        tempACC_ChartOfAccountLabel3.ACC_ChartOfAccountLabel3ID = aCC_ChartOfAccountLabel3.ACC_ChartOfAccountLabel3ID;

        tempACC_ChartOfAccountLabel3.Code = txtCode.Text;
        tempACC_ChartOfAccountLabel3.ACC_ChartOfAccountLabel2ID = Int32.Parse(ddlACC_ChartOfAccountLabel2.SelectedValue);
        tempACC_ChartOfAccountLabel3.ChartOfAccountLabel3Text   = txtChartOfAccountLabel3Text.Text;
        tempACC_ChartOfAccountLabel3.ExtraField1 = txtExtraField1.Text;
        tempACC_ChartOfAccountLabel3.ExtraField2 = txtExtraField2.Text;
        tempACC_ChartOfAccountLabel3.ExtraField3 = txtExtraField3.Text;
        tempACC_ChartOfAccountLabel3.AddedBy     = getLogin().LoginID;
        tempACC_ChartOfAccountLabel3.AddedDate   = DateTime.Now;
        tempACC_ChartOfAccountLabel3.UpdatedBy   = getLogin().LoginID;
        tempACC_ChartOfAccountLabel3.UpdatedDate = DateTime.Now;
        tempACC_ChartOfAccountLabel3.RowStatusID = Int32.Parse(ddlRowStatus.SelectedValue);
        bool result = ACC_ChartOfAccountLabel3Manager.UpdateACC_ChartOfAccountLabel3(tempACC_ChartOfAccountLabel3);

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