public int DeleteGLAccountEntryDetails(GLAccountEntryDetailsListUI gLAccountEntryDetailsListUI) { int result = 0; result = gLAccountEntryDetailsListDAL.DeleteGLAccountEntryDetails(gLAccountEntryDetailsListUI); return(result); }
public DataTable GetGLAccountEntryDetailsListBySearchParameters(GLAccountEntryDetailsListUI gLAccountEntryDetailsListUI) { DataTable dtb = new DataTable(); dtb = gLAccountEntryDetailsListDAL.GetGLAccountEntryDetailsListBySearchParameters(gLAccountEntryDetailsListUI); return(dtb); }
public DataTable GetGLAccountEntryDetailsListById(GLAccountEntryDetailsListUI gLAccountEntryDetailsListUI) { DataTable dtb = new DataTable(); dtb = gLAccountEntryDetailsListDAL.GetGLAccountEntryDetailsListById(gLAccountEntryDetailsListUI); return(dtb); }
private void BindListBySearchParameters(GLAccountEntryDetailsListUI gLAccountEntryDetailsListUI) { try { DataTable dtb = gLAccountEntryDetailsListBAL.GetGLAccountEntryDetailsListBySearchParameters(gLAccountEntryDetailsListUI); 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 = "System_Settings_GLAccountEntryDetailsList.CS"; logExcpUIobj.RecordId = "All"; logExcpUIobj.ExceptionDetails = "Error Occured. System Generated Error is: " + exp.ToString(); logExcpDALobj.SaveExceptionToDB(logExcpUIobj); log.Error("[System_Settings_GLAccountEntryDetailsList : BindListBySearchParameters] An error occured in the processing of Record. Details : [" + exp.ToString() + "]"); } }
public DataTable GetGLAccountEntryDetailsListById(GLAccountEntryDetailsListUI gLAccountEntryDetailsFormUI) { DataSet ds = new DataSet(); DataTable dtbl = new DataTable(); //Boolean result = false; try { using (SqlConnection SupportCon = new SqlConnection(connectionString)) { SqlCommand sqlCmd = new SqlCommand("SP_GLAccountEntryDetails_SelectById", SupportCon); sqlCmd.CommandType = CommandType.StoredProcedure; sqlCmd.CommandTimeout = commandTimeout; sqlCmd.Parameters.Add("@tbl_GLAccountEntryDetailsId", SqlDbType.NVarChar); sqlCmd.Parameters["@tbl_GLAccountEntryDetailsId"].Value = gLAccountEntryDetailsFormUI.Tbl_GLAccountEntryDetailsId; using (SqlDataAdapter adapter = new SqlDataAdapter(sqlCmd)) { adapter.Fill(ds); } } if (ds.Tables.Count > 0) { dtbl = ds.Tables[0]; } } catch (Exception exp) { logExcpUIobj.MethodName = "GetGLAccountEntryListDetailsById()"; logExcpUIobj.ResourceName = "GLAccountEntryDetailsListDAL.CS"; logExcpUIobj.RecordId = gLAccountEntryDetailsFormUI.Tbl_GLAccountEntryDetailsId; logExcpUIobj.ExceptionDetails = "Error Occured. System Generated Error is: " + exp.ToString(); logExcpDALobj.SaveExceptionToDB(logExcpUIobj); log.Error("[GLAccountEntryDetailsListDAL : GetGLAccountEntryListDetailsById] An error occured in the processing of Record Id : " + gLAccountEntryDetailsFormUI.Tbl_GLAccountEntryDetailsId + ". Details : [" + exp.ToString() + "]"); } finally { ds.Dispose(); } return(dtbl); }
public int DeleteGLAccountEntryDetails(GLAccountEntryDetailsListUI gLAccountEntryDetailsFormUI) { int result = 0; try { using (SqlConnection SupportCon = new SqlConnection(connectionString)) { SupportCon.Open(); SqlCommand sqlCmd = new SqlCommand("SP_GLAccountEntryDetails_Delete", SupportCon); sqlCmd.CommandType = CommandType.StoredProcedure; sqlCmd.CommandTimeout = commandTimeout; sqlCmd.Parameters.Add("@tbl_GLAccountEntryDetailsId", SqlDbType.NVarChar); sqlCmd.Parameters["@tbl_GLAccountEntryDetailsId"].Value = gLAccountEntryDetailsFormUI.Tbl_GLAccountEntryDetailsId; result = sqlCmd.ExecuteNonQuery(); sqlCmd.Dispose(); SupportCon.Close(); } } catch (Exception exp) { logExcpUIobj.MethodName = "DeleteGLAccountEntry()"; logExcpUIobj.ResourceName = "GLAccountEntryListDAL.CS"; logExcpUIobj.RecordId = gLAccountEntryDetailsFormUI.Tbl_GLAccountEntryDetailsId; logExcpUIobj.ExceptionDetails = "Error Occured. System Generated Error is: " + exp.ToString(); logExcpDALobj.SaveExceptionToDB(logExcpUIobj); log.Error("[GLAccountEntryListDAL : DeleteGLAccountEntry] An error occured in the processing of Record Id : " + gLAccountEntryDetailsFormUI.Tbl_GLAccountEntryDetailsId + ". Details : [" + exp.ToString() + "]"); } return(result); }