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 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 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 } }