Exemplo n.º 1
0
        void AddBaseRecordFormOther(NFIClass xLogicClass, string strOther)
        {
            NFIClass xOtherClass = GetElement(strOther);

            if (null != xLogicClass && null != xOtherClass)
            {
                NFDataList xValue = xOtherClass.GetRecordManager().GetRecordList();
                for (int i = 0; i < xValue.Count(); ++i)
                {
                    NFIRecord record = xOtherClass.GetRecordManager().GetRecord(xValue.StringVal(i));

                    xLogicClass.GetRecordManager().AddRecord(xValue.StringVal(i), record.GetRows(), record.GetColsData(), record.GetTagData());
                }
            }
        }
Exemplo n.º 2
0
        void InitRecord(NFGUID self, string strClassName)
        {
            NFIClass   xLogicClass = mxLogicClassModule.GetElement(strClassName);
            NFDataList xDataList   = xLogicClass.GetRecordManager().GetRecordList();

            for (int i = 0; i < xDataList.Count(); ++i)
            {
                string    strRecordyName = xDataList.StringVal(i);
                NFIRecord xRecord        = xLogicClass.GetRecordManager().GetRecord(strRecordyName);

                NFIObject        xObject        = GetObject(self);
                NFIRecordManager xRecordManager = xObject.GetRecordManager();

                NFIRecord record = xRecordManager.AddRecord(strRecordyName, xRecord.GetRows(), xRecord.GetColsData(), xRecord.GetTagData());
                if (record != null)
                {
                    record.SetUpload(xRecord.GetUpload());
                }
            }
        }