Ejemplo n.º 1
0
def nomMUSearch(request):
    rows = Database.combineRows(request.POST, mainConnector,
                                FormClasses.NomenclaturesTable.nomMU,
                                FormClasses.NomenclaturesTable.nomTable,
                                FormClasses.NomenclaturesTable.nomColumns, 1)

    formSetBuilder = formset_factory(FormClasses.NomenclaturesForm,
                                     extra=(len(rows) - 3) / 3)
    filledFormSet = formSetBuilder(rows)

    response = {}
    response['Formset'] = filledFormSet
    return render(request, 'SimpleTable.html', response)
Ejemplo n.º 2
0
def acCurrencySearch(request):
    rows = Database.combineRows(request.POST, mainConnector,
                                FormClasses.AccountsTable.acCurrency,
                                FormClasses.AccountsTable.acTable,
                                FormClasses.AccountsTable.acColumns, 1)

    formSetBuilder = formset_factory(FormClasses.AccountsForm,
                                     extra=(len(rows) - 3) / 3)
    filledFormSet = formSetBuilder(rows)

    response = {}
    response['Formset'] = filledFormSet
    return render(request, 'SimpleTable.html', response)
Ejemplo n.º 3
0
def brdOrgSearch(request):
    rows = Database.combineRows(request.POST, mainConnector,
                                FormClasses.BRDTable.brdOrgname,
                                FormClasses.BRDTable.brdTable,
                                FormClasses.BRDTable.brdColumns, 1)

    formSetBuilder = formset_factory(FormClasses.BRDForm,
                                     extra=(len(rows) - 3) / 3)
    filledFormSet = formSetBuilder(rows)

    response = {}
    response['Formset'] = filledFormSet
    return render(request, 'SimpleTable.html', response)