def addNewTemplate(): if request.method == 'POST': ms2T = Template() kode_laporan = request.form['kodeLaporan2'] server_id = request.form['server'] report_judul = request.form['namaLaporan'] report_deskripsi = request.form['filter'] report_header = request.form['jmlHeader'] report_footer = request.form['jmlFooter'] report_jmlTampilan = request.form['jmlTampilan'] report_periode = request.form['periode'] report_createDate = datetime.datetime.now() report_userUpdate = 'testUser' report_lastUpdate = datetime.datetime.now() report_aktifYN = 'Y' org_id = request.form['organisasi'] ktgri_id = request.form['kategori'] report_printAllYN = request.form['printAll'] report_createdUser = '******' report_scheduleYN = 'N' ms2T.addNewTemplate(kode_laporan, server_id, report_judul, report_deskripsi, report_header, report_footer, report_jmlTampilan, report_periode, report_createDate, report_userUpdate, report_lastUpdate, report_aktifYN, org_id, ktgri_id, report_printAllYN, report_createdUser, report_scheduleYN) # return redirect(url_for('newFormatTemplate')) return render_template('formatTemplate.html', detailTemplate = ms2T.addDetailTemplate(kode_laporan), kode_laporan=kode_laporan)
def newFormat(): ms2T = Template() kode_laporan = request.form['kodeLaporan2'] return render_template('formatTemplate.html', detailTemplate = ms2T.addDetailTemplate(kode_laporan), kode_laporan=kode_laporan)
def formatTemplate(): ms2T = Template() if request.method == 'POST': ms2T = Template() kode_laporan = request.form['kodeLaporan'] return render_template('formatTemplate.html', detailTemplate = ms2T.addDetailTemplate(kode_laporan), kode_laporan=kode_laporan, detailFormatTemplate = ms2T.detailFormatTemplate(kode_laporan)) # return redirect(url_for('addTemplate')) return render_template('perubahan.html', listKodeReport = ms2T.listKodeReport())
def formatTemplate(): if request.method == 'POST': ms2T = Template() kode_laporan = request.form['kodeLaporan'] return render_template('formatTemplate.html', detailTemplate = ms2T.addDetailTemplate(kode_laporan), kode_laporan=kode_laporan) return redirect(url_for('addTemplate'))