orderdetail.cs
来自「某个公司需要维持良好的客户关系」· CS 代码 · 共 52 行
CS
52 行
using System;
using System.Collections;
using System.Data;
using System.Data.SqlClient;
using CRM.IDAL;
using CRM.Model;
namespace CRM.BLL
{
/// <summary>
/// OrderDetail 的摘要说明。
/// </summary>
public class OrderDetail : Common
{
#region IOrderDetail 成员
public static void Insert(OrderDetailInfo orderdetail)
{
if(!Common.CheckStrIsNull(orderdetail.OrderId,orderdetail.Quantity,orderdetail.CommodityId))
{
IOrderDetail dal=CRM.DALFactory.OrderDetail.Create();
dal.Insert(orderdetail);
}
}
public static DataTable GetAllOrderDetail()
{
IOrderDetail dal=CRM.DALFactory.OrderDetail.Create();
return dal.GetAllOrderDetail();
}
public static OrderDetailInfo GetOrderDetailById(string orderDetailId)
{
if(Common.CheckStrIsNull(orderDetailId))
return null;
IOrderDetail dal=CRM.DALFactory.OrderDetail.Create();
return dal.GetOrderDetailById(orderDetailId);
}
public static DataTable GetOrderDetailByOrderId(string orderId)
{
if(Common.CheckStrIsNull(orderId))
return null;
IOrderDetail dal=CRM.DALFactory.OrderDetail.Create();
return dal.GetOrderDetailByOrderId(orderId);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?