示例#1
0
 public TextLabelInfo(decimal id, StructureType structureType, string structureName, string labelName, string fieldName, string defaultValue, List <RelateItem> relate, FormatInfo format, BaseControl contorl, GetDataMethod getDataMethod
                      , string dataSourceName, string configValue, string filterFieldName, string filterOperation, string filterValue)
 {
     this.ID            = id;
     this.StructureType = structureType;
     this.LabelName     = labelName;
     this.FieldName     = fieldName;
     this.DefaultValue  = defaultValue;
     this.Relate        = relate;
     if (format != null)//format.ValueField, format.TextField,
     {
         this.Format = new FormatItem(format.DecimalCount, format.Dividend, format.DateFormatString, format.IsUpperDate);
     }
     this.Control         = contorl;
     GetDataMethod_Name   = EnumHelper.GetEnumDescription(getDataMethod);
     this.DataSourceName  = dataSourceName;
     this.ConifgValue     = configValue;
     this.FilterFieldName = filterFieldName;
     this.FilterOperation = filterOperation;
     this.FilterValue     = filterValue;
     this.GetDataMethod   = getDataMethod;
     this.StructureName   = structureName;
 }
示例#2
0
 /// <summary>
 /// 初始化
 /// </summary>
 /// <param name="fieldName">字段名称</param>
 /// <param name="columnIndex">列序号</param>
 /// <param name="formatInfo">格式化信息</param>
 public ColumnInfo(string fieldName, int columnIndex, FormatInfo formatInfo)
 {
     this.FieldName   = fieldName;
     this.ColumnIndex = columnIndex;
     this.FormatInfo  = formatInfo;
 }