コード例 #1
0
ファイル: LRContact.cs プロジェクト: rubitek/OpenADK-csharp
 ///<summary>Sets the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of phone number this is.  Note: A subset of valid values may be specified in data objects.</param>
 /// <param name="Number">Phone number.  Acceptable formats:</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PhoneNumber</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetPhoneNumber(PhoneNumberType Type, string Number)
 {
     RemoveChild(CommonDTD.LRCONTACT_PHONENUMBER);
     AddChild(CommonDTD.LRCONTACT_PHONENUMBER, new PhoneNumber(Type, Number));
 }
コード例 #2
0
 ///<summary>Sets the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of phone number this is.  Note: A subset of valid values may be specified in data objects.</param>
 /// <param name="Number">Phone number.  Acceptable formats:</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PhoneNumber</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetPhoneNumber( PhoneNumberType Type, string Number )
 {
     RemoveChild( InstrDTD.RESOURCECONTACT_PHONENUMBER);
     AddChild( InstrDTD.RESOURCECONTACT_PHONENUMBER, new PhoneNumber( Type, Number ) );
 }
コード例 #3
0
ファイル: PhoneNumber.cs プロジェクト: pgodwin/OpenADK-csharp
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A PhoneNumberType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Code that specifies what type of phone number this is.  Note: A subset of valid values may be specified in data objects."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType( PhoneNumberType val )
 {
     SetField( CommonDTD.PHONENUMBER_TYPE, val );
 }
コード例 #4
0
ファイル: PhoneNumber.cs プロジェクト: pgodwin/OpenADK-csharp
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Code that specifies what type of phone number this is.  Note: A subset of valid values may be specified in data objects.</param>
 ///<param name="number">Phone number.  Acceptable formats:</param>
 ///
 public PhoneNumber( PhoneNumberType type, string number )
     : base(CommonDTD.PHONENUMBER)
 {
     this.SetType( type );
     this.Number = number;
 }
コード例 #5
0
 ///<summary>Sets the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of phone number this is.  Note: A subset of valid values may be specified in data objects.</param>
 /// <param name="Number">Phone number.  Acceptable formats:</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PhoneNumber</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetPhoneNumber( PhoneNumberType Type, string Number )
 {
     RemoveChild( ReportingDTD.REPORTSUBMITTERINFO_PHONENUMBER);
     AddChild( ReportingDTD.REPORTSUBMITTERINFO_PHONENUMBER, new PhoneNumber( Type, Number ) );
 }
コード例 #6
0
ファイル: LRContact.cs プロジェクト: pgodwin/OpenADK-csharp
 ///<summary>Sets the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of phone number this is.  Note: A subset of valid values may be specified in data objects.</param>
 /// <param name="Number">Phone number.  Acceptable formats:</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PhoneNumber</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetPhoneNumber( PhoneNumberType Type, string Number )
 {
     RemoveChild( CommonDTD.LRCONTACT_PHONENUMBER);
     AddChild( CommonDTD.LRCONTACT_PHONENUMBER, new PhoneNumber( Type, Number ) );
 }
コード例 #7
0
ファイル: VendorInfo.cs プロジェクト: pgodwin/OpenADK-csharp
 /// <summary>
 /// Removes a <see cref="PhoneNumber"/> object instance. More than one instance can be defined for this object because it is a repeatable field element.
 /// </summary>
 /// <param name="Type">Identifies the PhoneNumber object to remove by its Type value</param>
 /// <remarks>
 /// <para>Version: 1.5r1</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void RemovePhoneNumber( PhoneNumberType Type )
 {
     RemoveChild( HrfinDTD.VENDORINFO_PHONENUMBER, new String[] { Type.ToString() } );
 }
コード例 #8
0
ファイル: RoomInfo.cs プロジェクト: rafidzal/OpenADK-csharp
 ///<summary>Sets the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of phone number this is.  Note: A subset of valid values may be specified in data objects.</param>
 /// <param name="Number">Phone number.  Acceptable formats:</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PhoneNumber</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetPhoneNumber( PhoneNumberType Type, string Number )
 {
     RemoveChild( StudentDTD.ROOMINFO_PHONENUMBER);
     AddChild( StudentDTD.ROOMINFO_PHONENUMBER, new PhoneNumber( Type, Number ) );
 }
コード例 #9
0
ファイル: VendorInfo.cs プロジェクト: pgodwin/OpenADK-csharp
 /// <summary>
 /// Gets a <see cref="PhoneNumber"/> object instance. More than one instance can be defined for this object because it is a repeatable field element.
 /// </summary>
 /// <param name="Type">Identifies the PhoneNumber object to return by its "Type" attribute value</param>
 /// <returns>A PhoneNumber object</returns>
 /// <remarks>
 /// <para>Version: 1.5r1</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public PhoneNumber GetPhoneNumber( PhoneNumberType Type )
 {
     return (PhoneNumber)GetChild( HrfinDTD.VENDORINFO_PHONENUMBER, new string[] { Type.ToString() } );
 }
コード例 #10
0
ファイル: VendorInfo.cs プロジェクト: pgodwin/OpenADK-csharp
 ///<summary>Adds the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of phone number this is.  Note: A subset of valid values may be specified in data objects.</param>
 /// <param name="Number">Phone number.  Acceptable formats:</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddPhoneNumber</c></para>
 /// <para>Version: 1.5r1</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddPhoneNumber( PhoneNumberType Type, string Number )
 {
     AddChild( HrfinDTD.VENDORINFO_PHONENUMBER, new PhoneNumber( Type, Number ) );
 }
コード例 #11
0
ファイル: PhoneNumber.cs プロジェクト: rubitek/OpenADK-csharp
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Code that specifies what type of phone number this is.  Note: A subset of valid values may be specified in data objects.</param>
 ///<param name="number">Phone number.  Acceptable formats:</param>
 ///
 public PhoneNumber(PhoneNumberType type, string number) : base(CommonDTD.PHONENUMBER)
 {
     this.SetType(type);
     this.Number = number;
 }
コード例 #12
0
ファイル: PhoneNumber.cs プロジェクト: rubitek/OpenADK-csharp
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A PhoneNumberType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Code that specifies what type of phone number this is.  Note: A subset of valid values may be specified in data objects."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType(PhoneNumberType val)
 {
     SetField(CommonDTD.PHONENUMBER_TYPE, val);
 }
コード例 #13
0
 ///<summary>Adds the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies what type of phone number this is.  Note: A subset of valid values may be specified in data objects.</param>
 /// <param name="Number">Phone number.  Acceptable formats:</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddPhoneNumber</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void AddPhoneNumber(PhoneNumberType Type, string Number)
 {
     AddChild(CommonDTD.PHONENUMBERLIST_PHONENUMBER, new PhoneNumber(Type, Number));
 }