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); } } }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(Maticsoft.Model.tArticleType model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(Maticsoft.Model.tArticleType model) { return(dal.Add(model)); }