C# 클래스 Phresco.FusionCharts.ListToXmlConverter

Converts a SharePoint List (SPList) into a nice XML string that can be directly used by fusion charts
파일 보기 프로젝트 열기: photon-infotech/sharepoint-resource-management 1 사용 예제들

공개 메소드들

메소드 설명
GenerateXml ( string chartTitle, string xValue, string xTitle, string yValue, string yTitle, GroupAction groupAction, string colors ) : string

Generate the nice XML output for fusion charts

ListToXmlConverter ( string listName, string viewName ) : System

Constructor

PrepareData ( string xValue, string yValue, GroupAction action ) : Plots

Transforms the list of items into something easily usable (a Plots object). Performs also operations such as SUM, COUNT over GROUPBY

비공개 메소드들

메소드 설명
GetListAndView ( ) : void

Retrieves a SPList from its name

ListValidColumns ( ) : string

Returns a list of valids column name that can be used.

QueryList ( ) : void

Get the list of items in the list based on the view

메소드 상세

GenerateXml() 공개 메소드

Generate the nice XML output for fusion charts
public GenerateXml ( string chartTitle, string xValue, string xTitle, string yValue, string yTitle, GroupAction groupAction, string colors ) : string
chartTitle string Title of the chart
xValue string Column name to use as x value
xTitle string Title to give to x
yValue string Column name to use as y value
yTitle string Title to give to y
groupAction GroupAction Action to perform (sum, count, ...)
colors string List of colors to use (separated by ;)
리턴 string

ListToXmlConverter() 공개 메소드

Constructor
public ListToXmlConverter ( string listName, string viewName ) : System
listName string
viewName string
리턴 System

PrepareData() 공개 메소드

Transforms the list of items into something easily usable (a Plots object). Performs also operations such as SUM, COUNT over GROUPBY
public PrepareData ( string xValue, string yValue, GroupAction action ) : Plots
xValue string The name of the column to use as xValue
yValue string The nam of the column to use as yValue
action GroupAction The action to perform, if any...
리턴 Plots