コード例 #1
0
 private static void SetParams(AdonService service)
 {
     service.Server       = @"INVENT036";
     service.CompanyDB    = "SBO_ENGESOFTWARE_TESTE";
     service.DbUserName   = "******";
     service.DbPassword   = "******";
     service.DbServerType = BoDataServerTypes.dst_MSSQL2017;
     service.UserName     = "******";
     service.Password     = "******";
 }
コード例 #2
0
        static void Main(string[] args)
        {
            try
            {
                Console.WriteLine("Informe o código da cotação para realizar o fechamento das linhas!");
                var docEntry = Console.ReadLine();

                var service = new AdonService();
                SetParams(service);
                service.ConnectSbo();
                service.CloseLinesOfQuotation(Convert.ToInt32(docEntry));

                PrintSuccess();
            }
            catch (Exception ex)
            {
                PrintMessageError(ex.Message);
            }
        }