BLL/BLLProductType.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Common;
using DA;
namespace BLL
{
public class BLLProductType
{
/// <summary>
/// BLL--查询所有产品类别的方法
/// </summary>
/// <returns></returns>
public static List<CProductType> BLLProductTypeQU()
{
using (DBProductType dbp = new DBProductType())
{
return dbp.DBProductTypeQU();
}
}
public static List<CProductType> BLLProductTypeQuerg()
{
using (DBProductType DBpt = new DBProductType())
{
return DBpt.DBProductTypeQuery();
}
}
/// <summary>
/// BLL-----根据产品类别id删除
/// </summary>
/// <param name="ProductTypeID"></param>
public static void BLLProductTypeDelete(int ProductTypeID)
{
using (DBProductType dbp = new DBProductType())
{
dbp.DBProductTypeDelete(ProductTypeID);
}
}
//jianchashanchu
public static bool BLLProductTypeDeleteCheck(int ProductTypeID)
{
using (DBProductType dbpt= new DBProductType())
{
int intCount = dbpt.DBProductTypeSelect(ProductTypeID);
if (intCount > 0)
{
return false;
}
else
{
return true;
}
}
}
/// <summary>
后面还有 33 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。