Beispiel #1
0
        private void writeInventoryResult(string[] parameters)
        {
            if (documentId == 0 && !initDocument())
                {
                return;
                }

            if (parameters.Length == 2)
                {
                var succ = Program.AramisSystem.FinishCellInventory(documentId, currentCell.Id, currentCellPallets);
                currentCellPallets.Rows.Clear();
                return;
                }

            var startData = new BarcodeData() { StickerId = Convert.ToInt64(parameters[1]) };
            startData.ReadStickerInfo();

            var resultData = new BarcodeData() { StickerId = startData.StickerId, PreviousStickerCode = Convert.ToInt64(parameters[2]) };
            resultData.Cell.Id = Convert.ToInt64(parameters[0]);

            resultData.Nomenclature.Id = Convert.ToInt32(parameters[7]);
            resultData.Tray.Id = Convert.ToInt64(parameters[4]);
            resultData.Liner.Id = Convert.ToInt64(parameters[5]);
            resultData.LinersAmount = Convert.ToInt32(parameters[6]);

            resultData.TotalUnitsQuantity = Convert.ToInt32(parameters[3]);

            currentCell.Id = resultData.Cell.Id;
            currentCellPallets.Rows.Add(startData.StickerId);

            var movementWriter = new TableMovementWriter(startData, resultData);
            bool result = Program.AramisSystem.WriteInventoryResult(documentId, movementWriter.Table);
        }
Beispiel #2
0
        private bool saveMovement()
        {
            if (documentId == 0 && !initDocument())
                {
                return false;
                }

            var movementWriter = new TableMovementWriter(startBarcodeData, finalBarcodeData);
            var success = Program.AramisSystem.WriteMovementResult(documentId, movementWriter.Table);
            if (success)
                {
                startScanNextPallet();
                }

            return success;
        }
Beispiel #3
0
        private bool saveFact()
        {
            if (documentId == 0 && !initDocument())
                {
                return false;
                }

            if (currentBarcodeData == null) return true;

            currentBarcodeData.LinersAmount = linersCount;
            currentBarcodeData.TotalUnitsQuantity = unitsCount + packsCount * currentBarcodeData.UnitsPerBox;

            var movementWriter = new TableMovementWriter(startBarcodeData, currentBarcodeData);
            bool result = Program.AramisSystem.WriteInventoryResult(documentId, movementWriter.Table);

            if (result)
                {
                onPaletSaved(currentBarcodeData.Cell, currentBarcodeData.StickerId);
                }
            return result;
        }
Beispiel #4
0
        private void proceed()
        {
            factPickingData.TotalUnitsQuantity = unitsCount + packsCount * factPickingData.UnitsPerBox;

            var palletNotEmptyNow = totalUnitsQuantityOnPallet != factPickingData.TotalUnitsQuantity;
            if (palletNotEmptyNow)
                {
                factPickingData.LinersAmount = linersCount;
                }

            pickingTaskData.Tray.CopyFrom(factPickingData.Tray);
            pickingTaskData.Liner.CopyFrom(factPickingData.Liner);
            pickingTaskData.LinersAmount = factPickingData.LinersAmount;

            var resultWriter = new TableMovementWriter(pickingTaskData, factPickingData);
            resultWriter.SetStartCell(factPickingData.Cell);

            int _sameWareNextTaskLineNumber;
            var success = Program.AramisSystem.WritePickingResult(documentId, currentLineNumber, resultWriter.Table, factPickingData.Party.Id, out _sameWareNextTaskLineNumber);
            if (success)
                {
                factPickingData = null;
                this.sameWareNextTaskLineNumber = _sameWareNextTaskLineNumber;
                startPalletChoosing(0, 0);
                }
            else if (lastQueryIsSuccessfull)
                {
                "���� ������� �� ���������".Warning();
                }
        }