FormInfo.cs
上传用户:husern
上传日期:2022-03-24
资源大小:534k
文件大小:3k
源码类别:

编辑器/阅读器

开发平台:

C#

  1. // -- FILE ------------------------------------------------------------------
  2. // name       : FormInfo.cs
  3. // project    : Itenso Web User Forms
  4. // created    : Jani Giannoudis - 2008.10.30
  5. // language   : c#
  6. // environment: .NET 2.0
  7. // copyright  : (c) 2008 by Itenso GmbH, Switzerland
  8. // --------------------------------------------------------------------------
  9. using System;
  10. namespace Itenso.WebUserForms.Data.Form
  11. {
  12. // ------------------------------------------------------------------------
  13. public class FormInfo : IFormInfo
  14. {
  15. // ----------------------------------------------------------------------
  16. public FormInfo( string formId )
  17. : this( formId, null, null, null, null, null, null, null, null )
  18. {
  19. } // FormInfo
  20. // ----------------------------------------------------------------------
  21. public FormInfo( string formId, string formType, string name,
  22. string description, string version, DateTime? created, string createdByUser,
  23. DateTime? lastUpdated, string lastUpdatedByUser )
  24. {
  25. if ( string.IsNullOrEmpty( formId ) )
  26. {
  27. throw new ArgumentNullException( "formId" );
  28. }
  29. this.formId = formId;
  30. this.formType = formType;
  31. this.name = name;
  32. this.description = description;
  33. this.version = version;
  34. this.created = created;
  35. this.createdByUser = createdByUser;
  36. this.lastUpdated = lastUpdated;
  37. this.lastUpdatedByUser = lastUpdatedByUser;
  38. } // FormInfo
  39. // ----------------------------------------------------------------------
  40. public string FormId
  41. {
  42. get { return this.formId; }
  43. } // FormId
  44. // ----------------------------------------------------------------------
  45. public string FormType
  46. {
  47. get { return this.formType; }
  48. } // FormType
  49. // ----------------------------------------------------------------------
  50. public string Name
  51. {
  52. get { return this.name; }
  53. } // Name
  54. // ----------------------------------------------------------------------
  55. public string Description
  56. {
  57. get { return this.description; }
  58. } // Description
  59. // ----------------------------------------------------------------------
  60. public string Version
  61. {
  62. get { return this.version; }
  63. } // Version
  64. // ----------------------------------------------------------------------
  65. public DateTime? Created
  66. {
  67. get { return this.created; }
  68. } // Created
  69. // ----------------------------------------------------------------------
  70. public string CreatedByUser
  71. {
  72. get { return this.createdByUser; }
  73. } // CreatedByUser
  74. // ----------------------------------------------------------------------
  75. public DateTime? LastUpdated
  76. {
  77. get { return this.lastUpdated; }
  78. } // LastUpdated
  79. // ----------------------------------------------------------------------
  80. public string LastUpdatedByUser
  81. {
  82. get { return this.lastUpdatedByUser; }
  83. } // LastUpdatedByUser
  84. // ----------------------------------------------------------------------
  85. // members
  86. private readonly string formId;
  87. private readonly string formType;
  88. private readonly string name;
  89. private readonly string description;
  90. private readonly string version;
  91. private readonly DateTime? created;
  92. private readonly string createdByUser;
  93. private readonly DateTime? lastUpdated;
  94. private readonly string lastUpdatedByUser;
  95. } // class FormInfo
  96. } // namespace Itenso.WebUserForms.Data.Form
  97. // -- EOF -------------------------------------------------------------------