- VENTAS POR AUTORIZAR - MARCA ERROR AL VER LOS DETALLES
This commit is contained in:
parent
624d45589e
commit
ecf4937bb6
@ -1,13 +1,12 @@
|
|||||||
/*
|
/*
|
||||||
* Arrebol Consultancy copyright.
|
* Arrebol Consultancy copyright.
|
||||||
*
|
*
|
||||||
* This code belongs to Arrebol Consultancy
|
* This code belongs to Arrebol Consultancy
|
||||||
* its use, redistribution or modification are prohibited
|
* its use, redistribution or modification are prohibited
|
||||||
* without written authorization from Arrebol Consultancy.
|
* without written authorization from Arrebol Consultancy.
|
||||||
*/
|
*/
|
||||||
package com.arrebol.apc.web.beans.admin;
|
package com.arrebol.apc.web.beans.admin;
|
||||||
|
|
||||||
import com.arrebol.apc.controller.GenericController;
|
|
||||||
import com.arrebol.apc.controller.admin.CustomerController;
|
import com.arrebol.apc.controller.admin.CustomerController;
|
||||||
import com.arrebol.apc.controller.admin.EndorsementController;
|
import com.arrebol.apc.controller.admin.EndorsementController;
|
||||||
import com.arrebol.apc.controller.admin.LoanController;
|
import com.arrebol.apc.controller.admin.LoanController;
|
||||||
@ -38,296 +37,295 @@ import org.primefaces.event.RowEditEvent;
|
|||||||
*/
|
*/
|
||||||
@Named("loanPendingDetailManager")
|
@Named("loanPendingDetailManager")
|
||||||
@ViewScoped
|
@ViewScoped
|
||||||
public class LoanPendingDetailBean extends GenericBean implements Serializable, Datatable {
|
public class LoanPendingDetailBean extends GenericBean implements Serializable, Datatable {
|
||||||
|
|
||||||
public void changeLoanType(){
|
|
||||||
loan.setLoanType(new LoanType(typeLoanId));
|
|
||||||
loan.setAmountToPay(loanTypeCtrl.getLoanTypeById(typeLoanId).getPaymentTotal());
|
|
||||||
if(loanCtrl.updateLoan(loan)){
|
|
||||||
showMessage(FacesMessage.SEVERITY_INFO, "Cambio de tipo de préstamo", "El préstamo se cambió correctamente");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public void changeDateAndApprovedLoan(){
|
|
||||||
loan.setCreatedOn(createdOn);
|
|
||||||
loan.setComments(comments);
|
|
||||||
if(loanCtrl.updateLoan(loan)){
|
|
||||||
approvedLoan();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<LoanDetails> getDetails(String id) {
|
|
||||||
try {
|
|
||||||
loanDetails = loanCtrl.getLoanDetailsbyId(id);
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
public void changeLoanType() {
|
||||||
}
|
loan.setLoanType(new LoanType(typeLoanId));
|
||||||
return null == loanDetails ? new ArrayList<>() : loanDetails;
|
loan.setAmountToPay(loanTypeCtrl.getLoanTypeById(typeLoanId).getPaymentTotal());
|
||||||
}
|
if (loanCtrl.updateLoan(loan)) {
|
||||||
|
showMessage(FacesMessage.SEVERITY_INFO, "Cambio de tipo de préstamo", "El préstamo se cambió correctamente");
|
||||||
|
}
|
||||||
|
|
||||||
public People getCustomerDetail(String peopleId){
|
}
|
||||||
return customerCtrl.findPeopleById(peopleId);
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<Loan> getLoanByCustomer(String peopleId){
|
|
||||||
return customerCtrl.findLoanByCustomer(peopleId);
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<Loan> getLoanByEndorsement(String peopleId){
|
|
||||||
return endorsementCtrl.findLoanByEndorsement(peopleId);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void rejectedLoan() {
|
|
||||||
loanCtrl.updateLoanByStatus(LoanStatus.REJECTED, loan.getId(), getLoggedUser().getUser().getId());
|
|
||||||
loanCtrl.updateLoanByUserByStatus(LoanStatus.REJECTED, loan);
|
|
||||||
|
|
||||||
LoanByRenovation renovation;
|
|
||||||
renovation = loanCtrl.getLoanByRenovationByIdLoanNew(loan);
|
|
||||||
if(renovation != null)
|
|
||||||
{
|
|
||||||
loanCtrl.updateLoanByRenovationByStatus(LoanRenovationStatus.REJECTED, loan, getLoggedUser().getUser().getId());
|
|
||||||
loanCtrl.updateLoanByStatus(LoanStatus.APPROVED, renovation.getLoanOld().getId(), getLoggedUser().getUser().getId());
|
|
||||||
loanCtrl.updateLoanByUserByStatus(LoanStatus.APPROVED, renovation.getLoanOld());
|
|
||||||
}
|
|
||||||
|
|
||||||
showMessage(FacesMessage.SEVERITY_INFO, "Cambio de estatus", "El préstamo se cambió a estatus 'Rechazado' de forma correcta.");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void approvedLoan() {
|
|
||||||
loanCtrl.updateLoanByStatus(LoanStatus.TO_DELIVERY, loan.getId(), getLoggedUser().getUser().getId());
|
|
||||||
loanCtrl.updateLoanByUserByStatus(LoanStatus.TO_DELIVERY, loan);
|
|
||||||
showMessage(FacesMessage.SEVERITY_INFO, "Cambio de estatus", "El préstamo se cambió a estatus 'A conciliar' de forma correcta.");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void editRow(RowEditEvent event) {
|
|
||||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
public void changeDateAndApprovedLoan() {
|
||||||
public void onRowCancel(RowEditEvent event) {
|
loan.setCreatedOn(createdOn);
|
||||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
loan.setComments(comments);
|
||||||
}
|
if (loanCtrl.updateLoan(loan)) {
|
||||||
|
approvedLoan();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
}
|
||||||
public void onRowReorder(ReorderEvent event) {
|
|
||||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
public List<LoanDetails> getDetails(String id) {
|
||||||
public void addRow() {
|
try {
|
||||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
loanDetails = loanCtrl.getLoanDetailsbyId(id);
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
} catch (Exception e) {
|
||||||
public void deleteRow() {
|
}
|
||||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
return null == loanDetails ? new ArrayList<>() : loanDetails;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CustomerController getCustomerCtrl() {
|
public People getCustomerDetail(String peopleId) {
|
||||||
return customerCtrl;
|
return customerCtrl.findPeopleById(peopleId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCustomerCtrl(CustomerController customerCtrl) {
|
public List<Loan> getLoanByCustomer(String peopleId) {
|
||||||
this.customerCtrl = customerCtrl;
|
return customerCtrl.findLoanByCustomer(peopleId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public People getCustomer() {
|
public List<Loan> getLoanByEndorsement(String peopleId) {
|
||||||
return customer;
|
return endorsementCtrl.findLoanByEndorsement(peopleId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCustomer(People customer) {
|
public void rejectedLoan() {
|
||||||
this.customer = customer;
|
loanCtrl.updateLoanByStatus(LoanStatus.REJECTED, loan.getId(), getLoggedUser().getUser().getId());
|
||||||
}
|
loanCtrl.updateLoanByUserByStatus(LoanStatus.REJECTED, loan);
|
||||||
|
|
||||||
public List<Loan> getLoanCustomer() {
|
LoanByRenovation renovation;
|
||||||
return loanCustomer;
|
renovation = loanCtrl.getLoanByRenovationByIdLoanNew(loan);
|
||||||
}
|
if (renovation != null) {
|
||||||
|
loanCtrl.updateLoanByRenovationByStatus(LoanRenovationStatus.REJECTED, loan, getLoggedUser().getUser().getId());
|
||||||
|
loanCtrl.updateLoanByStatus(LoanStatus.APPROVED, renovation.getLoanOld().getId(), getLoggedUser().getUser().getId());
|
||||||
|
loanCtrl.updateLoanByUserByStatus(LoanStatus.APPROVED, renovation.getLoanOld());
|
||||||
|
}
|
||||||
|
|
||||||
public void setLoanCustomer(List<Loan> loanCustomer) {
|
showMessage(FacesMessage.SEVERITY_INFO, "Cambio de estatus", "El préstamo se cambió a estatus 'Rechazado' de forma correcta.");
|
||||||
this.loanCustomer = loanCustomer;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public String getCustomerId() {
|
public void approvedLoan() {
|
||||||
return customerId;
|
loanCtrl.updateLoanByStatus(LoanStatus.TO_DELIVERY, loan.getId(), getLoggedUser().getUser().getId());
|
||||||
}
|
loanCtrl.updateLoanByUserByStatus(LoanStatus.TO_DELIVERY, loan);
|
||||||
|
showMessage(FacesMessage.SEVERITY_INFO, "Cambio de estatus", "El préstamo se cambió a estatus 'A conciliar' de forma correcta.");
|
||||||
|
}
|
||||||
|
|
||||||
public void setCustomerId(String customerId) {
|
@Override
|
||||||
this.customerId = customerId;
|
public void editRow(RowEditEvent event) {
|
||||||
}
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||||
|
}
|
||||||
|
|
||||||
public LoanController getLoanCtrl() {
|
@Override
|
||||||
return loanCtrl;
|
public void onRowCancel(RowEditEvent event) {
|
||||||
}
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||||
|
}
|
||||||
|
|
||||||
public void setLoanCtrl(LoanController loanCtrl) {
|
@Override
|
||||||
this.loanCtrl = loanCtrl;
|
public void onRowReorder(ReorderEvent event) {
|
||||||
}
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||||
|
}
|
||||||
|
|
||||||
public String getLoanId() {
|
@Override
|
||||||
return loanId;
|
public void addRow() {
|
||||||
}
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||||
|
}
|
||||||
|
|
||||||
public void setLoanId(String loanId) {
|
@Override
|
||||||
this.loanId = loanId;
|
public void deleteRow() {
|
||||||
}
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||||
|
}
|
||||||
|
|
||||||
public Loan getLoan() {
|
public CustomerController getCustomerCtrl() {
|
||||||
return loan;
|
return customerCtrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLoan(Loan loan) {
|
public void setCustomerCtrl(CustomerController customerCtrl) {
|
||||||
this.loan = loan;
|
this.customerCtrl = customerCtrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public EndorsementController getEndorsementCtrl() {
|
public People getCustomer() {
|
||||||
return endorsementCtrl;
|
return customer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEndorsementCtrl(EndorsementController endorsementCtrl) {
|
public void setCustomer(People customer) {
|
||||||
this.endorsementCtrl = endorsementCtrl;
|
this.customer = customer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public People getEndorsement() {
|
public List<Loan> getLoanCustomer() {
|
||||||
return endorsement;
|
return loanCustomer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEndorsement(People endorsement) {
|
public void setLoanCustomer(List<Loan> loanCustomer) {
|
||||||
this.endorsement = endorsement;
|
this.loanCustomer = loanCustomer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getEndorsementId() {
|
public String getCustomerId() {
|
||||||
return endorsementId;
|
return customerId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEndorsementId(String endorsementId) {
|
public void setCustomerId(String customerId) {
|
||||||
this.endorsementId = endorsementId;
|
this.customerId = customerId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Loan> getLoanEndorsement() {
|
public LoanController getLoanCtrl() {
|
||||||
return loanEndorsement;
|
return loanCtrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLoanEndorsement(List<Loan> loanEndorsement) {
|
public void setLoanCtrl(LoanController loanCtrl) {
|
||||||
this.loanEndorsement = loanEndorsement;
|
this.loanCtrl = loanCtrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Loan getSelectedLoanCustomer() {
|
public String getLoanId() {
|
||||||
return selectedLoanCustomer;
|
return loanId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSelectedLoanCustomer(Loan selectedLoanCustomer) {
|
public void setLoanId(String loanId) {
|
||||||
this.selectedLoanCustomer = selectedLoanCustomer;
|
this.loanId = loanId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<LoanDetails> getLoanDetails() {
|
public Loan getLoan() {
|
||||||
return loanDetails;
|
return loan;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLoanDetails(List<LoanDetails> loanDetails) {
|
public void setLoan(Loan loan) {
|
||||||
this.loanDetails = loanDetails;
|
this.loan = loan;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTypeLoanId() {
|
public EndorsementController getEndorsementCtrl() {
|
||||||
return typeLoanId;
|
return endorsementCtrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTypeLoanId(String typeLoanId) {
|
public void setEndorsementCtrl(EndorsementController endorsementCtrl) {
|
||||||
this.typeLoanId = typeLoanId;
|
this.endorsementCtrl = endorsementCtrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public LoanTypeController getLoanTypeCtrl() {
|
public People getEndorsement() {
|
||||||
return loanTypeCtrl;
|
return endorsement;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLoanTypeCtrl(LoanTypeController loanTypeCtrl) {
|
public void setEndorsement(People endorsement) {
|
||||||
this.loanTypeCtrl = loanTypeCtrl;
|
this.endorsement = endorsement;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<LoanType> getLoanType() {
|
public String getEndorsementId() {
|
||||||
return loanType;
|
return endorsementId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLoanType(List<LoanType> loanType) {
|
public void setEndorsementId(String endorsementId) {
|
||||||
this.loanType = loanType;
|
this.endorsementId = endorsementId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getCreatedOn() {
|
public List<Loan> getLoanEndorsement() {
|
||||||
return createdOn;
|
return loanEndorsement;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCreatedOn(Date createdOn) {
|
public void setLoanEndorsement(List<Loan> loanEndorsement) {
|
||||||
this.createdOn = createdOn;
|
this.loanEndorsement = loanEndorsement;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getComments() {
|
public Loan getSelectedLoanCustomer() {
|
||||||
return comments;
|
return selectedLoanCustomer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setComments(String comments) {
|
public void setSelectedLoanCustomer(Loan selectedLoanCustomer) {
|
||||||
this.comments = comments;
|
this.selectedLoanCustomer = selectedLoanCustomer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<People> getCustomers() {
|
public List<LoanDetails> getLoanDetails() {
|
||||||
return customers;
|
return loanDetails;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCustomers(List<People> customers) {
|
public void setLoanDetails(List<LoanDetails> loanDetails) {
|
||||||
this.customers = customers;
|
this.loanDetails = loanDetails;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCustomerTest() {
|
public String getTypeLoanId() {
|
||||||
return customerTest;
|
return typeLoanId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCustomerTest(String customerTest) {
|
public void setTypeLoanId(String typeLoanId) {
|
||||||
this.customerTest = customerTest;
|
this.typeLoanId = typeLoanId;
|
||||||
}
|
}
|
||||||
|
|
||||||
private CustomerController customerCtrl;
|
public LoanTypeController getLoanTypeCtrl() {
|
||||||
private LoanController loanCtrl;
|
return loanTypeCtrl;
|
||||||
private EndorsementController endorsementCtrl;
|
}
|
||||||
private LoanTypeController loanTypeCtrl;
|
|
||||||
|
public void setLoanTypeCtrl(LoanTypeController loanTypeCtrl) {
|
||||||
private People customer;
|
this.loanTypeCtrl = loanTypeCtrl;
|
||||||
private Loan loan;
|
}
|
||||||
private People endorsement;
|
|
||||||
|
public List<LoanType> getLoanType() {
|
||||||
private String customerId;
|
return loanType;
|
||||||
private String loanId;
|
}
|
||||||
private String endorsementId;
|
|
||||||
private String typeLoanId;
|
public void setLoanType(List<LoanType> loanType) {
|
||||||
private String customerTest;
|
this.loanType = loanType;
|
||||||
|
}
|
||||||
private List<Loan> loanEndorsement;
|
|
||||||
private List<Loan> loanCustomer;
|
public Date getCreatedOn() {
|
||||||
private Loan selectedLoanCustomer;
|
return createdOn;
|
||||||
private List<LoanType> loanType;
|
}
|
||||||
private List<People> customers;
|
|
||||||
|
public void setCreatedOn(Date createdOn) {
|
||||||
|
this.createdOn = createdOn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getComments() {
|
||||||
|
return comments;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComments(String comments) {
|
||||||
|
this.comments = comments;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<People> getCustomers() {
|
||||||
|
return customers;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCustomers(List<People> customers) {
|
||||||
|
this.customers = customers;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCustomerTest() {
|
||||||
|
return customerTest;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCustomerTest(String customerTest) {
|
||||||
|
this.customerTest = customerTest;
|
||||||
|
}
|
||||||
|
|
||||||
|
private CustomerController customerCtrl;
|
||||||
|
private LoanController loanCtrl;
|
||||||
|
private EndorsementController endorsementCtrl;
|
||||||
|
private LoanTypeController loanTypeCtrl;
|
||||||
|
|
||||||
|
private People customer;
|
||||||
|
private Loan loan;
|
||||||
|
private People endorsement;
|
||||||
|
|
||||||
|
private String customerId;
|
||||||
|
private String loanId;
|
||||||
|
private String endorsementId;
|
||||||
|
private String typeLoanId;
|
||||||
|
private String customerTest;
|
||||||
|
|
||||||
|
private List<Loan> loanEndorsement;
|
||||||
|
private List<Loan> loanCustomer;
|
||||||
|
private Loan selectedLoanCustomer;
|
||||||
|
private List<LoanType> loanType;
|
||||||
|
private List<People> customers;
|
||||||
|
|
||||||
|
private List<LoanDetails> loanDetails;
|
||||||
|
|
||||||
|
private Date createdOn;
|
||||||
|
private String comments;
|
||||||
|
|
||||||
|
@PostConstruct
|
||||||
|
public void init() {
|
||||||
|
loadBundlePropertyFile();
|
||||||
|
customerCtrl = new CustomerController();
|
||||||
|
loanCtrl = new LoanController();
|
||||||
|
endorsementCtrl = new EndorsementController();
|
||||||
|
loanTypeCtrl = new LoanTypeController();
|
||||||
|
|
||||||
|
setLoanId(externalContext().getRequestParameterMap().get("dtLoanPending_selection"));
|
||||||
|
loan = loanCtrl.getLoanById(getLoanId());
|
||||||
|
customer = loan.getCustomer();
|
||||||
|
endorsement = loan.getEndorsement();
|
||||||
|
loanEndorsement = getLoanByEndorsement(loan.getEndorsement() != null ? loan.getEndorsement().getId() : "0");
|
||||||
|
loanCustomer = getLoanByCustomer(loan.getCustomer() != null ? loan.getCustomer().getId() : "0");
|
||||||
|
loanType = loanTypeCtrl.fillLoanTypeDatatable(getLoggedUser().getOffice() != null ? getLoggedUser().getOffice().getId() : "0");
|
||||||
|
customers = customerCtrl.fillCustomersDatatable(getLoggedUser().getOffice() != null ? getLoggedUser().getOffice().getId() : "0");
|
||||||
|
}
|
||||||
|
|
||||||
private List<LoanDetails> loanDetails;
|
|
||||||
|
|
||||||
private Date createdOn;
|
|
||||||
private String comments;
|
|
||||||
|
|
||||||
@PostConstruct
|
|
||||||
public void init() {
|
|
||||||
loadBundlePropertyFile();
|
|
||||||
customerCtrl = new CustomerController();
|
|
||||||
loanCtrl = new LoanController();
|
|
||||||
endorsementCtrl = new EndorsementController();
|
|
||||||
loanTypeCtrl = new LoanTypeController();
|
|
||||||
|
|
||||||
setLoanId(externalContext().getRequestParameterMap().get("form:dtLoanPending_selection"));
|
|
||||||
loan = loanCtrl.getLoanById(getLoanId());
|
|
||||||
customer = loan.getCustomer();
|
|
||||||
endorsement = loan.getEndorsement();
|
|
||||||
loanEndorsement = getLoanByEndorsement(loan.getEndorsement().getId());
|
|
||||||
loanCustomer = getLoanByCustomer(loan.getCustomer().getId());
|
|
||||||
loanType = loanTypeCtrl.fillLoanTypeDatatable(getLoggedUser().getOffice().getId());
|
|
||||||
customers = customerCtrl.fillCustomersDatatable(getLoggedUser().getOffice().getId());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -67,6 +67,15 @@
|
|||||||
<p:column headerText="#{i18n['admin.loans.datatable.column.comments']}" sortBy="#{loan.comments}" filterBy="#{loan.comments}">
|
<p:column headerText="#{i18n['admin.loans.datatable.column.comments']}" sortBy="#{loan.comments}" filterBy="#{loan.comments}">
|
||||||
<h:outputText value="#{loan.comments}" />
|
<h:outputText value="#{loan.comments}" />
|
||||||
</p:column>
|
</p:column>
|
||||||
|
<p:column headerText="Detalles" style="text-align: center">
|
||||||
|
<p:button
|
||||||
|
value="Ver detalles"
|
||||||
|
title="Ver detalles"
|
||||||
|
outcome="#{i18n['outcome.admin.loan.pending.detail']}"
|
||||||
|
style="margin: 1px; background-color: #E1B12C">
|
||||||
|
<f:param name="dtLoanPending_selection" value="#{loan.id}"/>
|
||||||
|
</p:button>
|
||||||
|
</p:column>
|
||||||
-
|
-
|
||||||
</p:dataTable>
|
</p:dataTable>
|
||||||
|
|
||||||
@ -77,8 +86,7 @@
|
|||||||
<p:menuitem rendered="#{loginBean.isUserInRole('admin.loan.updated') and loanPendingManager.loan.size() > 0}" value="Rechazar" update="dtLoanPending,:form:msgs" icon="ui-icon-close" actionListener="#{loanPendingManager.deleteRow}">
|
<p:menuitem rendered="#{loginBean.isUserInRole('admin.loan.updated') and loanPendingManager.loan.size() > 0}" value="Rechazar" update="dtLoanPending,:form:msgs" icon="ui-icon-close" actionListener="#{loanPendingManager.deleteRow}">
|
||||||
<p:confirm message="#{i18n['general.confirm.confirm']}" />
|
<p:confirm message="#{i18n['general.confirm.confirm']}" />
|
||||||
</p:menuitem>
|
</p:menuitem>
|
||||||
<p:menuitem value="Ver detalles" ajax="false" rendered="#{loanPendingManager.loan.size() > 0}" icon="ui-icon-edit" action="#{loanPendingManager.detailLoan(i18n['outcome.admin.loan.pending.detail'])}" />
|
</p:contextMenu>
|
||||||
</p:contextMenu>
|
|
||||||
|
|
||||||
<p:confirmDialog header="Confirmación" global="true" showEffect="fade" hideEffect="fade">
|
<p:confirmDialog header="Confirmación" global="true" showEffect="fade" hideEffect="fade">
|
||||||
<p:commandButton value="Si" type="button" styleClass="ui-confirmdialog-yes" icon="pi pi-check" />
|
<p:commandButton value="Si" type="button" styleClass="ui-confirmdialog-yes" icon="pi pi-check" />
|
||||||
@ -102,7 +110,7 @@
|
|||||||
required="true"
|
required="true"
|
||||||
requiredMessage="Es obligatorio"
|
requiredMessage="Es obligatorio"
|
||||||
style="width: 100% !important;">
|
style="width: 100% !important;">
|
||||||
</p:calendar>
|
</p:calendar>
|
||||||
<label>#{i18n['admin.loan.form.field.createdOn']}</label>
|
<label>#{i18n['admin.loan.form.field.createdOn']}</label>
|
||||||
<p:message for="createdOn" display="icon"/>
|
<p:message for="createdOn" display="icon"/>
|
||||||
</h:panelGroup>
|
</h:panelGroup>
|
||||||
|
Loading…
Reference in New Issue
Block a user