using System; using System.Collections.Generic; using System.Linq; using System.Text; using ICSSoft.Frame.Data.Entity; using ICSSoft.Frame.Data.DAL; using System.Data; using ICSSoft.Frame.APP.Entity; namespace ICSSoft.Frame.Data.BLL { public class ICSEQPSTPBLL { #region 新增和修改 public static void Add(ICSEQPSTP Info, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } List InfoList = new List() { Info }; ICSEQPSTPDAL.Add(InfoList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 新增和修改List public static string AddList(List InfoList, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } return ICSEQPSTPDAL.AddList(InfoList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 通过ID查询 public static DataTable searchInfoByID(string ID, string dsconn) { try { return ICSEQPSTPDAL.searchInfoByID(ID, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 是否存在 public static bool IsIncluding(string ItemCode, string OPCode, string eqptype, string dsconn) { try { return ICSEQPSTPDAL.IsIncluding(ItemCode, OPCode, eqptype, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 删除 public static void deleteInfo(List codeList, string dsconn) { try { ICSEQPSTPDAL.deleteInfo(codeList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 审核 public static void checkInfo(List codeList, string dsconn) { try { ICSEQPSTPDAL.checkInfo(codeList, dsconn); } catch (Exception ex) { throw ex; } } #endregion public static void Import(List InfoList, string dsconn) { ICSEQPSTPDAL.Import(InfoList, dsconn); } public static DataTable GetEQ(string conn, string wp) { return ICSEQPSTPDAL.GetEQ(conn, wp); } public static DataTable GetFIXEQ(string conn, string wp) { return ICSEQPSTPDAL.GetFIXEQ(conn, wp); } public static DataTable GetINV(string conn, string wp) { return ICSEQPSTPDAL.GetINV(conn, wp); } public static void ImportFromErp(string conn, List list) { ICSEQPSTPDAL.ImportFromErp(conn, list); } public static DataTable GetBaseOP(string conn, string wp) { return ICSEQPSTPDAL.GetBaseOP(conn, wp); } } }