static public int GetAñoMesCierreEst() { try { SetUpDTO s = daoSetUp.Read(""); return(Convert.ToInt32(s.AnoMesCierreEst)); } catch (Exception) { throw; } }
static public decimal GetNextPautaId() { try { SetUpDTO s = daoSetUp.Read(""); s.NumPauta += 1; return(s.NumPauta); } catch (Exception) { throw; } }
static public decimal SaveNextPautaId(SqlTransaction tran) { try { SetUpDTO s = daoSetUp.Read(""); s.NumPauta += 1; daoSetUp.Update(s, s.RecId, tran); return(s.NumPauta); } catch (Exception) { throw; } }
static public void SetAñoMesCierreOrd(int añoMesOrd, SqlTransaction tran) { using (tran = dao.IniciarTransaccion()) { try { SetUpDTO s = daoSetUp.Read(""); s.AnoMesCierreOrd = añoMesOrd; daoSetUp.Update(s, s.RecId, tran); dao.CommitTransaccion(tran); } catch (Exception) { dao.RollbackTransaccion(tran); throw; } } }