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.
48 lines
1.2 KiB
48 lines
1.2 KiB
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<tb_PaintScanRecord> db=new BasicBLL<tb_PaintScanRecord>();
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|