use of org.adempiere.webui.component.Rows in project adempiere by adempiere.
the class WCollectDetail method loadCheckPanel.
/**
* Load Check Panel
* @return void
*/
public void loadCheckPanel() {
v_CheckPanel = GridFactory.newGridLayout();
v_CheckPanel.setWidth("100%");
v_CheckPanel.setHeight("95px");
groupPanel.appendChild(v_CheckPanel);
Rows rows = v_CheckPanel.newRows();
Row row = rows.newRow();
fCheckRouteNo = new WPOSTextField(Msg.translate(p_ctx, "RoutingNo"), keyboard);
row.appendChild(fCheckRouteNo);
fCheckRouteNo.addEventListener("onFocus", this);
fCheckRouteNo.setStyle(HEIGHT + WIDTH + FONT_SIZE);
row.appendChild(fCheckRouteNo);
fCheckNo = new WPOSTextField(Msg.translate(p_ctx, "CheckNo"), keyboard);
fCheckNo.addEventListener("onFocus", this);
fCheckNo.setStyle(HEIGHT + WIDTH + FONT_SIZE);
row.appendChild(fCheckNo);
fCheckdate = new Datebox();
fCheckdate.setStyle(HEIGHT + WIDTH + FONT_SIZE);
row = rows.newRow();
fCheckdate.addEventListener("onFocus", this);
row.appendChild(fCheckdate);
}
use of org.adempiere.webui.component.Rows in project adempiere by adempiere.
the class WOrderReceiptIssue method jbInit.
// fillPicks
/**
* Static Init.
* Places static visual elements into the window.
* This is only run as part of the windows initialization process
* <pre>
* mainPanel
* northPanel
* centerPanel
* xMatched
* xPanel
* xMathedTo
* southPanel
* </pre>
* @throws Exception
*/
private void jbInit() throws Exception {
Center center = new Center();
South south = new South();
North north = new North();
form.appendChild(mainPanel);
mainPanel.appendChild(TabsReceiptsIssue);
mainPanel.setStyle("width: 100%; height: 100%; padding: 0; margin: 0");
ReceiptIssueOrder.setWidth("100%");
ReceiptIssueOrder.setHeight("99%");
ReceiptIssueOrder.appendChild(north);
north.appendChild(northPanel);
northPanel.appendChild(fieldGrid);
orderLabel.setText(Msg.translate(Env.getCtx(), "PP_Order_ID"));
Rows tmpRows = fieldGrid.newRows();
// 1st
Row tmpRow = tmpRows.newRow();
tmpRow.appendChild(orderLabel.rightAlign());
tmpRow.appendChild(orderField.getComponent());
resourceLabel.setText(Msg.translate(Env.getCtx(), "S_Resource_ID"));
tmpRow.appendChild(resourceLabel.rightAlign());
tmpRow.appendChild(resourceField.getComponent());
warehouseLabel.setText(Msg.translate(Env.getCtx(), "M_Warehouse_ID"));
tmpRow.appendChild(warehouseLabel.rightAlign());
tmpRow.appendChild(warehouseField.getComponent());
// Product 2nd
tmpRow = tmpRows.newRow();
tmpRow.appendChild(productLabel.rightAlign());
tmpRow.appendChild(productField.getComponent());
tmpRow.appendChild(uomLabel.rightAlign());
tmpRow.appendChild(uomField.getComponent());
tmpRow.appendChild(uomorderLabel.rightAlign());
tmpRow.appendChild(uomorderField.getComponent());
tmpRow = tmpRows.newRow();
orderedQtyLabel.setText(Msg.translate(Env.getCtx(), "QtyOrdered"));
tmpRow.appendChild(orderedQtyLabel.rightAlign());
tmpRow.appendChild(orderedQtyField.getComponent());
deliveredQtyLabel.setText(Msg.translate(Env.getCtx(), "QtyDelivered"));
tmpRow.appendChild(deliveredQtyLabel.rightAlign());
tmpRow.appendChild(deliveredQtyField.getComponent());
openQtyLabel.setText(Msg.translate(Env.getCtx(), "QtyBackOrdered"));
tmpRow.appendChild(openQtyLabel.rightAlign());
tmpRow.appendChild(openQtyField.getComponent());
//3rd
tmpRow = tmpRows.newRow();
tmpRow.appendChild(productLabel.rightAlign());
tmpRow.appendChild(productField.getComponent());
tmpRow.appendChild(uomLabel.rightAlign());
tmpRow.appendChild(uomField.getComponent());
tmpRow.appendChild(uomorderLabel.rightAlign());
tmpRow.appendChild(uomorderField.getComponent());
//4th
tmpRow = tmpRows.newRow();
QtyBatchsLabel.setText(Msg.translate(Env.getCtx(), "QtyBatchs"));
tmpRow.appendChild(QtyBatchsLabel.rightAlign());
tmpRow.appendChild(qtyBatchsField.getComponent());
QtyBatchSizeLabel.setText(Msg.translate(Env.getCtx(), "QtyBatchSize"));
tmpRow.appendChild(QtyBatchSizeLabel.rightAlign());
tmpRow.appendChild(qtyBatchSizeField.getComponent());
openQtyLabel.setText(Msg.translate(Env.getCtx(), "QtyBackOrdered"));
tmpRow.appendChild(openQtyLabel.rightAlign());
tmpRow.appendChild(openQtyField.getComponent());
//5th
tmpRow = tmpRows.newRow();
tmpRow.appendChild(labelcombo.rightAlign());
tmpRow.appendChild(pickcombo);
tmpRow.appendChild(backflushGroupLabel.rightAlign());
tmpRow.appendChild(backflushGroup);
tmpRow.appendChild(new Space());
tmpRow.appendChild(new Space());
//6th
tmpRow = tmpRows.newRow();
toDeliverQtyLabel.setText(Msg.translate(Env.getCtx(), "QtyToDeliver"));
tmpRow.appendChild(toDeliverQtyLabel.rightAlign());
tmpRow.appendChild(toDeliverQty.getComponent());
scrapQtyLabel.setText(Msg.translate(Env.getCtx(), "QtyScrap"));
tmpRow.appendChild(scrapQtyLabel.rightAlign());
tmpRow.appendChild(scrapQtyField.getComponent());
rejectQtyLabel.setText(Msg.translate(Env.getCtx(), "QtyReject"));
tmpRow.appendChild(rejectQtyLabel.rightAlign());
tmpRow.appendChild(rejectQty.getComponent());
//7th
tmpRow = tmpRows.newRow();
movementDateLabel.setText(Msg.translate(Env.getCtx(), "MovementDate"));
tmpRow.appendChild(movementDateLabel.rightAlign());
tmpRow.appendChild(movementDateField.getComponent());
locatorLabel.setText(Msg.translate(Env.getCtx(), "M_Locator_ID"));
tmpRow.appendChild(locatorLabel.rightAlign());
tmpRow.appendChild(locatorField.getComponent());
attributeLabel.setText(Msg.translate(Env.getCtx(), "M_AttributeSetInstance_ID"));
tmpRow.appendChild(attributeLabel.rightAlign());
tmpRow.appendChild(attribute.getComponent());
ReceiptIssueOrder.appendChild(center);
center.appendChild(issue);
ReceiptIssueOrder.appendChild(south);
south.appendChild(PanelBottom);
Process.setLabel(Msg.translate(Env.getCtx(), "OK"));
PanelBottom.appendChild(Process);
PanelBottom.setWidth("100%");
PanelBottom.setStyle("text-align:center");
Tabs tabs = new Tabs();
Tab tab1 = new Tab();
Tab tab2 = new Tab();
tab1.setLabel(Msg.parseTranslation(Env.getCtx(), "@IsShipConfirm@"));
tab2.setLabel(Msg.parseTranslation(Env.getCtx(), "@Generate@"));
tabs.appendChild(tab1);
tabs.appendChild(tab2);
TabsReceiptsIssue.appendChild(tabs);
Tabpanels tabps = new Tabpanels();
Tabpanel tabp1 = new Tabpanel();
Tabpanel tabp2 = new Tabpanel();
TabsReceiptsIssue.appendChild(tabps);
TabsReceiptsIssue.setWidth("100%");
TabsReceiptsIssue.setHeight("100%");
tabps.appendChild(tabp1);
tabps.appendChild(tabp2);
tabp1.appendChild(ReceiptIssueOrder);
tabp1.setWidth("100%");
tabp1.setHeight("100%");
tabp2.appendChild(Generate);
tabp2.setWidth("100%");
tabp2.setHeight("100%");
Generate.appendChild(info);
Generate.setVisible(true);
info.setVisible(true);
TabsReceiptsIssue.addEventListener(Events.ON_CHANGE, this);
}
use of org.adempiere.webui.component.Rows in project adempiere by adempiere.
the class WMRPDetailed method statInit.
private void statInit() throws Exception {
//Resource Lookup
// Base Language
Language language = Language.getLoginLanguage();
MLookup resourceL = MLookupFactory.get(getCtx(), p_WindowNo, MColumn.getColumn_ID(MResource.Table_Name, MResource.COLUMNNAME_S_Resource_ID), DisplayType.TableDir, language, MResource.COLUMNNAME_S_Resource_ID, 0, false, MResource.Table_Name + "." + MResource.COLUMNNAME_ManufacturingResourceType + "= '" + MResource.MANUFACTURINGRESOURCETYPE_Plant + "'");
fResource_ID = new WSearchEditor(MPPMRP.COLUMNNAME_S_Resource_ID, false, false, true, resourceL) {
private final long serialVersionUID = 1L;
public void setValue(Object arg0) {
super.setValue(arg0);
}
;
};
fPlanner_ID = new WSearchEditor(MPPMRP.COLUMNNAME_Planner_ID, false, false, true, MLookupFactory.get(getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPPProductPlanning.Table_Name, MPPMRP.COLUMNNAME_Planner_ID), DisplayType.Table)) {
private final long serialVersionUID = 1L;
public void setValue(Object arg0) {
super.setValue(arg0);
}
;
};
fWarehouse_ID = new WSearchEditor(MPPMRP.COLUMNNAME_M_Warehouse_ID, false, false, true, MLookupFactory.get(getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MWarehouse.Table_Name, MPPMRP.COLUMNNAME_M_Warehouse_ID), DisplayType.TableDir)) {
private final long serialVersionUID = 1L;
public void setValue(Object arg0) {
super.setValue(arg0);
}
;
};
fMaster.setSelected(false);
fMaster.setEnabled(false);
fMRPReq.setSelected(false);
fMRPReq.setEnabled(false);
fCreatePlan.setSelected(false);
fCreatePlan.setEnabled(false);
lUOM.setText(Msg.translate(getCtx(), MUOM.COLUMNNAME_C_UOM_ID));
fUOM.setReadonly(true);
lType.setText(Msg.translate(getCtx(), MPPProductPlanning.COLUMNNAME_Order_Policy));
fType.setReadonly(true);
lOrderPeriod.setText(Msg.translate(getCtx(), MPPProductPlanning.COLUMNNAME_Order_Period));
fOrderPeriod.setReadWrite(false);
lTimefence.setText(Msg.translate(getCtx(), MPPProductPlanning.COLUMNNAME_TimeFence));
fTimefence.setReadWrite(false);
lLeadtime.setText(Msg.translate(getCtx(), MPPProductPlanning.COLUMNNAME_DeliveryTime_Promised));
fLeadtime.setReadWrite(false);
lMinOrd.setText(Msg.translate(getCtx(), MPPProductPlanning.COLUMNNAME_Order_Min));
fMinOrd.setReadWrite(false);
lMaxOrd.setText(Msg.translate(getCtx(), MPPProductPlanning.COLUMNNAME_Order_Max));
fMaxOrd.setReadWrite(false);
lOrdMult.setText(Msg.translate(getCtx(), MPPProductPlanning.COLUMNNAME_Order_Pack));
fOrdMult.setReadWrite(false);
lOrderQty.setText(Msg.translate(getCtx(), MPPProductPlanning.COLUMNNAME_Order_Qty));
fOrderQty.setReadWrite(false);
lYield.setText(Msg.translate(getCtx(), MPPProductPlanning.COLUMNNAME_Yield));
fYield.setReadWrite(false);
lOnhand.setText(Msg.translate(getCtx(), MStorage.COLUMNNAME_QtyOnHand));
fOnhand.setReadWrite(false);
lSafetyStock.setText(Msg.translate(getCtx(), MPPProductPlanning.COLUMNNAME_SafetyStock));
fSafetyStock.setReadWrite(false);
lReserved.setText(Msg.translate(getCtx(), MStorage.COLUMNNAME_QtyReserved));
fReserved.setReadWrite(false);
lAvailable.setText(Msg.translate(getCtx(), "QtyAvailable"));
fAvailable.setReadWrite(false);
lOrdered.setText(Msg.translate(getCtx(), MPPOrder.COLUMNNAME_QtyOrdered));
fOrdered.setReadWrite(false);
//Product Lookup
fProduct_ID = new WSearchEditor(MPPMRP.COLUMNNAME_M_Product_ID, true, false, true, MLookupFactory.get(getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MProduct.Table_Name, MPPMRP.COLUMNNAME_M_Product_ID), DisplayType.Search)) {
private final long serialVersionUID = 1L;
public void setValue(Object arg0) {
super.setValue(arg0);
}
;
};
fMaster.setText(Msg.translate(getCtx(), MPPProductPlanning.COLUMNNAME_IsMPS));
fMRPReq.setText(Msg.translate(getCtx(), MPPProductPlanning.COLUMNNAME_IsRequiredMRP));
fCreatePlan.setText(Msg.translate(getCtx(), MPPProductPlanning.COLUMNNAME_IsCreatePlan));
//AttributeSet Button
fAttrSetInstance_ID = new Button() {
private final long serialVersionUID = 1L;
private Object m_value;
public void setLabel(String text) {
if (text == null) {
text = "---";
}
if (text.length() > 23) {
text = text.substring(0, 20) + "...";
}
super.setLabel(text);
}
public void setValue(Object arg0) {
m_value = arg0;
int i = (arg0 instanceof Integer) ? ((Integer) arg0).intValue() : 0;
if (i == 0) {
setLabel(null);
}
}
public Object getValue() {
return m_value;
}
};
fAttrSetInstance_ID.addActionListener(new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
selectAttributeSetInstance();
}
});
//
fDateFrom.getComponent().setTooltiptext(Msg.translate(getCtx(), MLot.COLUMNNAME_DateFrom));
fDateTo.getComponent().setTooltiptext(Msg.translate(getCtx(), MLot.COLUMNNAME_DateTo));
fSupplyType = new WSearchEditor(MPPMRP.COLUMNNAME_TypeMRP, false, false, true, MLookupFactory.get(getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPPMRP.Table_Name, MPPMRP.COLUMNNAME_TypeMRP), DisplayType.List));
Rows rows = null;
Row row = null;
rows = new Rows();
rows.setParent(parameterPanel);
// 1st Row
row = rows.newRow();
row.appendChild(lProduct_ID.rightAlign());
row.appendChild(fProduct_ID.getComponent());
row.appendChild(lUOM.rightAlign());
row.appendChild(fUOM);
row.appendChild(lType.rightAlign());
row.appendChild(fType);
// 2nd Row
row = rows.newRow();
row.appendChild(lAttrSetInstance_ID.rightAlign());
row.appendChild(fAttrSetInstance_ID);
row.appendChild(lOnhand.rightAlign());
row.appendChild(fOnhand.getComponent());
row.appendChild(lOrderPeriod.rightAlign());
row.appendChild(fOrderPeriod.getComponent());
// 3rd Row
row = rows.newRow();
row.appendChild(lPlanner_ID.rightAlign());
row.appendChild(fPlanner_ID.getComponent());
row.appendChild(lSafetyStock.rightAlign());
row.appendChild(fSafetyStock.getComponent());
row.appendChild(lMinOrd.rightAlign());
row.appendChild(fMinOrd.getComponent());
// 4th Row
row = rows.newRow();
row.appendChild(lWarehouse_ID.rightAlign());
row.appendChild(fWarehouse_ID.getComponent());
row.appendChild(lReserved.rightAlign());
row.appendChild(fReserved.getComponent());
row.appendChild(lMaxOrd.rightAlign());
row.appendChild(fMaxOrd.getComponent());
// 5th Row
row = rows.newRow();
row.appendChild(lResource_ID.rightAlign());
row.appendChild(fResource_ID.getComponent());
row.appendChild(lAvailable.rightAlign());
row.appendChild(fAvailable.getComponent());
row.appendChild(lOrdMult.rightAlign());
row.appendChild(fOrdMult.getComponent());
// 6th Row
row = rows.newRow();
row.appendChild(lDateFrom.rightAlign());
row.appendChild(fDateFrom.getComponent());
row.appendChild(lOrdered.rightAlign());
row.appendChild(fOrdered.getComponent());
row.appendChild(lOrderQty.rightAlign());
row.appendChild(fOrderQty.getComponent());
// 7th Row
row = rows.newRow();
row.appendChild(lDateTo.rightAlign());
row.appendChild(fDateTo.getComponent());
row.appendChild(new Space());
row.appendChild(new Space());
row.appendChild(lTimefence.rightAlign());
row.appendChild(fTimefence.getComponent());
// 8th Row
row = rows.newRow();
row.appendChild(new Space());
row.appendChild(fMaster);
row.appendChild(new Space());
row.appendChild(fCreatePlan);
row.appendChild(lLeadtime.rightAlign());
row.appendChild(fLeadtime.getComponent());
// 9th Row
row = rows.newRow();
row.appendChild(new Space());
row.appendChild(new Space());
row.appendChild(new Space());
row.appendChild(fMRPReq);
row.appendChild(lYield.rightAlign());
row.appendChild(fYield.getComponent());
}
use of org.adempiere.webui.component.Rows in project adempiere by adempiere.
the class WPAPanel method init.
/**
* Static/Dynamic Init
*/
private void init() {
Grid grid = new Grid();
appendChild(grid);
//grid.setWidth("100%");
//grid.setStyle("margin:0; padding:0; position: absolute;");
grid.makeNoStrip();
grid.setOddRowSclass("even");
Rows rows = new Rows();
grid.appendChild(rows);
for (int i = 0; i < m_goals.length; i++) {
Row row = new Row();
rows.appendChild(row);
WPerformanceIndicator pi = new WPerformanceIndicator(m_goals[i]);
row.appendCellChild(pi);
pi.addEventListener(Events.ON_CLICK, this);
}
}
use of org.adempiere.webui.component.Rows in project adempiere by adempiere.
the class WPayment method zkInit.
/**
* Static Init
* @throws Exception
*/
private void zkInit() throws Exception {
this.appendChild(mainPanel);
mainPanel.appendChild(mainLayout);
mainPanel.setStyle("width: 100%; height: 100%; padding: 0; margin: 0");
mainLayout.setHeight("100%");
mainLayout.setWidth("100%");
Center center = new Center();
mainLayout.appendChild(center);
center.appendChild(centerPanel);
//
paymentLabel.setText(Msg.translate(Env.getCtx(), "PaymentRule"));
North north = new North();
north.setStyle("border: none");
mainLayout.appendChild(north);
north.appendChild(northPanel);
northPanel.appendChild(paymentLabel);
northPanel.appendChild(new Space());
northPanel.appendChild(paymentCombo);
//
// CreditCard
kPanel.appendChild(kLayout);
kNumberField.setWidth("160pt");
kExpField.setWidth("40pt");
kApprovalField.setWidth("120pt");
kTypeLabel.setText(Msg.translate(Env.getCtx(), "CreditCardType"));
kNumberLabel.setText(Msg.translate(Env.getCtx(), "CreditCardNumber"));
kExpLabel.setText(Msg.getMsg(Env.getCtx(), "Expires"));
kApprovalLabel.setText(Msg.translate(Env.getCtx(), "VoiceAuthCode"));
kAmountLabel.setText(Msg.getMsg(Env.getCtx(), "Amount"));
kOnline.setLabel(Msg.getMsg(Env.getCtx(), "Online"));
ThemeUtils.addSclass("action-text-button", kOnline);
kOnline.addActionListener(this);
kStatus.setText(" ");
kPanel.setId("kPanel");
centerPanel.appendChild(kPanel);
centerLayout.add(kPanel);
Rows rows = kLayout.newRows();
Row row = rows.newRow();
row.appendChild(kTypeLabel.rightAlign());
row.appendChild(kTypeCombo);
row.appendChild(new Space());
row.appendChild(new Space());
row = rows.newRow();
row.appendChild(kNumberLabel.rightAlign());
row.appendChild(kNumberField);
row.appendChild(new Space());
row.appendChild(new Space());
row = rows.newRow();
row.appendChild(kExpLabel.rightAlign());
row.appendChild(kExpField);
row.appendChild(new Space());
row.appendChild(new Space());
row = rows.newRow();
row.appendChild(kAmountLabel.rightAlign());
row.appendChild(kAmountField.getComponent());
row.appendChild(new Space());
row.appendChild(new Space());
row = rows.newRow();
row.appendChild(kApprovalLabel.rightAlign());
row.appendChild(kApprovalField);
row.appendChild(new Space());
row.appendChild(kOnline);
row = rows.newRow();
row.setSpans("3,1");
row.appendChild(kStatus);
row.appendChild(new Space());
// DircetDebit/Credit
tPanel.appendChild(tPanelLayout);
tAccountLabel.setText(Msg.translate(Env.getCtx(), "C_BP_BankAccount_ID"));
tRoutingField.setCols(8);
tNumberField.setCols(10);
tRoutingText.setText(Msg.translate(Env.getCtx(), "RoutingNo"));
tNumberText.setText(Msg.translate(Env.getCtx(), "AccountNo"));
tOnline.setLabel(Msg.getMsg(Env.getCtx(), "Online"));
ThemeUtils.addSclass("action-text-button", tOnline);
tStatus.setText(" ");
tPanel.setId("tPanel");
centerPanel.appendChild(tPanel);
centerLayout.add(tPanel);
rows = tPanelLayout.newRows();
row = rows.newRow();
row.appendChild(tAccountLabel.rightAlign());
row.appendChild(tAccountCombo);
row.appendChild(new Space());
row.appendChild(new Space());
row = rows.newRow();
row.appendChild(tRoutingText.rightAlign());
row.appendChild(tRoutingField);
row.appendChild(new Space());
row.appendChild(new Space());
row = rows.newRow();
row.appendChild(tNumberText.rightAlign());
row.appendChild(tNumberField);
row.appendChild(new Space());
row.appendChild(tOnline);
row = rows.newRow();
row.setSpans("3,1");
row.appendChild(tStatus);
row.appendChild(new Space());
// Cheque
sPanel.appendChild(sPanelLayout);
sBankAccountLabel.setText(Msg.translate(Env.getCtx(), "C_BankAccount_ID"));
sAmountLabel.setText(Msg.getMsg(Env.getCtx(), "Amount"));
sRoutingLabel.setText(Msg.translate(Env.getCtx(), "RoutingNo"));
sNumberLabel.setText(Msg.translate(Env.getCtx(), "AccountNo"));
sCheckLabel.setText(Msg.translate(Env.getCtx(), "CheckNo"));
sCheckField.setCols(8);
sCurrencyLabel.setText(Msg.translate(Env.getCtx(), "C_Currency_ID"));
sNumberField.setWidth("100pt");
sRoutingField.setWidth("70pt");
sStatus.setText(" ");
sOnline.setLabel(Msg.getMsg(Env.getCtx(), "Online"));
ThemeUtils.addSclass("action-text-button", sOnline);
sPanel.setId("sPanel");
centerPanel.appendChild(sPanel);
centerLayout.add(sPanel);
rows = sPanelLayout.newRows();
row = rows.newRow();
row.appendChild(sBankAccountLabel.rightAlign());
row.appendChild(sBankAccountCombo);
row.appendChild(new Space());
row.appendChild(new Space());
row = rows.newRow();
row.appendChild(sCurrencyLabel.rightAlign());
row.appendChild(sCurrencyCombo);
row.appendChild(new Space());
row.appendChild(new Space());
row = rows.newRow();
row.appendChild(sAmountLabel.rightAlign());
row.appendChild(sAmountField.getComponent());
row.appendChild(new Space());
row.appendChild(new Space());
row = rows.newRow();
row.appendChild(sRoutingLabel.rightAlign());
row.appendChild(sRoutingField);
row.appendChild(new Space());
row.appendChild(new Space());
row = rows.newRow();
row.appendChild(sNumberLabel.rightAlign());
row.appendChild(sNumberField);
row.appendChild(new Space());
row.appendChild(new Space());
row = rows.newRow();
row.appendChild(sCheckLabel.rightAlign());
row.appendChild(sCheckField);
row.appendChild(new Space());
row.appendChild(sOnline);
row = rows.newRow();
row.setSpans("3,1");
row.appendChild(sStatus);
row.appendChild(new Space());
// Cash
pPanel.appendChild(pPanelLayout);
pTermLabel.setText(Msg.translate(Env.getCtx(), "C_PaymentTerm_ID"));
pPanel.setId("pPanel");
centerPanel.appendChild(pPanel);
centerLayout.add(pPanel);
rows = pPanelLayout.newRows();
row = rows.newRow();
row.appendChild(pTermLabel.rightAlign());
row.appendChild(pTermCombo);
//
bCashBookLabel.setText(Msg.translate(Env.getCtx(), "C_CashBook_ID"));
bCurrencyLabel.setText(Msg.translate(Env.getCtx(), "C_Currency_ID"));
bPanel.appendChild(bPanelLayout);
bAmountLabel.setText(Msg.getMsg(Env.getCtx(), "Amount"));
//bAmountField.setText("");
bDateLabel.setText(Msg.translate(Env.getCtx(), "DateAcct"));
bPanel.setId("bPanel");
centerPanel.appendChild(bPanel);
centerLayout.add(bPanel);
rows = bPanelLayout.newRows();
row = rows.newRow();
if (m_Cash_As_Payment) {
bBankAccountLabel.setText(Msg.translate(Env.getCtx(), "C_BankAccount_ID"));
row.appendChild(bBankAccountLabel.rightAlign());
row.appendChild(bBankAccountCombo);
} else {
row.appendChild(bCashBookLabel.rightAlign());
row.appendChild(bCashBookCombo);
}
row = rows.newRow();
row.appendChild(bCurrencyLabel.rightAlign());
row.appendChild(bCurrencyCombo);
row = rows.newRow();
row.appendChild(bDateLabel.rightAlign());
row.appendChild(bDateField.getComponent());
row = rows.newRow();
row.appendChild(bAmountLabel.rightAlign());
row.appendChild(bAmountField.getComponent());
//
South south = new South();
south.setStyle("border: none");
mainLayout.appendChild(south);
south.appendChild(confirmPanel);
confirmPanel.addActionListener(this);
}
Aggregations