/// <summary> /// Serials the entry information from definition serial entry. /// </summary> /// <param name="definition">The definition.</param> /// <param name="serialEntry">The serial entry.</param> /// <returns></returns> public static UPSerialEntryInfo SerialEntryInfoFromDefinitionSerialEntry(Dictionary <string, string> definition, UPSerialEntry serialEntry) { string name = definition["name"]; UPSerialEntryInfo serialEntryInfo = null; if (name == "Pricing") { //serialEntryInfo = new UPSerialEntryPricingInfo(definition, serialEntry); } else { serialEntryInfo = UPSerialEntrySourceRowInfo.Create(definition, serialEntry); } string verticalLayoutString = definition.ValueOrDefault("verticalRows"); if (!string.IsNullOrEmpty(verticalLayoutString)) { serialEntryInfo.VerticalRows = Convert.ToBoolean(verticalLayoutString); } return(serialEntryInfo); }
protected UPSerialEntryInfoResult(UPSerialEntryInfo info) { this.Info = info; }
/// <summary> /// Initializes a new instance of the <see cref="UPSerialEntryInfoResult"/> class. /// </summary> /// <param name="rows">The rows.</param> /// <param name="info">The information.</param> public UPSerialEntryInfoResult(List <UPSerialEntryInfoRowFromCRMResultRow> rows, UPSerialEntryInfo info) { this.Rows = rows; this.Info = info; }