示例#1
0
 private decimal GetTempvalue(bool isUnboundColumn, XPBaseObject selectedObject, string columnName)
 {
     return(isUnboundColumn
         ? +Convert.ToDecimal(selectedObject.Evaluate(_gridView.FocusedColumn.UnboundExpression))
         : (columnName.Contains(".")
             ? +Convert.ToDecimal(selectedObject.Evaluate(CriteriaOperator.Parse(columnName)))
             : +Convert.ToDecimal(selectedObject.GetMemberValue(columnName))));
 }
        private string GetItemText(XPBaseObject xpObject)
        {
            if (xpObject == null)
            {
                return(null);
            }

            if (!ReferenceEquals(ItemTextCriteria, null))
            {
                var result = xpObject.Evaluate(ItemTextCriteria);
                return(Convert.ToString(result));
            }
            return(null);
        }