Exemplo n.º 1
0
    public ReportFactory(String templatePath, String destinationPath, DateTime dataDocumento, Pessoa self, Pessoa avaliado, Projecto proj, String endMarker)
    {
        this.templatePath = templatePath;
        this.destPath = destinationPath;
        this._self = self;
        this._avaliado = avaliado;
        this._projecto = proj;
        this._endMarker = endMarker;

        _Modelo = ModeloCompetencias.getDBModelo(_projecto.owner, ModeloCompetencias.getPessoaModelo(_avaliado.PessoaID, _projecto.ProjectoID));
        _Modelo.loadFull(_projecto.owner, null);

        repCalcs = new ReportCalculations(_Modelo, self, avaliado, proj);
        if (!repCalcs.Init())
            repCalcs = null;

        CountUps = 0;
        CountHoriz = 0;
        CountDown = 0;
    }
Exemplo n.º 2
0
    public ReportFactory(String templatePath, String destinationPath, DateTime dataDocumento, Pessoa self, Ticket ticket, Projecto proj, String endMarker, String langCode)
    {
        this.templatePath = templatePath;
        this.destPath = destinationPath;
        this._self = self;
        this._ticket = ticket;
        this._projecto = proj;
        this._endMarker = endMarker;
        this.langCode = langCode;

        _Modelo = ModeloCompetencias.getDBModelo(_projecto.owner, ModeloCompetencias.getPessoaModelo(_self.PessoaID, _projecto.ProjectoID));
        _Modelo.loadFull(_projecto.owner, ticket);
        _Modelo.traslateTo(langCode);

        repCalcs = new ReportCalculations(_Modelo, _self.PessoaID, _projecto);

        if (!repCalcs.Init())
            repCalcs = null;

        CountUps = 0;
        CountHoriz = 0;
        CountDown = 0;
    }