Пример #1
0
 public SalesOrderManager(GlobalServerComponent vgConnection, CustomerQuery customerQuery, PostageCalculationParameters postageCalculationParameters)
 {
     _vgConnection = vgConnection;
     _customerQuery = customerQuery;
     _postageCalculationParameters = postageCalculationParameters;
 }
Пример #2
0
        private void InitializeAppSettings()
        {
            _sourceClientName = ConfigurationManager.AppSettings["SourceClientName"].Trim();
            _destinationClientName = ConfigurationManager.AppSettings["DestinationClientName"].Trim();
            _bapiKey = ConfigurationManager.AppSettings["BapiKey"];
            _chainNo = Convert.ToInt32(ConfigurationManager.AppSettings["ChainNo"].Trim());
            _loanReturnNo = Convert.ToInt32(ConfigurationManager.AppSettings["LoanReturnNo"].Trim());

            _postingTemplate = Convert.ToInt32(ConfigurationManager.AppSettings["PostingTemplateNo"].Trim());
            _priceCalcMethodsNo = Convert.ToInt32(ConfigurationManager.AppSettings["PriceCalcMethodsNo"].Trim());
            _stockProfileNo = Convert.ToInt32(ConfigurationManager.AppSettings["StockProfileNo"].Trim());

            _postageCalculationParameters = new PostageCalculationParameters();
            _postageCalculationParameters.PostagePercentage = Convert.ToDouble(ConfigurationManager.AppSettings["PosatagePercentage"]);
            _postageCalculationParameters.ExcludeLinesWithStockProfileNo = Convert.ToInt32(ConfigurationManager.AppSettings["ExcludeLinesWithStockProfileNo"]);
            _postageCalculationParameters.ExcludeLinesWithWareHouseNo = ConfigurationManager.AppSettings["ExcludeLinesWithWareHouseNo"].ToListOfIntegers();
        }