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 ICSMODEL2ECSGBLL { public static void Add(DataTable dt, string ecsgid, string ecsgcode, string Appconstr) { try { ICSMODEL2ECSGDAL.AddAndEdit(dt, ecsgid, ecsgcode, Appconstr); } catch (Exception ex) { throw ex; } } #region select public static FormICSECSG2ECSUIModel SearchEcg2EcInfoByCode(string ecsgid, string ecsid, string dsconn) { try { List returnlist = ICSECSG2ECSDAL.SearchEcg2EcInfoByCode(ecsgid,ecsid,dsconn); return returnlist[0]; } catch (Exception ex) { throw ex; } } #endregion #region delete public static void delete(List guidList) { ICSMODEL2ECSGDAL.delete(guidList); } #endregion public static DataTable SelectECGId(string str, string wp) { try { return ICSECG2ECDAL.SelectECGId(str, wp); } catch (Exception ex) { throw ex; } } public static DataTable SelectECId(string str, string wp) { try { return ICSECG2ECDAL.SelectECId(str,wp); } catch (Exception ex) { throw ex; } } #region edit public static void Save(List ecidList, List ecgidList) { ICSECSG2ECSDAL.Save(ecidList, ecgidList); } #endregion } }