source: main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/batching.py @ 17929

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

Add Annual Permit for Pharmacy Technician contract.

  • Property svn:keywords set to Id
File size: 5.0 KB
Line 
1## $Id: batching.py 12617 2015-02-14 17:22:51Z henrik $
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##
18"""Batch processing for pcn documents.
19"""
20import grok
21from waeup.ikoba.customers.batching import (
22    CustomerProcessor,
23    CustomerDocumentProcessorBase, ContractProcessorBase)
24from ikobacustom.pcn.customers.interfaces import (
25    IPCNCustomer,
26    IPCNCustomerJPGDocument,
27    IPCNCustomerPDFDocument,
28    IRONContract,
29    IROPContract,
30    IRPRContract,
31    IRPCContract,
32    IIPPMVLContract,
33    IRPPMVLContract,
34    IAPPITContract,
35    IRPTContract,
36    IAPPTContract
37    )
38from ikobacustom.pcn.interfaces import MessageFactory as _
39
40
41class PCNCustomerProcessor(CustomerProcessor):
42    """A batch processor for ICustomer objects.
43    """
44    util_name = 'pcncustomerprocessor'
45    grok.name(util_name)
46    name = _('PCN Customer Processor')
47    iface = IPCNCustomer
48
49
50class PCNCustomerJPGDocumentProcessor(CustomerDocumentProcessorBase):
51    """A batch processor for IPCNCustomerJPGDocument objects.
52    """
53    util_name = 'pcncustomerjpgdocumentprocessor'
54    grok.name(util_name)
55    name = _('PCN Customer JPG Document Processor')
56    iface = IPCNCustomerJPGDocument
57    factory_name = 'waeup.PCNCustomerJPGDocument'
58
59class PCNCustomerPDFDocumentProcessor(CustomerDocumentProcessorBase):
60    """A batch processor for IPCNCustomerPDFDocument objects.
61    """
62    util_name = 'pcncustomerpdfdocumentprocessor'
63    grok.name(util_name)
64    name = _('PCN Customer PDF Document Processor')
65    iface = IPCNCustomerPDFDocument
66    factory_name = 'waeup.PCNCustomerPDFDocument'
67
68class RONContractProcessor(ContractProcessorBase):
69    """A batch processor for IRONContract objects.
70    """
71    util_name = 'roncontractprocessor'
72    grok.name(util_name)
73    name = _('License Processor: Retention of Name')
74    iface = IRONContract
75    factory_name = 'waeup.RONContract'
76
77class ROPContractProcessor(ContractProcessorBase):
78    """A batch processor for IROPContract objects.
79    """
80    util_name = 'ropcontractprocessor'
81    grok.name(util_name)
82    name = _('License Processor: Registration of Premises')
83    iface = IROPContract
84    factory_name = 'waeup.ROPContract'
85
86class RPRContractProcessor(ContractProcessorBase):
87    """A batch processor for IRPRContract objects.
88    """
89    util_name = 'rprcontractprocessor'
90    grok.name(util_name)
91    name = _('License Processor: Registration in the Provisional Register')
92    iface = IRPRContract
93    factory_name = 'waeup.RPRContract'
94
95class RPCContractProcessor(ContractProcessorBase):
96    """A batch processor for IRPRContract objects.
97    """
98    util_name = 'rpccontractprocessor'
99    grok.name(util_name)
100    name = _('License Processor: Registration as Pharmaceutical Chemist')
101    iface = IRPCContract
102    factory_name = 'waeup.RPCContract'
103
104class IPPMVLContractProcessor(ContractProcessorBase):
105    """A batch processor for IIPPMVLContract objects.
106    """
107    util_name = 'ippmvlcontractprocessor'
108    grok.name(util_name)
109    name = _('License Processor: Issuance of Patent and Proprietary Medicines Vendors License')
110    iface = IIPPMVLContract
111    factory_name = 'waeup.IPPMVLContract'
112
113class RPPMVLContractProcessor(ContractProcessorBase):
114    """A batch processor for IRPPMVLContract objects.
115    """
116    util_name = 'rppmvlcontractprocessor'
117    grok.name(util_name)
118    name = _('License Processor: Renewal of Patent and Proprietary Medicines Vendors License')
119    iface = IRPPMVLContract
120    factory_name = 'waeup.RPPMVLContract'
121
122class APPITContractProcessor(ContractProcessorBase):
123    """A batch processor for IAPPITContract objects.
124    """
125    util_name = 'appitcontractprocessor'
126    grok.name(util_name)
127    name = _('License Processor: Accepting Pupil Pharmacist for Internship Training')
128    iface = IAPPITContract
129    factory_name = 'waeup.APPITContract'
130
131class RPTContractProcessor(ContractProcessorBase):
132    """A batch processor for IRPTContract objects.
133    """
134    util_name = 'rptcontractprocessor'
135    grok.name(util_name)
136    name = _('License Processor: Registration as a Pharmacy Technician')
137    iface = IRPTContract
138    factory_name = 'waeup.RPTContract'
139
140class APPTContractProcessor(ContractProcessorBase):
141    """A batch processor for IAPPTContract objects.
142    """
143    util_name = 'apptcontractprocessor'
144    grok.name(util_name)
145    name = _('License Processor: Annual Permit for Pharmacy Technician')
146    iface = IAPPTContract
147    factory_name = 'waeup.APPTContract'
Note: See TracBrowser for help on using the repository browser.