ITPub博客

首页 > Linux操作系统 > Linux操作系统 > tcbs之集合类与子类的示例

tcbs之集合类与子类的示例

原创 Linux操作系统 作者:wisdomone1 时间:2011-09-15 16:34:07 0 删除 编辑
//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);
        }
    }

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9240380/viewspace-707530/,如需转载,请注明出处,否则将追究法律责任。

上一篇: Guid结构
请登录后发表评论 登录
全部评论
提供针对oracle初学者及进阶的数据库培训,欢迎大家咨询: 微信: wisdomone 微信公众号: lovedb 工作经历: 中国普天 北京科蓝 北京云和恩墨 北京神州新桥

注册时间:2008-04-04

  • 博文量
    2188
  • 访问量
    12183934