Esempio n. 1
0
        public override bool SetInt(int nRow, int nCol, Int64 value)
        {
            if (nRow >= 0 && nRow < mnRow)
            {
                if (!mhtRecordVec.ContainsKey(nRow))
                {
                    AddRow(nRow);
                }
                AFIDataList valueList = (AFIDataList)mhtRecordVec[nRow];
                if (valueList.GetType(nCol) == AFIDataList.VARIANT_TYPE.VTYPE_INT)
                {
                    if (valueList.Int64Val(nCol) != value)
                    {
                        AFCDataList oldValue = new AFCDataList();
                        oldValue.AddInt64(valueList.Int64Val(nCol));

                        valueList.SetInt64(nCol, value);

                        AFCDataList newValue = new AFCDataList();
                        newValue.AddInt64(valueList.Int64Val(nCol));

                        if (null != doHandleDel)
                        {
                            doHandleDel(mSelf, mstrRecordName, eRecordOptype.Updata, nRow, nCol, oldValue, newValue);
                        }
                    }
                }
                return(true);
            }
            return(false);
        }