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 ICSTPBLL { public static void Add(ICSTP typeInfo, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } List typeInfoList = new List() { typeInfo }; ICSTPDal.AddAndEdit(typeInfoList, dsconn); } catch (Exception ex) { throw ex; } } public static ICSTP SearchPersonInfoByCode(string id, string dsconn) { try { List returnlist = ICSTPDal.SearchPersonInfoByCode(id, dsconn); return returnlist[0]; } catch (Exception ex) { throw ex; } } public static DataTable SelectShiftTypeCode() { return ICSTPDal.SelectShiftTypeCode(); } public static DataTable SelectShiftCode(string str) { return ICSTPDal.SelectShiftCode(str); } public static DataTable SelectTPCode() { return ICSTPDal.SelectTPCode(); } public static DataTable SelectSTTPID(string str) { return ICSTPDal.SelectSTTPID(str); } public static DataTable SelectSTPID(string str) { return ICSTPDal.SelectSTPID(str); } public static DataTable SelectBegTime(string str) { return ICSTPDal.SelectBegTime(str); } public static DataTable SelectEndTime(string str) { return ICSTPDal.SelectEndTime(str); } public static DataTable SelectTime() { return ICSTPDal.SelectTime(); } public static void deleteInfo(string dsconn, List codeList) { ICSTPDal.deleteInfo(dsconn, codeList); } public static DataTable SelectSTTPID1(string str) { return ICSTPDal.SelectSTTPID1(str); } public static DataTable SelectSTPID1(string str) { return ICSTPDal.SelectSTPID1(str); } public static DataTable SelectTPTime(string shifttype,string shift) { return ICSTPDal.SelectTPTime(shifttype,shift); } public static DataTable SelectTPTime1() { return ICSTPDal.SelectTPTime1(); } public static DataTable SelectIsOverDay(string str) { return ICSTPDal.SelectIsOverDay(str); } } }