protected void btnAdd_Click(object sender, EventArgs e) { ACC_ChartOfAccountLabel3 aCC_ChartOfAccountLabel3 = new ACC_ChartOfAccountLabel3(); aCC_ChartOfAccountLabel3.Code = txtCode.Text; aCC_ChartOfAccountLabel3.ACC_ChartOfAccountLabel2ID = Int32.Parse(ddlACC_ChartOfAccountLabel2.SelectedValue); aCC_ChartOfAccountLabel3.ChartOfAccountLabel3Text = txtChartOfAccountLabel3Text.Text; aCC_ChartOfAccountLabel3.ExtraField1 = txtExtraField1.Text; aCC_ChartOfAccountLabel3.ExtraField2 = txtExtraField2.Text; aCC_ChartOfAccountLabel3.ExtraField3 = txtExtraField3.Text; aCC_ChartOfAccountLabel3.AddedBy = getLogin().LoginID; aCC_ChartOfAccountLabel3.AddedDate = DateTime.Now; aCC_ChartOfAccountLabel3.UpdatedBy = getLogin().LoginID; aCC_ChartOfAccountLabel3.UpdatedDate = DateTime.Now; aCC_ChartOfAccountLabel3.RowStatusID = Int32.Parse(ddlRowStatus.SelectedValue); int resutl = ACC_ChartOfAccountLabel3Manager.InsertACC_ChartOfAccountLabel3(aCC_ChartOfAccountLabel3); Response.Redirect("AdminACC_ChartOfAccountLabel3Display.aspx"); }
protected void btnAdd_Click(object sender, EventArgs e) { ACC_ChartOfAccountLabel3 aCC_ChartOfAccountLabel3 = new ACC_ChartOfAccountLabel3(); aCC_ChartOfAccountLabel3.Code = txtCode.Text; aCC_ChartOfAccountLabel3.ACC_ChartOfAccountLabel2ID = Int32.Parse(ddlACC_ChartOfAccountLabel2.SelectedValue); aCC_ChartOfAccountLabel3.ChartOfAccountLabel3Text = txtChartOfAccountLabel3Text.Text; aCC_ChartOfAccountLabel3.ExtraField1 = txtExtraField1.Text; aCC_ChartOfAccountLabel3.ExtraField2 = txtExtraField2.Text; aCC_ChartOfAccountLabel3.ExtraField3 = txtExtraField3.Text; aCC_ChartOfAccountLabel3.AddedBy = getLogin().LoginID; aCC_ChartOfAccountLabel3.AddedDate = DateTime.Now; aCC_ChartOfAccountLabel3.UpdatedBy = getLogin().LoginID; aCC_ChartOfAccountLabel3.UpdatedDate = DateTime.Now; aCC_ChartOfAccountLabel3.RowStatusID = Int32.Parse(ddlRowStatus.SelectedValue); int resutl = ACC_ChartOfAccountLabel3Manager.InsertACC_ChartOfAccountLabel3(aCC_ChartOfAccountLabel3); showACC_ChartOfAccountLabel3Grid(); btnClear_Click(this, new EventArgs()); }