Exemplo n.º 1
0
 public string GetCateName(object Value)
 {
     if ((Value != null) && (Value.ToString().Length > 0))
     {
         Maticsoft.BLL.SNS.Categories categories = new Maticsoft.BLL.SNS.Categories();
         int categoryId = Globals.SafeInt(Value.ToString(), 0);
         if (categoryId > 0)
         {
             Maticsoft.Model.SNS.Categories model = categories.GetModel(categoryId);
             if (model != null)
             {
                 return model.Name;
             }
         }
     }
     return "暂无分类对应";
 }
Exemplo n.º 2
0
 protected string GetCategoryName(object target)
 {
     string str = string.Empty;
     if (StringPlus.IsNullOrEmpty(target))
     {
         return str;
     }
     Maticsoft.BLL.SNS.Categories categories = new Maticsoft.BLL.SNS.Categories();
     int categoryId = Globals.SafeInt(target.ToString(), 0);
     Maticsoft.Model.SNS.Categories model = categories.GetModel(categoryId);
     if (model != null)
     {
         return model.Name;
     }
     return "";
 }