Package br.com.visualmidia.business

Examples of br.com.visualmidia.business.Employee


            fillMessagePhone(person.getMessagePhone());
            fillContact(person.getContact());
            fillPhoto(person.getId());

            if (person.isPersonType("employee")) {
              Employee employee = (Employee) person.getPersonType("employee");
              fillPaymentDate(employee.getPaymentDay());
                fillPosition(employee.getPosition());
                fillWalletWorkNumber(employee.getWalletWorkNumber());
                fillRegisterDate(employee.getRegisterDate());
                fillBeginDate(employee.getBeginDate());
                fillDismissedDate(employee.getDismissedDate());
                fillWorkTime(employee.getWorkTime());
                fillObservation(employee.getObservation());
                fillFinantialInfo(employee.getFinantialInfo());
                fillLastCompanyName(employee.getLastCompanyName());
                fillLastCompanyAdress(employee.getLastCompanyAddress());
                fillLastCompanyPhone(employee.getLastCompanyPhone());
                fillLastWage(employee.getLastWage());
                fillLastJobFunction(employee.getLastJobFunction());
                fillLastRegisteredWage(employee.getLastRegisteredWage());
                fillMotiveToLeave(employee.getMotiveToLeave());
                fillIfRegistered(employee.getIfRegistered());
                fillLastJobTime(employee.getLastJobTime());
                fillExperience(employee.getExperiences());
                fillKnowledgement(employee.getKnowledgement());

                fillResponsableName(employee.getResponsableName());
                fillResponsablePhone(employee.getResponsablePhone());
                fillResponsableRelation(employee.getResponsableRelation());
                fillResponsableCPF(employee.getResponsableCPF());
                fillResponsableRG(employee.getResponsableRG());
            }else{
              fillPaymentDate("");
                fillPosition("");
                fillWalletWorkNumber("");
                fillRegisterDate("");
View Full Code Here


        try {
            Map<String, Person> employees = (Map<String, Person>) system.query(new GetEmployee());

            for (Person person : employees.values()) {
                Employee employee = (Employee) person.getPersonType("employee");
                if (!accountCotrolCenter.isPersonHasRegisterMachineAccount(person.getName()) && employee.isActivated()) {
                    personCombo.add(person.getName());
                }
            }
        } catch (Exception e) {
        }
View Full Code Here

        item.setText(16, employee.getRg());
        item.setText(17, employee.getState());
        item.setText(18, employee.getStreet());
        item.setText(19, employee.getStreetComplement());
        item.setText(20, employee.getStreetNumber() + "");
        Employee employeer = ((Employee) employee
            .getPersonType("employee"));
        item.setText(21, employeer.getBeginDate());
        item.setText(22, employeer.getDismissedDate());
        item.setText(23, employeer.getExperiences());
        item.setText(24, employeer.getIfRegistered());
        item.setText(25, employeer.getKnowledgement());
        item.setText(26, employeer.getLastCompanyAddress());
        item.setText(27, employeer.getLastCompanyName());
        item.setText(28, employeer.getLastCompanyPhone());
        item.setText(29, employeer.getLastJobFunction());
        item.setText(30, employeer.getLastJobTime());
        item.setText(31, employeer.getLastRegisteredWage());
        item.setText(32, employeer.getLastWage());
        item.setText(33, employeer.getMotiveToLeave());
        item.setText(34, employeer.getObservation());
        item.setText(35, employeer.getPaymentDay());
        item.setText(36, employeer.getPosition());
        item.setText(37, employeer.getRegisterDate());
        item.setText(38, employeer.getResponsableCPF());
        item.setText(39, employeer.getResponsableName());
        item.setText(40, employeer.getResponsablePhone());
        item.setText(41, employeer.getResponsableRelation());
        item.setText(42, employeer.getResponsableRG());
        item.setText(43, employeer.getWalletWorkNumber());
//        List<FinancialInfo> financialinfos = (List<FinancialInfo>) employeer.getFinantialInfo();
        for ( FinancialInfo  financialinfo : employeer.getFinantialInfo())
          item.setText(44,financialinfo.toString());
        item.setText(45, employeer.getWorkTime().toString());
      }

      // }
    } catch (Exception e) {
      logger.error("GetUsers Error: ", e);
View Full Code Here

    public boolean authenticate(String userName, String passWord) {
        Person person;
        try {
            person = (Person) query(new GetUser(userName));
            if (person.isPersonType("employee")) {
                Employee employee = (Employee) person.getPersonType("employee");
                if (employee.isActivated()) {
                    User user = (User) person.getPersonType("user");
                    isAuthenticated = user.getPassword().equals(passWord);
                    if (isAuthenticated)
                        setLogged(person);
                }
View Full Code Here

      if(system.getEmployeePosition().get(i).equals(employeePosition)){
        break;
      }
    }
       
        Employee employee = (Employee) person.getPersonType("employee");
    if(employee != null){
      employee.setPosition(system.getEmployeePosition().get(i));
      employee.setWalletWorkNumber(walletWorkNumber);
      employee.setWorkTime(workTimeMap);
      employee.setBeginDate(beginDate);
      employee.setObservation(observation);
      employee.setRegisterDate(registerDate);
      employee.setDismissedDate(dismissedDate);
      employee.setPaymentDate(paymentDate);
      employee.setLastCompanyName(lastCompanyName);
      employee.setLastCompanyAddress(lastCompanyAddress);
      employee.setLastCompanyPhone(lastCompanyPhone);
      employee.setLastWage(lastWage);
      employee.setLastJobFunction(lastJobFunction);
      employee.setMotiveToLeave(motiveToLeave);
      employee.setIfRegistered(ifRegistered);
      employee.setLastJobTime(lastJobTime);
      employee.setExperiences(experiences);
      employee.setKnowledgement(knowledgement);
      employee.setFinantialInfo(finantialInfo);
      employee.setResponsableName(responsableName);
      employee.setResponsableRelation(responsableRelation);
      employee.setResponsableCPF(responsableCPF);
      employee.setResponsableRG(responsableRG);
      employee.setResponsablePhone(responsablePhone);
        }else{
          person.setPersonType("employee", new Employee(system.getEmployeePosition().get(i), walletWorkNumber, workTimeMap, beginDate, observation, registerDate, dismissedDate, paymentDate, lastCompanyName, lastCompanyAddress, lastCompanyPhone, lastWage, lastJobFunction, lastRegisteredWage, motiveToLeave, ifRegistered, lastJobTime, experiences, knowledgement, finantialInfo, responsableName, responsableRelation, responsableCPF, responsableRG, responsablePhone));
        }
       
  }
View Full Code Here

          if(system.getEmployeePosition().get(i).equals(position)){
            break;
          }
        }
       
        person.setPersonType("employee", new Employee(system.getEmployeePosition() .get(i), walletWorkNumber, workTimeMap, beginDate, observation, registerDate, dismissedDate, paymentDate, lastCompanyName, lastCompanyAddress, lastCompanyPhone, lastWage, lastJobFunction, lastRegisteredWage, motiveToLeave, ifRegistered, lastJobTime, experiences, knowledgement, finantialInfo, responsableName, responsableRelation, responsableCPF, responsableRG, responsablePhone));

        if (userName.equals("")){
          person.removePersonType("user");
        } else {
          User user;
View Full Code Here

        try {
            List<Person> employeeList = new ArrayList<Person>();
            if(idEmployee == null){
                Map<String, Person> employeesMap = (Map<String, Person>) system.query(new GetEmployee());
                for (Person person : employeesMap.values()) {
                    Employee employee = (Employee) person.getPersonType("employee");
                   
//                    if (date.get(Calendar.DAY_OF_MONTH) == Integer.parseInt(employee.getPaymentDay()) && employee.isActivated()) {
                    if (employee.isActivated()) {
                        employeeList.add(person);
                    }
                }
            } else
//              if(date == null){
//                Person person = (Person) system.query(new GetEmployee(idEmployee));
//                employeeList.add(person);
//            } else
              {
                Person person = (Person) system.query(new GetEmployee(idEmployee));
                Employee employee = (Employee) person.getPersonType("employee");
                if (employee.isActivated()) {
//                  if (date.get(Calendar.DAY_OF_MONTH) == Integer.parseInt(employee.getPaymentDay()) && employee.isActivated()) {
                    employeeList.add(person);
                }
            }
           
            for(Person person : employeeList){
                Employee employee = (Employee) person.getPersonType("employee");
                int posX = convert(10);
                int posY = convert(7);
               
                JRPrintPage page = new JRBasePrintPage();
               
                page.addElement(printImage("titleReport.gif", posX, posY, 535, 45));
//                page.addElement(printImage("logoReport.gif", posX+11, posY, 65, 45));
                page.addElement(insertTitle("HOLERITE", posX+200, posY+11, 250));
                page.addElement(printImage("corporateLogo.jpg", posX+456, posY, 77, 45));
               
                posY += 50;
               
                page.addElement(drawGrayRectangle(posX, posY, 535, 20, 3));
                page.addElement(insertBoldText("Nome: ", posX+5, posY+3, 40));
                page.addElement(insertNormalText(person.getName(), posX+45, posY+3, convert(190)-40, 15));
               
                posY += 25;
               
                page.addElement(insertBoldText("CPF: ", posX+2, posY, 30));
                page.addElement(insertNormalText(person.getCpf(), posX+30, posY, 100, 15));
                page.addElement(insertBoldText("RG: ", posX+132, posY, 30));
                page.addElement(insertNormalText(person.getRg(), posX+160, posY, 100, 15));
                page.addElement(insertBoldText("Per�odo de                          �", posX+262, posY, convert(190)-262));
                page.addElement(drawHorizontalLine(posX, posY+15, convert(190)));
               
                posY += 15;
               
                createFinantialTableHeader(posX, posY, page);
               
                posY += 15;
               
                int cont = 1;
                Money totalCredit = new Money(0);
                Money totalDebit = new Money(0);
                for(FinancialInfo financialInfo : employee.getFinantialInfo()){
                    if(isDateIntoFinancialInfo(financialInfo, date)) {
                        page.addElement(drawRectangle(posX, posY, convert(190), 15, 0));
                        page.addElement(insertRightText(String.valueOf(cont), posX+2, posY, 36));
                        page.addElement(drawVerticalLine(posX+40, posY, 15));
                        page.addElement(insertRightText(String.valueOf(financialInfo.getDate().getMonth()), posX+42, posY, 66));
View Full Code Here

TOP

Related Classes of br.com.visualmidia.business.Employee

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.