Ejemplo n.º 1
0
        public bool EliminarDB(Aca_Anio_Lectivo_Info info, ref string mensaje)
        {
            bool resultado = false;

            try
            {
                da        = new Aca_Anio_Lectivo_Data();
                resultado = da.AnularDB(info, ref mensaje);
                return(resultado);
            }
            catch (Exception ex)
            {
                Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message);
                throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "EliminarDB", ex.Message), ex)
                      {
                          EntityType = typeof(Aca_Anio_Lectivo_Bus)
                      };
            }
        }
Ejemplo n.º 2
0
        public List <Aca_Anio_Lectivo_Info> Get_List_Anio_Lectivo(int IdInstitucion)
        {
            List <Aca_Anio_Lectivo_Info> lstAnioLec = new List <Aca_Anio_Lectivo_Info>();

            try
            {
                da         = new Aca_Anio_Lectivo_Data();
                lstAnioLec = da.Get_List_Anio_Lectivo(IdInstitucion);
                return(lstAnioLec);
            }
            catch (Exception ex)
            {
                Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message);
                throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "Get_List_Anio_Lectivo", ex.Message), ex)
                      {
                          EntityType = typeof(Aca_Anio_Lectivo_Bus)
                      };
            }
        }
Ejemplo n.º 3
0
        //public string Get_IdAnio_Lectivo_Activo(int IdInstitucion)
        public int Get_IdAnio_Lectivo_Activo(int IdInstitucion)
        {
            //string IdAnio_Lectivo_Activo = "";
            int IdAnio_Lectivo_Activo = 0;

            try
            {
                da = new Aca_Anio_Lectivo_Data();
                IdAnio_Lectivo_Activo = da.Get_IdAnio_Lectivo_Activo(IdInstitucion);
                return(IdAnio_Lectivo_Activo);
            }
            catch (Exception ex)
            {
                Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message);
                throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "Get_List_Anio_Lectivo", ex.Message), ex)
                      {
                          EntityType = typeof(Aca_Anio_Lectivo_Bus)
                      };
            }
        }