using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; using MESClassLibrary.BLL.Log; using MESClassLibrary.EFModel; namespace MESClassLibrary.BLL.Painting { public class ScanRecordBLL { BasicBLL db=new BasicBLL(); public bool AddInfo(tb_PaintScanRecord md) { try { return db.AddInfo(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(),MethodBase.GetCurrentMethod()); return false; } } public bool IsExsit(string barcode) { try { var list = db.SearchAllInfo().Where(p => p.OneBarCode == barcode).ToList(); if (list.Count > 0) { return true; } return false; } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(),MethodBase.GetCurrentMethod()); return false; } } } }