华恒Mes鼎捷代码
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.

65 lines
1.6 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSSoft.Frame.Data.DAL;
using ICSSoft.Frame.Data.Entity;
namespace ICSSoft.Frame.Data.BLL
{
public class ICSITEMROUTE2OPBLL
{
#region 删除
public static void deleteInfo(List<string> codeList, string dsconn)
{
try
{
ICSITEMROUTE2OPDAL.deleteInfo(codeList, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 新增和修改
public static void Add(FormICSITEMROUTE2OPUIModel Info, string dsconn)
{
try
{
if (string.IsNullOrWhiteSpace(dsconn))
{
throw new Exception("数据库连接字符串错误");
}
List<FormICSITEMROUTE2OPUIModel> InfoList = new List<FormICSITEMROUTE2OPUIModel>() { Info };
ICSITEMROUTE2OPDAL.Add(InfoList, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
//0819
#region 根据工艺路线编码和产品编码查询工序信息
public static List<ICSITEMROUTE2OP> selectinfobycode(string ItemCode, string RouteCode, string dsconn)
{
try
{
return ICSITEMROUTE2OPDAL.selectinfobycode(ItemCode, RouteCode, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
}
}