zoukankan      html  css  js  c++  java
  • Hot to generate number Sequence

    static client server NumberSequenceReference numRefVirtualNetworkId()
    {
        return NumberSeqReference::findReference(typeId2ExtendedTypeId(typeid(HRMVirtualNetworkId)));
    }

        NumberSeq= NumberSeq::newGetNum(HRMVirtualNetworkParameters::numRefVirtualNetworkId(), true, true);

        if (!numberSeq)
            //checkFailed("@SYS30552");
            throw error("@SYS30552");

        if (HRMVirtualNetworkParameters::numRefVirtualNetworkId())
        {
            HRMVirtualNetworkTable.ReferenceType        = _refenceType;
            HRMVirtualNetworkTable.Reference            = _reference;
            HRMVirtualNetworkTable.HrmVirtualNetworkId  = numberSeq.num();

            if (HRMVirtualNetworkTable.validateWrite())
            {
                HRMVirtualNetworkTable.insert();
                numberSeq.used();
            }
            else
            {
                //checkFailed("@SYS30553");
                numberSeq.abort();
                throw error("@SYS30553");
            }
        }
        else
        {
            //checkFailed("@SYS30552");
            numberSeq.abort();
            throw error("@SYS30552");
        }

  • 相关阅读:
    AE开发中实现Control中的各种图形工具的方法(转)
    ArcEngine打开本地数据库
    【ArcMap】
    【ArcCatalog】
    go guid 和uuid生成
    go select 的default
    go select 使得一个 goroutine 在多个通讯操作上等待。
    go channel
    go goroutine
    go io.Reader 接口
  • 原文地址:https://www.cnblogs.com/Fandyx/p/2484450.html
Copyright © 2011-2022 走看看