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.
104 lines
2.8 KiB
104 lines
2.8 KiB
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<ICSTP> typeInfoList = new List<ICSTP>() { typeInfo };
|
|
ICSTPDal.AddAndEdit(typeInfoList, dsconn);
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static ICSTP SearchPersonInfoByCode(string id, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
List<ICSTP> 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<string> 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);
|
|
}
|
|
}
|
|
}
|