FormInfo.cs
上传用户:husern
上传日期:2022-03-24
资源大小:534k
文件大小:3k
- // -- FILE ------------------------------------------------------------------
- // name : FormInfo.cs
- // project : Itenso Web User Forms
- // created : Jani Giannoudis - 2008.10.30
- // language : c#
- // environment: .NET 2.0
- // copyright : (c) 2008 by Itenso GmbH, Switzerland
- // --------------------------------------------------------------------------
- using System;
- namespace Itenso.WebUserForms.Data.Form
- {
- // ------------------------------------------------------------------------
- public class FormInfo : IFormInfo
- {
- // ----------------------------------------------------------------------
- public FormInfo( string formId )
- : this( formId, null, null, null, null, null, null, null, null )
- {
- } // FormInfo
- // ----------------------------------------------------------------------
- public FormInfo( string formId, string formType, string name,
- string description, string version, DateTime? created, string createdByUser,
- DateTime? lastUpdated, string lastUpdatedByUser )
- {
- if ( string.IsNullOrEmpty( formId ) )
- {
- throw new ArgumentNullException( "formId" );
- }
- this.formId = formId;
- this.formType = formType;
- this.name = name;
- this.description = description;
- this.version = version;
- this.created = created;
- this.createdByUser = createdByUser;
- this.lastUpdated = lastUpdated;
- this.lastUpdatedByUser = lastUpdatedByUser;
- } // FormInfo
- // ----------------------------------------------------------------------
- public string FormId
- {
- get { return this.formId; }
- } // FormId
- // ----------------------------------------------------------------------
- public string FormType
- {
- get { return this.formType; }
- } // FormType
- // ----------------------------------------------------------------------
- public string Name
- {
- get { return this.name; }
- } // Name
- // ----------------------------------------------------------------------
- public string Description
- {
- get { return this.description; }
- } // Description
- // ----------------------------------------------------------------------
- public string Version
- {
- get { return this.version; }
- } // Version
- // ----------------------------------------------------------------------
- public DateTime? Created
- {
- get { return this.created; }
- } // Created
- // ----------------------------------------------------------------------
- public string CreatedByUser
- {
- get { return this.createdByUser; }
- } // CreatedByUser
- // ----------------------------------------------------------------------
- public DateTime? LastUpdated
- {
- get { return this.lastUpdated; }
- } // LastUpdated
- // ----------------------------------------------------------------------
- public string LastUpdatedByUser
- {
- get { return this.lastUpdatedByUser; }
- } // LastUpdatedByUser
- // ----------------------------------------------------------------------
- // members
- private readonly string formId;
- private readonly string formType;
- private readonly string name;
- private readonly string description;
- private readonly string version;
- private readonly DateTime? created;
- private readonly string createdByUser;
- private readonly DateTime? lastUpdated;
- private readonly string lastUpdatedByUser;
- } // class FormInfo
- } // namespace Itenso.WebUserForms.Data.Form
- // -- EOF -------------------------------------------------------------------