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 ICSINVBusinessBLL { #region 新增和修改 public static void Add(FormICSINVBusinessUIModel maInfo, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } List maInfoList = new List() { maInfo }; ICSINVBusinessDAL.Add(maInfoList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 业务类型代码是否存在 public static bool IsIncluding(string macode, string workpoint,string dsconn) { try { return ICSINVBusinessDAL.IsIncluding(macode,workpoint, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 通过guid查询 public static FormICSINVBusinessUIModel SearchMAInfoByID(string maid,string dsconn) { try { List returnlist = ICSINVBusinessDAL.SearchMAInfoByID(maid, dsconn); return returnlist[0]; } catch (Exception ex) { throw ex; } } #endregion #region 删除 public static void deleteInfo(List maidList, string dsconn) { try { ICSINVBusinessDAL.deleteInfo(maidList, dsconn); } catch (Exception ex) { throw ex; } } #endregion } }