Exemplo n.º 1
0
        private void CustomColumnDisplayText(object sender, CustomColumnDisplayTextEventArgs e)
        {
            if (_attributesCache.ContainsKey(e.Column.FieldName))
            {
                foreach (CustomAttribute a in _attributesCache[e.Column.FieldName])
                {
                    a.applyGetFieldDisplayText(this, e);
                }
            }

            // eventual override
            GetFieldDisplayText(sender, e);
        }
Exemplo n.º 2
0
        protected override void GetFieldDisplayText(object sender, xwcs.core.db.binding.CustomColumnDisplayTextEventArgs e)
        {
            try {
                FilterObjectbase fo = this[e.ListSourceRowIndex] as FilterObjectbase;
                if (fo != null)
                {
                    ICriteriaTreeNode cn = fo.GetFilterFieldByPath(e.Column.FieldName);
                    if (cn.HasCriteria())
                    {
                        string cond = cn.GetCondition().LegacyToString();
                        e.DisplayText = cond;
                    }
                }
            }
#if DEBUG_TRACE_LOG_ON
            catch (Exception ex) {
                SLogManager.getInstance().getClassLogger(GetType()).Debug(ex.ToString());
#else
            catch (Exception) {
#endif
            } //just silently skip problems
        }
Exemplo n.º 3
0
 protected virtual void GetFieldDisplayText(object sender, CustomColumnDisplayTextEventArgs e)
 {
     //just to be overloaded if necessary
 }