tcbs之集合類與子類的示例
//deductschedsubmdtlcollection為集合類,可理解為一個表集合,有多條記錄
DeductSchedSubmDtlCollection deductSchedSubmDtlCollection = DeductSchedSubmDtlCollection.SvrGetDeductSchedSubmDtlCollection
(dam, this._deductSchedNbr,
this._submNbrToCopy, new object[] { DeductSchedSubmDtlFetch.Basic });
if ((deductSchedSubmDtlCollection != null) && (deductSchedSubmDtlCollection.Count > 0))
{
//DeductSchedSubmDtl為集合類的子類,可理解為一條記錄
DeductSchedSubmDtl deductSchedSubmDtl = null;
//採用for迴圈利用集合類為子類進行初始化提供值
for (iCount = 0; iCount < deductSchedSubmDtlCollection.Count; iCount++)
{
deductSchedSubmDtl = DeductSchedSubmDtl.NewDeductSchedSubmDtl();
deductSchedSubmDtl.DeductSchedNbr = deductSchedSubmDtlCollection[iCount].DeductSchedNbr;
deductSchedSubmDtl.SubmNbr = new long?(this._submdNbr);
deductSchedSubmDtl.DetailSeqNbr = deductSchedSubmDtlCollection[iCount].DetailSeqNbr;
deductSchedSubmDtl.MemberAgreeNbr = deductSchedSubmDtlCollection[iCount].MemberAgreeNbr;
deductSchedSubmDtl.ExtEmployeeNbr = deductSchedSubmDtlCollection[iCount].ExtEmployeeNbr;
deductSchedSubmDtl.ExtEmployeeName = deductSchedSubmDtlCollection[iCount].ExtEmployeeName;
deductSchedSubmDtl.ExtTaxIdNbr = deductSchedSubmDtlCollection[iCount].ExtTaxIdNbr;
deductSchedSubmDtl.Amt = deductSchedSubmDtlCollection[iCount].Amt;
base.Add(Guid.NewGuid().ToString(), deductSchedSubmDtl);
deductSchedSubmDtl.SvrPersist(dam);
}
}
DeductSchedSubmDtlCollection deductSchedSubmDtlCollection = DeductSchedSubmDtlCollection.SvrGetDeductSchedSubmDtlCollection
(dam, this._deductSchedNbr,
this._submNbrToCopy, new object[] { DeductSchedSubmDtlFetch.Basic });
if ((deductSchedSubmDtlCollection != null) && (deductSchedSubmDtlCollection.Count > 0))
{
//DeductSchedSubmDtl為集合類的子類,可理解為一條記錄
DeductSchedSubmDtl deductSchedSubmDtl = null;
//採用for迴圈利用集合類為子類進行初始化提供值
for (iCount = 0; iCount < deductSchedSubmDtlCollection.Count; iCount++)
{
deductSchedSubmDtl = DeductSchedSubmDtl.NewDeductSchedSubmDtl();
deductSchedSubmDtl.DeductSchedNbr = deductSchedSubmDtlCollection[iCount].DeductSchedNbr;
deductSchedSubmDtl.SubmNbr = new long?(this._submdNbr);
deductSchedSubmDtl.DetailSeqNbr = deductSchedSubmDtlCollection[iCount].DetailSeqNbr;
deductSchedSubmDtl.MemberAgreeNbr = deductSchedSubmDtlCollection[iCount].MemberAgreeNbr;
deductSchedSubmDtl.ExtEmployeeNbr = deductSchedSubmDtlCollection[iCount].ExtEmployeeNbr;
deductSchedSubmDtl.ExtEmployeeName = deductSchedSubmDtlCollection[iCount].ExtEmployeeName;
deductSchedSubmDtl.ExtTaxIdNbr = deductSchedSubmDtlCollection[iCount].ExtTaxIdNbr;
deductSchedSubmDtl.Amt = deductSchedSubmDtlCollection[iCount].Amt;
base.Add(Guid.NewGuid().ToString(), deductSchedSubmDtl);
deductSchedSubmDtl.SvrPersist(dam);
}
}
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-707530/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- c# tcbs之外部類成員型別為內部類之示例C#型別
- 集合框架-List的子類框架
- c# tcbs之類中方法的特徵C#特徵
- Set集合的直接子類TreeSet
- Set集合的具體子類:HashSet
- Java超類與子類Java
- c#之tcbs方法示例hasvalueC#
- c#之tcbs method方法示例C#
- Map集合中的具體子類TreeMap
- Java中的WeakHashMap與類示例JavaHashMap
- c#之tcbs 列印憑證示例C#
- java 所有的集合類以及Apache的集合類???JavaApache
- ML.NET 示例:多類分類之問題分類
- ML.NET 示例:多類分類之鳶尾花分類
- TextView、TextView的子類之EditText、EditText的子類之自動完成文字框(AutoCompleteTextView)的功能與用法TextView
- java集合類——Stack棧類與Queue佇列Java佇列
- 【JavaSE】集合類Collection集合Map集合的簡單介紹,List介面,中三個常用子類ArrayList、Vector、LinkedList之間的比較。Set介面。Java
- c# tcbs之switch多分支case示例C#
- 父類和子類之間的轉換問題
- python 類的子類Python
- python類的子類Python
- 類與類之間的基本關係
- Java —— 集合工具類(Collections 類)Java
- 集合類【Java】Java
- Java集合類的概述Java
- 類的繼承_子類繼承父類繼承
- c# abstract抽象類與繼承類子類的建構函式_baseC#抽象繼承函式
- c#之tcbs靜態方法_返回值為類的型別_小記C#型別
- 父類與子類之間靜態函式的呼叫以及函式引數的傳遞函式
- ML.NET 示例:聚類之鳶尾花聚類
- Java集合類初探Java
- Java集合類——MapJava
- Java集合類綜合Java
- 集合類關係
- c++ 中的集合類C++
- Python 繼承和子類示例:從 Person 到 Student 的演示Python繼承
- C#介面、抽象類、普通類和繼承(子類與父類)都有其特定的用途和場景C#抽象繼承
- C# 繼承 子類(派生類) 父類(基類)C#繼承