锐腾搅拌上料功能
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.

84 lines
2.2 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 ICSSSBLL
{
public static void Add(ICSSS typeInfo, string dsconn)
{
try
{
if (string.IsNullOrWhiteSpace(dsconn))
{
throw new Exception("数据库连接字符串错误");
}
List<ICSSS> typeInfoList = new List<ICSSS>() { typeInfo };
ICSSSDAL.AddAndEdit(typeInfoList, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
public static ICSSS SearchPersonInfoByCode(string id, string dsconn)
{
try
{
List<ICSSS> 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<string> codeList)
{
ICSSSDAL.deleteInfo(dsconn, codeList);
}
public static DataTable SelectICSSSCode()
{
return ICSSSDAL.SelectICSSSCode();
}
}
}