void Load() { _cacherarameters = new CashierParameters(); if (_paramters.Attributes.Contains("new_SourceToTarget6".ToLower())) _cacherarameters.ParamSourcetotarget6 = _paramters.new_SourceToTarget6 != null ? _paramters.new_SourceToTarget6.Id : (Guid?)null; if (_paramters.Attributes.Contains("new_Cost6".ToLower())) _cacherarameters.ParamCost6 = _paramters.new_Cost6.HasValue ? _paramters.new_Cost6.Value : 0; if (_paramters.Attributes.Contains("new_SourceToTarget7".ToLower())) _cacherarameters.ParamSourcetotarget7 = _paramters.new_SourceToTarget7 != null ? _paramters.new_SourceToTarget7.Id : (Guid?)null; if (_paramters.Attributes.Contains("new_Cost7".ToLower())) _cacherarameters.ParamCost7 = _paramters.new_Cost7.HasValue ? _paramters.new_Cost7.Value : 0; if (_paramters.Attributes.Contains("new_SourceToTarget8".ToLower())) _cacherarameters.ParamSourcetotarget8 = _paramters.new_SourceToTarget8 != null ? _paramters.new_SourceToTarget8.Id : (Guid?)null; if (_paramters.Attributes.Contains("new_Cost8".ToLower())) _cacherarameters.ParamCost8 = _paramters.new_Cost8.HasValue ? _paramters.new_Cost8.Value : 0; if (_paramters.Attributes.Contains("new_SourceToTarget9".ToLower())) _cacherarameters.ParamSourcetotarget9 = _paramters.new_SourceToTarget9 != null ? _paramters.new_SourceToTarget9.Id : (Guid?)null; if (_paramters.Attributes.Contains("new_Cost9".ToLower())) _cacherarameters.ParamCost9 = _paramters.new_Cost9.HasValue ? _paramters.new_Cost9.Value : 0; if (_paramters.Attributes.Contains("new_SourceToTarget10".ToLower())) _cacherarameters.ParamSourcetotarget10 = _paramters.new_SourceToTarget10 != null ? _paramters.new_SourceToTarget10.Id : (Guid?)null; if (_paramters.Attributes.Contains("new_Cost10".ToLower())) _cacherarameters.ParamCost10 = _paramters.new_Cost10.HasValue ? _paramters.new_Cost10.Value : 0; }
void Load() { _cacherarameters = new CashierParameters(); if (_paramters.Attributes.Contains("new_SourceToTarget6".ToLower())) { _cacherarameters.ParamSourcetotarget6 = _paramters.new_SourceToTarget6 != null ? _paramters.new_SourceToTarget6.Id : (Guid?)null; } if (_paramters.Attributes.Contains("new_Cost6".ToLower())) { _cacherarameters.ParamCost6 = _paramters.new_Cost6.HasValue ? _paramters.new_Cost6.Value : 0; } if (_paramters.Attributes.Contains("new_SourceToTarget7".ToLower())) { _cacherarameters.ParamSourcetotarget7 = _paramters.new_SourceToTarget7 != null ? _paramters.new_SourceToTarget7.Id : (Guid?)null; } if (_paramters.Attributes.Contains("new_Cost7".ToLower())) { _cacherarameters.ParamCost7 = _paramters.new_Cost7.HasValue ? _paramters.new_Cost7.Value : 0; } if (_paramters.Attributes.Contains("new_SourceToTarget8".ToLower())) { _cacherarameters.ParamSourcetotarget8 = _paramters.new_SourceToTarget8 != null ? _paramters.new_SourceToTarget8.Id : (Guid?)null; } if (_paramters.Attributes.Contains("new_Cost8".ToLower())) { _cacherarameters.ParamCost8 = _paramters.new_Cost8.HasValue ? _paramters.new_Cost8.Value : 0; } if (_paramters.Attributes.Contains("new_SourceToTarget9".ToLower())) { _cacherarameters.ParamSourcetotarget9 = _paramters.new_SourceToTarget9 != null ? _paramters.new_SourceToTarget9.Id : (Guid?)null; } if (_paramters.Attributes.Contains("new_Cost9".ToLower())) { _cacherarameters.ParamCost9 = _paramters.new_Cost9.HasValue ? _paramters.new_Cost9.Value : 0; } if (_paramters.Attributes.Contains("new_SourceToTarget10".ToLower())) { _cacherarameters.ParamSourcetotarget10 = _paramters.new_SourceToTarget10 != null ? _paramters.new_SourceToTarget10.Id : (Guid?)null; } if (_paramters.Attributes.Contains("new_Cost10".ToLower())) { _cacherarameters.ParamCost10 = _paramters.new_Cost10.HasValue ? _paramters.new_Cost10.Value : 0; } }