Search in sources :

Example 11 with South

use of org.zkoss.zul.South in project adempiere by adempiere.

the class WCharge method zkInit.

private void zkInit() {
    Borderlayout contentPane = new Borderlayout();
    form.appendChild(contentPane);
    North north = new North();
    contentPane.appendChild(north);
    north.appendChild(m_grdNew);
    Center center = new Center();
    contentPane.appendChild(center);
    center.appendChild(m_pnlAccount);
    South south = new South();
    contentPane.appendChild(south);
    Panel southPanel = new Panel();
    south.appendChild(southPanel);
    southPanel.appendChild(new Separator());
    southPanel.appendChild(m_grdConfirm);
}
Also used : Panel(org.adempiere.webui.component.Panel) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) Center(org.zkoss.zul.Center) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Borderlayout(org.zkoss.zul.Borderlayout) Separator(org.zkoss.zul.Separator)

Example 12 with South

use of org.zkoss.zul.South 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);
}
Also used : Space(org.zkoss.zul.Space) Center(org.zkoss.zul.Center) MTab(org.compiere.model.MTab) Tab(org.adempiere.webui.component.Tab) Tabpanels(org.zkoss.zul.Tabpanels) South(org.zkoss.zul.South) Tabs(org.adempiere.webui.component.Tabs) North(org.zkoss.zul.North) Row(org.zkoss.zul.Row) Tabpanel(org.zkoss.zul.Tabpanel) Rows(org.adempiere.webui.component.Rows)

Example 13 with South

use of org.zkoss.zul.South 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");		
}
Also used : Center(org.zkoss.zul.Center) South(org.zkoss.zul.South)

Example 14 with South

use of org.zkoss.zul.South 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);
}
Also used : Space(org.zkoss.zul.Space) Center(org.zkoss.zul.Center) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Row(org.adempiere.webui.component.Row) Rows(org.adempiere.webui.component.Rows)

Example 15 with South

use of org.zkoss.zul.South 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;");
}
Also used : Div(org.zkoss.zul.Div) Hbox(org.zkoss.zul.Hbox) Center(org.zkoss.zul.Center) Grid(org.adempiere.webui.component.Grid) Label(org.adempiere.webui.component.Label) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Row(org.adempiere.webui.component.Row) Borderlayout(org.zkoss.zul.Borderlayout) Rows(org.adempiere.webui.component.Rows)

Aggregations

South (org.zkoss.zul.South)41 Center (org.zkoss.zul.Center)38 North (org.zkoss.zul.North)28 Borderlayout (org.zkoss.zul.Borderlayout)19 ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)12 Rows (org.adempiere.webui.component.Rows)12 Div (org.zkoss.zul.Div)10 Row (org.adempiere.webui.component.Row)9 Panel (org.adempiere.webui.component.Panel)8 Separator (org.zkoss.zul.Separator)8 Label (org.adempiere.webui.component.Label)6 Space (org.zkoss.zul.Space)6 Grid (org.adempiere.webui.component.Grid)5 StatusBarPanel (org.adempiere.webui.panel.StatusBarPanel)5 Tab (org.adempiere.webui.component.Tab)4 Hbox (org.zkoss.zul.Hbox)4 West (org.zkoss.zul.West)4 Tabs (org.adempiere.webui.component.Tabs)3 Button (org.adempiere.webui.component.Button)2 Tabpanels (org.adempiere.webui.component.Tabpanels)2