C# Class JinianNet.JNTemplate.Test.TemplateMethod

Datei anzeigen Open project: jiniannet/jntemplate Class Usage Examples

Public Methods

Method Description
Get ( string key ) : string
GetArticleList ( int id ) : List
GetArticleUrl ( Model model ) : string
GetCategoryList ( int mode ) : List
GetDefaultInt ( string key, int defaultValue ) : int

获取一个数字类型的GET值 不存在就返回默认值

GetHelpList ( int category, int product, int module, int type ) : List

获取帮助列表

GetHelpUrl ( Model model ) : string
GetInt ( string key ) : int

获取一个数字类型的GET值

GetPageIndex ( ) : int
GetPageLinker ( string HomePagerURL, string PagerURL, int PagerStep, int PagerCur, int PagerTotal, int PagerSize, string PagerFirstName, string PagerPreName, string PagerNextName, string PagerLastName ) : string

通用方法分页

GetPager ( ) : string

获取分页

GetProductItem ( string key ) : ViewModel.Product
GetProductList ( ) : List
GetProductModule ( int product ) : List
GetProductUrl ( Model model ) : string
Test ( string message, int id, bool result ) : string
TestParams ( ) : string
TestParams2 ( string message ) : string

Method Details

Get() public method

public Get ( string key ) : string
key string
return string

GetArticleList() public method

public GetArticleList ( int id ) : List
id int
return List

GetArticleUrl() public method

public GetArticleUrl ( Model model ) : string
model Model
return string

GetCategoryList() public method

public GetCategoryList ( int mode ) : List
mode int
return List

GetDefaultInt() public method

获取一个数字类型的GET值 不存在就返回默认值
public GetDefaultInt ( string key, int defaultValue ) : int
key string
defaultValue int
return int

GetHelpList() public method

获取帮助列表
public GetHelpList ( int category, int product, int module, int type ) : List
category int
product int
module int
type int
return List

GetHelpUrl() public method

public GetHelpUrl ( Model model ) : string
model Model
return string

GetInt() public method

获取一个数字类型的GET值
public GetInt ( string key ) : int
key string
return int

GetPageIndex() public method

public GetPageIndex ( ) : int
return int

GetPageLinker() public method

通用方法分页
public GetPageLinker ( string HomePagerURL, string PagerURL, int PagerStep, int PagerCur, int PagerTotal, int PagerSize, string PagerFirstName, string PagerPreName, string PagerNextName, string PagerLastName ) : string
HomePagerURL string 首页URL可选 例:List.aspx
PagerURL string URL,必填,格式如:List.aspx?Page={0}
PagerStep int 步长
PagerCur int 当前页
PagerTotal int 总记录条数
PagerSize int 每页显示的数量
PagerFirstName string 第一页名称
PagerPreName string 上一页名称
PagerNextName string 下一页名称
PagerLastName string 最后一页名称
return string

GetPager() public method

获取分页
public GetPager ( ) : string
return string

GetProductItem() public method

public GetProductItem ( string key ) : ViewModel.Product
key string
return ViewModel.Product

GetProductList() public method

public GetProductList ( ) : List
return List

GetProductModule() public method

public GetProductModule ( int product ) : List
product int
return List

GetProductUrl() public method

public GetProductUrl ( Model model ) : string
model Model
return string

Test() public method

public Test ( string message, int id, bool result ) : string
message string
id int
result bool
return string

TestParams() public method

public TestParams ( ) : string
return string

TestParams2() public method

public TestParams2 ( string message ) : string
message string
return string