//表示调用了(nUserId,nProgramId,dtCardValid,nPcIndex,0) 这个参数形式的构造函数 :this()

 Code
Code

 public Consume( Int32 nUserId, Int32 nProgramId, DateTime dtCardValid, Int32 nPcIndex ):this(nUserId,nProgramId,dtCardValid,nPcIndex,0)
        public Consume( Int32 nUserId, Int32 nProgramId, DateTime dtCardValid, Int32 nPcIndex ):this(nUserId,nProgramId,dtCardValid,nPcIndex,0)  {
{            
 }
        }


 public Consume( Int32 nUserId, Int32 nProgramId, DateTime dtCardValid, Int32 nPcIndex, Int32 nMsId )
        public Consume( Int32 nUserId, Int32 nProgramId, DateTime dtCardValid, Int32 nPcIndex, Int32 nMsId )  {
{
 this.uda = (new User()).GetDetail(nUserId);
            this.uda = (new User()).GetDetail(nUserId);
 this.pda = (new Program()).GetDetail(nProgramId);
            this.pda = (new Program()).GetDetail(nProgramId);
 if (this.uda != null)
            if (this.uda != null)
 (new User()).GetUserPermit(ref this.uda);
                (new User()).GetUserPermit(ref this.uda);

 this.CardValid = DateTime.Parse(dtCardValid.ToShortDateString() + " 23:59:59");
            this.CardValid = DateTime.Parse(dtCardValid.ToShortDateString() + " 23:59:59");
 this.pcIndex = nPcIndex;
            this.pcIndex = nPcIndex;
 this.MediaType = this.pda.PMediaKind;
            this.MediaType = this.pda.PMediaKind;
 this.MsId = nMsId;
            this.MsId = nMsId;
 }
        }

属性定义:
 private int _id;
private int _id;
 public int ID
        public int ID

 
         {
{
 get
            get

 
             {
{
 return _id;
                return _id;
 }
            }
 set
            set

 
             {
{
 _id = value;
                _id = value;
 }
            }
 }
        }