19 package org.turro.erp.task.usage;
21 import org.turro.erp.aptitude.AptitudeDegreeCombobox;
22 import org.turro.erp.entity.PurchaseMode;
23 import org.turro.erp.entity.RequiredUsage;
24 import org.turro.erp.entity.Resource;
25 import org.turro.erp.humanres.HumanResourceAptitudeCombobox;
26 import org.turro.erp.purchase.PurchaseModeListbox;
27 import org.turro.erp.resource.ResourceCombobox;
28 import org.turro.erp.task.ProductUsageValuation;
29 import org.turro.erp.task.ResourceUsageValuation;
30 import org.turro.erp.task.TaskListbox;
31 import org.turro.financials.contract.ProviderCombobox;
32 import org.turro.financials.entity.Contract;
33 import org.turro.financials.linetype.BillLineTypeListbox;
34 import org.turro.financials.product.IProduct;
35 import org.turro.financials.product.MovementButton;
36 import org.turro.financials.product.ProductExtendedCombobox;
37 import org.turro.financials.view.ViewListbox;
38 import org.turro.hr.humanres.HumanResourceAptitude;
39 import org.turro.zkoss.input.ExpressionInput;
40 import org.turro.zkoss.input.OverrideDouble;
41 import org.turro.zkoss.input.Percentbox;
42 import org.turro.zkoss.layout.GridLayout;
43 import org.zkoss.zk.ui.event.Event;
44 import org.zkoss.zk.ui.util.GenericForwardComposer;
45 import org.zkoss.zul.*;
51 public class UsageEdit extends GenericForwardComposer {
53 private Object object;
54 private Window usageForm;
61 private Datebox purchaseDate;
62 private Textbox description;
68 private Checkbox maximum, fixed, hgvariable;
70 private Image wrongapt;
75 object =
event.getData();
181 wrongapt.setVisible(
false);
210 if(product !=
null) {
boolean isIn(Collection< AptitudeDegree > aptitudeDegrees)
void setResource(Resource resource)
PurchaseMode getPurchaseMode()
void setCostMaximum(boolean costMaximum)
void setHumanResourceAptitude(HumanResourceAptitude hro)
void setProviderFixed(boolean providerFixed)
void setPurchaseDate(Date purchaseDate)
void setPurchaseMode(PurchaseMode purchaseMode)
void setUnits(double units)
void setAptitudeAssesment(AptitudeDegree aptitudeAssesment)
void setPrice(double price)
HumanResourceAptitude getHumanResourceAptitude()
AptitudeDegree getAptitudeAssesment()
boolean isHumanResourceType()
void setDedication(double dedication)
void setPurchaseLag(double purchaseLag)
boolean isProviderFixed()
void setDescription(String description)
void setContractPreferenceId(long contractPreferenceId)
void setIProduct(IProduct product)
void setCost(double cost)
long getContractPreferenceId()
void setLineTypeId(long lineTypeId)
double getCalculatedUnitCost()
void setPurchaseTask(Task purchaseTask)
void setProvider(Contract provider)
void setCanChange(boolean canChange)
Set< AptitudeDegree > getAptitudeDegrees()
OrderReference getOrderReference()
void setWorkOrder(WorkOrder workOrder)
void onChange $hgresource()
void onChange $pgproduct()
void onChange $pgprovider()
void onChange $hghumanres()
void onSelect $purchaseMode()
void setData(Contract contract, long lineTypeId, long contractPreferenceId)
void setContractorId(long contractorId)
HumanResource getHumanResource()
AptitudeDegree getAptitudeDegree()
ProductByContractor getProductByContractor()