Importer.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. namespace InABox.Core
  3. {
  4. //public class ImporterLookupGenerator : LookupGenerator<String>
  5. //{
  6. // public ImporterLookupGenerator(string[] items) : base(items)
  7. // {
  8. // foreach (var definition in ImportDefinitions.Definitions)
  9. // AddValue(definition.Description, definition.Description);
  10. // }
  11. //}
  12. public class Importer : Entity, IRemotable, IPersistent, ILicense<CoreLicense>
  13. {
  14. public Importer()
  15. {
  16. HasHeader = true;
  17. HeaderRows = 1;
  18. }
  19. [TextBoxEditor]
  20. public string Description { get; set; }
  21. [NullEditor]
  22. public string EntityName { get; set; }
  23. [NullEditor]
  24. public Guid EntityID { get; set; }
  25. [NullEditor]
  26. public string ImporterDescription { get; set; }
  27. [NullEditor]
  28. public string FileName { get; set; }
  29. [NullEditor]
  30. public string Definition { get; set; }
  31. [NullEditor]
  32. public bool HasHeader { get; set; }
  33. [NullEditor]
  34. public int HeaderRows { get; set; }
  35. [NullEditor]
  36. public string ColumnWidths { get; set; }
  37. [NullEditor]
  38. public string Script { get; set; }
  39. [NullEditor]
  40. public string? Settings { get; set; }
  41. }
  42. }