source: publico/ILSAALPatrimonio/trunk/Ufir.py @ 946

Última Alteração nesse arquivo desde 946 foi 946, incluída por edsonma, 14 anos atrás

Codigo gerado do modelo Patromonio para resolver ticker #88

File size: 3.9 KB
Linha 
1# File: Ufir.py
2#
3# Copyright (c) 2005 by Interlegis
4# Generator: ArchGenXML Version 1.4.0-beta2 devel
5#            http://plone.org/products/archgenxml
6#
7# GNU General Public Licence (GPL)
8#
9# This program is free software; you can redistribute it and/or modify it under
10# the terms of the GNU General Public License as published by the Free Software
11# Foundation; either version 2 of the License, or (at your option) any later
12# version.
13# This program is distributed in the hope that it will be useful, but WITHOUT
14# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
16# details.
17# You should have received a copy of the GNU General Public License along with
18# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19# Place, Suite 330, Boston, MA  02111-1307  USA
20#
21__author__  = '''STC Interlegis <stc@interlegis.gov.br>'''
22__docformat__ = 'plaintext'
23
24
25from AccessControl import ClassSecurityInfo
26from Products.Archetypes.atapi import *
27
28
29
30from Products.Archetypes.SQLStorage import *
31from Products.ILSAALPatrimonio.config import *
32##code-section module-header #fill in your manual code here
33##/code-section module-header
34
35schema=Schema((
36    DateTimeField('dat_referencia',
37        widget=CalendarWidget(
38            label="Data deReferencia da UFIR",
39            description="Informe a data de referencia da UFIR",
40            format="%d/%m/%Y",
41            date_only=1,
42            label_msgid='ILSAALPatrimonio_label_dat_referencia',
43            description_msgid='ILSAALPatrimonio_help_dat_referencia',
44            i18n_domain='ILSAALPatrimonio',
45        ),
46        required=1
47    ),
48
49    FloatField('vlr_ufir',
50        widget=DecimalWidget(
51            label="Valor da UFIR",
52            description="Informe o valor da UFIR",
53            label_msgid='ILSAALPatrimonio_label_vlr_ufir',
54            description_msgid='ILSAALPatrimonio_help_vlr_ufir',
55            i18n_domain='ILSAALPatrimonio',
56        ),
57        required=1
58    ),
59
60    DateTimeField('dat_ulti_atualizacao',
61        widget=CalendarWidget(
62            label="Data da Ultima Atualizacao da UFIR",
63            description="Informe a data da ultima atualizacao da Ufir",
64            format="%d/%m/%Y",
65            date_only=1,
66            label_msgid='ILSAALPatrimonio_label_dat_ulti_atualizacao',
67            description_msgid='ILSAALPatrimonio_help_dat_ulti_atualizacao',
68            i18n_domain='ILSAALPatrimonio',
69        ),
70        required=1
71    ),
72
73),
74)
75
76
77##code-section after-local-schema #fill in your manual code here
78##/code-section after-local-schema
79
80Ufir_schema = BaseSchema + \
81    schema
82
83##code-section after-schema #fill in your manual code here
84##/code-section after-schema
85
86class Ufir(BaseContent):
87    """
88    Contem registros mensais das Unidades Fiscais validas para o
89    Municipio para fins de depreciacao dos valores dos bens
90    patrimoniais. Cada instancia refere-se ao valor da UFIR do mes
91    indicado.
92    """
93    security = ClassSecurityInfo()
94    __implements__ = (getattr(BaseContent,'__implements__',()),)
95
96
97    # This name appears in the 'add' box
98    archetype_name             = 'Ufir'
99
100    meta_type                  = 'Ufir'
101    portal_type                = 'Ufir'
102    allowed_content_types      = []
103    filter_content_types       = 0
104    global_allow               = 0
105    allow_discussion           = 0
106    #content_icon               = 'Ufir.gif'
107    immediate_view             = 'base_view'
108    default_view               = 'base_view'
109    suppl_views                = ()
110    typeDescription            = "Ufir"
111    typeDescMsgId              = 'description_edit_ufir'
112
113    schema = Ufir_schema
114
115    ##code-section class-header #fill in your manual code here
116    ##/code-section class-header
117
118
119    #Methods
120
121registerType(Ufir,PROJECTNAME)
122# end of class Ufir
123
124##code-section module-footer #fill in your manual code here
125##/code-section module-footer
126
127
128
Note: Veja TracBrowser para ajuda no uso do navegador do trac.
 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.