Exemplo n.º 1
0
        public static DevExpress.Utils.FormatInfo GetFormatInfo(XWPFieldMask Mask)
        {
            DevExpress.Utils.FormatType formatType = GetFormatType(Mask.MaskType);

            if (formatType != DevExpress.Utils.FormatType.None)
            {
                return new DevExpress.Utils.FormatInfo() { FormatType = formatType, FormatString = DataAvail.Utils.String.FormatMask(Mask.Mask) };
            }
            else
            {
                return DevExpress.Utils.FormatInfo.Empty;
            }
        }
Exemplo n.º 2
0
        public XWPField(XWPFields XWPFields, XElement XElement)
        {
            _xWPFields = XWPFields;

            XmlLinqElementReader reader = new XmlLinqElementReader(XElement, XOApplication.xmlReaderLog);

            _fieldName = reader.ReadAttribute("name", true);

            _caption = reader.ReadAttribute("caption");

            _readOnly = reader.ReadAttributeBool("readOnly", false);

            _mask = new XWPFieldMask(XElement);

            _controlType = reader.ReadAttribute("controlType");

            _parentDisplayField = reader.ReadAttribute("parentDisplayField");

            _fkInterfaceType = reader.ReadAttributeEnumFlags("fkInterface", XWPFieldFkInterfaceType.All, XWPFieldFkInterfaceType.Default);

            _fkSelectItemMode = reader.ReadAttributeEnumFlags("fkSelectItemMode", XOMode.All, XOMode.View);

            _bindingField = reader.ReadAttribute("bindingProperty");

            _displayType = reader.ReadAttributeEnumFlags("displayType", XWPFieldDisplayType.Anywhere, XWPFieldDisplayType.Anywhere);
        }