//表示调用了(nUserId,nProgramId,dtCardValid,nPcIndex,0) 这个参数形式的构造函数 :this()
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, Int32 nMsId ) {
this.uda = (new User()).GetDetail(nUserId);
this.pda = (new Program()).GetDetail(nProgramId);
if (this.uda != null)
(new User()).GetUserPermit(ref this.uda);
this.CardValid = DateTime.Parse(dtCardValid.ToShortDateString() + " 23:59:59");
this.pcIndex = nPcIndex;
this.MediaType = this.pda.PMediaKind;
this.MsId = nMsId;
}
属性定义:
private int _id;
public int ID
{
get
{
return _id;
}
set
{
_id = value;
}
}