예제 #1
0
        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 });
        }
예제 #2
0
 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);
 }
예제 #3
0
        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);
            }
        }
예제 #4
0
 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));
 }