source: main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/export.py @ 17931

Last change on this file since 17931 was 12803, checked in by Henrik Bettermann, 10 years ago

Prepare products and contracts for annual payments.

  • Property svn:keywords set to Id
File size: 4.3 KB
RevLine 
[12286]1## $Id: export.py 12803 2015-03-20 18:51:29Z henrik $
[12282]2##
3## Copyright (C) 2014 Uli Fouquet & Henrik Bettermann
4## This program is free software; you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 2 of the License, or
7## (at your option) any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program; if not, write to the Free Software
16## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17##
[12371]18"""Exporters for pcn customer objects and subobjects.
[12282]19"""
20import grok
21from waeup.ikoba.customers.export import (
22    CustomerExporter, CustomerDocumentExporterBase, ContractExporterBase)
[12371]23from ikobacustom.pcn.customers.interfaces import (
[12384]24    IPCNCustomer, IPCNCustomerJPGDocument,
[12571]25    IPCNCustomerPDFDocument,
26    IRONContractProcess,
27    IROPContractProcess,
[12591]28    IRPRContractProcess,
[12601]29    IRPCContractProcess,
[12604]30    IIPPMVLContractProcess,
[12611]31    IRPPMVLContractProcess,
[12615]32    IAPPITContractProcess,
[12617]33    IRPTContractProcess,
34    IAPPTContractProcess)
[12371]35from ikobacustom.pcn.interfaces import MessageFactory as _
[12282]36
[12803]37
[12371]38class PCNCustomerExporter(CustomerExporter):
[12282]39    """Exporter for Customers.
40    """
[12371]41    iface = IPCNCustomer
42    title = _(u'PCN Customers')
[12282]43
44
[12384]45class PCNCustomerJPGDocumentExporter(CustomerDocumentExporterBase):
[12282]46    """Exporter for documents.
47    """
[12384]48    grok.name('pcncustomerjpgdocuments')
49    iface = IPCNCustomerJPGDocument
50    title = _(u'PCN Customer JPG Documents')
51    class_name = 'PCNCustomerJPGDocument'
[12282]52
[12803]53
[12384]54class PCNCustomerPDFDocumentExporter(CustomerDocumentExporterBase):
55    """Exporter for documents.
56    """
57    grok.name('pcncustomerpdfdocuments')
58    iface = IPCNCustomerPDFDocument
59    title = _(u'PCN Customer PDF Documents')
60    class_name = 'PCNCustomerPDFDocument'
[12282]61
[12384]62
[12484]63class RONContractExporter(ContractExporterBase):
[12282]64    """Exporter for Contract instances.
65    """
[12484]66    grok.name('roncontracts')
[12501]67    iface = IRONContractProcess
[12616]68    title = _(u'Licenses: Retention of Name')
[12484]69    class_name = 'RONContract'
[12499]70
71
72class ROPContractExporter(ContractExporterBase):
73    """Exporter for Contract instances.
74    """
75    grok.name('ropcontracts')
[12501]76    iface = IROPContractProcess
[12616]77    title = _(u'Licenses: Registration of Premises')
[12499]78    class_name = 'ROPContract'
[12571]79
[12803]80
[12571]81class RPRContractExporter(ContractExporterBase):
82    """Exporter for Contract instances.
83    """
84    grok.name('rprcontracts')
85    iface = IRPRContractProcess
[12616]86    title = _(u'Licenses: Registration in the Provisional Register')
[12571]87    class_name = 'RPRContract'
[12591]88
[12803]89
[12591]90class RPCContractExporter(ContractExporterBase):
91    """Exporter for Contract instances.
92    """
93    grok.name('rpccontracts')
94    iface = IRPCContractProcess
[12616]95    title = _(u'Licenses: Registration as Pharmaceutical Chemist')
[12591]96    class_name = 'RPCContract'
[12601]97
[12803]98
[12601]99class IPPMVLContractExporter(ContractExporterBase):
100    """Exporter for Contract instances.
101    """
102    grok.name('ippmvlcontracts')
103    iface = IIPPMVLContractProcess
[12616]104    title = _(u'Licenses: Issuance of Patent and Proprietary Medicines Vendors')
[12601]105    class_name = 'IPPMVLContract'
[12604]106
[12803]107
[12604]108class RPPMVLContractExporter(ContractExporterBase):
109    """Exporter for Contract instances.
110    """
111    grok.name('rppmvlcontracts')
112    iface = IRPPMVLContractProcess
[12616]113    title = _(u'Licenses: Renewal of Patent and Proprietary Medicines Vendors')
[12604]114    class_name = 'RPPMVLContract'
[12611]115
[12803]116
[12611]117class APPITContractExporter(ContractExporterBase):
118    """Exporter for Contract instances.
119    """
120    grok.name('appitcontracts')
121    iface = IAPPITContractProcess
[12616]122    title = _(u'Licenses: Accepting Pupil Pharmacist for Internship Training')
[12611]123    class_name = 'APPITContract'
[12615]124
[12803]125
[12615]126class RPTContractExporter(ContractExporterBase):
127    """Exporter for Contract instances.
128    """
129    grok.name('rptcontracts')
130    iface = IRPTContractProcess
[12616]131    title = _(u'Licenses: Registration as a Pharmacy Technician')
[12615]132    class_name = 'RPTContract'
[12617]133
[12803]134
[12617]135class APPTContractExporter(ContractExporterBase):
136    """Exporter for Contract instances.
137    """
138    grok.name('apptcontracts')
139    iface = IAPPTContractProcess
140    title = _(u'Licenses: Annual Permit for Pharmacy Technician')
141    class_name = 'APPTContract'
Note: See TracBrowser for help on using the repository browser.