Exemple #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());
    }
Exemple #2
0
    private void showACC_ChartOfAccountLabel3Data()
    {
        ACC_ChartOfAccountLabel3 aCC_ChartOfAccountLabel3 = new ACC_ChartOfAccountLabel3();

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

        txtCode.Text = aCC_ChartOfAccountLabel3.Code;
        ddlACC_ChartOfAccountLabel2.SelectedValue = aCC_ChartOfAccountLabel3.ACC_ChartOfAccountLabel2ID.ToString();
        txtChartOfAccountLabel3Text.Text          = aCC_ChartOfAccountLabel3.ChartOfAccountLabel3Text;
        txtExtraField1.Text = aCC_ChartOfAccountLabel3.ExtraField1;
        txtExtraField2.Text = aCC_ChartOfAccountLabel3.ExtraField2;
        txtExtraField3.Text = aCC_ChartOfAccountLabel3.ExtraField3;
        txtAddedBy.Text     = aCC_ChartOfAccountLabel3.AddedBy.ToString();
        txtUpdatedBy.Text   = aCC_ChartOfAccountLabel3.UpdatedBy.ToString();
        //txtUpdatedDate.Text = aCC_ChartOfAccountLabel3.UpdatedDate;
        ddlRowStatus.SelectedValue = aCC_ChartOfAccountLabel3.RowStatusID.ToString();
    }
Exemple #3
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");
    }