Ejemplo n.º 1
0
        public int DoSaveInventoryItem(InventoryItem inventoryItem, Identification identification)
        {
            logger.Log(LogLevel.Trace, AppLib.GetCaller(logger));

            //Validate Inventory Object
            if (!inventoryItem.ValidateModel())
                throw new FaultException<ServiceFault>(new ServiceFault(inventoryItem.CurrentErrors), new FaultReason(SysVars.InvalidFormat));

            using (InventoryDAO dao = new InventoryDAO())
            {
                return dao.SaveInventoryRecord(inventoryItem, identification.Token, identification.UserId);
            }
        }
Ejemplo n.º 2
0
        public SmartCollection<InventoryItem> DoSearchInventory(string searchString, Collection<SearchItem> searchItems, Identification identification)
        {
            logger.Log(LogLevel.Trace, AppLib.GetCaller(logger));

            using (InventoryDAO dao = new InventoryDAO())
            {
                return dao.SearchInventory(searchString, searchItems, identification);
            }
        }
Ejemplo n.º 3
0
 public int DoRemoveInventoryItemNote(int id, Identification identification)
 {
     logger.Log(LogLevel.Trace, AppLib.GetCaller(logger));
     using (InventoryDAO dao = new InventoryDAO())
     {
         return dao.RemoveInventoryNote(id, identification.UserId);
     }
 }
Ejemplo n.º 4
0
        public InventoryModuleObject DoGetInventoryNotifiers(int id, Identification identification)
        {
            logger.Log(LogLevel.Trace, AppLib.GetCaller(logger));

            using (InventoryDAO dao = new InventoryDAO())
            {
                return dao.GetInventoryNotifiers(id);
            }
        }
Ejemplo n.º 5
0
        public SmartCollection<InventoryItem> DoGetInventoryItemsRecent(int userId)
        {
            logger.Log(LogLevel.Trace, AppLib.GetCaller(logger));

            using (InventoryDAO dao = new InventoryDAO())
            {
                return dao.GetInventoryItemsRecentRecords(userId);
            }
        }
Ejemplo n.º 6
0
        public SmartCollection<ClientNote> DoGetInventoryItemNotes(int parentId)
        {
            logger.Log(LogLevel.Trace, AppLib.GetCaller(logger));

            using (InventoryDAO dao = new InventoryDAO())
            {
                return dao.GetInventoryNotes(parentId);
            }
        }
Ejemplo n.º 7
0
        public InventoryItem DoGetInventoryItem(int id, Guid userToken)
        {
            logger.Log(LogLevel.Trace, AppLib.GetCaller(logger));

            using (InventoryDAO dao = new InventoryDAO())
            {
                return dao.GetInventoryItemRecord(id);
            }
        }