Пример #1
0
        protected override bool beforeUpdateInsertAction()
        {
            //如果没默认值.
            if (this.DefVal == "")
            {
                this.DefVal = "0";
            }

            MapAttr attr = new MapAttr();

            attr.MyPK = this.MyPK;
            attr.RetrieveFromDBSources();

            //是否显示合计
            attr.IsSum = this.GetValBooleanByKey("ExtIsSum");

            //增加保留小数位数.
            attr.SetPara("DecimalDigits", this.GetValIntByKey("DecimalDigits"));
            attr.Update();

            return(base.beforeUpdateInsertAction());
        }