示例#1
0
 public void addPassThru(PassThruStruct passThruToAdd)
 {
     this.PassThrus.Add(passThruToAdd);
 }
示例#2
0
        public override string ToString()
        {
            StringBuilder passThrusStr = new StringBuilder();

            PassThruStruct passThru = new PassThruStruct();

            for(int k=0; k<this.PassThrus.Count; k++)
            {
                passThru = (PassThruStruct) this.PassThrus[k];

                if ( (passThru.RateName=="All") || (passThru.RateName=="None") )
                {
                    switch(passThru.RateName)
                    {
                        case "All": passThrusStr.Append("All, "); break;
                        case "None": passThrusStr.Append("None, "); break;
                        default: break;
                    }
                }
                else
                {
                    if (this.RateSchedulePassThrus.Contains(passThru.RateID))
                    {	passThrusStr.Append(this.RateSchedulePassThrus.getPassThruName(passThru.RateID) + ", ");	}
                }
            }

            if (passThrusStr.Length==0)
            {	return "Not Set";	}
            else
            {
                return passThrusStr.ToString(0, passThrusStr.Length - 2);
            }
        }