public struct DeductSchedViewItem //结构体加上public
{
//private long _deductSchedNbr;
private string _deductSchedNbr; //结构体成员private
private long _submitOrgNbr;
private long _clearingAcctNbr;
private long _importApplNbr;
private string _deductSchedTypCd;
private string _deductSchedTypDesc;
private string _submitOrgName;
private string _contractBankName;
private DateTime _contractDate;
private DateTime _dueDate;
public string DeductSchedNbr //结构体的属性访问器
{
get
{
return this._deductSchedNbr;
}
set
{
this._deductSchedNbr = value;
}
}
//public long DeductSchedNbr
//{
// get
// {
// return this._deductSchedNbr;
// }
// set
// {
// this._deductSchedNbr = value;
// }
//}
public long SubmitOrgNbr
{
get
{
return this._submitOrgNbr;
}
set
{
this._submitOrgNbr = value;
}
}
private long _contractAcctNbr;
public long ContractAcctNbr
{
get
{
return this._contractAcctNbr;
}
set
{
this._contractAcctNbr = value;
}
}
//增加签约账号bbp2011-04-16--end
public long ClearingAcctNbr
{
get
{
return this._clearingAcctNbr;
}
set
{
this._clearingAcctNbr = value;
}
}
public long ImportApplNbr
{
get
{
return this._importApplNbr;
}
set
{
this._importApplNbr = value;
}
}
public string DeductSchedTypCd
{
get
{
return this._deductSchedTypCd;
}
set
{
this._deductSchedTypCd = value;
}
}
public string DeductSchedTypDesc
{
get
{
return this._deductSchedTypDesc;
}
set
{
this._deductSchedTypDesc = value;
}
}
public DateTime? ContractDate
{
get
{
if (this._contractDate == DateTime.MinValue) //属性访问器添加if判断
{
return null;
}
return new DateTime?(this._contractDate);//结构体中的return
}
set
{
DateTime? CSS0S0000 = value;
this._contractDate = CSS0S0000.HasValue ? CSS0S0000.GetValueOrDefault() : DateTime.MinValue;
}
}
public DateTime? DueDate
{
get
{
if (this._dueDate == DateTime.MinValue)
{
return null;
}
return new DateTime?(this._dueDate);
}
set
{
DateTime? CSS0S0000 = value;
this._dueDate = CSS0S0000.HasValue ? CSS0S0000.GetValueOrDefault() : DateTime.MinValue;
}
}
public string SubmitOrgName
{
get
{
return this._submitOrgName;
}
set
{
this._submitOrgName = value;
}
}
public string ContractBankName
{
get
{
return this._contractBankName;
}
set
{
this._contractBankName = value;
}
}
}
}
{
//private long _deductSchedNbr;
private string _deductSchedNbr; //结构体成员private
private long _submitOrgNbr;
private long _clearingAcctNbr;
private long _importApplNbr;
private string _deductSchedTypCd;
private string _deductSchedTypDesc;
private string _submitOrgName;
private string _contractBankName;
private DateTime _contractDate;
private DateTime _dueDate;
public string DeductSchedNbr //结构体的属性访问器
{
get
{
return this._deductSchedNbr;
}
set
{
this._deductSchedNbr = value;
}
}
//public long DeductSchedNbr
//{
// get
// {
// return this._deductSchedNbr;
// }
// set
// {
// this._deductSchedNbr = value;
// }
//}
public long SubmitOrgNbr
{
get
{
return this._submitOrgNbr;
}
set
{
this._submitOrgNbr = value;
}
}
private long _contractAcctNbr;
public long ContractAcctNbr
{
get
{
return this._contractAcctNbr;
}
set
{
this._contractAcctNbr = value;
}
}
//增加签约账号bbp2011-04-16--end
public long ClearingAcctNbr
{
get
{
return this._clearingAcctNbr;
}
set
{
this._clearingAcctNbr = value;
}
}
public long ImportApplNbr
{
get
{
return this._importApplNbr;
}
set
{
this._importApplNbr = value;
}
}
public string DeductSchedTypCd
{
get
{
return this._deductSchedTypCd;
}
set
{
this._deductSchedTypCd = value;
}
}
public string DeductSchedTypDesc
{
get
{
return this._deductSchedTypDesc;
}
set
{
this._deductSchedTypDesc = value;
}
}
public DateTime? ContractDate
{
get
{
if (this._contractDate == DateTime.MinValue) //属性访问器添加if判断
{
return null;
}
return new DateTime?(this._contractDate);//结构体中的return
}
set
{
DateTime? CSS0S0000 = value;
this._contractDate = CSS0S0000.HasValue ? CSS0S0000.GetValueOrDefault() : DateTime.MinValue;
}
}
public DateTime? DueDate
{
get
{
if (this._dueDate == DateTime.MinValue)
{
return null;
}
return new DateTime?(this._dueDate);
}
set
{
DateTime? CSS0S0000 = value;
this._dueDate = CSS0S0000.HasValue ? CSS0S0000.GetValueOrDefault() : DateTime.MinValue;
}
}
public string SubmitOrgName
{
get
{
return this._submitOrgName;
}
set
{
this._submitOrgName = value;
}
}
public string ContractBankName
{
get
{
return this._contractBankName;
}
set
{
this._contractBankName = value;
}
}
}
}
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9240380/viewspace-706271/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9240380/viewspace-706271/