Package org.brerp.sped.nfe.grid
Class XMLMatch
java.lang.Object
org.brerp.sped.nfe.grid.XMLMatch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncmd_matchFrom
(String selection) Match From Changed - Fill Match Toprotected void
cmd_process
(IMiniTable xMatchedTable, IMiniTable xMatchedToTable, int matchMode, int matchFrom, Object matchTo, BigDecimal m_xMatched) Process Button Pressed - Process Matchingprotected IMiniTable
cmd_search
(IMiniTable xMatchedTable, int display, String matchToString, Integer Product, Integer Vendor, Timestamp from, Timestamp to, boolean matched) Search Button Pressed - Fill xMatchedprotected IMiniTable
cmd_searchTo
(IMiniTable xMatchedTable, IMiniTable xMatchedToTable, String displayString, int matchToType, boolean sameBPartner, boolean sameProduct, boolean sameQty, boolean matched) Fill xMatchedToprotected boolean
createMatchRecord
(boolean invoice, int M_InOutLine_ID, int Line_ID, BigDecimal qty, String trxName) Create Matching Recordprotected MOrgInfo
getOrg
(br.inf.portalfiscal.nfe.schema.nfe.TNFe nfe) Get OrgInfoprotected MOrgInfo
getOrg
(StringBuilder xml) Get OrgInfoprotected void
tableInit
(int display, int matchToType, boolean matched) Initialize Table access - create SQL, dateColumn.protected void
tableLoad
(IMiniTable table) Fill the table using m_sqlprotected boolean
Validate Protocolprotected boolean
Validate XML File
-
Constructor Details
-
XMLMatch
public XMLMatch()
-
-
Method Details
-
cmd_matchFrom
Match From Changed - Fill Match To -
cmd_search
protected IMiniTable cmd_search(IMiniTable xMatchedTable, int display, String matchToString, Integer Product, Integer Vendor, Timestamp from, Timestamp to, boolean matched) Search Button Pressed - Fill xMatched -
cmd_process
protected void cmd_process(IMiniTable xMatchedTable, IMiniTable xMatchedToTable, int matchMode, int matchFrom, Object matchTo, BigDecimal m_xMatched) Process Button Pressed - Process Matching -
cmd_searchTo
protected IMiniTable cmd_searchTo(IMiniTable xMatchedTable, IMiniTable xMatchedToTable, String displayString, int matchToType, boolean sameBPartner, boolean sameProduct, boolean sameQty, boolean matched) Fill xMatchedTo -
tableInit
protected void tableInit(int display, int matchToType, boolean matched) Initialize Table access - create SQL, dateColumn.
The driving table is "hdr", e.g. for hdr.C_BPartner_ID=.. The line table is "lin", e.g. for lin.M_Product_ID=.. You use the dateColumn/qtyColumn variable directly as it is table specific.
The sql is dependent on MatchMode: - If Matched - all (fully or partially) matched records are listed - If Not Matched - all not fully matched records are listed- Parameters:
display
- (Invoice, Shipment, Order) see MATCH_*matchToType
- (Invoice, Shipment, Order) see MATCH_*
-
tableLoad
Fill the table using m_sql- Parameters:
table
- table
-
createMatchRecord
protected boolean createMatchRecord(boolean invoice, int M_InOutLine_ID, int Line_ID, BigDecimal qty, String trxName) Create Matching Record- Parameters:
invoice
- true if matching invoice false if matching POM_InOutLine_ID
- shipment lineLine_ID
- C_InvoiceLine_ID or C_OrderLine_IDqty
- quantitytrxName
-- Returns:
- true if created
-
validateXMLSignature
Validate XML File- Parameters:
xml
-- Returns:
-
getOrg
Get OrgInfo- Parameters:
nfe
-- Returns:
- Throws:
ParseException
Exception
-
getOrg
Get OrgInfo- Parameters:
nfe
-- Returns:
- Throws:
ParseException
Exception
-
validateProtocol
Validate Protocol- Parameters:
xml
-- Returns:
-