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

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

Codigo gerado do modelo de RH atualizado

File size: 4.7 KB
Linha 
1# File: Fgts.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 *
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="Codigo Banco",
42            description="Informe o codigo do banco.",
43            label_msgid='ILSAALRecursosHumanos_label_cod_banco',
44            description_msgid='ILSAALRecursosHumanos_help_cod_banco',
45            i18n_domain='ILSAALRecursosHumanos',
46        ),
47        required=1
48    ),
49
50    StringField('cod_agencia',
51        widget=StringWidget(
52            label="Codigo Agencia",
53            description="Informe o codigo da Agencia.",
54            label_msgid='ILSAALRecursosHumanos_label_cod_agencia',
55            description_msgid='ILSAALRecursosHumanos_help_cod_agencia',
56            i18n_domain='ILSAALRecursosHumanos',
57        ),
58        required=1
59    ),
60
61    IntegerField('num_conta_fgts',
62        widget=IntegerWidget(
63            label="Numero Conta",
64            description="Informe o numero da Conta Corrente.",
65            label_msgid='ILSAALRecursosHumanos_label_num_conta_fgts',
66            description_msgid='ILSAALRecursosHumanos_help_num_conta_fgts',
67            i18n_domain='ILSAALRecursosHumanos',
68        ),
69        required=1
70    ),
71
72    DateTimeField('dat_opcao',
73        widget=CalendarWidget(
74            label="Data Opcao",
75            description="Informe a data da Opcao.",
76            label_msgid='ILSAALRecursosHumanos_label_dat_opcao',
77            description_msgid='ILSAALRecursosHumanos_help_dat_opcao',
78            i18n_domain='ILSAALRecursosHumanos',
79        ),
80        required=1
81    ),
82
83    FloatField('vlr_taxa',
84        widget=DecimalWidget(
85            label="Valor Taxa",
86            description="Informe o valor da taxa.",
87            label_msgid='ILSAALRecursosHumanos_label_vlr_taxa',
88            description_msgid='ILSAALRecursosHumanos_help_vlr_taxa',
89            i18n_domain='ILSAALRecursosHumanos',
90        ),
91        required=1
92    ),
93
94),
95)
96
97
98##code-section after-local-schema #fill in your manual code here
99##/code-section after-local-schema
100
101Fgts_schema = BaseSchema + \
102    schema
103
104##code-section after-schema #fill in your manual code here
105##/code-section after-schema
106
107class Fgts(BaseContent):
108    security = ClassSecurityInfo()
109    __implements__ = (getattr(BaseContent,'__implements__',()),) + (IFgts,)
110
111
112    # This name appears in the 'add' box
113    archetype_name             = 'Fgts'
114
115    meta_type                  = 'Fgts'
116    portal_type                = 'Fgts'
117    allowed_content_types      = []
118    filter_content_types       = 0
119    global_allow               = 1
120    allow_discussion           = 0
121    #content_icon               = 'Fgts.gif'
122    immediate_view             = 'base_view'
123    default_view               = 'base_view'
124    suppl_views                = ()
125    typeDescription            = "Fgts"
126    typeDescMsgId              = 'description_edit_fgts'
127
128    schema = Fgts_schema
129
130    ##code-section class-header #fill in your manual code here
131    ##/code-section class-header
132
133
134    #Methods
135    #methods from Interface IFgts
136
137    security.declarePrivate('_titulo')
138    def _titulo(self):
139        """
140        Configuracao do titulo que esse objeto deseja disponibilizar.
141        """
142       
143        return str(self.getNum_conta_fgts())
144
145
146
147registerType(Fgts,PROJECTNAME)
148# end of class Fgts
149
150##code-section module-footer #fill in your manual code here
151##/code-section module-footer
152
153
154
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.