Exemple #1
0
        private void SetStartDate(Proposal proposal)
        {
            var level = proposal.Level;

            if (level == StudyLevel.Bachelor)
            {
                var startingDate = _systemSettingsGetter.GetSystemSettings().BachelorThesisStartDate;
                proposal.StartingDate = startingDate;
            }
            else
            {
                var startingDate = _systemSettingsGetter.GetSystemSettings().MasterThesisStartDate;
                proposal.StartingDate = startingDate;
            }
        }
Exemple #2
0
        public Table getTableWithProposalInformation(ProposalDocRecord record)
        {
            Table diplomaTable = new Table();

            diplomaTable.AppendChild <TableProperties>(_tablePropertiesGetter.getHorizontalBorderTableProperties());

            TableRow dipTableRow1 = new TableRow();

            dipTableRow1.Append(new TableRowProperties(new TableRowHeight()
            {
                HeightType = HeightRuleValues.Exact, Val = 180
            }));
            TableCell dipTableCell11 = new TableCell();

            dipTableCell11.Append(_tablePropertiesGetter.getTableCellPropFilled("1559", "000000"));
            dipTableCell11.Append(_paragraphGetter.getSmallCenteredText(""));
            TableCell dipTableCell12 = new TableCell();

            dipTableCell12.Append(_tablePropertiesGetter.getTableCellPropFilled("534", "CCCCCC"));
            dipTableCell12.Append(_paragraphGetter.getSmallCenteredText(""));
            TableCell dipTableCell13 = new TableCell();

            dipTableCell13.Append(_tablePropertiesGetter.getTableCellPropFilled("7087", "CCCCCC"));
            dipTableCell13.Append(_paragraphGetter.getSmallCenteredText(""));
            dipTableRow1.Append(dipTableCell11, dipTableCell12, dipTableCell13);


            TableRow dipTableRow2 = new TableRow();

            dipTableRow2.Append(new TableRowProperties(new TableRowHeight()
            {
                Val = 300
            }));
            TableCell dipTableCell21 = new TableCell();

            dipTableCell21.Append(_tablePropertiesGetter.getTableCellPropCentered("1559"));
            dipTableCell21.Append(_paragraphGetter.getNormalRightText(_localizer["Tytuł pracy:"]));
            TableCell dipTableCell22 = new TableCell();

            dipTableCell22.Append(_tablePropertiesGetter.getTableCellPropCentered("534"));
            dipTableCell22.Append(_paragraphGetter.getNormalText(""));
            TableCell dipTableCell23 = new TableCell();

            dipTableCell23.Append(_tablePropertiesGetter.getTableCellPropCentered("7087"));
            dipTableCell23.Append(_paragraphGetter.getNormalText(record.TopicPolish));
            dipTableRow2.Append(dipTableCell21, dipTableCell22, dipTableCell23);

            TableRow dipTableRow3 = new TableRow();

            dipTableRow3.Append(new TableRowProperties(new TableRowHeight()
            {
                Val = 300
            }));
            TableCell dipTableCell31 = new TableCell();

            dipTableCell31.Append(_tablePropertiesGetter.getTableCellPropCentered("1559"));
            dipTableCell31.Append(_paragraphGetter.getNormalRightText(_localizer["Wersja angielska tytułu:"]));
            TableCell dipTableCell32 = new TableCell();

            dipTableCell32.Append(_tablePropertiesGetter.getTableCellPropCentered("534"));
            dipTableCell32.Append(_paragraphGetter.getNormalText(""));
            TableCell dipTableCell33 = new TableCell();

            dipTableCell33.Append(_tablePropertiesGetter.getTableCellPropCentered("7087"));
            dipTableCell33.Append(_paragraphGetter.getItalicText(record.TopicEnglish));
            dipTableRow3.Append(dipTableCell31, dipTableCell32, dipTableCell33);

            TableRow dipTableRow4 = new TableRow();

            dipTableRow4.Append(new TableRowProperties(new TableRowHeight()
            {
                Val = 300
            }));
            TableCell dipTableCell41 = new TableCell();

            dipTableCell41.Append(_tablePropertiesGetter.getTableCellPropCentered("1559"));
            dipTableCell41.Append(_paragraphGetter.getNormalRightText(_localizer["Dane wyjściowe:"]));
            TableCell dipTableCell42 = new TableCell();

            dipTableCell42.Append(_tablePropertiesGetter.getTableCellPropCentered("534"));
            dipTableCell42.Append(_paragraphGetter.getNormalText(""));
            TableCell dipTableCell43 = new TableCell();

            dipTableCell43.Append(_tablePropertiesGetter.getTableCellPropCentered("7087"));
            dipTableCell43.Append(_paragraphGetter.getNormalText(record.OutputData));
            dipTableRow4.Append(dipTableCell41, dipTableCell42, dipTableCell43);

            TableRow dipTableRow5 = new TableRow();

            dipTableRow5.Append(new TableRowProperties(new TableRowHeight()
            {
                Val = 300
            }));
            TableCell dipTableCell51 = new TableCell();

            dipTableCell51.Append(_tablePropertiesGetter.getTableCellPropCentered("1559"));
            dipTableCell51.Append(_paragraphGetter.getNormalRightText(_localizer["Zakres pracy:"]));
            TableCell dipTableCell52 = new TableCell();

            dipTableCell52.Append(_tablePropertiesGetter.getTableCellPropCentered("534"));
            dipTableCell52.Append(_paragraphGetter.getNormalText(""));
            TableCell dipTableCell53 = new TableCell();

            dipTableCell53.Append(_tablePropertiesGetter.getTableCellPropCentered("7087"));
            dipTableCell53.Append(_paragraphGetter.getNormalText(record.Description));
            dipTableRow5.Append(dipTableCell51, dipTableCell52, dipTableCell53);

            TableRow dipTableRow6 = new TableRow();

            dipTableRow6.Append(new TableRowProperties(new TableRowHeight()
            {
                Val = 300
            }));
            TableCell dipTableCell61 = new TableCell();

            dipTableCell61.Append(_tablePropertiesGetter.getTableCellPropCentered("1559"));
            dipTableCell61.Append(_paragraphGetter.getNormalRightText(_localizer["Termin oddania pracy:"]));
            TableCell dipTableCell62 = new TableCell();

            dipTableCell62.Append(_tablePropertiesGetter.getTableCellPropCentered("534"));
            dipTableCell62.Append(_paragraphGetter.getNormalText(""));
            TableCell dipTableCell63 = new TableCell();

            dipTableCell63.Append(_tablePropertiesGetter.getTableCellPropCentered("7087"));
            dipTableCell63.Append(_paragraphGetter.getNormalText(
                                      record.Level.ToLower().Contains("mag") ?
                                      _systemSettingsGetter.GetSystemSettings().MasterThesisFinishDate.ToString("yyyy'-'MM'-'dd") :
                                      _systemSettingsGetter.GetSystemSettings().BachelorThesisFinishDate.ToString("yyyy'-'MM'-'dd")));
            dipTableRow6.Append(dipTableCell61, dipTableCell62, dipTableCell63);

            TableRow dipTableRow7 = new TableRow();

            dipTableRow7.Append(new TableRowProperties(new TableRowHeight()
            {
                Val = 300
            }));
            TableCell dipTableCell71 = new TableCell();

            dipTableCell71.Append(_tablePropertiesGetter.getTableCellPropCentered("1559"));
            dipTableCell71.Append(_paragraphGetter.getNormalRightText(_localizer["Promotor:"]));
            TableCell dipTableCell72 = new TableCell();

            dipTableCell72.Append(_tablePropertiesGetter.getTableCellPropCentered("534"));
            dipTableCell72.Append(_paragraphGetter.getNormalText(""));
            TableCell dipTableCell73 = new TableCell();

            dipTableCell73.Append(_tablePropertiesGetter.getTableCellPropCentered("7087"));
            dipTableCell73.Append(_paragraphGetter.getNormalText(record.Promoter));
            dipTableRow7.Append(dipTableCell71, dipTableCell72, dipTableCell73);

            TableRow dipTableRow8 = new TableRow();

            dipTableRow8.Append(new TableRowProperties(new TableRowHeight()
            {
                Val = 300
            }));
            TableCell dipTableCell81 = new TableCell();

            dipTableCell81.Append(_tablePropertiesGetter.getTableCellPropCentered("1559"));
            dipTableCell81.Append(_paragraphGetter.getNormalRightText(_localizer["Jednostka organizacyjna promotora:"]));
            TableCell dipTableCell82 = new TableCell();

            dipTableCell82.Append(_tablePropertiesGetter.getTableCellPropCentered("534"));
            dipTableCell82.Append(_paragraphGetter.getNormalText(""));
            TableCell dipTableCell83 = new TableCell();

            dipTableCell83.Append(_tablePropertiesGetter.getTableCellPropCentered("7087"));
            dipTableCell83.Append(_paragraphGetter.getNormalText(record.Institute));
            dipTableRow8.Append(dipTableCell81, dipTableCell82, dipTableCell83);

            diplomaTable.Append(dipTableRow1, dipTableRow2, dipTableRow3, dipTableRow4, dipTableRow5, dipTableRow6, dipTableRow7, dipTableRow8);

            return(diplomaTable);
        }