Ejemplo n.º 1
0
 public HeadItem(Head parent, KFO.Dictionary dctTableInfo, KFO.Dictionary dctData, string name)
 {
     this._parent       = parent;
     this._dctTableInfo = dctTableInfo;
     this._dctData      = dctData;
     this._name         = name;
 }
Ejemplo n.º 2
0
 void newBiller_SaveBillSuccess(KFO.Dictionary dctData)
 {
     if (this.After_Save != null)
     {
         this.After_Save();
     }
 }
Ejemplo n.º 3
0
 public virtual void AfterDel(string sDsn,
                              long nClassID,
                              KFO.Dictionary dctClassType,
                              long nInterID)
 {
     DBUnitInstance = new DBUnit(sDsn);
     DoAfterDel(sDsn, nClassID, dctClassType, nInterID);
 }
Ejemplo n.º 4
0
 protected virtual void DoAfterSave(string sDsn,
                                    KFO.Dictionary dctClassType,
                                    KFO.Vector vctClassTypeEntry,
                                    KFO.Dictionary dctTableInfo,
                                    KFO.Dictionary dctData,
                                    KFO.Dictionary dctLink)
 {
 }
Ejemplo n.º 5
0
 public virtual void BeforeMultiCheck(string sDsn,
                                      long nClassID,
                                      long nFBillID,
                                      long nFPage,
                                      long nFBillEntryID,
                                      KFO.Dictionary dctBillCheckRecord)
 {
     DBUnitInstance = new DBUnit(sDsn);
     DoBeforeMultiCheck(sDsn, nClassID, nFBillID, nFPage, nFBillEntryID, dctBillCheckRecord);
 }
Ejemplo n.º 6
0
 public virtual void AfterSave(string sDsn,
                               KFO.Dictionary dctClassType,
                               KFO.Vector vctClassTypeEntry,
                               KFO.Dictionary dctTableInfo,
                               KFO.Dictionary dctData,
                               KFO.Dictionary dctLink)
 {
     DBUnitInstance = new DBUnit(sDsn);
     this.Head      = new Head(dctTableInfo, dctData);
     DoAfterSave(sDsn, dctClassType, vctClassTypeEntry, dctTableInfo, dctData, dctLink);
 }
Ejemplo n.º 7
0
        void newBiller_LostFocus(string sKey, KFO.Dictionary dctData, object curDspValue, int Col, int Row, ref bool Cancel)
        {
            if (this.After_LevelCell == null)
            {
                return;
            }

            //row col为-1则为单据
            if (Row == -1 && Col == -1)
            {
                return;
            }
            int?currentEntityIndex = null;
            int entityCount        = this.Entity.Count;

            for (int entityIndex = 0; entityIndex < entityCount; entityIndex++)
            {
                if (this.Entity[entityIndex].Column.NameToIndex.ContainsKey(sKey.ToLower()))
                {
                    currentEntityIndex = entityIndex;
                }
            }

            //单据头中不含skey数据则失去焦点的不是单据体,是单据头
            if (!currentEntityIndex.HasValue)
            {
                return;
            }

            if (Row > this.Entity[0].Row.Count)
            {
                this.After_LevelCell(null);
                return;
            }

            this.After_LevelCell(this.Entity[currentEntityIndex.Value].Row[Row - 1, this.Entity[currentEntityIndex.Value].Column.GetIndex(sKey)]);
        }
Ejemplo n.º 8
0
 public Head(KFO.Dictionary dctTableInfo, KFO.Dictionary dctData)
 {
     this._dctTableInfo = dctTableInfo;
     this._dctData      = dctData;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// 从kfo对象获取字段的字段名称
 /// </summary>
 /// <param name="dct"></param>
 /// <returns></returns>
 protected string GetFieldName(KFO.Dictionary dct)
 {
     return(dct.GetValue("FFieldName", null).ToString());
 }
Ejemplo n.º 10
0
 protected virtual void DoBeforeMultiCheck(string sDsn, long nClassID, long nFBillID, long nFPage, long nFBillEntryID, KFO.Dictionary dctBillCheckRecord)
 {
 }
Ejemplo n.º 11
0
 protected virtual void DoAfterDel(string sDsn, long nClassID, KFO.Dictionary dctClassType, long nInterID)
 {
 }