public NebimIntegrationController(ISettingService settingService, ILocalizationService localizationService, NebimIntegrationSettings NebimIntegrationSettings) { this._settingService = settingService; this._localizationService = localizationService; this._NebimIntegrationSettings = NebimIntegrationSettings; }
public NebimIntegrationProvider(IProductService productService, ILanguageService languageService, ILocalizationService localizationService, ICategoryService categoryService, IManufacturerService manufacturerService, IPictureService pictureService, ILocalizedEntityService localizedEntityService, ICurrencyService currencyService, CurrencySettings currencySettings, IOrderService orderService, ILogger logger, NebimIntegrationSettings NebimIntegrationSettings) { this._productService = productService; this._languageService = languageService; this._localizationService = localizationService; this._categoryService = categoryService; this._manufacturerService = manufacturerService; this._pictureService = pictureService; this._localizedEntityService = localizedEntityService; this._currencyService = currencyService; this._currencySettings = currencySettings; this._orderService = orderService; this._logger = logger; this._NebimIntegrationSettings = NebimIntegrationSettings; }
public static void ConnectDB(NebimIntegrationSettings settings) { #region settings //UserGroup : Dm //UserName : Web //Password : 1235 //ServerName/IP : XXX.XXX.XXX.XXX. //Database : V3_Daiama Moda //Herry //User Group: hr_by //User Name: k150 //Password: 1234 //Server Name IP: 212.156.133.18 //Database: Herry_v3 #endregion settings if (IsConnected && NebimV3.ApplicationCommon.V3Application.Context.Globals.SqlConnector.SqlConnection.State == System.Data.ConnectionState.Open) { return; } if (IsConnected && NebimV3.ApplicationCommon.V3Application.Context.Globals.SqlConnector.SqlConnection.State != System.Data.ConnectionState.Open) { ResetConnection(); } var userGroup = settings.UserGroup; var userName = settings.UserName; var password = settings.Password; var serverName = settings.ServerNameIP; var database = settings.Database; NebimV3.ApplicationCommon.V3Application.Context.Globals.Initialize(userGroup, userName, password, serverName); NebimV3.ApplicationCommon.V3Application.Context.Globals.CurrentUser.SelectCompany(database); NebimV3.ApplicationCommon.LocalizationHelper.Load(); isConnected = true; }
public OrderManager(NebimIntegrationSettings nebimIntegrationSettings, ILogger logger) { _nebimIntegrationSettings = nebimIntegrationSettings; ConnectionManager.ConnectDB(nebimIntegrationSettings); _logger = logger; }
public ProductManager(NebimIntegrationSettings nebimIntegrationSettings) { ConnectionManager.ConnectDB(nebimIntegrationSettings); }
public void LoadSettings(NebimIntegrationSettings settings) { this._NebimIntegrationSettings = settings; }
public void Connect(NebimIntegrationSettings settings) { ConnectionManager.ConnectDB(settings); }
public OrderPaymentManager(NebimIntegrationSettings nebimIntegrationSettings) { _nebimIntegrationSettings = nebimIntegrationSettings; ConnectionManager.ConnectDB(nebimIntegrationSettings); }
public ProductBulk(NebimIntegrationSettings nebimIntegrationSettings) { }
public CustomerManager(NebimIntegrationSettings nebimIntegrationSettings) { _nebimIntegrationSettings = nebimIntegrationSettings; ConnectionManager.ConnectDB(nebimIntegrationSettings); }