public void Dump() { Console.WriteLine("---- Product: " + Id); Console.WriteLine(" Name: " + ProductName ?? ""); Console.WriteLine(" Shared Id: " + SharedProductId ?? ""); Console.WriteLine(" Type: " + ProductType ?? ""); Console.WriteLine(" DevType: " + DeviceType ?? ""); Console.WriteLine(" FWVer: " + FirmwareVersion ?? ""); Console.WriteLine(" isTestSign:" + IsTestSign ?? ""); Console.WriteLine(" isFlightSign:" + IsFlightSign ?? ""); Console.WriteLine(" isCommitted:" + IsCommitted ?? ""); Console.WriteLine(" isExtensionInf:" + IsExtensionInf ?? ""); Console.WriteLine(" isRetpolineCompiled:" + IsRetpolineCompiled ?? ""); Console.WriteLine(" createdBy: " + CreatedBy ?? ""); Console.WriteLine(" updatedBy: " + UpdatedBy ?? ""); Console.WriteLine(" createdDateTime:" + CreatedDateTime.ToString("s", CultureInfo.CurrentCulture)); Console.WriteLine(" updatedDateTime:" + UpdatedDateTime.ToString("s", CultureInfo.CurrentCulture)); Console.WriteLine(" announcementDate:" + AnnouncementDate.ToString("s", CultureInfo.CurrentCulture)); Console.WriteLine(" testHarness:" + TestHarness ?? ""); Console.WriteLine(" Signatures: "); foreach (string sig in RequestedSignatures) { Console.WriteLine(" " + sig); } Console.WriteLine(" deviceMetadataIds: "); if (DeviceMetadataIds != null) { foreach (string sig in DeviceMetadataIds) { Console.WriteLine(" " + sig); } } Console.WriteLine(" selectedProductTypes: "); if (SelectedProductTypes != null) { foreach (KeyValuePair <string, string> entry in SelectedProductTypes) { Console.WriteLine(" " + entry.Key + ":" + entry.Value); } } Console.WriteLine(" marketingNames: "); if (MarketingNames != null) { foreach (string sig in MarketingNames) { Console.WriteLine(" " + sig); } } Console.WriteLine(); }
/// <summary> /// 获得上市公司高管薪酬及持股信息字符串 /// </summary> /// <returns></returns> public override string ToString() { string str = $"[{CodeTS}]{Name}\n"; str += $"公告日期: {AnnouncementDate?.ToString("yyyy-MM-dd")}\n"; str += $"截止日期: {EndDate?.ToString("yyyy-MM-dd")}\n"; str += $"职务:{Position}\n"; str += $"薪酬: {Rewards} 元\n"; str += $"持股: {Shareholding}\n"; return(str); }
/// <summary> /// 获得上市公司高管信息字符串 /// </summary> /// <returns></returns> public override string ToString() { string str = $"[{CodeTS}]{Name}\n"; str += $"公告日期: {AnnouncementDate?.ToString("yyyy-MM-dd")}\n"; str += $"性别: {Enum.GetName(typeof(Gender), Gender)}\n"; str += $"职务:{Position}({PositionType})\n"; str += $"学历: {Education}\n"; str += $"国籍: {Nationality}\n"; str += $"出生年月: {Birthday?.ToString("yyyy-MM")}({(int)((DateTime.Today - (Birthday??DateTime.Now)).TotalDays / 365)})\n"; str += $"上任日期: {AppointmentDate?.ToString("yyyy-MM-dd")}\n"; str += $"离任日期: {DepartureDate?.ToString("yyyy-MM-dd")}\n"; str += $"个人简历: {Resume}\n"; return(str); }
/// <summary> /// Converts the data to TSV /// </summary> /// <returns>String of TSV</returns> /// <remarks>Parsable by the constructor should you need to recreate the object from TSV</remarks> public override string ToLine() { return(string.Join("\t", TimeProcessedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"), TransactionID, EventType == null ? null : JsonConvert.SerializeObject(EventType).Replace("\"", ""), LastUpdate.ToStringInvariant("yyyyMMdd"), LastIDsUpdate?.ToStringInvariant("yyyyMMdd"), ISIN, USDMarketCap, CompanyID, ICBIndustry, ICBSuperSector, ICBSector, ICBSubSector, ICBCode, CompanyName, PreviousResultsAnnouncementDate?.ToStringInvariant("yyyyMMdd"), NextResultsAnnouncementsDate?.ToStringInvariant("yyyyMMdd"), NextCloseBegin?.ToStringInvariant("yyyyMMdd"), LastCloseEnded?.ToStringInvariant("yyyyMMdd"), SecurityDescription, TickerCountry, TickerSymbol, AnnouncementDate?.ToStringInvariant("yyyyMMdd"), TimeReleased?.ToStringInvariant("yyyyMMdd HH:mm:ss"), TimeProcessed?.ToStringInvariant("yyyyMMdd HH:mm:ss"), TimeReleasedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"), AnnouncedIn, BuybackDate?.ToStringInvariant("yyyyMMdd"), Execution == null ? null : JsonConvert.SerializeObject(Execution).Replace("\"", ""), ExecutionEntity == null ? null : JsonConvert.SerializeObject(ExecutionEntity).Replace("\"", ""), ExecutionHolding == null ? null : JsonConvert.SerializeObject(ExecutionHolding).Replace("\"", ""), Currency, ExecutionPrice, Amount, GBPValue, EURValue, USDValue, NoteText, BuybackPercentage, VolumePercentage, ConversionRate, AmountAdjustedFactor, PriceAdjustedFactor, TreasuryHolding)); }
/// <summary> /// Converts the data to CSV /// </summary> /// <returns>String of CSV</returns> /// <remarks>Parsable by the constructor should you need to recreate the object from CSV</remarks> public override string ToLine() { return(string.Join("\t", TransactionID, BuybackType, LastUpdate.ToString("yyyyMMdd"), LastIDsUpdate?.ToString("yyyyMMdd"), ISIN, USDMarketCap, CompanyID, ICBIndustry, ICBSuperSector, ICBSector, ICBSubSector, ICBCode, CompanyName, PreviousResultsAnnouncementDate?.ToString("yyyyMMdd"), NextResultsAnnouncementsDate?.ToString("yyyyMMdd"), NextCloseBegin?.ToString("yyyyMMdd"), LastCloseEnded?.ToString("yyyyMMdd"), SecurityDescription, TickerCountry, TickerSymbol, AnnouncementDate?.ToString("yyyyMMdd"), TimeReleased?.ToString("yyyyMMdd HH:mm:ss"), TimeProcessed?.ToString("yyyyMMdd HH:mm:ss"), TimeReleasedUtc?.ToString("yyyyMMdd HH:mm:ss"), TimeProcessedUtc?.ToString("yyyyMMdd HH:mm:ss"), AnnouncedIn, BuybackDate?.ToString("yyyyMMdd"), BuybackVia, BuybackBy, HoldingType, Currency, Price, TransactionAmount, GBPValue, EURValue, USDValue, NoteText, BuybackPercentage, VolumePercentage, ConversionRate, AmountAdjustedFactor, PriceAdjustedFactor, TreasuryHolding)); }
/// <summary> /// Converts the data to TSV /// </summary> /// <returns>String of TSV</returns> /// <remarks>Parsable by the constructor should you need to recreate the object from TSV</remarks> public override string ToLine() { return(string.Join("\t", TimeProcessedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"), TransactionID, JsonConvert.SerializeObject(EventType).Replace("\"", ""), LastUpdate.ToStringInvariant("yyyyMMdd"), LastIDsUpdate?.ToStringInvariant("yyyyMMdd"), ISIN, USDMarketCap, CompanyID, ICBIndustry, ICBSuperSector, ICBSector, ICBSubSector, ICBCode, CompanyName, PreviousResultsAnnouncementDate?.ToStringInvariant("yyyyMMdd"), NextResultsAnnouncementsDate?.ToStringInvariant("yyyyMMdd"), NextCloseBegin?.ToStringInvariant("yyyyMMdd"), LastCloseEnded?.ToStringInvariant("yyyyMMdd"), SecurityDescription, TickerCountry, TickerSymbol, AnnouncementDate?.ToStringInvariant("yyyyMMdd"), TimeReleased?.ToStringInvariant("yyyyMMdd HH:mm:ss"), TimeProcessed?.ToStringInvariant("yyyyMMdd HH:mm:ss"), TimeReleasedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"), AnnouncedIn, JsonConvert.SerializeObject(Execution).Replace("\"", ""), JsonConvert.SerializeObject(ExecutionEntity).Replace("\"", ""), JsonConvert.SerializeObject(ExecutionHolding).Replace("\"", ""), Amount, ValueCurrency, AmountValue, Percentage, AuthorizationStartDate?.ToStringInvariant("yyyyMMdd"), AuthorizationEndDate?.ToStringInvariant("yyyyMMdd"), PriceCurrency, MinimumPrice, MaximumPrice, NoteText)); }
/// <summary> /// Converts the data to CSV /// </summary> /// <returns>String of CSV</returns> /// <remarks>Parsable by the constructor should you need to recreate the object from CSV</remarks> public override string ToLine() { return(string.Join("\t", TransactionID, BuybackType, LastUpdate.ToStringInvariant("yyyyMMdd"), LastIDsUpdate?.ToStringInvariant("yyyyMMdd"), ISIN, USDMarketCap, CompanyID, ICBIndustry, ICBSuperSector, ICBSector, ICBSubSector, ICBCode, CompanyName, PreviousResultsAnnouncementDate?.ToStringInvariant("yyyyMMdd"), NextResultsAnnouncementsDate?.ToStringInvariant("yyyyMMdd"), NextCloseBegin?.ToStringInvariant("yyyyMMdd"), LastCloseEnded?.ToStringInvariant("yyyyMMdd"), SecurityDescription, TickerCountry, TickerSymbol, AnnouncementDate?.ToStringInvariant("yyyyMMdd"), TimeReleased?.ToStringInvariant("yyyyMMdd HH:mm:ss"), TimeProcessed?.ToStringInvariant("yyyyMMdd HH:mm:ss"), TimeReleasedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"), TimeProcessedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"), AnnouncedIn, IntentionVia, IntentionBy, BuybackIntentionHoldingType, IntentionAmount, ValueCurrency, IntentionValue, IntentionPercentage, IntentionAuthorisationStartDate?.ToStringInvariant("yyyyMMdd"), IntentionAuthorisationEndDate?.ToStringInvariant("yyyyMMdd"), PriceCurrency, MinimumPrice, MaximumPrice, BuybackIntentionNoteText)); }
public void Dump() { Console.WriteLine("---- Product: " + Id); Console.WriteLine(" Name: " + ProductName ?? ""); Console.WriteLine(" Shared Id: " + SharedProductId ?? ""); Console.WriteLine(" Type: " + ProductType ?? ""); Console.WriteLine(" DevType: " + DeviceType ?? ""); Console.WriteLine(" FWVer: " + FirmwareVersion ?? ""); Console.WriteLine(" isTestSign: " + IsTestSign ?? ""); Console.WriteLine(" isFlightSign: " + IsFlightSign ?? ""); Console.WriteLine(" isCommitted: " + IsCommitted ?? ""); Console.WriteLine(" isRetpolineCompiled: " + IsRetpolineCompiled ?? ""); Console.WriteLine(" createdBy: " + CreatedBy ?? ""); Console.WriteLine(" updatedBy: " + UpdatedBy ?? ""); Console.WriteLine(" createdDateTime: " + CreatedDateTime.ToString("s", CultureInfo.CurrentCulture)); Console.WriteLine(" updatedDateTime: " + UpdatedDateTime.ToString("s", CultureInfo.CurrentCulture)); Console.WriteLine(" announcementDate: " + AnnouncementDate.ToString("s", CultureInfo.CurrentCulture)); Console.WriteLine(" testHarness: " + TestHarness ?? ""); Console.WriteLine(" Signatures:"); foreach (string sig in RequestedSignatures) { Console.WriteLine(" " + sig); } Console.WriteLine(" deviceMetadataIds:"); if (DeviceMetadataIds != null) { foreach (string sig in DeviceMetadataIds) { Console.WriteLine(" " + sig); } } Console.WriteLine(" selectedProductTypes:"); if (SelectedProductTypes != null) { foreach (KeyValuePair <string, string> entry in SelectedProductTypes) { Console.WriteLine(" " + entry.Key + ": " + entry.Value); } } Console.WriteLine(" marketingNames:"); if (MarketingNames != null) { foreach (string sig in MarketingNames) { Console.WriteLine(" " + sig); } } Console.WriteLine(" additionalAttributes:"); if (AdditionalAttributes != null) { Console.WriteLine(" storageController:"); Console.WriteLine(" usedProprietary: " + AdditionalAttributes.StorageController.UsedProprietary); Console.WriteLine(" usedMicrosoft: " + AdditionalAttributes.StorageController.UsedMicrosoft); Console.WriteLine(" usedBootSupport: " + AdditionalAttributes.StorageController.UsedBootSupport); Console.WriteLine(" usedBetterBoot: " + AdditionalAttributes.StorageController.UsedBetterBoot); Console.WriteLine(" supportsSector4K512E: " + AdditionalAttributes.StorageController.SupportsSector4K512E); Console.WriteLine(" supportsSector4K4K: " + AdditionalAttributes.StorageController.SupportsSector4K4K); Console.WriteLine(" supportsDifferential: " + AdditionalAttributes.StorageController.SupportsDifferential); Console.WriteLine(" raidController:"); Console.WriteLine(" usedProprietary: " + AdditionalAttributes.RaidController.UsedProprietary); Console.WriteLine(" usedMicrosoft: " + AdditionalAttributes.RaidController.UsedMicrosoft); Console.WriteLine(" isThirdPartyNeeded: " + AdditionalAttributes.RaidController.IsThirdPartyNeeded); Console.WriteLine(" isSES: " + AdditionalAttributes.RaidController.IsSES); Console.WriteLine(" isSAFTE: " + AdditionalAttributes.RaidController.IsSAFTE); Console.WriteLine(" svvp:"); Console.WriteLine(" maxProcessors: " + AdditionalAttributes.Svvp.MaxProcessors); Console.WriteLine(" maxMemory: " + AdditionalAttributes.Svvp.MaxMemory); } Console.WriteLine(); }
/// <summary> /// 获取表示股票名称变更的字符串 /// </summary> /// <returns></returns> public override string ToString() => $"{CodeTS} [{StartDate?.ToString("yyyy-MM-dd")}至{StartDate?.ToString("yyyy-MM-dd") ?? "今"}]{Name}, " + $"因{ChangeReason}原因在{AnnouncementDate?.ToString("yyyy-MM-dd") ?? "未知日期"}公布。";