华恒Mes鼎捷代码
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.

74 lines
1.8 KiB

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using ICSSoft.Base.Config.DBHelper;
using ICSSoft.Frame.Data.DAL;
using ICSSoft.Frame.Data.Entity;
namespace ICSSoft.Frame.Data.BLL
{
public class ICSStockBarCodeBLL
{
#region CreatebarCode
public static void CreatebarCode(List<ICSITEMLot> Listguid, string Appconstr)
{
try
{
ICSStockBarCodeDAL.CreatebarCode(Listguid, Appconstr);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region CreatebarCode
public static DataTable FindDataByID(string autoid,string Code,string constr)
{
try
{
return ICSStockBarCodeDAL.FindDataByID(autoid,Code, constr);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region select
public static ICSEC select(String guid, String Appconstr)
{
return ICSECDAL.select(guid, Appconstr);
}
#endregion
#region delete
public static void delete(List<String> guidList,string conn)
{
try {
string lotStr = "";
for (int i = 0; i < guidList.Count;i++ )
{
if(lotStr == ""){
lotStr = "'" + guidList[i] + "'";
}else{
lotStr += ",'" + guidList[i] + "'";
}
}
if (lotStr == "") return;
ICSStockBarCodeDAL.delete(lotStr, conn);
}catch(Exception ex){
throw ex;
}
}
#endregion
}
}