internal TypeTableScheme(Type type) { TkDebug.AssertArgumentNull(type, "type", null); TableName = type.Name; DisplayNameAttribute dispAttr = Attribute.GetCustomAttribute(type, typeof(DisplayNameAttribute), false) as DisplayNameAttribute; if (dispAttr != null) { TableDesc = dispAttr.DisplayName; } else { TableDesc = TableName; } fList = new RegNameList <PropertyFieldInfo>(); PropertyInfo[] props = type.GetProperties(BIND_ATTRIBUTE); if (props != null) { foreach (var prop in props) { PropertyFieldInfo info = PropertyFieldInfo.Create(prop); if (info != null) { fList.Add(info); } } } NameField = MetaDataUtil.GetNameField(fList); }
private void CopyFromProperyField(PropertyFieldInfo field, IPageStyle style) { Hint = field.Hint; HintPosition = field.HintPosition; SetFieldControl(field, style); if (field.Upload != null) { Upload = new Tk5UploadConfig(field.Upload); } SetDisplay(style); }
internal Tk5FieldInfoEx(PropertyFieldInfo field, IPageStyle style) { CopyFieldInfo(field); CopyFromProperyField(field, style); }