/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package erp.mod.fin.db;

import sa.lib.xml.SXmlAttribute;
import sa.lib.xml.SXmlElement;

/**
 *
 * @author Juan Barajas
 */
public class SXmlBankLayoutPaymentDoc extends SXmlElement {

    public static final String NAME = "Doc";
    public static final String ATT_LAY_ROW_DPS_YEAR = "DpsYearId";
    public static final String ATT_LAY_ROW_DPS_DOC = "DpsDocId";
    public static final String ATT_LAY_ROW_AMT = "Amount";

    protected SXmlAttribute moRowDpsYear;
    protected SXmlAttribute moRowDpsDoc;
    protected SXmlAttribute moRowAmount;

    public SXmlBankLayoutPaymentDoc() {
        super(NAME);

        moRowDpsYear = new SXmlAttribute(ATT_LAY_ROW_DPS_YEAR);
        moRowDpsDoc = new SXmlAttribute(ATT_LAY_ROW_DPS_DOC);
        moRowAmount = new SXmlAttribute(ATT_LAY_ROW_AMT);

        mvXmlAttributes.add(moRowDpsYear);
        mvXmlAttributes.add(moRowDpsDoc);
        mvXmlAttributes.add(moRowAmount);
    }
}

@@ -520,505 +520,1381 @@
 t%22;%0A
-%0A    protected SXmlAttribute moRowDpsYear;%0A    protected SXmlAttribute moRowDpsDoc;%0A    protected SXmlAttribute moRowAmount;%0A%0A    public SXmlBankLayoutPaymentDoc() %7B%0A        super(NAME);%0A%0A        moRowDpsYear = new SXmlAttribute(ATT_LAY_ROW_DPS_YEAR);%0A        moRowDpsDoc = new SXmlAttribute(ATT_LAY_ROW_DPS_DOC);%0A        moRowAmount = new SXmlAttribute(ATT_LAY_ROW_AMT);%0A%0A        mvXmlAttributes.add(moRowDpsYear);%0A        mvXmlAttributes.add(moRowDpsDoc);%0A        mvXmlAttributes.add(moRowAmount
+    public static final String ATT_LAY_ROW_AMT_CY = %22AmountCy%22;%0A    public static final String ATT_LAY_ROW_CUR = %22Currency%22;%0A    public static final String ATT_LAY_ROW_EXT_RATE = %22ExchangeRate%22;%0A    public static final String ATT_LAY_ROW_OBS = %22Observation%22;%0A%0A    protected SXmlAttribute moRowDpsYear;%0A    protected SXmlAttribute moRowDpsDoc;%0A    protected SXmlAttribute moRowAmount;%0A    protected SXmlAttribute moRowAmountCy;%0A    protected SXmlAttribute moRowCurrency;%0A    protected SXmlAttribute moRowExchangeRate;%0A    protected SXmlAttribute moRowObservation;%0A%0A    public SXmlBankLayoutPaymentDoc() %7B%0A        super(NAME);%0A%0A        moRowDpsYear = new SXmlAttribute(ATT_LAY_ROW_DPS_YEAR);%0A        moRowDpsDoc = new SXmlAttribute(ATT_LAY_ROW_DPS_DOC);%0A        moRowAmount = new SXmlAttribute(ATT_LAY_ROW_AMT);%0A        moRowAmountCy = new SXmlAttribute(ATT_LAY_ROW_AMT_CY);%0A        moRowCurrency = new SXmlAttribute(ATT_LAY_ROW_CUR);%0A        moRowExchangeRate = new SXmlAttribute(ATT_LAY_ROW_EXT_RATE);%0A        moRowObservation = new SXmlAttribute(ATT_LAY_ROW_OBS);%0A%0A        mvXmlAttributes.add(moRowDpsYear);%0A        mvXmlAttributes.add(moRowDpsDoc);%0A        mvXmlAttributes.add(moRowAmount);%0A        mvXmlAttributes.add(moRowAmountCy);%0A        mvXmlAttributes.add(moRowCurrency);%0A        mvXmlAttributes.add(moRowExchangeRate);%0A        mvXmlAttributes.add(moRowObservation
 );%0A 

Change in layout payments