You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.6 KiB
68 lines
2.6 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using ICSSoft.Frame.Data.Entity;
|
|
using ICSSoft.Frame.Data.DAL;
|
|
|
|
namespace ICSSoft.Frame.Data.BLL
|
|
{
|
|
public class ICSOPBOMDETAILBLL
|
|
{
|
|
private FramDataContext _domainDataProvider = null;
|
|
|
|
public ICSOPBOMDETAILBLL(FramDataContext domainDataProvider)
|
|
{
|
|
this._domainDataProvider = domainDataProvider;
|
|
}
|
|
|
|
public static void Add(ICSOPBOMDETAIL typeInfo, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("数据库连接字符串错误");
|
|
}
|
|
List<ICSOPBOMDETAIL> typeInfoList = new List<ICSOPBOMDETAIL>() { typeInfo };
|
|
ICSOPBOMDETAILDAL.Add(typeInfoList, dsconn);
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void deleteInfo(string dsconn, List<string> codeList)
|
|
{
|
|
ICSOPBOMDETAILDAL.deleteInfo(dsconn, codeList);
|
|
|
|
}
|
|
|
|
public List<ICSOPBOMDETAIL> QueryOPBOMDetail(string itemCode, string OPID, string BOMCode, string BOMVersion, string routeCode, string OPCode, int actiontype)
|
|
{
|
|
ICSOPBOMDETAILDAL dal = new ICSOPBOMDETAILDAL(_domainDataProvider);
|
|
return dal.QueryOPBOMDetail(itemCode, OPID, BOMCode, BOMVersion, routeCode, OPCode, actiontype, false);
|
|
}
|
|
|
|
public List<ICSOPBOMDETAIL> QueryOPBOMDetail(string itemCode, string OPID, string BOMCode, string BOMVersion, string routeCode, string OPCode, int actiontype, bool onlyValid)
|
|
{
|
|
ICSOPBOMDETAILDAL dal = new ICSOPBOMDETAILDAL(_domainDataProvider);
|
|
return dal.QueryOPBOMDetail(itemCode, OPID, BOMCode, BOMVersion, routeCode, OPCode, actiontype, onlyValid);
|
|
}
|
|
public List<ICSOPBOMDETAIL> GetOPBOMDetails(string moCode, string routeCode, string opCode, bool check, bool onlyValid)
|
|
{
|
|
ICSOPBOMDETAILDAL dal = new ICSOPBOMDETAILDAL(_domainDataProvider);
|
|
return dal.GetOPBOMDetails(moCode, routeCode, opCode, check, onlyValid);
|
|
}
|
|
|
|
public List<ICSOPBOMDETAIL> QueryOPBOMDetail(string itemCode, string mCode, string OPID, string BOMCode, string BOMVersion, string routeCode, string OPCode, int actiontype, bool onlyValid)
|
|
{
|
|
ICSOPBOMDETAILDAL dal = new ICSOPBOMDETAILDAL(_domainDataProvider);
|
|
return dal.QueryOPBOMDetail(itemCode, mCode, OPID, BOMCode, BOMVersion, routeCode, OPCode, actiontype, onlyValid);
|
|
|
|
|
|
}
|
|
}
|
|
}
|