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

74 lines
2.0 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSSoft.Frame.Data.Entity;
using ICSSoft.Frame.Data.DAL;
namespace ICSSoft.Frame.Data.BLL
{
public class ICSINVBusinessBLL
{
#region 新增和修改
public static void Add(FormICSINVBusinessUIModel maInfo, string dsconn)
{
try
{
if (string.IsNullOrWhiteSpace(dsconn))
{
throw new Exception("数据库连接字符串错误");
}
List<FormICSINVBusinessUIModel> maInfoList = new List<FormICSINVBusinessUIModel>() { maInfo };
ICSINVBusinessDAL.Add(maInfoList, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 业务类型代码是否存在
public static bool IsIncluding(string macode, string workpoint,string dsconn)
{
try
{
return ICSINVBusinessDAL.IsIncluding(macode,workpoint, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 通过guid查询
public static FormICSINVBusinessUIModel SearchMAInfoByID(string maid,string dsconn)
{
try
{
List<FormICSINVBusinessUIModel> returnlist = ICSINVBusinessDAL.SearchMAInfoByID(maid, dsconn);
return returnlist[0];
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 删除
public static void deleteInfo(List<string> maidList, string dsconn)
{
try
{
ICSINVBusinessDAL.deleteInfo(maidList, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
}
}