BLL/TCWL_B_PriceDataProductList.cs
(完整代码) 1KBnamespace BLL
{
using Common;
using DAL;
using Model;
using System;
using System.Data;
public class TCWL_B_PriceDataProductList
{
private readonly TCWL_D_PriceDataProductList dal = new TCWL_D_PriceDataProductList();
public bool Add(TCWL_M_PriceDataProductList model)
{
return this.dal.Add(model);
}
public bool Delete(string ID)
{
return this.dal.Delete(ID);
}
public bool DeleteList(string IDlist)
{
return this.dal.DeleteList(IDlist);
}
public string SelectAll(string strWhere, string orderby, int startIndex, int endIndex)
{
int total = 0;
DataTable dt = this.dal.GetJMBChanPinListByPage(strWhere, orderby, startIndex, endIndex, out total);
return string.Concat(new object[] { "{\"total\":", total, ",\"rows\":", JsonHelper.DataTableToJson(dt), "}" });
}
public string SelectUpdate(string ProductID, string price, string ID)
{
TCWL_M_PriceDataProductList model = new TCWL_M_PriceDataProductList();
model.ProductID = ProductID;
model.price = new decimal?(Convert.ToDecimal(price));
model.ID = ID;
return this.dal.SelectUpdateCP(model).ToString();
}
public bool Update(TCWL_M_PriceDataProductList model)
{
return this.dal.Update(model);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
