Example #1
0
 public override void RegisterCallback(string strRecordName, AFIRecord.RecordEventHandler handler)
 {
     if (mhtRecord.ContainsKey(strRecordName))
     {
         AFIRecord record = (AFIRecord)mhtRecord[strRecordName];
         record.RegisterCallback(handler);
     }
 }
Example #2
0
        public override bool FindRecord(string strRecordName)
        {
            AFIRecord record = mRecordManager.GetRecord(strRecordName);

            if (null != record)
            {
                return(true);
            }
            return(false);
        }
Example #3
0
        public override AFIDENTID QueryRecordObject(string strRecordName, int nRow, int nCol)
        {
            AFIRecord record = mRecordManager.GetRecord(strRecordName);

            if (null != record)
            {
                return(record.QueryObject(nRow, nCol));
            }

            return(null);
        }
Example #4
0
        public override string QueryRecordString(string strRecordName, int nRow, int nCol)
        {
            AFIRecord record = mRecordManager.GetRecord(strRecordName);

            if (null != record)
            {
                return(record.QueryString(nRow, nCol));
            }

            return("");
        }
Example #5
0
        public override double QueryRecordDouble(string strRecordName, int nRow, int nCol)
        {
            AFIRecord record = mRecordManager.GetRecord(strRecordName);

            if (null != record)
            {
                return(record.QueryDouble(nRow, nCol));
            }

            return(0.0);
        }
Example #6
0
        public override float QueryRecordFloat(string strRecordName, int nRow, int nCol)
        {
            AFIRecord record = mRecordManager.GetRecord(strRecordName);

            if (null != record)
            {
                return(record.QueryFloat(nRow, nCol));
            }

            return(0.0f);
        }
Example #7
0
        public override Int64 QueryRecordInt(string strRecordName, int nRow, int nCol)
        {
            AFIRecord record = mRecordManager.GetRecord(strRecordName);

            if (null != record)
            {
                return(record.QueryInt(nRow, nCol));
            }

            return(0);
        }
Example #8
0
        public override AFIRecord GetRecord(string strPropertyName)
        {
            AFIRecord record = null;

            if (mhtRecord.ContainsKey(strPropertyName))
            {
                record = (AFIRecord)mhtRecord[strPropertyName];
            }

            return(record);
        }
Example #9
0
        public override bool SetRecordObject(string strRecordName, int nRow, int nCol, AFIDENTID obj)
        {
            AFIRecord record = mRecordManager.GetRecord(strRecordName);

            if (null != record)
            {
                record.SetObject(nRow, nCol, obj);
                return(true);
            }

            return(false);
        }
Example #10
0
        public override bool SetRecordString(string strRecordName, int nRow, int nCol, string strValue)
        {
            AFIRecord record = mRecordManager.GetRecord(strRecordName);

            if (null != record)
            {
                record.SetString(nRow, nCol, strValue);
                return(true);
            }

            return(false);
        }
Example #11
0
        void InitRecord(AFIDENTID self, string strClassName)
        {
            AFILogicClass xLogicClass = AFCLogicClassManager.Instance.GetElement(strClassName);

            if (null == xLogicClass)
            {
                return;
            }

            AFIDataList xDataList = xLogicClass.GetRecordManager().GetRecordList();

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

                AFIObject        xObject        = GetObject(self);
                AFIRecordManager xRecordManager = xObject.GetRecordManager();

                xRecordManager.AddRecord(strRecordyName, xRecord.GetRows(), xRecord.GetColsData());
            }
        }
Example #12
0
        public override bool Shut()
        {
            AFIDataList xRecordList = mRecordManager.GetRecordList();

            if (null != xRecordList)
            {
                for (int i = 0; i < xRecordList.Count(); ++i)
                {
                    string    strRecordName = xRecordList.StringVal(i);
                    AFIRecord xRecord       = mRecordManager.GetRecord(strRecordName);
                    if (null != xRecord)
                    {
                        xRecord.Clear();
                    }
                }
            }

            mRecordManager   = null;
            mPropertyManager = null;
            mHeartManager    = null;
            mEventManager    = null;

            return(true);
        }