<%@ language = "JavaScript" %> <% /* $Revision$ $Id$ File: fiat_list.asp Description: Parameters: Note: You can show items of one module to approve by adding &betreft=BES e.a. (BES, CNT, FIN, MLDOF en MLDOP) It may be clearer to the user to user separate menuitems and it improves performance by its limitation */ %> <% var qrc = getQParamInt("qrc", 0) != 0; // Modules automatisch aanvinken indien niet meegegeven. var betreft = getQParamArray("betreft", []); // Module BES, CNT, FIN of MLD. var params = {betreft: (betreft.length? betreft : null), getopen: true, getclosed: false, getrejected: false} %>
<% FCLTMHeader.Generate({}); %>
<% PAGE_START() HEADER({title: L("lcl_mobile_fiattering"), back:!qrc}); CONTENT_START(); function fncolLink(oRs) { var nurl = ""; var module = oRs("module").value; switch (module) { case "BES": { nurl = "../pda/bestelling.asp?bes_key=" + oRs("request_key").Value; break; } case "CNT": { nurl = "../pda/contract.asp?cnt_key=" + oRs("request_key").Value; break; } case "MLD": case "GOED": case "OFFERTE": { nurl = "../pda/order.asp?opdr_key=" + oRs("request_key").value; break; } case "FIN": case "FIN2": { nurl = "../pda/factuur.asp?fin_key=" + oRs("request_key").Value; break; } default: INTERNAL_ERROR; } return nurl; }; function fncolHeader(oRs) { var soort = ""; switch (oRs("module").Value) { case "BES": soort = L("lcl_bes_bestelling"); break; case "CNT": soort = L("lcl_cnt_contract"); break; case "MLD": case "GOED": soort = L("lcl_shared_order") + " " + safe.html(oRs("type").Value); break; case "OFFERTE": soort = safe.html(oRs("type").Value); break; case "FIN": case "FIN2": soort = L("lcl_fin_factuur_type") + " " + safe.html(oRs("type").Value); break; default: INTERNAL_ERROR; } var prefix = oRs("prefix").value; return soort + "
" + safe.html((prefix? prefix + "-" : "") + oRs("aanvraagnummer").value); }; function fnAside(oRs) { return safe.html(S("currency_pref") + safe.curreditable(oRs("bedrag").value)); }; function fnDetail(oRs) { return safe.html(oRs("uitvoerende").value); }; function fnSubheader(oRs) { return "
" + safe.html(oRs("prs_perslid_naam_full").value) + "
"; }; var sql = fiattering_sql(params); var rst = new ResultsetTable({ sql: sql , keyColumn: "request_key" , linkColumn: fncolLink , headerColumn: fncolHeader , detailColumn: fnDetail , asideColumn: fnAside , subheaderColumn: fnSubheader , ID: "fiattable" , showAll: true }); var cnt = rst.processResultset(); CONTENT_END(); FOOTER(); PAGE_END(); %>