C# Class Worki.Data.Models.FeatureHelper

Mostrar archivo Open project: tah91/eworkyWebSite

Public Properties

Property Type Description
AvoidPeriods List
BuisnessLounge List
Characteristics List
Desktop List
MeetingRoom List
Sectors List
SeminarRoom List
Services List
VisioRoom List
Workstation List

Public Methods

Method Description
Display ( IFeatureContainer feature ) : string

Get displayed value of a feature

FeatureFromString ( string featureStr, string prefix ) : int

get the feature id from the string of query string

FeatureToString ( int featureId, string prefix ) : string

return a string for the feature to put in url query string

GetFeatureDisplayName ( Feature feature ) : string

Get feature display name from resources

GetFeatureIds ( List strings, string prefix ) : IEnumerable

convert a list of feature url to the corresponding feature ids

GetFeatureStrings ( List strings, string prefix ) : IEnumerable

convert a list of feature url to the corresponding feature

GetFieldType ( Feature feature ) : FeatureField
GetStringId ( Feature feature, string prefix ) : string

Get an unique id for form purpose

ParseStringId ( string strId, string prefix ) : string

Get corresponding Feature from stringId

Method Details

Display() public static method

Get displayed value of a feature
public static Display ( IFeatureContainer feature ) : string
feature IFeatureContainer feature to display
return string

FeatureFromString() public static method

get the feature id from the string of query string
public static FeatureFromString ( string featureStr, string prefix ) : int
featureStr string the string to recover
prefix string the prefix
return int

FeatureToString() public static method

return a string for the feature to put in url query string
public static FeatureToString ( int featureId, string prefix ) : string
featureId int the feature id
prefix string the prefix
return string

GetFeatureDisplayName() public static method

Get feature display name from resources
public static GetFeatureDisplayName ( Feature feature ) : string
feature Feature the feature
return string

GetFeatureIds() public static method

convert a list of feature url to the corresponding feature ids
public static GetFeatureIds ( List strings, string prefix ) : IEnumerable
strings List the feature urls
prefix string
return IEnumerable

GetFeatureStrings() public static method

convert a list of feature url to the corresponding feature
public static GetFeatureStrings ( List strings, string prefix ) : IEnumerable
strings List the feature urls
prefix string
return IEnumerable

GetFieldType() public static method

public static GetFieldType ( Feature feature ) : FeatureField
feature Feature
return FeatureField

GetStringId() public static method

Get an unique id for form purpose
public static GetStringId ( Feature feature, string prefix ) : string
feature Feature
prefix string
return string

ParseStringId() public static method

Get corresponding Feature from stringId
public static ParseStringId ( string strId, string prefix ) : string
strId string
prefix string
return string

Property Details

AvoidPeriods public_oe static_oe property

public static List AvoidPeriods
return List

BuisnessLounge public_oe static_oe property

public static List BuisnessLounge
return List

Characteristics public_oe static_oe property

public static List Characteristics
return List

Desktop public_oe static_oe property

public static List Desktop
return List

MeetingRoom public_oe static_oe property

public static List MeetingRoom
return List

Sectors public_oe static_oe property

public static List Sectors
return List

SeminarRoom public_oe static_oe property

public static List SeminarRoom
return List

Services public_oe static_oe property

public static List Services
return List

VisioRoom public_oe static_oe property

public static List VisioRoom
return List

Workstation public_oe static_oe property

public static List Workstation
return List