Search in sources :

Example 66 with Rows

use of org.adempiere.webui.component.Rows in project adempiere by adempiere.

the class InfoInvoicePanel method statInit.

private void statInit() {
    initComponents();
    fDocumentNo.setWidth("100%");
    fDescription.setWidth("100%");
    fDateFrom.setWidth("165px");
    fDateTo.setWidth("165px");
    fAmtFrom.getDecimalbox().setWidth("155px");
    fAmtTo.getDecimalbox().setWidth("155px");
    Rows rows = new Rows();
    Row row = new Row();
    rows.appendChild(row);
    row.appendCellChild(lblDocumentNo.rightAlign());
    row.appendCellChild(fDocumentNo);
    row.appendCellChild(fBPartner_ID.getLabel().rightAlign());
    row.appendCellChild(fBPartner_ID.getComponent());
    row.appendCellChild(fIsSOTrx);
    row.appendCellChild(fIsPaid);
    row = new Row();
    rows.appendChild(row);
    row.appendCellChild(lblDescription.rightAlign());
    row.appendCellChild(fDescription);
    row.appendCellChild(lblDateInvoiced.rightAlign());
    Hbox hbox = new Hbox();
    hbox.appendChild(fDateFrom);
    hbox.appendChild(new Label("-"));
    hbox.appendChild(fDateTo);
    row.appendCellChild(hbox, 3);
    row = new Row();
    rows.appendChild(row);
    row.appendCellChild(fOrder_ID.getLabel().rightAlign());
    row.appendCellChild(fOrder_ID.getComponent());
    row.appendCellChild(lblGrandTotal.rightAlign());
    hbox = new Hbox();
    hbox.appendChild(fAmtFrom);
    hbox.appendChild(new Label("-"));
    hbox.appendChild(fAmtTo);
    row.appendCellChild(hbox, 3);
    p_criteriaGrid.appendChild(rows);
    scheduleTbl = new WListbox();
    m_sqlSchedule = scheduleTbl.prepareTable(s_subLayout, s_subFrom, s_subWhere, false, "i");
    scheduleTbl.setMultiSelection(false);
    scheduleTbl.autoSize();
    scheduleTbl.setAttribute("zk_component_ID", "Lookup_Data_Schedule");
    scheduleTbl.setShowTotals(true);
    p_centerSouth.appendChild(scheduleTbl);
    p_centerSouth.setTitle(Msg.translate(Env.getCtx(), "C_InvoicePaySchedule_ID"));
    p_centerSouth.setTooltiptext(Msg.translate(Env.getCtx(), "C_InvoicePaySchedule_ID"));
    super.setSizes();
}
Also used : Hbox(org.zkoss.zul.Hbox) WListbox(org.adempiere.webui.component.WListbox) Label(org.adempiere.webui.component.Label) Row(org.adempiere.webui.component.Row) Rows(org.adempiere.webui.component.Rows)

Example 67 with Rows

use of org.adempiere.webui.component.Rows in project adempiere by adempiere.

the class WScanBarUI method createProductPanel.

/**
     * Creates the New Charge panel.
     *
     * The New Charge panel is used to specify the name and key of an account
     * and whether or not the account is a charge account.
     */
private void createProductPanel() {
    //  load Locator
    locatorLabel.setValue(Msg.translate(Env.getCtx(), "M_Locator_ID"));
    locatorLabel.setMandatory(true);
    MLocatorLookup locator = new MLocatorLookup(Env.getCtx(), form.getWindowNo());
    locator.setOnly_Warehouse_ID(Env.getContextAsInt(Env.getCtx(), "#M_Warehouse_ID"));
    locatorField = new WLocatorEditor("M_Locator_ID", true, false, true, locator, form.getWindowNo());
    locatorField.setMandatory(true);
    locatorField.addValueChangeListener(this);
    locatorToLabel.setValue(Msg.translate(Env.getCtx(), "M_LocatorTo_ID"));
    locatorToLabel.setVisible(false);
    MLocatorLookup locatorTo = new MLocatorLookup(Env.getCtx(), form.getWindowNo());
    locatorToField = new WLocatorEditor("M_LocatorTo_ID", true, false, true, locatorTo, form.getWindowNo());
    //locatorField.setMandatory(true);
    locatorToField.addValueChangeListener(this);
    locatorToField.setVisible(false);
    upcLabel.setText(Msg.getElement(Env.getCtx(), "Value", false));
    upcLabel.setMandatory(true);
    upcField = new WStringEditor("UPC", false, false, true, 10, 30, null, null);
    upcField.getComponent().addEventListener(Events.ON_CHANGE, this);
    qtyCountLabel.setText(Msg.getElement(Env.getCtx(), "QtyCount", false));
    qtyCountField.getComponent().addEventListener(Events.ON_CHANGE, this);
    lotLabel.setText(Msg.getElement(Env.getCtx(), "Lot", false));
    lotField = new WStringEditor("Lot", false, false, true, 10, 30, null, null);
    lotField.getComponent().addEventListener(Events.ON_CHANGE, this);
    serNoLabel.setText(Msg.getElement(Env.getCtx(), "SerNo", false));
    serNoField = new WStringEditor("SerNo", false, false, true, 10, 30, null, null);
    serNoField.getComponent().addEventListener(Events.ON_CHANGE, this);
    productValueLabel.setValue(Msg.translate(Env.getCtx(), "Value"));
    productLabel.setValue(Msg.translate(Env.getCtx(), "Name"));
    UOMLabel.setValue(Msg.translate(Env.getCtx(), "C_UOM_ID"));
    Rows rows = new Rows();
    newGrid.appendChild(rows);
    Row row = new Row();
    rows.appendChild(row);
    row.setSpans("3");
    row.appendChild(new Separator());
    row = new Row();
    rows.appendChild(row);
    row.appendChild(locatorLabel);
    row.appendChild(locatorField.getComponent());
    row = new Row();
    rows.appendChild(row);
    row.appendChild(locatorToLabel);
    row.appendChild(locatorToField.getComponent());
    row = new Row();
    rows.appendChild(row);
    row.setSpans("3");
    row.appendChild(new Separator());
    row = new Row();
    rows.appendChild(row);
    row.appendChild(upcLabel);
    row.appendChild(upcField.getComponent());
    row.appendChild(qtyCountLabel);
    row.appendChild(qtyCountField.getComponent());
    row = new Row();
    rows.appendChild(row);
    row.setSpans("3");
    row.appendChild(new Separator());
    row = new Row();
    rows.appendChild(row);
    row.appendChild(serNoLabel);
    row.appendChild(serNoField.getComponent());
    row = new Row();
    rows.appendChild(row);
    row.setSpans("3");
    row.appendChild(new Separator());
    row = new Row();
    rows.appendChild(row);
    row.appendChild(lotLabel);
    row.appendChild(lotField.getComponent());
    row = new Row();
    rows.appendChild(row);
    row.setSpans("3");
    row.appendChild(new Separator());
    //Product Info
    productValueField.setReadonly(true);
    row = new Row();
    rows.appendChild(row);
    row.appendChild(productValueLabel);
    row.appendChild(productValueField);
    productField.setReadonly(true);
    row.appendChild(productLabel);
    row.appendChild(productField);
    UOMField.setReadonly(true);
    row.appendChild(UOMLabel);
    row.appendChild(UOMField);
    row = new Row();
    rows.appendChild(row);
    row.setSpans("3");
    row.appendChild(new Separator());
    row = new Row();
    rows.appendChild(row);
    row.setSpans("3");
    row.appendChild(new Separator());
    row = new Row();
    rows.appendChild(row);
    row.setSpans("3");
    row.appendChild(new Separator());
    upcField.setVisible(false);
    qtyCountField.setVisible(false);
    lotField.setVisible(false);
    serNoField.setVisible(false);
    return;
}
Also used : MLocatorLookup(org.compiere.model.MLocatorLookup) WLocatorEditor(org.adempiere.webui.editor.WLocatorEditor) Row(org.adempiere.webui.component.Row) Separator(org.zkoss.zul.Separator) WStringEditor(org.adempiere.webui.editor.WStringEditor) Rows(org.adempiere.webui.component.Rows)

Example 68 with Rows

use of org.adempiere.webui.component.Rows in project adempiere by adempiere.

the class WCRPDetail method jbInit.

private void jbInit() {
    dateFrom = new WDateEditor("DateFrom", true, false, true, "DateFrom");
    dateTo = new WDateEditor("DateTo", true, false, true, "DateTo");
    Rows rows = new Rows();
    Row row = null;
    new GridFactory();
    Grid northPanel = GridFactory.newGridLayout();
    rows.setParent(northPanel);
    row = rows.newRow();
    row.appendChild(new Label(Msg.translate(Env.getCtx(), "S_Resource_ID")).rightAlign());
    row.appendChild(resource.getComponent());
    row.appendChild(new Label(Msg.translate(Env.getCtx(), "DateFrom")).rightAlign());
    row.appendChild(dateFrom.getComponent());
    row.appendChild(new Label(Msg.translate(Env.getCtx(), "DateTo")).rightAlign());
    row.appendChild(dateTo.getComponent());
    ConfirmPanel confirmPanel = new ConfirmPanel(true);
    confirmPanel.addActionListener(this);
    North north = new North();
    north.appendChild(northPanel);
    mainLayout.appendChild(north);
    //West west = new West();
    //chartPanel.setWidth("400");
    //west.appendChild(chartPanel);
    //west.setSplittable(true);
    //west.setAutoscroll(true);
    //mainLayout.appendChild(west);
    South south = new South();
    south.appendChild(confirmPanel);
    mainLayout.appendChild(south);
}
Also used : WDateEditor(org.adempiere.webui.editor.WDateEditor) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) Grid(org.adempiere.webui.component.Grid) GridFactory(org.adempiere.webui.component.GridFactory) Label(org.adempiere.webui.component.Label) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Row(org.zkoss.zul.Row) Rows(org.adempiere.webui.component.Rows)

Example 69 with Rows

use of org.adempiere.webui.component.Rows in project adempiere by adempiere.

the class WCRP method jbInit.

private void jbInit() throws Exception {
    resourceLabel.setText(Msg.translate(Env.getCtx(), "S_Resource_ID"));
    dateFromLabel.setText(Msg.translate(Env.getCtx(), "DateFrom"));
    Rows rows = new Rows();
    Row row = null;
    rows.setParent(northPanel);
    row = rows.newRow();
    row.appendChild(resourceLabel.rightAlign());
    row.appendChild(resource.getComponent());
    row.appendChild(dateFromLabel.rightAlign());
    row.appendChild(dateFrom.getComponent());
    centerPanel.appendChild(chartPanel);
    JFreeChart jchart = ChartFactory.createBarChart3D("", // X-Axis label
    Msg.translate(Env.getCtx(), "Days"), // Y-Axis label
    Msg.translate(Env.getCtx(), "Hours"), // Dataset
    new DefaultCategoryDataset(), // orientation
    PlotOrientation.VERTICAL, // include legend
    true, // tooltips?
    true, // URLs?
    false);
    renderChart(jchart);
    confirmPanel.addActionListener(this);
}
Also used : Row(org.zkoss.zul.Row) DefaultCategoryDataset(org.jfree.data.category.DefaultCategoryDataset) JFreeChart(org.jfree.chart.JFreeChart) Rows(org.adempiere.webui.component.Rows)

Example 70 with Rows

use of org.adempiere.webui.component.Rows in project adempiere by adempiere.

the class WCreateFromRMAUI method zkInit.

//  dynInit
/**
	 * Init ZK
	 * @throws Exception
	 */
protected void zkInit() throws Exception {
    bPartnerLabel.setText(Msg.getElement(Env.getCtx(), "C_BPartner_ID"));
    Borderlayout parameterLayout = new Borderlayout();
    parameterLayout.setHeight("120px");
    parameterLayout.setWidth("100%");
    Panel parameterPanel = v_CreateFromPanel.getParameterPanel();
    parameterPanel.appendChild(parameterLayout);
    Grid parameterStdLayout = GridFactory.newGridLayout();
    Panel parameterStdPanel = new Panel();
    parameterStdPanel.appendChild(parameterStdLayout);
    Center center = new Center();
    parameterLayout.appendChild(center);
    center.appendChild(parameterStdPanel);
    Rows rows = (Rows) parameterStdLayout.newRows();
    Row row = rows.newRow();
    row.appendChild(bPartnerLabel.rightAlign());
    if (bPartnerField != null)
        row.appendChild(bPartnerField.getComponent());
    //	Add to Main
    v_CreateFromPanel.setWidth("100%");
    v_CreateFromPanel.setHeight("100%");
    v_Container.appendChild(v_CreateFromPanel);
}
Also used : Panel(org.adempiere.webui.component.Panel) Center(org.zkoss.zul.Center) Grid(org.adempiere.webui.component.Grid) Borderlayout(org.zkoss.zul.Borderlayout) Row(org.adempiere.webui.component.Row) Rows(org.adempiere.webui.component.Rows)

Aggregations

Rows (org.adempiere.webui.component.Rows)76 Row (org.adempiere.webui.component.Row)69 Label (org.adempiere.webui.component.Label)28 Grid (org.adempiere.webui.component.Grid)27 Panel (org.adempiere.webui.component.Panel)20 Center (org.zkoss.zul.Center)17 Div (org.zkoss.zul.Div)15 ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)13 Hbox (org.zkoss.zul.Hbox)13 Space (org.zkoss.zul.Space)13 South (org.zkoss.zul.South)12 Center (org.zkoss.zkex.zul.Center)11 North (org.zkoss.zul.North)11 North (org.zkoss.zkex.zul.North)10 Borderlayout (org.zkoss.zul.Borderlayout)10 Separator (org.zkoss.zul.Separator)10 South (org.zkoss.zkex.zul.South)8 Caption (org.zkoss.zul.Caption)6 Tab (org.adempiere.webui.component.Tab)5 Row (org.zkoss.zul.Row)5