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

69 lines
1.7 KiB

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<ICSROUTE2OP> typeInfoList = new List<ICSROUTE2OP>() { typeInfo };
ICSROUTE2OPDAL.AddAndEdit(typeInfoList, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
public static void AddList(List<ICSROUTE2OP> 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<string> codeList)
{
ICSROUTE2OPDAL.deleteInfo(dsconn, codeList);
}
}
}