Ejemplo n.º 1
0
 static public int GetAñoMesCierreEst()
 {
     try
     {
         SetUpDTO s = daoSetUp.Read("");
         return(Convert.ToInt32(s.AnoMesCierreEst));
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 2
0
 static public decimal GetNextPautaId()
 {
     try
     {
         SetUpDTO s = daoSetUp.Read("");
         s.NumPauta += 1;
         return(s.NumPauta);
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 3
0
 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;
     }
 }
Ejemplo n.º 4
0
        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;
                }
            }
        }