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.
|
|
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ICSSoft.Frame.Data.Entity; using ICSSoft.Frame.Data.DAL; using ICSSoft.Base.Config.AppConfig; using System.Data;
namespace ICSSoft.Frame.Data.BLL { public class ICSNCTPBLL { #region 新增和修改
public static void Add(ICSNCTP Info, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } List<ICSNCTP> InfoList = new List<ICSNCTP>() { Info }; ICSNCTPDAL.Add(InfoList, dsconn);
} catch (Exception ex) { throw ex; } } #endregion
#region 新增和修改List
public static string AddList(List<ICSNCTP> InfoList, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } return ICSNCTPDAL.AddList(InfoList, dsconn);
} catch (Exception ex) { throw ex; } } #endregion
#region 通过ID查询
public static DataTable searchInfoByID(string ID, string dsconn) { try { return ICSNCTPDAL.searchInfoByID(ID, dsconn); } catch (Exception ex) { throw ex; }
} #endregion
#region 是否存在
public static bool IsIncluding(string ItemCode, string OPCode, string eqptype, string dsconn) { try { return ICSNCTPDAL.IsIncluding(ItemCode, OPCode, eqptype, dsconn); } catch (Exception ex) { throw ex; }
} #endregion
#region 删除
public static void deleteInfo(List<string> codeList, string dsconn) { try { ICSNCTPDAL.deleteInfo(codeList, dsconn); } catch (Exception ex) { throw ex; } } #endregion
#region 部门审核
public static void depCheck(string id, string dsconn) { try { ICSNCTPDAL.depCheck(id, dsconn); } catch (Exception ex) { throw ex; } } #endregion
#region 工艺部门审核
public static void meCheck(string id, string dsconn) { try { ICSNCTPDAL.meCheck(id, dsconn); } catch (Exception ex) { throw ex; } } #endregion
#region 弃审
public static void DiscardedTrialCheck(string id, string dsconn) { try { ICSNCTPDAL.DiscardedTrialCheck(id, dsconn); } catch (Exception ex) { throw ex; } } #endregion
} }
|