Exemplo n.º 1
0
def simpanKamar(request, id=None):
    kd_bangsal = request.POST['kd_bangsal']
    no_kamar = int(request.POST['no_kamar'])
    if id == None:
        while True:
            cek = kd_bangsal + "." + str(no_kamar)
            if (cekNomorKamar(cek) == False):
                no_kamar += 1
            else:
                break
    kd_kamar = kd_bangsal + "." + str(no_kamar)
    param = {"kd_kamar": kd_kamar}
    return jsonView.saveForm(request, Kamar, 'kd_kamar', id, 'formKamar',
                             forms, **param)
Exemplo n.º 2
0
def simpan(request, id=None):
    #print(request.POST)
    return jsonView.saveForm(request, Rekening, 'kd_rek', id, 'basicForm',
                             forms)
Exemplo n.º 3
0
def simpanBangsal(request, id=None):
    return jsonView.saveForm(request, Bangsal, 'kd_bangsal', id, 'formBangsal',
                             forms)
Exemplo n.º 4
0
def simpanPenjab(request,id=None):

    return jsonView.saveForm(request,Penjab,"kd_pj",id,'formPenjab',forms)
Exemplo n.º 5
0
def simpanPoliklinik(request, id=None):
    return jsonView.saveForm(request, Poliklinik, 'kd_poli', id,
                             'formPoliklinik', forms)