using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using ICSSoft.Frame.Data.Entity; using ICSSoft.Frame.Data.DAL; namespace ICSSoft.Frame.Data.BLL { public class ICSForecastBLL { #region 新增和修改 public static void Add(ICSForecast Info, DataTable dt,string Version, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } ICSForecastDAL.Add(Info, dt, Version, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 导入 public static void AddList(DataTable dt, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } ICSForecastDAL.AddList(dt, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 通过ID查询 public static DataSet SearchInfoByID(string ID, string dsconn) { try { return ICSForecastDAL.SearchInfoByID(ID, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 删除 public static void deleteInfo(List IDList, string dsconn) { try { ICSForecastDAL.deleteInfo(IDList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 审核 public static void Check(List IDList, string dsconn) { try { ICSForecastDAL.Check(IDList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 弃审 public static void RefuseCheck(List IDList, string dsconn) { try { ICSForecastDAL.RefuseCheck(IDList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 复审 public static void Review(List IDList, string dsconn) { try { ICSForecastDAL.Review(IDList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 取消复审 public static void ReviewBack(List IDList, string dsconn) { try { ICSForecastDAL.ReviewBack(IDList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 获取物料编码,助记码.客户编码 /// /// 查询a.物料(表0) b.客户编码(表1) /// /// /// public static DataSet GetInvInfoAndCust(string pk_org) { return ICSForecastDAL.GetInvInfoAndCust(pk_org); } #endregion public static void UploadErp(string ids, string dsconn) { ICSForecastDAL.UploadErp(ids, dsconn); } } }