コード例 #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;
        }
コード例 #2
0
 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;
 }
コード例 #4
0
 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);
     }
 }
コード例 #6
0
        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);
            }
        }
コード例 #7
0
        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);
            }
        }
コード例 #8
0
        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;
 }
コード例 #17
0
 public virtual HorizontalJustify GetHorizontalJustify(RecordFieldType fieldType)
 {
     return(HorizontalJustify.Left);
 }
コード例 #18
0
ファイル: RecordField.cs プロジェクト: pgodwin/Ext.net
 public RecordField(string name, RecordFieldType type, string dateFormat)
 {
     this.Name = name;
     this.Type = type;
     this.DateFormat = dateFormat;
 }
コード例 #19
0
 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
ファイル: RecordField.cs プロジェクト: pgodwin/Ext.net
 public RecordField(string name, RecordFieldType type)
 {
     this.Name = name;
     this.Type = type;
 }