using System; using System.Collections.Generic; using System.Linq; using System.Text; using ICSSoft.Frame.Data.Entity; using ICSSoft.Frame.Data.DAL; //using ZHCSoft.Base.Config.AppConfig; using System.Data; namespace ICSSoft.Frame.Data.BLL { public class ICSDWGBLL { #region 删除 public static void deleteInfo(List op2userList, string dsconn) { try { ICSDWGDAL.deleteInfo(op2userList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 新增和修改 public static void Add(int flag, ICSDWG Info, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } List InfoList = new List() { Info }; ICSDWGDAL.Add(flag, 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 ICSDWGDAL.AddList(InfoList, dsconn); // } // catch (Exception ex) // { // throw ex; // } //} #endregion #region 查询工序人员信息 //public static ICSDWG SearchInfoByCode(string opcode, string usercode, string dsconn) //{ // try // { // List returnlist = ICSDWGDAL.SearchInfoByCode(opcode, usercode, dsconn); // return returnlist[0]; // } // catch (Exception ex) // { // throw ex; // } //} #endregion #region 通过ID查询 public static DataTable searchInfoByID(string ID, string dsconn) { try { return ICSDWGDAL.searchInfoByID(ID, dsconn); } catch (Exception ex) { throw ex; } } #endregion } }