Ejemplo n.º 1
0
 private TextboxType CreateHeaderTableCellTextbox(ReportColumn field)
 {
     var headerTableCellTextbox = new TextboxType();
     headerTableCellTextbox.Name = field.Name + "_Header";
     headerTableCellTextbox.Items = new object[]
                                        {
                                            field.Value,
                                            CreateHeaderTableCellTextboxStyle(),
                                            true,
                                        };
     headerTableCellTextbox.ItemsElementName = new[]
                                                   {
                                                       ItemsChoiceType14.Value,
                                                       ItemsChoiceType14.Style,
                                                       ItemsChoiceType14.CanGrow,
                                                   };
     return headerTableCellTextbox;
 }
Ejemplo n.º 2
0
 private TableCellType CreateHeaderTableCell(ReportColumn field)
 {
     var headerTableCell = new TableCellType();
     headerTableCell.Items = new object[] {CreateHeaderTableCellReportItems(field)};
     return headerTableCell;
 }
Ejemplo n.º 3
0
 private ReportItemsType CreateHeaderTableCellReportItems(ReportColumn field)
 {
     var headerTableCellReportItems = new ReportItemsType();
     headerTableCellReportItems.Items = new object[] {CreateHeaderTableCellTextbox(field)};
     return headerTableCellReportItems;
 }
Ejemplo n.º 4
0
        private TextboxType CreateTableCellTextbox(ReportColumn field)
        {
            string fieldValue = "Fields!" + field.Name + ".Value";

            var textbox = new TextboxType();
            textbox.Name = field.Name;
            if (field.Name == "RowNumber")
            {
                textbox.Items = new object[]
                                    {
                                        "=RowNumber()",
                                        CreateTableCellTextboxStyle(),
                                        true,
                                    };
            }
            else
            {
                textbox.Items = new object[]
                                    {
                                        "=IIf(" + fieldValue + " = \"1\", \"Plaèal\", " +
                                        "IIf(" + fieldValue + " = \"2\", \"Ni plaèal\", " +
                                        "IIf(" + fieldValue + " = \"3\", \"Veteran\", " +
                                        "IIf(" + fieldValue + " = \"4\", \"Mladoletnik\", " +
                                        "IIf(" + fieldValue + " = \"5\", \"Ni podatka\", " + fieldValue + ")))))",
                                        CreateTableCellTextboxStyle(),
                                        true,
                                    };
            }
            textbox.ItemsElementName = new[]
                                           {
                                               ItemsChoiceType14.Value,
                                               ItemsChoiceType14.Style,
                                               ItemsChoiceType14.CanGrow,
                                           };
            return textbox;
        }