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 typeInfoList = new List() { typeInfo }; ICSOPBOMDETAILDAL.Add(typeInfoList, dsconn); } catch (Exception ex) { throw ex; } } public static void deleteInfo(string dsconn, List codeList) { ICSOPBOMDETAILDAL.deleteInfo(dsconn, codeList); } public List 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 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 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 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); } } }