Conjunto de cambios 8990c55 en seiven para economico


Ignorar:
Fecha y hora:
20/09/2016 12:29:55 (hace 8 años)
Autor:
Ing. Roldan D. Vargas G <rvargas@…>
Branches:
master, carga
Children:
226ff11
Parents:
55079a7
Mensaje:

se agregan formulario para el área monetaria y fiscal del módulo económico

Fichero:
1 editado

Leyenda

No modificado
Añadido
Eliminado
  • economico/forms.py

    r5aac5a1 r8990c55  
    2525
    2626from base.constant import (
    27     DOMINIO_PRECIOS, DOMINIO_PIB, DOMINIO_AGREGADO_MONETARIO, TIPO_PIB, TIPO_DEMANDA_GLOBAL, TRIMESTRES
     27    DOMINIO_PRECIOS, DOMINIO_PIB, DOMINIO_AGREGADO_MONETARIO, TIPO_PIB, TIPO_DEMANDA_GLOBAL, TRIMESTRES, MESES,
     28    DOMINIO_COMERCIAL, DOMINIO_CAMBIO
    2829)
    2930
     
    3738
    3839@python_2_unicode_compatible
    39 class RealPreciosForm(forms.Form):
    40     """!
    41     Clase que contiene el formulario para la carga de datos de precios
    42 
    43     @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    44     @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
    45     @date 19-09-2016
     40class DominioForm(forms.Form):
     41    """!
     42    Clase que contiene el campo común para la selección del dominio
     43
     44    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     45    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     46    @date 20-09-2016
    4647    @version 1.0.0
    4748    """
     
    4950    ## Dominio del registro
    5051    dominio = ChoiceField(
    51         label=_(u"Dominio"), choices=DOMINIO_PRECIOS,
     52        label=_(u"Dominio"), choices=(),
    5253        widget=Select(attrs={
    5354            'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
     
    5556        })
    5657    )
     58
     59
     60@python_2_unicode_compatible
     61class TipoForm(forms.Form):
     62    """!
     63    Clase que contiene el campo común para la selección del tipo
     64
     65    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     66    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     67    @date 20-09-2016
     68    @version 1.0.0
     69    """
     70
     71    ## Tipo de registro
     72    tipo = ChoiceField(
     73        label=_(u"Tipo"), choices=(),
     74        widget=Select(attrs={
     75            'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
     76            'title': _(u"Seleccione el tipo a registrar")
     77        })
     78    )
     79
     80
     81@python_2_unicode_compatible
     82class AnhoBaseForm(forms.Form):
     83    """!
     84    Clase que contiene el campo común para la selección del año base
     85
     86    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     87    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     88    @date 20-09-2016
     89    @version 1.0.0
     90    """
    5791
    5892    ## Año base a registrar
     
    6599    )
    66100
     101
     102@python_2_unicode_compatible
     103class MesIniForm(forms.Form):
     104    """!
     105    Clase que contiene el campo común para la selección del período del mes inicial
     106
     107    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     108    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     109    @date 20-09-2016
     110    @version 1.0.0
     111    """
     112
    67113    ## Mes inicial
    68114    periodo_mes_ini = ChoiceField(
    69         label=_(u"Desde"), choices=(),
     115        label=_(u"Desde"), choices=MESES,
    70116        widget=Select(attrs={
    71117            'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
     
    73119        })
    74120    )
     121
     122
     123@python_2_unicode_compatible
     124class MesFinForm(forms.Form):
     125    """!
     126    Clase que contiene el campo común para la selección del período del mes final
     127
     128    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     129    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     130    @date 20-09-2016
     131    @version 1.0.0
     132    """
     133
     134    ## Mes final
     135    periodo_mes_fin = ChoiceField(
     136        label=_(u"Hasta"), choices=MESES,
     137        widget=Select(attrs={
     138            'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
     139            'title': _(u"Seleccione el mes final")
     140        })
     141    )
     142
     143
     144@python_2_unicode_compatible
     145class AnhoIniForm(forms.Form):
     146    """!
     147    Clase que contiene el campo común para la selección del período del año inicial
     148
     149    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     150    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     151    @date 20-09-2016
     152    @version 1.0.0
     153    """
    75154
    76155    ## Año inicial
    77156    periodo_anho_ini = ChoiceField(
    78         label='', choices=(),
     157        label=_('Desde'), choices=(),
    79158        widget=Select(attrs={
    80159            'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
     
    83162    )
    84163
    85     ## Mes final
    86     periodo_mes_fin = ChoiceField(
    87         label=_(u"Hasta"), choices=(),
    88         widget=Select(attrs={
    89             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    90             'title': _(u"Seleccione el mes final")
    91         })
    92     )
     164
     165@python_2_unicode_compatible
     166class AnhoFinForm(forms.Form):
     167    """!
     168    Clase que contiene el campo común para la selección del período del año final
     169
     170    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     171    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     172    @date 20-09-2016
     173    @version 1.0.0
     174    """
    93175
    94176    ## Año final
    95177    periodo_anho_fin = ChoiceField(
    96         label='', choices=(),
     178        label=_('Hasta'), choices=(),
    97179        widget=Select(attrs={
    98180            'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
     
    103185
    104186@python_2_unicode_compatible
    105 class RealPIBForm(forms.Form):
    106     """!
    107     Clase que contiene el formulario para la carga de datos de precios
    108 
    109     @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    110     @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
    111     @date 19-09-2016
    112     @version 1.0.0
    113     """
    114 
    115     ## Tipo de PIB
    116     tipo = ChoiceField(
    117         label=_(u"Tipo"), choices=TIPO_PIB,
    118         widget=Select(attrs={
    119             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    120             'title': _(u"Seleccione el tipo de PIB a registrar")
    121         })
    122     )
    123 
    124     ## Dominio del registro
    125     dominio = ChoiceField(
    126         label=_(u"Dominio"), choices=DOMINIO_PIB,
    127         widget=Select(attrs={
    128             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    129             'title': _(u"Seleccione el dominio a registrar")
    130         })
    131     )
    132 
    133     ## Año base a registrar
    134     anho_base = ChoiceField(
    135         label=_(u"Año Base"), choices=(),
    136         widget=Select(attrs={
    137             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    138             'title': _(u"Seleccione el año base")
    139         })
    140     )
    141 
    142     ## Año inicial
    143     periodo_anho_ini = ChoiceField(
    144         label=_("Desde"), choices=(),
    145         widget=Select(attrs={
    146             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    147             'title': _(u"Seleccione el año inicial")
    148         })
    149     )
    150 
    151     ## Año final
    152     periodo_anho_fin = ChoiceField(
    153         label=_("hasta"), choices=(),
    154         widget=Select(attrs={
    155             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    156             'title': _(u"Seleccione el año final")
    157         })
    158     )
    159 
    160 
    161 @python_2_unicode_compatible
    162 class RealDemandaGlobalForm(forms.Form):
    163     """!
    164     Clase que contiene el formulario para la carga de datos de demanda global
    165 
    166     @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    167     @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
    168     @date 19-09-2016
    169     @version 1.0.0
    170     """
    171 
    172     ## Tipo de PIB
    173     tipo = ChoiceField(
    174         label=_(u"Tipo"), choices=TIPO_DEMANDA_GLOBAL,
    175         widget=Select(attrs={
    176             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    177             'title': _(u"Seleccione el tipo de Demanda Global a registrar")
    178         })
    179     )
    180 
    181     ## Año base a registrar
    182     anho_base = ChoiceField(
    183         label=_(u"Año Base"), choices=(),
    184         widget=Select(attrs={
    185             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    186             'title': _(u"Seleccione el año base")
    187         })
    188     )
     187class TrimestreIniForm(forms.Form):
     188    """!
     189    Clase que contiene el campo común para la selección del período del trimestre inicial
     190
     191    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     192    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     193    @date 20-09-2016
     194    @version 1.0.0
     195    """
    189196
    190197    ## Trimestre inicial
     
    197204    )
    198205
    199     ## Año inicial
    200     periodo_anho_ini = ChoiceField(
    201         label='', choices=(),
    202         widget=Select(attrs={
    203             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    204             'title': _(u"Seleccione el año inicial")
    205         })
    206     )
     206
     207@python_2_unicode_compatible
     208class TrimestreFinForm(forms.Form):
     209    """!
     210    Clase que contiene el campo común para la selección del período del trimestre final
     211
     212    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     213    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     214    @date 20-09-2016
     215    @version 1.0.0
     216    """
    207217
    208218    ## Trimestre final
     
    215225    )
    216226
    217     ## Año final
    218     periodo_anho_fin = ChoiceField(
    219         label='', choices=(),
    220         widget=Select(attrs={
    221             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    222             'title': _(u"Seleccione el año final")
    223         })
    224     )
    225 
    226 
    227 @python_2_unicode_compatible
    228 class MonetarioAgregadosForm(forms.Form):
    229     """!
    230     Clase que contiene el formulario para la carga de datos de Agregados Monetarios
    231 
    232     @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    233     @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
    234     @date 19-09-2016
    235     @version 1.0.0
    236     """
    237 
    238     ## Dominio del registro
    239     dominio = ChoiceField(
    240         label=_(u"Dominio"), choices=DOMINIO_AGREGADO_MONETARIO,
    241         widget=Select(attrs={
    242             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    243             'title': _(u"Seleccione el dominio a registrar")
    244         })
    245     )
    246 
    247     start_date = CharField(label=_('Desde'),max_length=10, widget=TextInput(attrs={
     227
     228@python_2_unicode_compatible
     229class SemanaIniForm(forms.Form):
     230    """!
     231    Clase que contiene el campo común para la selección del período de la semana inicial
     232
     233    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     234    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     235    @date 20-09-2016
     236    @version 1.0.0
     237    """
     238
     239    ## Semana inicial
     240    periodo_semana_ini = ChoiceField(
     241        label=_("Desde"), choices=(),
     242        widget=Select(attrs={
     243            'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
     244            'title': _(u"Seleccione la semana inicial")
     245        })
     246    )
     247
     248
     249@python_2_unicode_compatible
     250class SemanaFinForm(forms.Form):
     251    """!
     252    Clase que contiene el campo común para la selección del período de la semana final
     253
     254    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     255    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     256    @date 20-09-2016
     257    @version 1.0.0
     258    """
     259
     260    ## Semana final
     261    periodo_semana_fin = ChoiceField(
     262        label=_("Hasta"), choices=(),
     263        widget=Select(attrs={
     264            'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
     265            'title': _(u"Seleccione la semana final")
     266        })
     267    )
     268
     269
     270@python_2_unicode_compatible
     271class StartDateForm(forms.Form):
     272    """!
     273    Clase que contiene el campo común para la fecha inicial de consulta
     274
     275    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     276    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     277    @date 20-09-2016
     278    @version 1.0.0
     279    """
     280    start_date = CharField(label=_('Desde'), max_length=10, widget=TextInput(attrs={
    248281        'class': 'form-control fecha', 'data-toggle': 'tooltip', 'title': _('Indique la fecha inicial'),
    249282    }))
    250283
     284
     285@python_2_unicode_compatible
     286class EndDateForm(forms.Form):
     287    """!
     288    Clase que contiene el campo común para la fecha final de consulta
     289
     290    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     291    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     292    @date 20-09-2016
     293    @version 1.0.0
     294    """
    251295    end_date = CharField(label=_('Hasta'), max_length=10, widget=TextInput(attrs={
    252296        'class': 'form-control fecha', 'data-toggle': 'tooltip', 'title': _('Indique la fecha final')
    253297    }))
    254298
    255     ## Semana inicial
    256     periodo_semana_ini = ChoiceField(
    257         label=_("Desde"), choices=(),
    258         widget=Select(attrs={
    259             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    260             'title': _(u"Seleccione la semana inicial")
    261         })
    262     )
    263 
    264     ## Mes inicial
    265     periodo_mes_ini = ChoiceField(
    266         label=_("Desde"), choices=(),
    267         widget=Select(attrs={
    268             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    269             'title': _(u"Seleccione el mes inicial")
    270         })
    271     )
    272 
    273     ## Año inicial
    274     periodo_anho_ini = ChoiceField(
    275         label=_("Desde"), choices=(),
    276         widget=Select(attrs={
    277             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    278             'title': _(u"Seleccione el año inicial")
    279         })
    280     )
    281 
    282     ## Semana final
    283     periodo_semana_fin = ChoiceField(
    284         label=_("Hasta"), choices=(),
    285         widget=Select(attrs={
    286             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    287             'title': _(u"Seleccione la semana final")
    288         })
    289     )
    290 
    291     ## Mes final
    292     periodo_mes_fin = ChoiceField(
    293         label=_("Hasta"), choices=(),
    294         widget=Select(attrs={
    295             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    296             'title': _(u"Seleccione el mes final")
    297         })
    298     )
    299 
    300     ## Año final
    301     periodo_anho_fin = ChoiceField(
    302         label=_("Hasta"), choices=(),
    303         widget=Select(attrs={
    304             'class': 'select2 select2-offscreen form-control', 'data-toggle': 'tooltip',
    305             'title': _(u"Seleccione el año final")
    306         })
    307     )
    308 
    309 
    310 @python_2_unicode_compatible
    311 class MonetarioOperacionesInterbancariasForm(forms.Form):
     299
     300@python_2_unicode_compatible
     301class RealPreciosForm(AnhoBaseForm, DominioForm, MesIniForm, MesFinForm, AnhoIniForm, AnhoFinForm):
     302    """!
     303    Clase que contiene el formulario para la carga de datos de precios
     304
     305    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     306    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     307    @date 19-09-2016
     308    @version 1.0.0
     309    """
     310
     311    def __init__(self, *args, **kwargs):
     312        super(RealPreciosForm, self).__init__(*args, **kwargs)
     313        self.fields['dominio'].choices = DOMINIO_PRECIOS
     314
     315
     316@python_2_unicode_compatible
     317class RealPIBForm(TipoForm, AnhoBaseForm, DominioForm, AnhoIniForm, AnhoFinForm):
     318    """!
     319    Clase que contiene el formulario para la carga de datos de precios
     320
     321    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     322    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     323    @date 19-09-2016
     324    @version 1.0.0
     325    """
     326
     327    def __init__(self, *args, **kwargs):
     328        super(RealPIBForm, self).__init__(*args, **kwargs)
     329        self.fields['dominio'].choices = DOMINIO_PIB
     330        self.fields['tipo'].choices = TIPO_PIB
     331
     332
     333@python_2_unicode_compatible
     334class RealDemandaGlobalForm(AnhoBaseForm, AnhoIniForm, AnhoFinForm, TrimestreIniForm, TrimestreFinForm):
     335    """!
     336    Clase que contiene el formulario para la carga de datos de demanda global
     337
     338    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     339    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     340    @date 19-09-2016
     341    @version 1.0.0
     342    """
     343
     344    def __init__(self, *args, **kwargs):
     345        super(RealDemandaGlobalForm, self).__init__(*args, **kwargs)
     346        self.fields['tipo'].choices = TIPO_DEMANDA_GLOBAL
     347
     348
     349@python_2_unicode_compatible
     350class MonetarioAgregadosForm(
     351    DominioForm, MesIniForm, MesFinForm, AnhoIniForm, AnhoFinForm, SemanaIniForm, SemanaFinForm, StartDateForm, EndDateForm
     352):
     353    """!
     354    Clase que contiene el formulario para la carga de datos de Agregados Monetarios
     355
     356    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     357    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     358    @date 19-09-2016
     359    @version 1.0.0
     360    """
     361
     362    def __init__(self, *args, **kwargs):
     363        super(MonetarioAgregadosForm, self).__init__(*args, **kwargs)
     364        self.fields['dominio'].choices = DOMINIO_AGREGADO_MONETARIO
     365
     366
     367@python_2_unicode_compatible
     368class MonetarioOperacionesInterbancariasForm(StartDateForm, EndDateForm):
    312369    """!
    313370    Clase que contiene el formulario para la carga de datos de Operaciones Interbancarias
     
    318375    @version 1.0.0
    319376    """
     377
     378
     379@python_2_unicode_compatible
     380class MonetarioTasasInteresForm(SemanaIniForm, SemanaFinForm, MesIniForm, MesFinForm, AnhoIniForm, AnhoFinForm):
     381    """!
     382    Clase que contiene el formulario para la carga de datos de Tasas de Interés
     383
     384    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     385    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     386    @date 19-09-2016
     387    @version 1.0.0
     388    """
     389
     390
     391@python_2_unicode_compatible
     392class MonetarioInstrumentoPoliticaForm(MesIniForm, MesFinForm, AnhoIniForm, AnhoFinForm):
     393    """!
     394    Clase que contiene el formulario para la carga de datos de Instrumentos de Políticas
     395
     396    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     397    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     398    @date 19-09-2016
     399    @version 1.0.0
     400    """
     401
     402
     403@python_2_unicode_compatible
     404class ExternoBalanzaComercialForm(TipoForm, DominioForm, AnhoBaseForm, TrimestreIniForm, TrimestreFinForm, AnhoIniForm, AnhoFinForm):
     405    """!
     406    Clase que contiene el formulario para la carga de datos de Balanza Comercial
     407
     408    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     409    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     410    @date 19-09-2016
     411    @version 1.0.0
     412    """
     413
     414    def __init__(self, *args, **kwargs):
     415        super(ExternoBalanzaComercialForm, self).__init__(*args, **kwargs)
     416        self.fields['tipo'].choices = TIPO_PIB
     417        self.fields['dominio'].choices = DOMINIO_COMERCIAL
     418
     419
     420@python_2_unicode_compatible
     421class ExternoCuentaCapitalForm(forms.Form):
     422    """!
     423    Clase que contiene el formulario para la carga de datos de Cuentas de Capital
     424
     425    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     426    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     427    @date 19-09-2016
     428    @version 1.0.0
     429    """
    320430    pass
    321431
    322432
    323433@python_2_unicode_compatible
    324 class MonetarioTasasInteresForm(forms.Form):
    325     """!
    326     Clase que contiene el formulario para la carga de datos de Tasas de Interés
    327 
    328     @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    329     @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
    330     @date 19-09-2016
    331     @version 1.0.0
    332     """
    333     pass
    334 
    335 
    336 @python_2_unicode_compatible
    337 class MonetarioInstrumentoPoliticaForm(forms.Form):
    338     """!
    339     Clase que contiene el formulario para la carga de datos de Instrumentos de Políticas
    340 
    341     @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    342     @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
    343     @date 19-09-2016
    344     @version 1.0.0
    345     """
    346     pass
    347 
    348 
    349 @python_2_unicode_compatible
    350 class ExternoBalanzaComercialForm(forms.Form):
    351     """!
    352     Clase que contiene el formulario para la carga de datos de Balanza Comercial
    353 
    354     @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    355     @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
    356     @date 19-09-2016
    357     @version 1.0.0
    358     """
    359     pass
    360 
    361 
    362 @python_2_unicode_compatible
    363 class ExternoCuentaCapitalForm(forms.Form):
    364     """!
    365     Clase que contiene el formulario para la carga de datos de Cuentas de Capital
    366 
    367     @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    368     @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
    369     @date 19-09-2016
    370     @version 1.0.0
    371     """
    372     pass
    373 
    374 
    375 @python_2_unicode_compatible
    376 class ExternoReservaCambioForm(forms.Form):
     434class ExternoReservaCambioForm(
     435    DominioForm, StartDateForm, EndDateForm, SemanaIniForm, SemanaFinForm, MesIniForm, MesFinForm, AnhoIniForm, AnhoFinForm
     436):
    377437    """!
    378438    Clase que contiene el formulario para la carga de datos de Reservas - Tipo de Cambio
     
    383443    @version 1.0.0
    384444    """
    385     pass
    386 
    387 
    388 @python_2_unicode_compatible
    389 class FiscalTributosForm(forms.Form):
    390     """!
    391     Clase que contiene el formulario para la carga de datos de Tributos Fiscales
    392 
    393     @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    394     @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
    395     @date 19-09-2016
    396     @version 1.0.0
    397     """
    398     pass
    399 
    400 
    401 @python_2_unicode_compatible
    402 class FiscalIngresosForm(forms.Form):
    403     """!
    404     Clase que contiene el formulario para la carga de datos de Ingresos Fiscales
    405 
    406     @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    407     @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
    408     @date 19-09-2016
    409     @version 1.0.0
    410     """
    411     pass
    412 
    413 
    414 @python_2_unicode_compatible
    415 class FiscalGastoForm(forms.Form):
    416     """!
    417     Clase que contiene el formulario para la carga de datos de Gastos Fiscales
    418 
    419     @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    420     @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
    421     @date 19-09-2016
    422     @version 1.0.0
    423     """
    424     pass
    425 
    426 
    427 @python_2_unicode_compatible
    428 class FiscalEndeudamientoForm(forms.Form):
    429     """!
    430     Clase que contiene el formulario para la carga de datos de Endeudamiento Fiscal
    431 
    432     @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    433     @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
    434     @date 19-09-2016
    435     @version 1.0.0
    436     """
    437     pass
     445
     446    def __init__(self, *args, **kwargs):
     447        super(ExternoReservaCambioForm, self).__init__(*args, **kwargs)
     448        self.fields['dominio'].choices = DOMINIO_CAMBIO
     449
     450
     451@python_2_unicode_compatible
     452class FiscalForm(AnhoIniForm, AnhoFinForm):
     453    """!
     454    Clase que contiene el formulario para la carga de datos de Registros Fiscales
     455
     456    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     457    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     458    @date 19-09-2016
     459    @version 1.0.0
     460    """
Nota: Vea TracChangeset para ayuda en el uso del visor de conjuntos de cambios.