Пример #1
0
        public FieldExport(string recordTypeLabel, string recordTypeSchemaName, string fieldLabel,
                           string fieldSchemaName, RecordFieldType fieldType, bool isCustomField, bool isMandatory, string description,
                           bool isPrimaryField, bool audit, bool searchable, bool displayInRelated, string referencedType,
                           int maxLength, string textFormat, string integerFormat, string dateBehaviour, bool includeTime, string minValue, string maxValue,
                           string decimalPrecision, string picklistOptions, string metadataId, bool isMultiSelect)
        {
            DecimalPrecision     = decimalPrecision;
            RecordTypeSchemaName = recordTypeSchemaName;
            FieldSchemaName      = fieldSchemaName;
            FieldLabel           = fieldLabel;
            FieldType            = fieldType;
            Description          = description;
            IsPrimaryField       = isPrimaryField;
            IsMandatory          = isMandatory;
            Audit      = audit;
            Searchable = searchable;
            ReferencedTypeSchemaName = referencedType;
            DisplayInRelated         = displayInRelated;
            MaxLength       = maxLength;
            TextFormat      = textFormat;
            IntegerFormat   = integerFormat;
            DateBehaviour   = dateBehaviour;
            IncludeTime     = includeTime;
            MinValue        = minValue;
            MaxValue        = maxValue;
            PicklistOptions = picklistOptions;

            RecordTypeLabel = recordTypeLabel;
            IsCustomField   = isCustomField;

            MetadataId = metadataId;

            IsMultiSelect = isMultiSelect;
        }
 public ColumnMetadata(string fieldName, string fieldLabel, RecordFieldType fieldType, double widthPart,
                       bool isEditable)
 {
     FieldName  = fieldName;
     FieldLabel = fieldLabel;
     FieldType  = fieldType;
     WidthPart  = widthPart;
     IsEditable = isEditable;
 }
Пример #3
0
 public ColumnMetadata(string fieldName, string fieldLabel, RecordFieldType fieldType, double widthPart,
                       bool isEditable, string tooltip, HorizontalJustify justify)
 {
     FieldName         = fieldName;
     FieldLabel        = fieldLabel;
     FieldType         = fieldType;
     WidthPart         = widthPart;
     IsEditable        = isEditable;
     Tooltip           = tooltip;
     HorizontalJustify = justify;
 }
 public ColumnMetadata(string recordType, string fieldName, string fieldLabel, RecordFieldType fieldType, double widthPart,
                       bool isEditable, string tooltip, HorizontalJustify justify, bool displayColumnHeader, string aliasedFieldName)
 {
     RecordType          = recordType;
     AliasedFieldName    = aliasedFieldName;
     DisplayColumnHeader = displayColumnHeader;
     FieldName           = fieldName;
     FieldLabel          = fieldLabel;
     FieldType           = fieldType;
     WidthPart           = widthPart;
     IsEditable          = isEditable;
     Tooltip             = tooltip;
     HorizontalJustify   = justify;
 }
Пример #5
0
 public HorizontalJustify GetHorizontalJustify(RecordFieldType fieldType)
 {
     if (new[] { RecordFieldType.Boolean, RecordFieldType.Url }.Contains(fieldType))
     {
         return(HorizontalJustify.Middle);
     }
     else if (IsReadOnly && new[] { RecordFieldType.ManagedProperty, RecordFieldType.Object, RecordFieldType.BigInt, RecordFieldType.Password, RecordFieldType.Uniqueidentifier, RecordFieldType.Status, RecordFieldType.State, RecordFieldType.Owner, RecordFieldType.Customer, RecordFieldType.Lookup, RecordFieldType.Date, RecordFieldType.RecordType, RecordFieldType.RecordField, RecordFieldType.Picklist, RecordFieldType.Integer, RecordFieldType.Decimal, RecordFieldType.Double, RecordFieldType.Money }.Contains(fieldType))
     {
         return(HorizontalJustify.Middle);
     }
     else
     {
         return(HorizontalJustify.Left);
     }
 }
        public static Type GetClrType(this RecordFieldType fieldType)
        {
            switch (fieldType)
            {
            case RecordFieldType.String:
                return(typeof(string));

            case RecordFieldType.Long:
                return(typeof(long));

            case RecordFieldType.Double:
                return(typeof(double));

            default:
                throw new ArgumentOutOfRangeException(nameof(fieldType), fieldType, null);
            }
        }
        public static string GetReadMethodName(this RecordFieldType fieldType)
        {
            switch (fieldType)
            {
            case RecordFieldType.String:
                return(nameof(IBinaryReader.ReadString));

            case RecordFieldType.Long:
                return(nameof(IBinaryReader.ReadLong));

            case RecordFieldType.Double:
                return(nameof(IBinaryReader.ReadDouble));

            default:
                throw new ArgumentOutOfRangeException(nameof(fieldType), fieldType, null);
            }
        }
        public static string GetShortTypeName(this RecordFieldType fieldType)
        {
            switch (fieldType)
            {
            case RecordFieldType.String:
                return("string");

            case RecordFieldType.Long:
                return("long");

            case RecordFieldType.Double:
                return("double");

            default:
                throw new ArgumentOutOfRangeException(nameof(fieldType), fieldType, null);
            }
        }
Пример #9
0
 public ColumnGridFinder(string columnid, string header, int width, bool sortable, string dataindex, string ScriptRenderer, string recordfield, RecordFieldType Datatype, bool isreturnvalue)
 {
     this.ColumnId      = columnid;
     this.Header        = header;
     this.Width         = width;
     this.Sortable      = sortable;
     this.DataIndex     = dataindex;
     this.Renderer      = ScriptRenderer;
     this.RecordField   = recordfield;
     this.IsReturnValue = isreturnvalue;
     this.datatype      = Datatype;
 }
Пример #10
0
        public void Add(string header, int width, bool sortable, string dataindex, string ScriptRenderer, string recordfield, bool isreturnvalue, RecordFieldType Datatype)
        {
            ColumnGridFinder col = new ColumnGridFinder(header, width, sortable, dataindex, ScriptRenderer, recordfield, Datatype, isreturnvalue);

            ListColumn.Add(col);
        }
Пример #11
0
        public void Add(string columnid, string header, int width, bool sortable, string dataindex, string ScriptRenderer, string recordfield, bool isreturnvalue, bool ishidden, RecordFieldType Datatype)
        {
            ColumnGridFinder col = new ColumnGridFinder();

            col.ColumnId      = columnid;
            col.Header        = header;
            col.Width         = width;
            col.Sortable      = sortable;
            col.DataIndex     = dataindex;
            col.Renderer      = ScriptRenderer;
            col.RecordField   = recordfield;
            col.IsReturnValue = isreturnvalue;
            col.IsHidden      = ishidden;
            col.datatype      = Datatype;
            ListColumn.Add(col);
        }
Пример #12
0
 public ColumnGridFinder(string header, int width, bool sortable, string dataindex, string ScriptRenderer, string recordfield, RecordFieldType Datatype)
 {
     this.Header      = header;
     this.Width       = width;
     this.Sortable    = sortable;
     this.DataIndex   = dataindex;
     this.Renderer    = ScriptRenderer;
     this.RecordField = recordfield;
     this.datatype    = Datatype;
 }
Пример #13
0
 /// <summary>
 ///
 /// </summary>
 public virtual void Add(string name, RecordFieldType type)
 {
     this.Add(new RecordField(name, type));
 }
Пример #14
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="name"></param>
 /// <param name="type"></param>
 /// <param name="dateFormat"></param>
 public virtual void Add(string name, RecordFieldType type, string dateFormat)
 {
     this.Add(new RecordField(name, type, dateFormat));
 }
Пример #15
0
 public RecordField(string name, RecordFieldType type, string dateFormat)
 {
     this.Name       = name;
     this.Type       = type;
     this.DateFormat = dateFormat;
 }
Пример #16
0
 public RecordField(string name, RecordFieldType type)
 {
     this.Name = name;
     this.Type = type;
 }
 public virtual HorizontalJustify GetHorizontalJustify(RecordFieldType fieldType)
 {
     return(HorizontalJustify.Left);
 }
Пример #18
0
 public RecordField(string name, RecordFieldType type, string dateFormat)
 {
     this.Name = name;
     this.Type = type;
     this.DateFormat = dateFormat;
 }
 public NonPersistentFormField(string fieldName, string label, RecordFieldType recordFieldType)
     : base(fieldName)
 {
     RecordFieldType = recordFieldType;
     Label           = label;
 }
Пример #20
0
 public HorizontalJustify GetHorizontalJustify(RecordFieldType fieldType)
 {
     return(fieldType.GetHorizontalJustify(IsReadOnly));
 }
Пример #21
0
 public AnyFieldMetadata(string recordType, string internalName, string label, RecordFieldType fieldType)
     : base(recordType, internalName, label)
 {
     _fieldType = fieldType;
 }
Пример #22
0
 public override HorizontalJustify GetHorizontalJustify(RecordFieldType fieldType)
 {
     return(GridViewModel == null ? HorizontalJustify.Left : GridViewModel.GetHorizontalJustify(fieldType));
 }
Пример #23
0
 /// <summary>
 /// The data type for conversion to displayable value
 /// </summary>
 public virtual RecordField.Builder Type(RecordFieldType type)
 {
     this.ToComponent().Type = type;
     return(this as RecordField.Builder);
 }
Пример #24
0
 public RecordField(string name, RecordFieldType type)
 {
     this.Name = name;
     this.Type = type;
 }