- Fecha y hora:
- 31/10/2016 09:26:46 (hace 8 años)
- Branches:
- master, carga
- Children:
- 38d2ebb
- Parents:
- 3957a55
- Fichero:
-
- 1 editado
Leyenda
- No modificado
- Añadido
- Eliminado
-
economico/models.py
r3e98686 r9c9ae63 1 """ 2 Sistema Estadístico Integral de Venezuela - (SEIVEN) 3 4 Copyleft (@) 2015 CENDITEL nodo Mérida - https://mpv.cenditel.gob.ve/seiven 5 """ 6 ## @namespace economico.models 7 # 8 # Contiene las clases, atributos, métodos y/o funciones a implementar para los modelos del área económica 9 # @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve) 10 # @author <a href='http://www.cenditel.gob.ve'>Centro Nacional de Desarrollo e Investigación en Tecnologías Libres 11 # (CENDITEL) nodo Mérida - Venezuela</a> 12 # @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a> 13 from __future__ import unicode_literals 14 1 15 from django.db import models 16 from django.utils import six 17 from django.utils.encoding import python_2_unicode_compatible 18 from django.utils.translation import ugettext_lazy as _ 2 19 3 # Create your models here. 20 from base.constant import DOMINIO, PERIOCIDAD, TRIMESTRES, MESES, ECONOMICO_SUB_AREA 21 22 __licence__ = "GNU Public License v2" 23 __revision__ = "" 24 __docstring__ = "DoxyGen" 25 26 27 @python_2_unicode_compatible 28 class SectorReal(models.Model): 29 30 anho_base = models.IntegerField(max_length=4, null=True) 31 32 real = models.BooleanField() 33 34 dominio = models.CharField(max_length=3, choices=DOMINIO) 35 36 # Periocidad => Mensual, Trimestral, Anual 37 periocidad = models.CharField(max_length=1, choices=PERIOCIDAD) 38 39 anho = models.IntegerField(max_length=4) 40 41 trimestre = models.CharField(max_length=1, choices=TRIMESTRES[1:], null=True) 42 43 mes = models.CharField(max_length=2, choices=MESES[1:], null=True) 44 45 46 @python_2_unicode_compatible 47 class AreaReal(models.Model): 48 49 sub_area = models.CharField(max_length=3, choices=ECONOMICO_SUB_AREA) 50 51 tipo = models.CharField(max_length=4) 52 53 sub_tipo = models.CharField(max_length=4) 54 55 indice = models.DecimalField(max_digits=18, decimal_places=2) 56 57 sector_real = models.ForeignKey(SectorReal)
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.