using System; using System.Collections.Generic; using System.Linq; using System.Text; using ICSSoft.Frame.Data.Entity; using ICSSoft.Frame.Data.DAL; using System.Data; namespace ICSSoft.Frame.Data.BLL { public class ICSRdrecord2LOTBLL { #region 新增和修改 public static void Add(List InfoList, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } ICSRdrecord2LOTDAL.Add(InfoList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 更新打印信息 public static void updatePrint(List InfoList, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } ICSRdrecord2LOTDAL.updatePrint(InfoList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 更新打印信息 public static void updateGoodPrint(List InfoList, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } ICSRdrecord2LOTDAL.updateGoodPrint(InfoList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 通过代码、行号查询 public static FormICSRdrecord2LOTUIModel SearchInfo(string CODE, string RowNo, string dsconn) { try { return ICSRdrecord2LOTDAL.SearchInfo(CODE, RowNo, dsconn); } catch (Exception ex) { throw ex; } } #region 原逻辑 #endregion public static FormICSRdrecord2LOTUIModelX Search_Info(string CODE, string RowNo, string dsconn) { try { return ICSRdrecord2LOTDAL.Search_Info(CODE, RowNo, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 通过主表行和子表 #region 原逻辑 //public static DataSet SearchData(string CODE, int RowNo, string dsconn) //{ // try // { // return ICSRdrecord2LOTDAL.SearchData(CODE, RowNo, dsconn); // } // catch (Exception ex) // { // throw ex; // } //} #endregion public static DataSet SearchData(string CODE, string RowNo, string dsconn) { try { return ICSRdrecord2LOTDAL.SearchData(CODE, RowNo, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 删除 public static void deleteInfo(List codeList, string dsconn) { try { ICSRdrecord2LOTDAL.deleteInfo(codeList, dsconn); } catch (Exception ex) { throw ex; } } #endregion } }