Esempio n. 1
0
        public virtual RoutingDetail LoadRoutingDetail(com.Sconit.Entity.MasterData.Routing routing, Int32 operation, String reference)
        {
            string hql = @"from RoutingDetail entity where entity.Routing.Code = ? and entity.Operation = ? and entity.Reference = ?";
            IList <RoutingDetail> result = FindAllWithCustomQuery <RoutingDetail>(hql, new object[] { routing.Code, operation, reference }, new IType[] { NHibernateUtil.String, NHibernateUtil.Int32, NHibernateUtil.String });

            if (result != null && result.Count > 0)
            {
                return(result[0]);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 2
0
 public virtual RoutingDetail LoadRoutingDetail(com.Sconit.Entity.MasterData.Routing routing, Int32 operation, String reference)
 {
     return(entityDao.LoadRoutingDetail(routing, operation, reference));
 }