Exemplo n.º 1
0
 public void SaveAllKindsOfTypeInfo(TraceStdInfo item)
 {
     try
     {
         IProductRepository itemRepository = RepositoryFactory.GetInstance().GetRepository<IProductRepository>();
         itemRepository.SaveAllKindsOfTypeInfo(item);
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 2
0
 public void DeleteResult(TraceStdInfo item)
 {
     try
     {
         IProductRepository itemRepository = RepositoryFactory.GetInstance().GetRepository<IProductRepository>();
         itemRepository.DeleteResult(item);
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 3
0
        //public void SaveAllKindsOfTypeInfo(IMES.DataModel.TraceStdInfo item)
        //{
        //    try
        //    {
        //        IProductRepository itemRepository = RepositoryFactory.GetInstance().GetRepository<IProductRepository>();
        //        itemRepository.SaveAllKindsOfTypeInfo(item);
        //    }
        //    catch (Exception)
        //    {
        //        throw;
        //    }
        //}

        public int CheckExistsRecord(TraceStdInfo item)
        {
            try
            {
                int count = 0;
                IProductRepository itemRepository = RepositoryFactory.GetInstance().GetRepository<IProductRepository>();
                count = itemRepository.CheckExistsRecord(item);
                return count;
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemplo n.º 4
0
 public int GetId(TraceStdInfo item)
 {
     int retId = 0;
     try
     {
         IProductRepository itemRepository = RepositoryFactory.GetInstance().GetRepository<IProductRepository>();
         retId = itemRepository.GetId(item);
         return retId;
     }
     catch (Exception)
     {
         throw;
     }
 }