Esempio n. 1
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;
    }