C# Class nabu.Modelo

Show file Open project: sabtvg/nabu Class Usage Examples

Public Properties

Property Type Description
activo bool
enUso bool
errores object>.Dictionary
etiqueta string
firmaConsenso string
icono string
idioma string
niveles int
nombre string
titulo string

Protected Properties

Property Type Description
consensoAlcanzado bool
grupo Grupo
modo eModo
variables List

Public Methods

Method Description
HTMLFlores ( Nodo n, bool showVariante, Usuario u ) : string
addError ( int nivel, string s ) : string
area ( string id, Propuesta prop, int width, int height, bool tieneFlores ) : string
ejecutarConsenso ( Documento doc ) : void
getModelo ( string id ) : Modelo
getModelos ( ) : List
getValue ( string id, Propuesta prop ) : object
getValueResaltado ( string id, Propuesta prop ) : string
getVariable ( string id ) : Variable
getVariables ( ) : List
hayError ( ) : bool
isVariable ( string id ) : bool
parse ( string id, string valor ) : object
toHTML ( List props, Grupo g, string email, int width, eModo modo ) : string
toHTML ( Propuesta prop, Grupo g, string email, int width, eModo modo ) : string
toHTMLComentarios ( int nivel, Propuesta prop, Grupo g, string email, int width, bool agregar ) : string
tr ( string msg ) : string
txt ( string id, Propuesta prop, int width, bool tieneFlores ) : string

Protected Methods

Method Description
crearVariables ( ) : void
getProp ( int nivel, List props ) : Propuesta
toHTMLContenido ( int nivel, Propuesta prop, Grupo g, string email, int width ) : string

Private Methods

Method Description
getSeparadorIndex ( string s ) : int
getTextosHermanos ( Nodo padre, Nodo n, string id ) : List
toHTML ( string s ) : string

Method Details

HTMLFlores() public method

public HTMLFlores ( Nodo n, bool showVariante, Usuario u ) : string
n Nodo
showVariante bool
u Usuario
return string

addError() public method

public addError ( int nivel, string s ) : string
nivel int
s string
return string

area() public method

public area ( string id, Propuesta prop, int width, int height, bool tieneFlores ) : string
id string
prop Propuesta
width int
height int
tieneFlores bool
return string

crearVariables() protected abstract method

protected abstract crearVariables ( ) : void
return void

ejecutarConsenso() public method

public ejecutarConsenso ( Documento doc ) : void
doc Documento
return void

getModelo() public static method

public static getModelo ( string id ) : Modelo
id string
return Modelo

getModelos() public static method

public static getModelos ( ) : List
return List

getProp() protected method

protected getProp ( int nivel, List props ) : Propuesta
nivel int
props List
return Propuesta

getValue() public method

public getValue ( string id, Propuesta prop ) : object
id string
prop Propuesta
return object

getValueResaltado() public method

public getValueResaltado ( string id, Propuesta prop ) : string
id string
prop Propuesta
return string

getVariable() public method

public getVariable ( string id ) : Variable
id string
return Variable

getVariables() public method

public getVariables ( ) : List
return List

hayError() public method

public hayError ( ) : bool
return bool

isVariable() public method

public isVariable ( string id ) : bool
id string
return bool

parse() public method

public parse ( string id, string valor ) : object
id string
valor string
return object

toHTML() public method

public toHTML ( List props, Grupo g, string email, int width, eModo modo ) : string
props List
g Grupo
email string
width int
modo eModo
return string

toHTML() public method

public toHTML ( Propuesta prop, Grupo g, string email, int width, eModo modo ) : string
prop Propuesta
g Grupo
email string
width int
modo eModo
return string

toHTMLComentarios() public method

public toHTMLComentarios ( int nivel, Propuesta prop, Grupo g, string email, int width, bool agregar ) : string
nivel int
prop Propuesta
g Grupo
email string
width int
agregar bool
return string

toHTMLContenido() protected abstract method

protected abstract toHTMLContenido ( int nivel, Propuesta prop, Grupo g, string email, int width ) : string
nivel int
prop Propuesta
g Grupo
email string
width int
return string

tr() public method

public tr ( string msg ) : string
msg string
return string

txt() public method

public txt ( string id, Propuesta prop, int width, bool tieneFlores ) : string
id string
prop Propuesta
width int
tieneFlores bool
return string

Property Details

activo public property

public bool activo
return bool

consensoAlcanzado protected property

protected bool consensoAlcanzado
return bool

enUso public property

public bool enUso
return bool

errores public property

public Dictionary errores
return object>.Dictionary

etiqueta public property

public string etiqueta
return string

firmaConsenso public property

public string firmaConsenso
return string

grupo protected property

protected Grupo,nabu grupo
return Grupo

icono public property

public string icono
return string

idioma public property

public string idioma
return string

modo protected property

protected eModo modo
return eModo

niveles public property

public int niveles
return int

nombre public property

public string nombre
return string

titulo public property

public string titulo
return string

variables protected property

protected List variables
return List