public override bool Save(DBAccess dba, bool update) { dba.ReInit(); dba.AddTable(DBConst.ACAT0200); dba.AddParam(DBConst.ACAT0201, Order); dba.AddParam(DBConst.ACAT0204, Parent); dba.AddParam(DBConst.ACAT0205, Text); dba.AddParam(DBConst.ACAT0206, Tips); dba.AddParam(DBConst.ACAT0207, Icon); dba.AddParam(DBConst.ACAT0208, Meta); dba.AddParam(DBConst.ACAT0209, Memo); dba.AddParam(DBConst.ACAT020A, DBConst.SQL_NOW, false); if (update) { dba.AddWhere(DBConst.ACAT0202, UserCode); dba.AddWhere(DBConst.ACAT0203, Id); dba.AddVcs(DBConst.ACAT020C, DBConst.ACAT020D, Operate, Cat.OPT_UPDATE); return 1 == dba.ExecuteUpdate(); } dba.AddParam(DBConst.ACAT0202, UserCode); dba.AddParam(DBConst.ACAT0203, Id); dba.AddParam(DBConst.ACAT020B, DBConst.SQL_NOW, false); dba.AddVcs(DBConst.ACAT020C, DBConst.ACAT020D); return 1 == dba.ExecuteInsert(); }