protected string GetPNmae(string PID)
 {
     if (PID == "0")
     {
         return("根目录");
     }
     else
     {
         Maticsoft.BLL.tArticleType   bll   = new Maticsoft.BLL.tArticleType();
         Maticsoft.Model.tArticleType model = bll.GetModel(int.Parse(PID));
         if (model == null)
         {
             return("");
         }
         else
         {
             return(model.Name);
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Maticsoft.Model.tArticleType model)
 {
     return(dal.Update(model));
 }
Beispiel #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(Maticsoft.Model.tArticleType model)
 {
     return(dal.Add(model));
 }