public virtual PickListResult LoadPickListResult(com.Sconit.Entity.MasterData.PickListDetail pickListDetail, com.Sconit.Entity.MasterData.LocationLotDetail locationLotDetail) { return(entityDao.LoadPickListResult(pickListDetail, locationLotDetail)); }
public virtual PickListResult LoadPickListResult(com.Sconit.Entity.MasterData.PickListDetail pickListDetail, com.Sconit.Entity.MasterData.LocationLotDetail locationLotDetail) { string hql = @"from PickListResult entity where entity.PickListDetail.Id = ? and entity.LocationLotDetail.Id = ?"; IList <PickListResult> result = FindAllWithCustomQuery <PickListResult>(hql, new object[] { pickListDetail.Id, locationLotDetail.Id }, new IType[] { NHibernateUtil.Int32, NHibernateUtil.Int32 }); if (result != null && result.Count > 0) { return(result[0]); } else { return(null); } }