private int LinecountOrganizerHeaderSubLabelConfigured() { FieldControl fieldControl = ConfigurationUnitStore.DefaultStore.FieldControlByNameFromGroup("Details", this.ExpandConfig.FieldGroupName); if (fieldControl != null) { var fieldMapping = fieldControl.FunctionNames(); if (fieldMapping.ContainsKey("OrganizerHeaderSubLabel")) { return(fieldMapping["OrganizerHeaderSubLabel"].Attributes.LineCount); } } return(0); }
/// <summary> /// Initializes a new instance of the <see cref="UPSEPricingConditionBase"/> class. /// </summary> /// <param name="row">The row.</param> /// <param name="fieldControl">The field control.</param> /// <param name="pricingSet">The pricing set.</param> public UPSEPricingConditionBase(UPCRMResultRow row, FieldControl fieldControl, UPSEPricingSet pricingSet) : this(row.RecordIdentificationAtIndex(0), fieldControl.FunctionNames(row), pricingSet) { }
/// <summary> /// Initializes a new instance of the <see cref="UPSEListingController"/> class. /// </summary> /// <param name="recordIdentification">The record identification.</param> /// <param name="parameters">The parameters.</param> /// <param name="serialEntry">The serial entry.</param> /// <param name="theDelegate">The delegate.</param> public UPSEListingController(string recordIdentification, Dictionary <string, object> parameters, UPSerialEntry serialEntry, UPSEListingControllerDelegate theDelegate) { this.fastRequest = ServerSession.CurrentSession.IsEnterprise; this.LinkRecordIdentification = recordIdentification; this.RootRecordIdentification = recordIdentification; this.SerialEntry = serialEntry; string listingControlName = parameters.ValueOrDefault("ListingControlName") as string; string listingOwnerFieldGroupName = parameters.ValueOrDefault("ListingOwnerFieldGroupName") as string; string relatedListingOwnersConfigName = parameters.ValueOrDefault("RelatedListingOwnersConfigName") as string; string distinctListingFunctionNamesString = parameters.ValueOrDefault("DistinctListingFunctionNames") as string; this.rowColumnsForFunctionNames = new Dictionary <string, UPSEColumn>(); if (!string.IsNullOrEmpty(distinctListingFunctionNamesString)) { this.DistinctListingFunctionNames = distinctListingFunctionNamesString.Split(',').ToList(); } string listingApplyHierarchyString = parameters.ValueOrDefault("ApplyHierarchy") as string; if (!string.IsNullOrEmpty(listingControlName)) { List <UPSEListingFieldMatch> hierarchyItemArray = new List <UPSEListingFieldMatch>(); var hierarchyItemStrings = listingApplyHierarchyString.Split(';'); int index = 0; foreach (string itemStrings in hierarchyItemStrings) { if (string.IsNullOrEmpty(itemStrings)) { continue; } hierarchyItemArray.Add(new UPSEListingFieldMatch(index++, itemStrings)); } this.ListingFieldMatchHierarchy = hierarchyItemArray; } string destinationFieldFunctionNameString = parameters.ValueOrDefault("DestinationFieldFunctionNames") as string; if (!string.IsNullOrEmpty(destinationFieldFunctionNameString)) { this.DestinationFieldFunctionNames = destinationFieldFunctionNameString.Split(',').ToList(); } this.RootFieldValues = parameters.ValueOrDefault("RecordFieldValues") as Dictionary <string, object>; IConfigurationUnitStore configStore = ConfigurationUnitStore.DefaultStore; this.ListingOwnerFieldGroup = configStore.FieldControlByNameFromGroup("List", listingOwnerFieldGroupName); this.RootListingOwnerMapping = this.ListingOwnerFieldGroup.FunctionNames(); this.RelatedListingOwnersSearch = configStore.SearchAndListByName(relatedListingOwnersConfigName); FieldControl fieldControl = configStore.FieldControlByNameFromGroup("List", this.RelatedListingOwnersSearch.FieldGroupName); this.ListingOwnerMapping = fieldControl.FunctionNames(); this.ListingSearch = configStore.SearchAndListByName(listingControlName); fieldControl = configStore.FieldControlByNameFromGroup("List", this.ListingSearch.FieldGroupName); this.ListingMapping = fieldControl.FunctionNames(); if (this.ListingMapping.Count > 0) { Dictionary <string, string> listingKeyForFieldKey = new Dictionary <string, string>(this.ListingMapping.Count); foreach (string key in this.ListingMapping.Keys) { UPConfigFieldControlField field = this.ListingMapping[key]; listingKeyForFieldKey[$"{field.InfoAreaId}.{field.FieldId}"] = key; } this.ListingFieldToKey = listingKeyForFieldKey; } this.TheDelegate = theDelegate; }
/// <summary> /// Initializes a new instance of the <see cref="UPSEPricingCondition"/> class. /// </summary> /// <param name="row">The row.</param> /// <param name="fieldControl">The field control.</param> /// <param name="bundleKeyIndex">Index of the bundle key.</param> /// <param name="pricingSet">The pricing set.</param> public UPSEPricingCondition(UPCRMResultRow row, FieldControl fieldControl, int bundleKeyIndex, UPSEPricingSet pricingSet) : this(row.RecordIdentificationAtIndex(0), fieldControl.FunctionNames(row), bundleKeyIndex > 0 ? row.RecordIdentificationAtIndex(bundleKeyIndex) : null, pricingSet) { }