public void SaveHistory(OperationHistory operationType, Guid operationId,
                                int brIsoId, int brId, int vId, int v2Id, int count, string details, Tuple <string, string> keys)
        {
            IScanService client = null;

            try
            {
                client = ScanServiceClient.CreateProxy(Program.SCAN_URL);
                client.SaveHistory(Program.currentUser.CountryID, Program.currentUser.UserID, operationType, operationId, brIsoId, brId, vId, v2Id, count, details,
                                   keys.Item1, keys.Item2);
            }
            finally
            {
                ((IDisposable)client).DisposeSf();
            }
        }
        public void LogOperation(OperationHistory operation, Guid session, int countryId, int branchId, int voucherId,
                                 int voucher2Id = 0, int count = 0, string message = null)
        {
#if SCANNING
            IScanService client = null;
            try
            {
                client = ScanServiceClient.CreateProxy(Program.SCAN_IP);
                var keys = Security.CreateInstance().GenerateSecurityKeys();


                client.SaveHistory(Program.currentUser.CountryID, Program.currentUser.UserID,
                                   operation, session, countryId, branchId, voucherId, voucher2Id, count, message, keys.Item1, keys.Item2);
            }
            finally
            {
                ((IDisposable)client).DisposeSf();
            }
#endif
        }