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

编辑器/阅读器

开发平台:

C#

  1. // -- FILE ------------------------------------------------------------------
  2. // name       : UserFormInfo.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.Controls
  11. {
  12. // ------------------------------------------------------------------------
  13. public class UserFormInfo : IUserFormInfo
  14. {
  15. // ----------------------------------------------------------------------
  16. public const string FileExtension = ".ascx";
  17. // ----------------------------------------------------------------------
  18. public UserFormInfo( string formId )
  19. : this( formId, null, null, null, null, null, null, null, null )
  20. {
  21. } // UserFormInfo
  22. // ----------------------------------------------------------------------
  23. public UserFormInfo( string formId, string formType, string name,
  24. string description, string version, DateTime? created, string createdByUser,
  25. DateTime? lastUpdated, string lastUpdatedByUser )
  26. {
  27. if ( string.IsNullOrEmpty( formId ) )
  28. {
  29. throw new ArgumentNullException( "formId" );
  30. }
  31. this.formId = formId;
  32. this.formType = formType;
  33. this.name = name;
  34. this.description = description;
  35. this.version = version;
  36. this.created = created;
  37. this.createdByUser = createdByUser;
  38. this.lastUpdated = lastUpdated;
  39. this.lastUpdatedByUser = lastUpdatedByUser;
  40. } // UserFormInfo
  41. // ----------------------------------------------------------------------
  42. public string FormId
  43. {
  44. get { return this.formId; }
  45. } // FormId
  46. // ----------------------------------------------------------------------
  47. public string FormType
  48. {
  49. get { return this.formType; }
  50. } // FormType
  51. // ----------------------------------------------------------------------
  52. public string Name
  53. {
  54. get { return this.name; }
  55. } // Name
  56. // ----------------------------------------------------------------------
  57. public string Description
  58. {
  59. get { return this.description; }
  60. } // Description
  61. // ----------------------------------------------------------------------
  62. public string Version
  63. {
  64. get { return this.version; }
  65. } // Version
  66. // ----------------------------------------------------------------------
  67. public DateTime? Created
  68. {
  69. get { return this.created; }
  70. } // Created
  71. // ----------------------------------------------------------------------
  72. public string CreatedByUser
  73. {
  74. get { return this.createdByUser; }
  75. } // CreatedByUser
  76. // ----------------------------------------------------------------------
  77. public DateTime? LastUpdated
  78. {
  79. get { return this.lastUpdated; }
  80. } // LastUpdated
  81. // ----------------------------------------------------------------------
  82. public string LastUpdatedByUser
  83. {
  84. get { return this.lastUpdatedByUser; }
  85. } // LastUpdatedByUser
  86. // ----------------------------------------------------------------------
  87. // members
  88. private readonly string formId;
  89. private readonly string formType;
  90. private readonly string name;
  91. private readonly string description;
  92. private readonly string version;
  93. private readonly DateTime? created;
  94. private readonly string createdByUser;
  95. private readonly DateTime? lastUpdated;
  96. private readonly string lastUpdatedByUser;
  97. } // class UserFormInfo
  98. } // namespace Itenso.WebUserForms.Controls
  99. // -- EOF -------------------------------------------------------------------