Пример #1
0
 public void ResetCache()
 {
     _workspace = null;
     _customSettingCache.Clear();
     _settingCache.Clear();
     _paymentScreenValues         = null;
     _weightBarcodePrefix         = null;
     _autoRoundDiscount           = null;
     _weightBarcodeQuantityLength = null;
     _weightBarcodeItemLength     = null;
     _weightBarcodeItemFormat     = null;
 }
Пример #2
0
 public ProgramSetting ReadLocalSetting(string settingName)
 {
     if (!_customSettingCache.ContainsKey(settingName))
     {
         var p = new ProgramSettingValue {
             Name = settingName
         };
         var getter = new ProgramSetting(p);
         _customSettingCache.Add(settingName, getter);
     }
     return(_customSettingCache[settingName]);
 }
Пример #3
0
 private ProgramSetting GetWeightBarcodeQuantityLength()
 {
     return(_weightBarcodeQuantityLength ?? (_weightBarcodeQuantityLength = GetSetting("WeightBarcodeQuantityLength")));
 }
Пример #4
0
 private ProgramSetting GetAutoRoundDiscount()
 {
     return(_autoRoundDiscount ?? (_autoRoundDiscount = GetSetting("AutoRoundDiscount")));
 }
Пример #5
0
 private ProgramSetting GetWeightBarcodePrefix()
 {
     return(_weightBarcodePrefix ?? (_weightBarcodePrefix = GetSetting("WeightBarcodePrefix")));
 }
Пример #6
0
 public ProgramSetting GetPaymentScreenValues()
 {
     return(_paymentScreenValues ?? (_paymentScreenValues = GetSetting("PaymentScreenValues")));
 }
Пример #7
0
 private ProgramSetting GetQuantitySeparators()
 {
     return(_quantitySeparators ?? (_quantitySeparators = GetSetting("QuantitySeparators")));
 }
Пример #8
0
 public ProgramSetting GetUserInfo()
 {
     return(_userInfo ?? (_userInfo = GetSetting("UserInfo")));
 }
Пример #9
0
 private ProgramSetting GetWeightBarcodeItemFormat()
 {
     return(_weightBarcodeItemFormat ?? (_weightBarcodeItemFormat = GetSetting("WeightBarcodeItemFormat")));
 }