Examples of employees()


Examples of com.zesped.model.TaxPayer.employees()

        if (sFormerId.length()>0) {
            oEmpl = new Employee();
            oEmpl.load(getSession(), sFormerId);
        } else {
            TaxPayer oTxpr = new TaxPayer(getSession().getDms(), getParam("taxPayer"));
            oEmpl = new Employee(getSession(), oTxpr.employees(getSession()));
        }
        saveRequest(oEmpl);
        disconnect();
          addDataLine("uuid",oEmpl.getUuid());
          addDataLine("id",oEmpl.id());
View Full Code Here

Examples of com.zesped.model.TaxPayer.employees()

        Log.out.debug("BillNote with Id "+bill.id()+" found for concept "+sConcept+" and employee "+sBeanEmployeeUUID);
        if (bill.isOpen()) {
          final String sBillEmployeeUUID = (bill.getEmployeeUuid()==null ? "" : bill.getEmployeeUuid());
          if (sBillEmployeeUUID.length()==0) {
            Log.out.debug("Assigning BillNote "+bill.id()+" to employee "+sBeanEmployeeUUID);
            bill.setEmployee(txpy.employees(getSession()).seek(getSession(), sBeanEmployeeUUID));
            bill.save(getSession());
            setBillNoteId(bill.id());
          } else if (sBillEmployeeUUID.equals(sBeanEmployeeUUID)) {
            setBillNoteId(bill.id());
          } else {
View Full Code Here

Examples of com.zesped.model.TaxPayer.employees()

  public Collection<Employee> getEmployees() throws StorageException {
    Collection<Employee> oEmps;
    try {
      connect(getSessionAttribute("nickname"), getSessionAttribute("password"));
      TaxPayer oTxp = new TaxPayer(getSession().getDms().getDocument(getRecipientTaxPayer()));
      oEmps = oTxp.employees(getSession()).list(getSession());
    } catch (Exception xcpt) {
      Log.out.error(xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
      oEmps = new ArrayList<Employee>();
    } finally {
      disconnect();     
View Full Code Here

Examples of com.zesped.model.TaxPayer.employees()

      concept = oBln.getConcept();
      ArrayList<Ticket> oTcs = oBln.tickets(getSession());
      int nTcs = oTcs.size();
      Log.out.debug("FastEditBillNote "+String.valueOf(nTcs)+" tickets found");
      TaxPayer oTxp = oBln.taxPayer(oDms);
      employees = oTxp.employees(getSession()).list(getSession());
      accaccounts = oTxp.accounts(getSession()).list(getSession());
      employeeName = oBln.getEmployeeName();
      employeeUuid = oBln.getEmployeeUuid();
      for (Ticket oTck : oTcs) {
        Log.out.debug("Reading ticket "+oTck.id());
View Full Code Here

Examples of com.zesped.model.TaxPayer.employees()

      final String sTemporaryBusinessName = Gadgets.generateUUID();     
      CustomerAccount oCac = CustomerAccount.create(oSes, oUsr, sTemporaryBusinessName);
      oSes.commit();
      TaxPayer oTxp = TaxPayer.create(oSes, oCac, sTemporaryBusinessName, "", oUsr.getFirstName()+" "+oUsr.getLastName(), oUsr.getEmail(), true, DAO.getVolumesMountBase());
      oSes.commit();
      Employee oEmp = new Employee(oSes, oTxp.employees(oSes));
      oEmp.setActive(true);
      oEmp.setUuid(oUsr.getNickName());
      oEmp.setName(oUsr.getFirstName()+" "+oUsr.getLastName());
      oEmp.save(oSes);
      oSes.commit();
View Full Code Here

Examples of com.zesped.model.TaxPayer.employees()

          oByOut.close();
        } catch (IOException ignore) { }
        DAO.log(oSes, oUsr.getDocument(), User.class, "SEND INVITATION", AtrilEvent.Level.INFO, sEmail);
      }
        if (bCreateEmp) {
        Employees oEms = oTxp.employees(oSes);
        try {
          oEms.seek(oSes, oUsr.getNickName());
        } catch (InstantiationException xcpt) {
          Log.out.error("AsyncSendInvitation Employees.seek() "+xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
        } catch (IllegalAccessException xcpt) {
View Full Code Here

Examples of com.zesped.model.TaxPayer.employees()

          oUsr.setRole(getSession(), oAcc, Role.valueOf(sRole));
        }
        if (sTxpr.length()>0) {
          Dms oDms = getSession().getDms();
            TaxPayer oTxp = new TaxPayer(oDms, sTxpr);
          Employees oEms = oTxp.employees(getSession());
          Employee oEmp = new Employee();
          Document e = oEmp.exists(getSession(), "employee_uuid", oUsr.getNickName());
            if (e!=null) {
            Log.out.debug("Employee already exists");
              oEmp.load(getSession(), e.id());
View Full Code Here

Examples of er.erxtest.model.Company.employees()

    // Fetch employees relationship of Company1 in OSC1
    assertContainsExactlyEOs(new NSArray<Employee>(employee_osc1), company_osc1.employees());

    // Fetch employees relationship of Company1 in OSC2
    assertContainsExactlyEOs(new NSArray<Employee>(employee_osc1), company_osc2.employees());
  }

  public void testAddToFaultedToMany() {
    // Create Company1 in OSC1
    String companyName = "Company" + ERXRandomGUID.newGid();
View Full Code Here

Examples of er.erxtest.model.Company.employees()

    editingContext_osc1.saveChanges();
    sleep();

    // Fetch employees for Company1 in OSC1
    @SuppressWarnings("unused")
  NSArray employees_osc1 = company_osc1.employees();

    // Fetch Company1 in OSC2
    EOEditingContext editingContext_osc2 = ERXEC.newEditingContext(ERXObjectStoreCoordinatorPool._pool().nextObjectStore());
    Company company_osc2 = Company.fetchCompany(editingContext_osc2, Company.NAME_KEY, companyName);
    assertNotNull(company_osc2);
View Full Code Here

Examples of er.erxtest.model.Company.employees()

    Company company_osc2 = Company.fetchCompany(editingContext_osc2, Company.NAME_KEY, companyName);
    assertNotNull(company_osc2);

    // Fetch employees for Company1 in OSC2
    @SuppressWarnings("unused")
  NSArray employees_osc2 = company_osc2.employees();

    // Create and Save Employee1 for Company1 in OSC1
    String employeeFirstName = "Employee" + ERXRandomGUID.newGid();
    String employeeLastName = "Jones";
    Employee employee_osc1 = Employee.createEmployee(editingContext_osc1, employeeFirstName, employeeLastName, Boolean.FALSE, company_osc1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.