use of org.zkoss.zul.Center 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.zkoss.zul.Center in project adempiere by adempiere.
the class WFPanel method jbInit.
//
/**
* Static Init
* <pre>
* centerScrollPane
* centerPanel
* south Panel
* infoScrollPane
* buttonPanel
* </pre>
* @throws Exception
*/
private void jbInit() throws Exception {
this.setStyle("height: 100%; width: 100%; position: absolute");
Center center = new Center();
this.appendChild(center);
center.appendChild(contentPanel);
contentPanel.setStyle("width: 100%; heigh: 100%;");
center.setAutoscroll(true);
center.setHflex("true");
center.setVflex("true");
South south = new South();
this.appendChild(south);
south.appendChild(infoTextPane);
south.setHeight("15%");
south.setSplittable(true);
south.setCollapsible(true);
south.setAutoscroll(true);
south.setHflex("true");
//south.setVflex("true");
}
use of org.zkoss.zul.Center 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);
}
use of org.zkoss.zul.Center in project adempiere by adempiere.
the class WWFActivity method init.
private void init() {
Grid grid = new Grid();
grid.setWidth("100%");
grid.setHeight("100%");
grid.setStyle("margin:0; padding:0; position: absolute; align: center; valign: center;");
grid.makeNoStrip();
grid.setOddRowSclass("even");
Rows rows = new Rows();
grid.appendChild(rows);
Row row = new Row();
rows.appendChild(row);
Div div = new Div();
div.setAlign("right");
div.appendChild(lNode);
row.appendChild(div);
row.appendChild(fNode);
fNode.setWidth("100%");
fNode.setReadonly(true);
row = new Row();
rows.appendChild(row);
row.setValign("top");
div = new Div();
div.setAlign("right");
div.appendChild(lDesctiption);
row.appendChild(div);
row.appendChild(fDescription);
fDescription.setMultiline(true);
fDescription.setWidth("100%");
fDescription.setReadonly(true);
row = new Row();
rows.appendChild(row);
div = new Div();
div.setAlign("right");
div.appendChild(lHelp);
row.appendChild(div);
row.appendChild(fHelp);
fHelp.setMultiline(true);
fHelp.setWidth("100%");
fHelp.setReadonly(true);
fHelp.setRows(3);
row.appendChild(new Label());
row = new Row();
rows.appendChild(row);
div = new Div();
div.setAlign("right");
div.appendChild(lHistory);
row.appendChild(div);
row.appendChild(fHistory);
row.appendChild(new Label());
row = new Row();
rows.appendChild(row);
div = new Div();
div.setAlign("right");
div.appendChild(lAnswer);
row.appendChild(div);
Hbox hbox = new Hbox();
hbox.appendChild(fAnswerText);
hbox.appendChild(fAnswerList);
hbox.appendChild(fAnswerButton);
fAnswerButton.addEventListener(Events.ON_CLICK, this);
row.appendChild(hbox);
row.appendChild(bZoom);
bZoom.addEventListener(Events.ON_CLICK, this);
row = new Row();
rows.appendChild(row);
div = new Div();
div.setAlign("right");
div.appendChild(lTextMsg);
row.appendChild(div);
row.appendChild(fTextMsg);
fTextMsg.setMultiline(true);
fTextMsg.setWidth("100%");
row.appendChild(new Label());
row = new Row();
rows.appendChild(row);
div = new Div();
div.setAlign("right");
div.appendChild(lForward);
row.appendChild(div);
hbox = new Hbox();
hbox.appendChild(fForward.getComponent());
hbox.appendChild(lOptional);
row.appendChild(hbox);
row.appendChild(bOK);
bOK.addEventListener(Events.ON_CLICK, this);
Borderlayout layout = new Borderlayout();
layout.setWidth("100%");
layout.setHeight("100%");
layout.setStyle("background-color: transparent; position: absolute;");
North north = new North();
north.appendChild(listbox);
north.setSplittable(true);
north.setHflex("true");
//north.setVflex("true");
north.setHeight("50%");
layout.appendChild(north);
north.setStyle("background-color: transparent");
listbox.addEventListener(Events.ON_SELECT, this);
Center center = new Center();
center.appendChild(grid);
layout.appendChild(center);
center.setStyle("background-color: transparent");
center.setHflex("true");
center.setVflex("true");
South south = new South();
south.appendChild(statusBar);
layout.appendChild(south);
south.setStyle("background-color: transparent");
this.appendChild(layout);
this.setStyle("height: 100%; width: 100%; position: absolute;");
}
use of org.zkoss.zul.Center in project adempiere by adempiere.
the class WFEditor method initForm.
@Override
protected void initForm() {
this.setHeight("100%");
Borderlayout layout = new Borderlayout();
layout.setStyle("width: 100%; height: 100%; position: absolute;");
appendChild(layout);
String sql = MRole.getDefault().addAccessSQL("SELECT AD_Workflow_ID, Name FROM AD_Workflow ORDER BY 2", "AD_Workflow", MRole.SQL_NOTQUALIFIED, // all
MRole.SQL_RO);
KeyNamePair[] pp = DB.getKeyNamePairs(sql, true);
workflowList = ListboxFactory.newDropdownListbox();
for (KeyNamePair knp : pp) {
workflowList.addItem(knp);
}
workflowList.addEventListener(Events.ON_SELECT, this);
North north = new North();
layout.appendChild(north);
north.appendChild(workflowList);
workflowList.setStyle("margin-left: 10px; margin-top: 5px;");
north.setHeight("30px");
imageMap = new Imagemap();
Center center = new Center();
layout.appendChild(center);
center.setAutoscroll(true);
// center.setHflex("true");
center.setVflex("true");
center.appendChild(imageMap);
ConfirmPanel confirmPanel = new ConfirmPanel(true);
confirmPanel.addActionListener(this);
South south = new South();
layout.appendChild(south);
south.appendChild(confirmPanel);
south.setHeight("36px");
}
Aggregations