コード例 #1
0
ファイル: BaseMasterPage.cs プロジェクト: Hcq/Rain
 protected string get_category_title(int category_id, string default_value)
 {
     Rain.BLL.article_category articleCategory = new Rain.BLL.article_category();
     if (articleCategory.Exists(category_id))
     {
         return(articleCategory.GetTitle(category_id));
     }
     return(default_value);
 }
コード例 #2
0
 protected override void ShowPage()
 {
     this.page        = DTRequest.GetQueryInt("page", 1);
     this.category_id = DTRequest.GetQueryInt("category_id");
     Rain.BLL.article_category articleCategory = new Rain.BLL.article_category();
     this.model.title = "所有类别";
     if (this.category_id <= 0 || !articleCategory.Exists(this.category_id))
     {
         return;
     }
     this.model = articleCategory.GetModel(this.category_id);
 }