source: publico/ILSAALRecursosHumanos/trunk/Fgts.py @ 1131

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

codigo gerado a partir do novo modelo

File size: 4.2 KB
Linha 
1# File: Fgts.py
2#
3# Copyright (c) 2005 by Interlegis
4# Generator: ArchGenXML Version 1.4.0-RC1 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 *
27from Products.ILSAALRecursosHumanos.interfaces.IFgts import IFgts
28
29
30from Products.Archetypes.SQLStorage import *
31# additional imports from tagged value 'import'
32from Products.ILSAAL.saalapi import *
33
34from Products.ILSAALRecursosHumanos.config import *
35##code-section module-header #fill in your manual code here
36##/code-section module-header
37
38schema=Schema((
39    IntegerField('cod_banco',
40        widget=IntegerWidget(
41            label='Cod_banco',
42            label_msgid='ILSAALRecursosHumanos_label_cod_banco',
43            description_msgid='ILSAALRecursosHumanos_help_cod_banco',
44            i18n_domain='ILSAALRecursosHumanos',
45        )
46    ),
47
48    StringField('cod_agencia',
49        widget=StringWidget(
50            label='Cod_agencia',
51            label_msgid='ILSAALRecursosHumanos_label_cod_agencia',
52            description_msgid='ILSAALRecursosHumanos_help_cod_agencia',
53            i18n_domain='ILSAALRecursosHumanos',
54        )
55    ),
56
57    IntegerField('num_conta_fgts',
58        widget=IntegerWidget(
59            label='Num_conta_fgts',
60            label_msgid='ILSAALRecursosHumanos_label_num_conta_fgts',
61            description_msgid='ILSAALRecursosHumanos_help_num_conta_fgts',
62            i18n_domain='ILSAALRecursosHumanos',
63        )
64    ),
65
66    DateTimeField('dat_opcao',
67        widget=CalendarWidget(
68            label='Dat_opcao',
69            label_msgid='ILSAALRecursosHumanos_label_dat_opcao',
70            description_msgid='ILSAALRecursosHumanos_help_dat_opcao',
71            i18n_domain='ILSAALRecursosHumanos',
72        )
73    ),
74
75    FloatField('vlr_taxa',
76        widget=DecimalWidget(
77            label='Vlr_taxa',
78            label_msgid='ILSAALRecursosHumanos_label_vlr_taxa',
79            description_msgid='ILSAALRecursosHumanos_help_vlr_taxa',
80            i18n_domain='ILSAALRecursosHumanos',
81        )
82    ),
83
84),
85)
86
87
88##code-section after-local-schema #fill in your manual code here
89##/code-section after-local-schema
90
91Fgts_schema = BaseSchema + \
92    schema
93
94##code-section after-schema #fill in your manual code here
95##/code-section after-schema
96
97class Fgts(BaseContent):
98    security = ClassSecurityInfo()
99    __implements__ = (getattr(BaseContent,'__implements__',()),) + (IFgts,)
100
101
102    # This name appears in the 'add' box
103    archetype_name             = 'Fgts'
104
105    meta_type                  = 'Fgts'
106    portal_type                = 'Fgts'
107    allowed_content_types      = []
108    filter_content_types       = 0
109    global_allow               = 1
110    allow_discussion           = 0
111    #content_icon               = 'Fgts.gif'
112    immediate_view             = 'base_view'
113    default_view               = 'base_view'
114    suppl_views                = ()
115    typeDescription            = "Fgts"
116    typeDescMsgId              = 'description_edit_fgts'
117
118    schema = Fgts_schema
119
120    ##code-section class-header #fill in your manual code here
121    ##/code-section class-header
122
123
124    #Methods
125    #methods from Interface IFgts
126
127    security.declarePrivate('_titulo')
128    def _titulo(self):
129        """
130       
131        """
132       
133        pass
134
135
136registerType(Fgts,PROJECTNAME)
137# end of class Fgts
138
139##code-section module-footer #fill in your manual code here
140##/code-section module-footer
141
142
143
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.