Exemple #1
0
        public bool IsNullImage(string fieldName)
        {
            if (EditedRow == null)
            {
                return(true);
            }
            var data = (Binary)EditedRow.GetPropertyValue(fieldName);

            return(data == null || data.Length == 0);
        }
Exemple #2
0
        public string GetDeleteWrapper(string fieldName, string columnName = "ID")
        {
            if (this.Settings == null || EditedRow == null)
            {
                return("");
            }

            return
                (string.Format("/Master/ru/UniversalEditor/ClearImage?tableName={0}&uidName={1}&uidValue={2}&fieldName={3}",
                               Settings.TableName, columnName, EditedRow.GetPropertyValue(columnName), fieldName));
        }