Advertisement
Guest User

Untitled

a guest
Apr 15th, 2020
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.93 KB | None | 0 0
  1. using System;
  2.  
  3. namespace SubiektGT
  4. {
  5.     class Program
  6.     {
  7.         [STAThread]
  8.         static void Main(string[] args)
  9.         {
  10.             var gt = new InsERT.GT
  11.             {
  12.                 Produkt = InsERT.ProduktEnum.gtaProduktSubiekt,
  13.                 Serwer = "(local)\\InsERTGT",
  14.                 Baza = "Test",
  15.                 Autentykacja = InsERT.AutentykacjaEnum.gtaAutentykacjaMieszana,
  16.                 Uzytkownik = "sa",
  17.                 UzytkownikHaslo = "vega",
  18.                 Operator = "Szef",
  19.                 OperatorHaslo = ""
  20.             };
  21.             var sgt = (InsERT.Subiekt)gt.Uruchom((int)InsERT.UruchomDopasujEnum.gtaUruchomDopasuj, (int)InsERT.UruchomEnum.gtaUruchom);
  22.             var towary = sgt.Towary; //w tej linii dostaje error System.Runtime.InteropServices.COMException: 'Brak ważnej licencji Sfery i/lub stowarzyszonego produktu w podmiocie.'
  23.             Console.ReadLine();
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement