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

            if (null != record)
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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("");
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 8
0
        public override AFIRecord GetRecord(string strPropertyName)
        {
            AFIRecord record = null;

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

            return(record);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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());
            }
        }
Exemplo n.º 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);
        }