def dzih_pieux(request): yonh = request.GET.get('yonh') query = Q() if yonh: query &= Q(yonh=YonhBox.objects.get(mjeng=yonh)) dzih_pieux = Dzih.objects.filter(query).order_by('ziox') paginator = Paginator(dzih_pieux, 15) try: dzih_pieux = paginator.page(request.GET) except (EmptyPage, InvalidPage): raise Http404() dzih_pieux.yonh = yonh cjeng_pieux = CjengByo.objects.all() yonh_pieux = YonhBox.objects.all() return render( request, 'dciangxkox/dzih_pieux.html', { 'dzih_pieux': dzih_pieux, 'cjeng_pieux': cjeng_pieux, 'yonh_pieux': yonh_pieux, })
def dzih_pieux(request): dzih_pieux = Dzih.objects.all() paginator = Paginator(dzih_pieux, 15) try: dzih_pieux = paginator.page(request.GET) except (EmptyPage, InvalidPage): raise Http404() return render_to_response('pyonh/dzih_pieux.html', { 'dzih_pieux': dzih_pieux, })
def sieux_yonh_list_page(request): sieux_yonh_list = SieuxYonh.objects.all() paginator = Paginator(sieux_yonh_list, 15) try: sieux_yonh_list = paginator.page(request.GET) except (EmptyPage, InvalidPage): raise Http404() return render_to_response('tcenghyonhtsen/sieux_yonh_list.html', { 'sieux_yonh_list': sieux_yonh_list, })
def dzih_pieux(request): dzih_pieux = Dzih.objects.all() paginator = Paginator(dzih_pieux, 15) try: dzih_pieux = paginator.page(request.GET) except (EmptyPage, InvalidPage): raise Http404() return render(request, 'kyonh/dzih_pieux.html', { 'dzih_pieux': dzih_pieux, })
def sieux_yonh_list_page(request): sieux_yonh_list = SieuxYonh.objects.all().order_by('cioTriungZiox') paginator = Paginator(sieux_yonh_list, 15) try: sieux_yonh_list = paginator.page(request.GET) except (EmptyPage, InvalidPage): raise Http404() return render(request, 'tcenghyonhtsen/sieux_yonh_list.html', { 'sieux_yonh_list': sieux_yonh_list, })
def cjeng_byo_pieux(request): cjeng_pieux = CjengByo.objects.all() paginator = Paginator(cjeng_pieux, 15) try: cjeng_pieux = paginator.page(request.GET) except (EmptyPage, InvalidPage): raise Http404() return render_to_response('dciangxkox/cjeng_byo_pieux.html', { 'cjeng_pieux': cjeng_pieux, })
def cjeng_byo_pieux(request): cjeng_pieux = CjengByo.objects.all() paginator = Paginator(cjeng_pieux, 15) try: cjeng_pieux = paginator.page(request.GET) except (EmptyPage, InvalidPage): raise Http404() return render(request, 'dciangxkox/cjeng_byo_pieux.html', { 'cjeng_pieux': cjeng_pieux, })
def sieux_yonh_list_page(request): cjeng = request.GET.get('cjeng') yonh = request.GET.get('yonh') deuh = request.GET.get('deuh') tongx = request.GET.get('tongx') ho = request.GET.get('ho') query = Q() if cjeng: query &= Q(cjeng__in = CjengMux.objects.filter(dzih=cjeng)) if yonh: query &= Q(yonhMiuk__in = YonhMiuk.objects.filter( gheh__in = YonhGheh.objects.filter(dzih=yonh) )) if deuh: query &= Q(yonhMiuk__in = YonhMiuk.objects.filter( deuh = int(deuh) )) if tongx: query &= Q(yonh__in = YonhMux.objects.filter( tongx = int(tongx) )) if ho: query &= Q(yonh__in = YonhMux.objects.filter( ho = int(ho) )) sieux_yonh_pieux = SieuxYonh.objects.filter(query).order_by('ziox') paginator = Paginator(sieux_yonh_pieux, 15) try: sieux_yonh_pieux = paginator.page(request.GET) except (EmptyPage, InvalidPage): raise Http404() cjeng_pieux = [] for lyih in CjengLyih.objects.all(): cjeng_pieux.append(lyih) cjeng_pieux += lyih.cjengmux_set.all() yonh_pieux = [] for cjep in YonhCjep.objects.all(): yonh_pieux.append(cjep) yonh_pieux += cjep.yonhgheh_set.all() return render_to_response('kyonh/sieux_yonh_pieux.html', { 'sieux_yonh_pieux': sieux_yonh_pieux, 'cjeng_pieux': cjeng_pieux, 'yonh_pieux': yonh_pieux, 'p_cjeng': cjeng, 'p_yonh': yonh, 'p_deuh': deuh, 'p_tongx': tongx, 'p_ho': ho, })
def yonh_do_page(request): paginator = Paginator(YonhMiukDzip.objects.all(), 1) try: dzip_list = paginator.page(request.GET) except (EmptyPage, InvalidPage): raise Http404() dzip = dzip_list[0] yonh_do = SieuxYonh.objects.get_yonh_do(dzip) return render_to_response('kyonh/yonh_do.html', { 'yonh_do': yonh_do, 'cjeng_lyih_list': CjengLyih.objects.all(), 'dzip': dzip, 'dzip_list': dzip_list, })
def sieux_yonh_pieux(request): cjeng = request.GET.get('cjeng') yonh = request.GET.get('yonh') qim_jang = request.GET.get('qim_jang') deuh = request.GET.get('deuh') query = Q() if cjeng: query &= Q(cjeng=CjengMux.objects.get(dzih=cjeng)) if yonh: query &= Q(yonh_box=YonhBox.objects.get(mjeng=yonh)) if deuh: query &= Q(deuh=deuh) if qim_jang: query &= Q(qim_jang=qim_jang) sieux_yonh_pieux = SieuxYonh.objects.filter(query).order_by('ziox') paginator = Paginator(sieux_yonh_pieux, 15) try: sieux_yonh_pieux = paginator.page(request.GET) except (EmptyPage, InvalidPage): raise Http404() sieux_yonh_pieux.cjeng = cjeng sieux_yonh_pieux.yonh = yonh sieux_yonh_pieux.deuh = deuh sieux_yonh_pieux.qim_jang = qim_jang cjeng_pieux = [] for lyih in CjengLyih.objects.all(): cjeng_pieux.append(lyih) cjeng_pieux += lyih.cjengmux_set.all() yonh_pieux = YonhBox.objects.all() return render( request, 'pyonh/sieux_yonh_pieux.html', { 'sieux_yonh_pieux': sieux_yonh_pieux, 'cjeng_pieux': cjeng_pieux, 'yonh_pieux': yonh_pieux, })
def sieux_yonh_pieux(request): cjeng = request.GET.get('cjeng') yonh = request.GET.get('yonh') qim_jang = request.GET.get('qim_jang') deuh = request.GET.get('deuh') query = Q() if cjeng: query &= Q(cjeng = CjengMux.objects.get(dzih = cjeng)) if yonh: query &= Q(yonh_box = YonhBox.objects.get(mjeng = yonh)) if deuh: query &= Q(deuh = deuh) if qim_jang: query &= Q(qim_jang = qim_jang) sieux_yonh_pieux = SieuxYonh.objects.filter(query).order_by('ziox') paginator = Paginator(sieux_yonh_pieux, 15) try: sieux_yonh_pieux = paginator.page(request.GET) except (EmptyPage, InvalidPage): raise Http404() sieux_yonh_pieux.cjeng = cjeng sieux_yonh_pieux.yonh = yonh sieux_yonh_pieux.deuh = deuh sieux_yonh_pieux.qim_jang = qim_jang cjeng_pieux = [] for lyih in CjengLyih.objects.all(): cjeng_pieux.append(lyih) cjeng_pieux += lyih.cjengmux_set.all() yonh_pieux = YonhBox.objects.all() return render_to_response('pyonh/sieux_yonh_pieux.html', { 'sieux_yonh_pieux': sieux_yonh_pieux, 'cjeng_pieux': cjeng_pieux, 'yonh_pieux': yonh_pieux, })
def dzih_pieux(request): yonh = request.GET.get('yonh') query = Q() if yonh: query &= Q(yonh = YonhBox.objects.get(mjeng = yonh)) dzih_pieux = Dzih.objects.filter(query).order_by('ziox') paginator = Paginator(dzih_pieux, 15) try: dzih_pieux = paginator.page(request.GET) except (EmptyPage, InvalidPage): raise Http404() dzih_pieux.yonh = yonh cjeng_pieux = CjengByo.objects.all() yonh_pieux = YonhBox.objects.all() return render_to_response('dciangxkox/dzih_pieux.html', { 'dzih_pieux': dzih_pieux, 'cjeng_pieux': cjeng_pieux, 'yonh_pieux': yonh_pieux, })