Пример #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)
Пример #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']
Пример #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
Пример #4
0
 def __init__(self, current=None):
     CrudView.__init__(self, current)
     self.ListForm.add = None
Пример #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"]
Пример #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']
Пример #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")
Пример #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
Пример #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()
Пример #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'])
Пример #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"]