Ejemplo n.º 1
0
 public void ResetCache()
 {
     _workspace = null;
     _customSettingCache.Clear();
     _settingCache.Clear();
     _paymentScreenValues         = null;
     _weightBarcodePrefix         = null;
     _autoRoundDiscount           = null;
     _weightBarcodeQuantityLength = null;
     _weightBarcodeItemLength     = null;
     _weightBarcodeItemFormat     = null;
 }
Ejemplo n.º 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]);
 }
Ejemplo n.º 3
0
 private ProgramSetting GetWeightBarcodeQuantityLength()
 {
     return(_weightBarcodeQuantityLength ?? (_weightBarcodeQuantityLength = GetSetting("WeightBarcodeQuantityLength")));
 }
Ejemplo n.º 4
0
 private ProgramSetting GetAutoRoundDiscount()
 {
     return(_autoRoundDiscount ?? (_autoRoundDiscount = GetSetting("AutoRoundDiscount")));
 }
Ejemplo n.º 5
0
 private ProgramSetting GetWeightBarcodePrefix()
 {
     return(_weightBarcodePrefix ?? (_weightBarcodePrefix = GetSetting("WeightBarcodePrefix")));
 }
Ejemplo n.º 6
0
 public ProgramSetting GetPaymentScreenValues()
 {
     return(_paymentScreenValues ?? (_paymentScreenValues = GetSetting("PaymentScreenValues")));
 }
Ejemplo n.º 7
0
 private ProgramSetting GetQuantitySeparators()
 {
     return(_quantitySeparators ?? (_quantitySeparators = GetSetting("QuantitySeparators")));
 }
Ejemplo n.º 8
0
 public ProgramSetting GetUserInfo()
 {
     return(_userInfo ?? (_userInfo = GetSetting("UserInfo")));
 }
Ejemplo n.º 9
0
 private ProgramSetting GetWeightBarcodeItemFormat()
 {
     return(_weightBarcodeItemFormat ?? (_weightBarcodeItemFormat = GetSetting("WeightBarcodeItemFormat")));
 }