using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using ICSSoft.Frame.Data.DAL; using ICSSoft.Frame.Data.Entity; namespace ICSSoft.Frame.Data.BLL { public class ICSSSBLL { public static void Add(ICSSS typeInfo, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } List typeInfoList = new List() { typeInfo }; ICSSSDAL.AddAndEdit(typeInfoList, dsconn); } catch (Exception ex) { throw ex; } } public static ICSSS SearchPersonInfoByCode(string id, string dsconn) { try { List returnlist = ICSSSDAL.SearchPersonInfoByCode(id, dsconn); return returnlist[0]; } catch (Exception ex) { throw ex; } } public static DataTable SelectSegCode() { return ICSSSDAL.SelectSegCode(); } public static DataTable SelectSegCode(string str) { return ICSSSDAL.SelectSegCode(str); } public static DataTable SelectSegId(string str) { return ICSSSDAL.SelectSegId(str); } public static DataTable SelectShiftTypeCode() { return ICSSSDAL.SelectShiftTypeCode(); } public static DataTable SelectShiftTypeId1(string str) { return ICSSSDAL.SelectShiftTypeId1(str); } public static DataTable SelectShiftTypeCode(string str) { return ICSSSDAL.SelectShiftTypeCode(str); } public static DataTable SelectShiftTypeId(string str) { return ICSSSDAL.SelectShiftTypeId(str); } public static void deleteInfo(string dsconn, List codeList) { ICSSSDAL.deleteInfo(dsconn, codeList); } public static DataTable SelectICSSSCode() { return ICSSSDAL.SelectICSSSCode(); } } }