public virtual void DeleteUomConversion(com.Sconit.Entity.MasterData.Item item, com.Sconit.Entity.MasterData.Uom alterUom, com.Sconit.Entity.MasterData.Uom baseUom) { string hql = @"from UomConversion entity where entity.Item.Code = ? and entity.AlterUom.Code = ? and entity.BaseUom.Code = ?"; Delete(hql, new object[] { item.Code, alterUom.Code, baseUom.Code }, new IType[] { NHibernateUtil.String, NHibernateUtil.String, NHibernateUtil.String }); }
public virtual void DeleteUomConversion(com.Sconit.Entity.MasterData.Item item, com.Sconit.Entity.MasterData.Uom alterUom, com.Sconit.Entity.MasterData.Uom baseUom) { entityDao.DeleteUomConversion(item, alterUom, baseUom); }
public virtual UomConversion LoadUomConversion(com.Sconit.Entity.MasterData.Item item, com.Sconit.Entity.MasterData.Uom alterUom, com.Sconit.Entity.MasterData.Uom baseUom) { string hql = @"from UomConversion entity where entity.Item.Code = ? and entity.AlterUom.Code = ? and entity.BaseUom.Code = ?"; IList <UomConversion> result = FindAllWithCustomQuery <UomConversion>(hql, new object[] { item.Code, alterUom.Code, baseUom.Code }, new IType[] { NHibernateUtil.String, NHibernateUtil.String, NHibernateUtil.String }); if (result != null && result.Count > 0) { return(result[0]); } else { return(null); } }
public virtual UomConversion LoadUomConversion(com.Sconit.Entity.MasterData.Item item, com.Sconit.Entity.MasterData.Uom alterUom, com.Sconit.Entity.MasterData.Uom baseUom) { return(entityDao.LoadUomConversion(item, alterUom, baseUom)); }