示例#1
0
    def listele(self):
        """
        show & edit timetable for room

        .. code-block:: python
            # response:
            {
                'derslik_zaman_tablosu': {
                    'derslik_key': string   # derslik key
                    'name': string,     # room name,
                    'kapasite': int,   # capacity,
                    'zaman_plani': [{
                        'key': string,     # derslik zaman plani key
                        'saat': string,  # 10:00-12:00,
                        'gun': int,     # 1 = pazartesi,
                        'durum': int    # 2 = Bolume Ait,
                        }],
                    'derslikler': [{
                        'name': string,
                        'key': string}]}
            }
        """

        if "red_aciklamasi" in self.current.task_data:
            self.current.output["msgbox"] = {
                "type": "warning",
                "title": _(u"Talebiniz Bölüm Başkanı Tarafından Reddedildi"),
                "msg": self.current.task_data["red_aciklamasi"],
            }
        _form = JsonForm()
        _form.gonder = fields.Button(_(u"Onaya Gönder"), cmd="gonder")
        self.form_out(_form)
示例#2
0
    def listele(self):
        """
        show & edit timetable for room

        .. code-block:: python
            # response:
            {
                'derslik_zaman_tablosu': {
                    'derslik_key': string   # derslik key
                    'name': string,     # room name,
                    'kapasite': int,   # capacity,
                    'zaman_plani': [{
                        'key': string,     # derslik zaman plani key
                        'saat': string,  # 10:00-12:00,
                        'gun': int,     # 1 = pazartesi,
                        'durum': int    # 2 = Bolume Ait,
                        }],
                    'derslikler': [{
                        'name': string,
                        'key': string}]}
            }
        """

        if 'red_aciklamasi' in self.current.task_data:
            self.current.output['msgbox'] = {
                "type": "warning",
                "title": _(u"Talebiniz Bölüm Başkanı Tarafından Reddedildi"),
                "msg": self.current.task_data['red_aciklamasi']
            }
        _form = JsonForm()
        _form.gonder = fields.Button(_(u'Onaya Gönder'), cmd='gonder')
        self.form_out(_form)
示例#3
0
 def revizyon_gerekcesi_gir(self):
     form = JsonForm(title=_(u"Revizyon Gerekçesi"))
     form.gerekce = fields.Text(_(u"Gerekçe"))
     form.iptal = fields.Button(_(u"İptal"),
                                cmd='iptal',
                                form_validation=False)
     form.gonder = fields.Button(_(u"Gönder"), cmd='revizyon')
     self.form_out(form)
示例#4
0
    def wf_sec(self):
        _secim_wf = prepare_choices_for_model(BPMNWorkflow, programmable=True)
        _form = JsonForm(title=_(u"İş Yöneticisi"))
        _form.workflow = Integer(title=_(u"Workflow Seçiniz"),
                                 choices=_secim_wf)
        _form.gonder = Button(_(u"İlerle"))

        self.form_out(_form)
示例#5
0
 def talebi_gonder_onay_ekrani(self):
     self.current.task_data['proje_iptal_aciklama'] = self.input['form']['aciklama']
     proje = BAPProje.objects.get(self.current.task_data['bap_proje_id'])
     form = JsonForm(title=_(u"Proje İptal Talebi"))
     form.help_text = _(u"%s projesini iptal için onaya yollayacaksınız. Yollamak istiyor "
                        u"musunuz ?") % proje.ad
     form.gonder = fields.Button(_(u"Gönder"))
     form.iptal = fields.Button(_(u"İptal"), cmd='iptal')
     self.form_out(form)
示例#6
0
    def rapor_gonder_onay(self):
        """
        Seçili olan rapor dosyasının koordinasyon birimine gönderilmesi için öğretim üyesinden onay istenir.

        """
        form = JsonForm(title="Rapor Gönderme Form")
        form.help_text = "Raporunuz başarılı bir şekilde yüklendi. Raporunuzu koordinasyon birimine gönderebilirsiniz."
        form.gonder = fields.Button(_(u'Koordinasyon Birimine Gönder'),
                                    cmd="gonder")
        form.geri_don = fields.Button(_(u'Geri Dön'))
        self.form_out(form)
示例#7
0
 def koordinasyona_gonder_onay(self):
     self.current.task_data['yurutucu_aciklama'] = self.input['form'][
         'aciklama']
     self.current.task_data['yeni_yurutucu_id'] = self.input['form'][
         'yurutucu_id']
     yeni_yurutucu = Okutman.objects.get(self.input['form']['yurutucu_id'])
     proje = BAPProje.objects.get(self.current.task_data['bap_proje_id'])
     form = JsonForm(title=_(u"Yürütücü Değişikliği Talebi"))
     form.help_text = _(
         u"%s projesinin mevcut yürütücüsü olan %s 'nın yerine %s 'nın "
         u"yürütücü olarak atanması talebinde "
         u"bulunuyorsunuz.") % (proje.ad, proje.yurutucu, yeni_yurutucu)
     form.gonder = fields.Button(_(u"Gönder"))
     form.iptal = fields.Button(_(u"İptal"), cmd='iptal')
     self.form_out(form)
示例#8
0
 def red_aciklama_yaz(self):
     _form = JsonForm()
     _form.mesaj = fields.String(_(u"Açıklama"))
     _form.gonder = fields.Button(_(u"Gönder"))
     self.form_out(_form)
示例#9
0
 def red_aciklama_yaz(self):
     _form = JsonForm()
     _form.mesaj = fields.String(_(u'Açıklama'))
     _form.gonder = fields.Button(_(u'Gönder'))
     self.form_out(_form)