zpm.reportbuilder.js Documentation

Report Builder library for the ZPM.Net framework.
under construction.

Public this ZpmReportBuilder(reportTableSelector, urlBase)

Constructor for the ZpmReportBuilder class.

Parameter reportTableSelector - jQuery selector string to select the html table for report output. Typically #ReportOutput.
Parameter urlBase - Controler name. Example '/CustomerReports'.

Public void ChooseColumns(report, optionalMessage)

Under construction.

Public void ClearOptions(addBlankFilter)

Under construction.

Public bool CreatedByMe(report) - true if report was created by me (must override)

This must be overridden to return true if report was created by me.

Parameter report - report structure containing info about the current report.

Example override:

    rb.CreatedByMe = function (report) {
        return (report.CreatedByUserId == @(User.Identity.GetUserId()) )
    }

Public void GetReports()

Under construction.

Public void FilterOptionChanged(e, autoAddColumn)

Under construction.

Parameter e - .
Parameter autoAddColumn - .

Public int ReportId(report)

Under construction.

Public void ReportNameChanged()

Under construction.

Public void RunReportToExcel()

Under construction.

Public void RunReportToPdf()

Under construction.

Public void RunReportToScreen()

Under construction.

Public void SaveReportDialog()

Under construction.

Public void ServerGetFilterDate(type, value1, value2, callBack)

Under construction.

Public void ServerGetReports(callback)

Under construction.

Public void ServerRunReportToExcel(data, callback)

Under construction.

Public void ServerRunReportToPdf(data, callback)

Under construction.

Public void ServerRunReportToScreen(data, callback)

Under construction.

Public void ServerSaveReport(action, data, callback)

Under construction.

Public void ServerSetReportDefault(val, callback)

Under construction.

Public void SetReportDefault(action)

Under construction.

Public void ToggleOptions()

Under construction.

Internal void AddNewColumn(columnName)

Under construction.

Internal void AddReportGroups(addGroupNames)

Under construction.

Internal void AndOrToggle(e)

Under construction.

Internal void ArrayFilterSet(f)

Under construction.

Internal void ColumnName(td, col)

Extracted column Name and TextReplace from <td> of report table row.

Parameter td - <td> of report table row.
Parameter col - structure to set column Name and TextReplace extracted from <td>.

Internal void ConditionalBoolFilterSet(f)

Under construction.

Internal void ConditionalDateFilterSet(f)

Under construction.

Internal void ConditionalFilterSet(f)

Under construction.

Internal struct CurrentReportModel()

Returns a structure containing information about the currently selected report.

Internal void DateFilterConditionChange(e, updateComment)

Under construction.

Internal void EnableButtons()

Under construction.

Internal string FilterConditionHtml(filterName)

Under construction.

Internal void FilterSet(f, $e)

Under construction.

Internal string FilterTableRowHtml()

Under construction.

Internal $selector GetChooseColumns()

Under construction.

Internal string GetFilterDateValue($div)

Under construction.

Internal $selector GetSaveReportDialog()

Under construction.

Internal void GetZpmFilterMenu()

Under construction.

Internal void LoadColumns($tbl, report)

Under construction.

Internal void RemoveAutoAddedColumn(e)

Under construction.

Internal struct ReportColumnByName(name, report)

Under construction.

Internal struct ReportDisplayName()

Under construction.

Internal void ReportHeading($tbl, report)

Under construction.

Internal struct ReportParameters()

Under construction.

Internal string ReportRowFormat(textReplace, altRow, rowData, trHtml)

Under construction.

Internal void ReportTableResize(reportTableSelector)

Under construction.

Internal void RunReportCallback(data)

Under construction.

Internal struct RunReportParameters(data)

Under construction.

Internal void SaveColumnChanges()

Under construction.

Internal string SaveReport()

Under construction.

Internal void SaveReportDialogInfo(showUpdate, showAdd)

Under construction.

Internal void SetFilterDateValue($div, type, value1, value2, commentPrefix)

Under construction.

Internal void SetReportColumnList()

Under construction.

Internal void SetReportNames(data)

Under construction.

Internal void SetReportOrderBy()

Under construction.

Internal void ZpmDateFilterComment(e)

Under construction.

Internal void ZpmDateOffsetChange(e)

Under construction.

Internal void ZpmFilterDateComment($div, dt, commentPrefix)

Under construction.

Internal void ZpmFilterDateTypeChange(e, updateComment)

Under construction.

Internal void ZpmFilterMenu(e)

Under construction.

Internal void ZpmFilterMenuAction(li)

Under construction.