예제 #1
0
        public static void SetStyle(byte rplId, object styleProp, StyleWriter writer)
        {
            switch (rplId)
            {
            case 33:
                break;

            case 37:
            {
                int num = (int)styleProp;
                if (num > 0)
                {
                    writer.Write(rplId, num);
                }
                break;
            }

            default:
            {
                bool flag          = true;
                byte?stylePropByte = PageItem.GetStylePropByte(rplId, styleProp, ref flag);
                int? nullable      = stylePropByte;
                if (nullable.HasValue)
                {
                    writer.Write(rplId, stylePropByte.Value);
                }
                else if (flag)
                {
                    writer.Write(rplId, styleProp.ToString());
                }
                break;
            }
            }
        }
예제 #2
0
        internal static void SetStyle(byte rplId, object styleProp, StyleWriter writer)
        {
            switch (rplId)
            {
            case 33:
                return;

            case 37:
            {
                int num = (int)styleProp;
                if (num > 0)
                {
                    writer.Write(rplId, num);
                }
                return;
            }
            }
            bool convertToString = true;
            byte?stylePropByte   = PageItem.GetStylePropByte(rplId, styleProp, ref convertToString);

            if (stylePropByte.HasValue)
            {
                writer.Write(rplId, stylePropByte.Value);
            }
            else if (convertToString)
            {
                writer.Write(rplId, styleProp.ToString());
            }
        }
예제 #3
0
 public static void AddStyle(byte rplId, ReportColorProperty prop, StyleWriter writer)
 {
     if (prop != null && prop.Value != null)
     {
         writer.Write(rplId, prop.Value.ToString());
     }
 }
예제 #4
0
 public static void AddStyle(byte rplId, ReportIntProperty prop, StyleWriter writer)
 {
     if (prop != null)
     {
         writer.Write(rplId, prop.Value);
     }
 }
예제 #5
0
 internal static void AddStyle(byte rplId, ReportStringProperty prop, StyleWriter writer)
 {
     if (prop != null && prop.Value != null)
     {
         writer.Write(rplId, prop.Value);
     }
 }
예제 #6
0
        internal static void AddStyle(byte rplId, ReportProperty prop, StyleWriter writer)
        {
            byte?stylePropByte = PageItem.GetStylePropByte(rplId, prop);

            if (stylePropByte.HasValue)
            {
                writer.Write(rplId, stylePropByte.Value);
            }
        }
예제 #7
0
        public static void AddStyle(byte rplId, ReportProperty prop, StyleWriter writer)
        {
            byte?stylePropByte = PageItem.GetStylePropByte(rplId, prop);
            int? nullable      = stylePropByte;

            if (nullable.HasValue)
            {
                writer.Write(rplId, stylePropByte.Value);
            }
        }