添加项目文件。
This commit is contained in:
43
Epost.BLL/SkuInfoBLL.cs
Normal file
43
Epost.BLL/SkuInfoBLL.cs
Normal file
@ -0,0 +1,43 @@
|
||||
using Epost.DAL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Epost.BLL
|
||||
{
|
||||
public class SkuInfoBLL
|
||||
{
|
||||
SkuInfoDAL dal = new SkuInfoDAL();
|
||||
WmsTaskBLL taskbll = new WmsTaskBLL();
|
||||
public DataTable GetSkuInfoList(string sku)
|
||||
{
|
||||
if (sku.Substring(0, 1) == "2")
|
||||
{
|
||||
if (sku.Substring(1, 1) == "5")
|
||||
{
|
||||
if (sku.Length >= 7)
|
||||
{
|
||||
sku = sku.Substring(2, 6);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (sku.Length >= 7)
|
||||
{
|
||||
sku = sku.Substring(1, 6);
|
||||
}
|
||||
}
|
||||
return dal.GetSkuInfo(sku);
|
||||
}
|
||||
else {
|
||||
return dal.GetSkuInfoList(sku);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user