Ejemplo n.º 1
0
        public bool ComplateInventory(long documentId, bool forceCompletion, out string errorMessage)
        {
            var inventory = new Inventory() { ReadingId = documentId };
            errorMessage = string.Empty;

            inventory.State = StatesOfDocument.Completed;
            return inventory.Write() == WritingResult.Success;
        }
Ejemplo n.º 2
0
        public bool GetNewInventoryId(out long documentId)
        {
            var doc = new Inventory();
            doc.SetRef("Responsible", getUserId());
            doc.Date = SystemConfiguration.ServerDateTime;
            var writeResult = doc.Write();

            documentId = doc.Id;
            return writeResult == WritingResult.Success;
        }