示例#1
0
文件: XAD.cs 项目: RickIsWright/nHapi
	///<summary>
	/// Creates a XAD.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public XAD(IMessage message, string description) : base(message, description){
		data = new IType[14];
		data[0] = new SAD(message,"Street Address");
		data[1] = new ST(message,"Other Designation");
		data[2] = new ST(message,"City");
		data[3] = new ST(message,"State or Province");
		data[4] = new ST(message,"Zip or Postal Code");
		data[5] = new ID(message, 399,"Country");
		data[6] = new ID(message, 190,"Address Type");
		data[7] = new ST(message,"Other Geographic Designation");
		data[8] = new IS(message, 289,"County/Parish Code");
		data[9] = new IS(message, 288,"Census Tract");
		data[10] = new ID(message, 465,"Address Representation Code");
		data[11] = new DR(message,"Address Validity Range");
		data[12] = new TS(message,"Effective Date");
		data[13] = new TS(message,"Expiration Date");
	}
示例#2
0
 ///<summary>
 /// Creates a XAD.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public XAD(IMessage message, string description) : base(message, description)
 {
     data     = new IType[14];
     data[0]  = new SAD(message, "Street Address");
     data[1]  = new ST(message, "Other Designation");
     data[2]  = new ST(message, "City");
     data[3]  = new ST(message, "State or Province");
     data[4]  = new ST(message, "Zip or Postal Code");
     data[5]  = new ID(message, 399, "Country");
     data[6]  = new ID(message, 190, "Address Type");
     data[7]  = new ST(message, "Other Geographic Designation");
     data[8]  = new IS(message, 289, "County/Parish Code");
     data[9]  = new IS(message, 288, "Census Tract");
     data[10] = new ID(message, 465, "Address Representation Code");
     data[11] = new DR(message, "Address Validity Range");
     data[12] = new TS(message, "Effective Date");
     data[13] = new TS(message, "Expiration Date");
 }