Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using SAPbobsCOM;
- using PR_Backend.Models;
- namespace PR_Backend.Helpers
- {
- public static class DIApi
- {
- public static List<OnlineCompany> companyLoggedIn = new List<OnlineCompany>();
- public static List<OnlineCompany> apvCompanyOnline = new List<OnlineCompany>();
- public static Company _oCompany;
- public static bool _connect;
- public static SAPbobsCOM.Company LoginSAP(string address, string dbName, string userName, string password)
- {
- Company oCompany = new Company();
- oCompany.LicenseServer = address;
- oCompany.language = BoSuppLangs.ln_English;
- oCompany.UseTrusted = false;
- oCompany.DbServerType = BoDataServerTypes.dst_MSSQL2012;
- oCompany.Server = "172.24.11.161";
- oCompany.DbUserName = "sa";
- oCompany.DbPassword = "B1Admin";
- oCompany.CompanyDB = dbName;
- oCompany.UserName = userName;
- oCompany.Password = password;
- return oCompany;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement