using System; using System.Collections.Generic; using System.Linq; using System.Text; using ICSSoft.Frame.Data.DAL; using ICSSoft.Frame.Data.Entity; using System.Data; namespace ICSSoft.Frame.Data.BLL { public class ICSTBLROUTE2OPBLL { public static void Add(ICSROUTE2OP typeInfo, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } List typeInfoList = new List() { typeInfo }; ICSROUTE2OPDAL.AddAndEdit(typeInfoList, dsconn); } catch (Exception ex) { throw ex; } } public static void AddList(List list, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } ICSROUTE2OPDAL.AddList(list, dsconn); } catch (Exception ex) { throw ex; } } public static DataTable SearchROUTE2OP(string routeid, string dsconn) { try { DataTable returnlist = ICSROUTE2OPDAL.SearchROUTE2OP(routeid, dsconn); return returnlist; } catch (Exception ex) { throw ex; } } public static void deleteInfo(string dsconn, List codeList) { ICSROUTE2OPDAL.deleteInfo(dsconn, codeList); } } }