c#之tcbs struct(2)小記
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- c#之結構struct(2)_小記C#Struct
- c#之tcbs class的小記C#
- c#之tcbs 建構函式小記C#函式
- c#之structC#Struct
- c#之tcbs靜態方法_返回值為類的型別_小記C#型別
- c#之tcbs方法示例hasvalueC#
- c#之tcbs method方法示例C#
- c#之tcbs method方法_getC#
- c#之tcbs extern修飾符C#
- c#之tcbs 列印憑證示例C#
- c# tcbs之switch多分支case示例C#
- c# tcbs之類中方法的特徵C#特徵
- c#之基類派生類base_小記(2)C#
- c#之menustrip小記(1)C#
- c#之readonly小記C#
- c#之泛型小記C#泛型
- c#之word物件模型小記C#物件模型
- c#之menustrip_toolstripmenuitem小記C#UI
- 近期編寫tcbs儲存過程小記(1)儲存過程
- c#之異常處理tcbs_try_catch_finallyC#
- c#之引用office功能元件_小記C#元件
- c#之反射_Type_Fieldinfo[]小記C#反射
- c#之stream相關類小記C#
- c# tcbs屬性訪問器C#
- c# tcbs之建構函式呼叫建構函式示例C#函式
- 重學c#————structC#Struct
- c#之資料型別小測記C#資料型別
- c# tcbs專案學習體悟C#
- c#之基類派生類base_小記C#
- c#之datagridview控制元件(1)_小記C#View控制元件
- c#之arraylist動態陣列小記(1)C#陣列
- c# 之tcbs在winform介面如何以mvc方法呼叫oracle函式C#ORMMVCOracle函式
- c# tcbs之遞迴方法查詢符合條件的控制元件C#遞迴控制元件
- c# tcbs之外部類成員型別為內部類之示例C#型別
- C#小筆記C#筆記
- 認知結構(C# Struct)C#Struct
- 瞭解下C# 結構體(Struct)C#結構體Struct
- golang struct 有點小疑問?GolangStruct