public int DeleteGLAccountFormatDetails(GLAccountFormatDetailsListUI gLAccountFormatDetailsListUI) { int result = 0; result = gLAccountFormatDetailsListDAL.DeleteGLAccountFormatDetails(gLAccountFormatDetailsListUI); return(result); }
public DataTable GetGLAccountFormatDetailsListBySearchParameters(GLAccountFormatDetailsListUI gLAccountFormatDetailsListUI) { DataTable dtb = new DataTable(); dtb = gLAccountFormatDetailsListDAL.GetGLAccountFormatDetailsListBySearchParameters(gLAccountFormatDetailsListUI); return(dtb); }
public DataTable GetGLAccountFormatDetailsListByGLAccountFormatId(GLAccountFormatDetailsListUI gLAccountFormatDetailsListUI) { DataTable dtb = new DataTable(); dtb = gLAccountFormatDetailsListDAL.GetGLAccountFormatDetailsListByGLAccountFormatId(gLAccountFormatDetailsListUI); return(dtb); }
public DataTable GetGLAccountFormatDetailsListById(GLAccountFormatDetailsListUI gLAccountFormatDetailsListUI) { DataSet ds = new DataSet(); DataTable dtbl = new DataTable(); //Boolean result = false; try { using (SqlConnection SupportCon = new SqlConnection(connectionString)) { SqlCommand sqlCmd = new SqlCommand("SP_GLAccountFormatDetails_SelectById", SupportCon); sqlCmd.CommandType = CommandType.StoredProcedure; sqlCmd.CommandTimeout = commandTimeout; sqlCmd.Parameters.Add("@tbl_GLAccountFormatDetialsId", SqlDbType.NVarChar); sqlCmd.Parameters["@tbl_GLAccountFormatDetialsId"].Value = gLAccountFormatDetailsListUI.Tbl_GLAccountFormatDetialsId; using (SqlDataAdapter adapter = new SqlDataAdapter(sqlCmd)) { adapter.Fill(ds); } } if (ds.Tables.Count > 0) { dtbl = ds.Tables[0]; } } catch (Exception exp) { logExcpUIobj.MethodName = "getGLAccountFormatDetailsListById()"; logExcpUIobj.ResourceName = "GLAccountFormatDetailsListDAL.CS"; logExcpUIobj.RecordId = gLAccountFormatDetailsListUI.Tbl_GLAccountFormatDetialsId; logExcpUIobj.ExceptionDetails = "Error Occured. System Generated Error is: " + exp.ToString(); logExcpDALobj.SaveExceptionToDB(logExcpUIobj); log.Error("[GLAccountFormatDetailsListDAL : getGLAccountFormatDetailsListById] An error occured in the processing of Record Id : " + gLAccountFormatDetailsListUI.Tbl_GLAccountFormatDetialsId + ". Details : [" + exp.ToString() + "]"); } finally { ds.Dispose(); } return(dtbl); }
public int DeleteGLAccountFormatDetails(GLAccountFormatDetailsListUI gLAccountFormatDetailsListUI) { int result = 0; try { using (SqlConnection SupportCon = new SqlConnection(connectionString)) { SupportCon.Open(); SqlCommand sqlCmd = new SqlCommand("SP_GLAccountFormatDetails_Delete", SupportCon); sqlCmd.CommandType = CommandType.StoredProcedure; sqlCmd.CommandTimeout = commandTimeout; sqlCmd.Parameters.Add("@tbl_GLAccountFormatDetialsId", SqlDbType.NVarChar); sqlCmd.Parameters["@tbl_GLAccountFormatDetialsId"].Value = gLAccountFormatDetailsListUI.Tbl_GLAccountFormatDetialsId; result = sqlCmd.ExecuteNonQuery(); sqlCmd.Dispose(); SupportCon.Close(); } } catch (Exception exp) { logExcpUIobj.MethodName = "DeleteGLAccountFormatDetails()"; logExcpUIobj.ResourceName = "GLAccountFormatDetailsListDAL.CS"; logExcpUIobj.RecordId = gLAccountFormatDetailsListUI.Tbl_GLAccountFormatDetialsId; logExcpUIobj.ExceptionDetails = "Error Occured. System Generated Error is: " + exp.ToString(); logExcpDALobj.SaveExceptionToDB(logExcpUIobj); log.Error("[GLAccountFormatDetailsListDAL : DeleteGLAccountFormatDetails] An error occured in the processing of Record Id : " + gLAccountFormatDetailsListUI.Tbl_GLAccountFormatDetialsId + ". Details : [" + exp.ToString() + "]"); } return(result); }