public int DeleteGLAccountSummary(GLAccountSummaryListUI gLAccountSummaryListUI) { int result = 0; result = gLAccountSummaryListDAL.DeleteGLAccountSummary(gLAccountSummaryListUI); return(result); }
private void BindListBySearchParameters(GLAccountSummaryListUI gLAccountSummaryListUI) { try { DataTable dtb = gLAccountSummaryListBAL.GetGLAccountSummaryListBySearchParameters(this.gLAccountSummaryListUI); if (dtb.Rows.Count > 0 && dtb != null) { gvData.DataSource = dtb; gvData.DataBind(); divError.Visible = false; gvData.Visible = true; } else { divError.Visible = true; lblError.Text = Resources.GlobalResource.msgNoRecordFound; gvData.Visible = false; } txtSearch.Text = ""; txtSearch.Focus(); } catch (Exception exp) { logExcpUIobj.MethodName = "BindListBySearchParameters()"; logExcpUIobj.ResourceName = "Finance_General_Ledger_GL_Integration_GLAccountSummaryList.CS"; logExcpUIobj.RecordId = "All"; logExcpUIobj.ExceptionDetails = "Error Occured. System Generated Error is: " + exp.ToString(); logExcpDALobj.SaveExceptionToDB(logExcpUIobj); log.Error("[Finance_General_Ledger_GL_Integration_GLAccountSummaryLists : BindListBySearchParameters] An error occured in the processing of Record. Details : [" + exp.ToString() + "]"); } }
public DataTable GetGLAccountSummaryListBySearchParameters(GLAccountSummaryListUI gLAccountSummaryListUI) { DataTable dtb = new DataTable(); dtb = gLAccountSummaryListDAL.GetGLAccountSummaryListBySearchParameters(gLAccountSummaryListUI); return(dtb); }
public DataTable GetGLAccountSummaryListById(GLAccountSummaryListUI gLAccountSummaryListUI) { DataTable dtb = new DataTable(); dtb = gLAccountSummaryListDAL.GetGLAccountSummaryListById(gLAccountSummaryListUI); return(dtb); }
private void SearchGLAccountSummaryList() { try { GLAccountSummaryListBAL gLAccountSummaryListBAL = new GLAccountSummaryListBAL(); GLAccountSummaryListUI gLAccountSummaryListUI = new GLAccountSummaryListUI(); gLAccountSummaryListUI.Search = txtGLAccountSummarySearch.Text; DataTable dtb = gLAccountSummaryListBAL.GetGLAccountSummaryListBySearchParameters(gLAccountSummaryListUI); if (dtb.Rows.Count > 0 && dtb != null) { gvGLAccountSummarySearch.DataSource = dtb; gvGLAccountSummarySearch.DataBind(); divGLAccountSummarySearchError.Visible = false; } else { divGLAccountSummarySearchError.Visible = true; lblGLAccountSummarySearchError.Text = Resources.GlobalResource.msgNoRecordFound; gvGLAccountSummarySearch.Visible = false; } } catch (Exception exp) { logExcpUIobj.MethodName = "SearchGLAccountList()"; logExcpUIobj.ResourceName = "Finance_General_Ledger_GL_Integration_GLAccountSummaryForm.CS"; logExcpUIobj.RecordId = "All"; logExcpUIobj.ExceptionDetails = "Error Occured. System Generated Error is: " + exp.ToString(); logExcpDALobj.SaveExceptionToDB(logExcpUIobj); log.Error("[Finance_General_Ledger_GL_Integration_GLAccountSummaryForm : SearchPaymentTermsList] An error occured in the processing of Record. Details : [" + exp.ToString() + "]"); } }
public DataTable GetGLAccountSummaryListById(GLAccountSummaryListUI gLAccountSummaryListUI) { DataSet ds = new DataSet(); DataTable dtbl = new DataTable(); //Boolean result = false; try { using (SqlConnection SupportCon = new SqlConnection(connectionString)) { SqlCommand sqlCmd = new SqlCommand("SP_GLAccountSummary_SelectById", SupportCon); sqlCmd.CommandType = CommandType.StoredProcedure; sqlCmd.CommandTimeout = commandTimeout; sqlCmd.Parameters.Add("@tbl_GLAccountSummaryId", SqlDbType.NVarChar); sqlCmd.Parameters["@tbl_GLAccountSummaryId"].Value = gLAccountSummaryListUI.Tbl_GLAccountSummaryId; using (SqlDataAdapter adapter = new SqlDataAdapter(sqlCmd)) { adapter.Fill(ds); } } if (ds.Tables.Count > 0) { dtbl = ds.Tables[0]; } } catch (Exception exp) { logExcpUIobj.MethodName = "getGLAccountSummaryListById()"; logExcpUIobj.ResourceName = "GLAccountSummaryListDAL.CS"; logExcpUIobj.RecordId = gLAccountSummaryListUI.Tbl_GLAccountSummaryId; logExcpUIobj.ExceptionDetails = "Error Occured. System Generated Error is: " + exp.ToString(); logExcpDALobj.SaveExceptionToDB(logExcpUIobj); log.Error("[GLAccountSummaryListDAL : getGLAccountSummaryListById] An error occured in the processing of Record Id : " + gLAccountSummaryListUI.Tbl_GLAccountSummaryId + ". Details : [" + exp.ToString() + "]"); } finally { ds.Dispose(); } return(dtbl); }
public int DeleteGLAccountSummary(GLAccountSummaryListUI gLAccountSummaryListUI) { int result = 0; try { using (SqlConnection SupportCon = new SqlConnection(connectionString)) { SupportCon.Open(); SqlCommand sqlCmd = new SqlCommand("SP_GLAccountSummary_Delete", SupportCon); sqlCmd.CommandType = CommandType.StoredProcedure; sqlCmd.CommandTimeout = commandTimeout; sqlCmd.Parameters.Add("@tbl_GLAccountSummaryId", SqlDbType.NVarChar); sqlCmd.Parameters["@tbl_GLAccountSummaryId"].Value = gLAccountSummaryListUI.Tbl_GLAccountSummaryId; result = sqlCmd.ExecuteNonQuery(); sqlCmd.Dispose(); SupportCon.Close(); } } catch (Exception exp) { logExcpUIobj.MethodName = "DeleteGLAccountSummary()"; logExcpUIobj.ResourceName = "GLAccountSummaryListDAL.CS"; logExcpUIobj.RecordId = gLAccountSummaryListUI.Tbl_GLAccountSummaryId; logExcpUIobj.ExceptionDetails = "Error Occured. System Generated Error is: " + exp.ToString(); logExcpDALobj.SaveExceptionToDB(logExcpUIobj); log.Error("[GLAccountSummaryListDAL : DeleteGLAccountSummary] An error occured in the processing of Record Id : " + gLAccountSummaryListUI.Tbl_GLAccountSummaryId + ". Details : [" + exp.ToString() + "]"); } return(result); }