⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orderdetail.cs

📁 某个公司需要维持良好的客户关系
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -