コード例 #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")));
 }