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.
|
|
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ICSSoft.Frame.Data.Entity; using ICSSoft.Frame.Data.DAL; using ICSSoft.Base.Config.AppConfig; using System.Data;
namespace ICSSoft.Frame.Data.BLL { public class ICSFACTORYBLL { #region 新增和修改
public static void Add(FormICSFactoryUIModel factoryInfo, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } List<FormICSFactoryUIModel> factoryInfoList = new List<FormICSFactoryUIModel>() { factoryInfo }; ICSFACTORYDAL.Add(factoryInfoList, dsconn);
} catch (Exception ex) { throw ex; } } #endregion
#region 通过工厂代码查询
public static FormICSFactoryUIModel SearchFactoryInfoByCode(string FACCODE, string dsconn) { try { List<FormICSFactoryUIModel> returnlist = ICSFACTORYDAL.SearchFactoryInfoByCode(FACCODE, dsconn); return returnlist[0]; } catch (Exception ex) { throw ex; } } #endregion
#region 工厂代码是否存在
public static bool IsIncluding(string FACCODE, string dsconn) { try { return ICSFACTORYDAL.IsIncluding(FACCODE, dsconn); } catch (Exception ex) { throw ex; }
} #endregion
#region 判断是否在产线中
public static bool isIncludingInSeg(List<string> idList, string dsconn) { try { return ICSFACTORYDAL.isIncludingInSeg(idList, dsconn); } catch (Exception ex) { throw ex; }
} #endregion
#region 删除
public static void deleteInfo(List<string> codeList, string dsconn) { try { ICSFACTORYDAL.deleteInfo(codeList, dsconn); } catch (Exception ex) { throw ex; }
} #endregion
#region 查询最大的工厂代码
public static string SearchMaxCode(string dsconn) { return ICSFACTORYDAL.SearchMaxCode(dsconn); } #endregion
} }
|