示例#1
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(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
 /// <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
 /// <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;
 }
 ///<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
 ///<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
 /// <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
 ///<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
 /// <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
 ///<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
 /// <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
 /// <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));
 }