com.eshop.www.BLL/ProductCategoryBusiness.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//
//
// 网址:http://.taobao.com
// QQ:
using System;
using System.Collections.Generic;
using System.Text;
using com.eshop.www.DAL;
using com.eshop.www.Model;
using System.Data;
namespace com.eshop.www.BLL
{
public class ProductCategoryBusiness
{
public bool Add(ProductCategory productCategory)
{
ProductCategoryDAO dao = new ProductCategoryDAO();
int id = dao.Add(productCategory);
if (productCategory.FatherId == 0)
productCategory.Path = id.ToString();
else
productCategory.Path += "," + id.ToString();
productCategory.Id = id;
return dao.Update(productCategory);
}
public bool Delete(int Id)
{
new ProductCategoryDAO().Delete(Id);
return new CategoryAttributeBusiness().DeleteByCategory(Id);
}
public bool Update(ProductCategory productCategory)
{
return new ProductCategoryDAO().Update(productCategory);
}
public ProductCategory GetEntity(int Id)
{
return new ProductCategoryDAO().GetEntity(Id);
}
public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
{
return new ProductCategoryDAO().GetList(fieldList, orderField, orderBy, pageIndex, pageSize, where);
}
public int GetMaxOrder()
{
return new ProductCategoryDAO().GetMaxOrder();
}
public bool IsHaveSonCategory(int Id)
{
return new ProductCategoryDAO().IsHaveSonCategory(Id);
}
public bool IsHaveSameName(string categoryName)
后面还有 37 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
