Ejemplo n.º 1
0
 def __init__(self, current):
     CrudView.__init__(self, current)
     if 'object_id' in self.current.task_data and self.cmd == 'add_edit_form' and \
             'object_id' not in self.input:
         del self.current.task_data['object_id']
         self.object = BAPSSS()
         self.object_form = SSSAddEditForm(self.object,
                                           current=self.current)
Ejemplo n.º 2
0
    def __init__(self, current):
        CrudView.__init__(self, current)
        if 'object_id' in self.current.task_data and self.cmd == 'add_edit_form' and \
                'object_id' not in self.input:
            del self.current.task_data['object_id']
            self.object = BAPIsPaketi()

        if 'iptal' in current.task_data['cmd'] and 'IsPaketiHazirlaForm' in self.current.task_data:
            del current.task_data['IsPaketiHazirlaForm']
Ejemplo n.º 3
0
    def __init__(self, current):
        CrudView.__init__(self, current)
        if not self.object.key:
            self.object = self.model_class.objects.get(
                self.current.task_data.get('bap_proje_id',
                                           self.input.pop('object_id', '')))
        self.current.output["meta"]["allow_search"] = False

        # Genel form, bu nesneyi extend eden digerleri tarafindan degistirilebilsin
        # bkz: bap_ogrbasvuru_goruntule.py
        self.genel_form = GenelProjeForm
Ejemplo n.º 4
0
 def __init__(self, current=None):
     CrudView.__init__(self, current)
     self.ListForm.add = None
Ejemplo n.º 5
0
 def __init__(self, current):
     self.ObjectForm = SaglikRaporuForm
     CrudView.__init__(self, current)
     if 'personel_id' not in self.current.task_data:
         self.current.task_data["personel_id"] = self.current.input["id"]
Ejemplo n.º 6
0
 def __init__(self, current):
     CrudView.__init__(self, current)
     if self.cmd != 'confirm_deletion' and self.cmd != 'delete' \
             and 'object_id' in self.current.task_data:
         del self.current.task_data['object_id']
Ejemplo n.º 7
0
 def __init__(self, current=None):
     CrudView.__init__(self, current)
     self.ListForm.add = None
     self.model_class.Meta.verbose_name_plural = __(
         u"Firma Başvuru Değerlendirmeleri")
Ejemplo n.º 8
0
 def __init__(self, current=None):
     CrudView.__init__(self, current)
     self.ListForm.add = fields.Button(__(u"Tekliflerimi Göster"), cmd='tekliflerim')
     self.model_class.Meta.verbose_name_plural = __(u"Teklife Açık Bütçe Kalemi Satın Almaları")
     self.firma = self.current.user.bap_firma_set[0].bap_firma
Ejemplo n.º 9
0
 def __init__(self, current):
     CrudView.__init__(self, current)
     if 'object_id' in self.current.task_data and self.cmd == 'add_edit_form' and \
             'object_id' not in self.input:
         del self.current.task_data['object_id']
         self.object = BAPTakvim()
Ejemplo n.º 10
0
 def __init__(self, current):
     CrudView.__init__(self, current)
     if not self.object.key:
         self.object = self.model_class.objects.get(
             self.current.task_data['bap_proje_id'])
Ejemplo n.º 11
0
 def __init__(self, current):
     CrudView.__init__(self, current)
     if 'personel_id' not in self.current.task_data:
         self.current.task_data["personel_id"] = self.current.input["id"]