This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TableMapper mp = new TableMapper(); | |
| TestTable1 tb1; | |
| TestTable2 tb2; | |
| ; | |
| mp.MapTable(tb1, tb2) | |
| .Bind("Int2", "SomeInt") | |
| .Bind("Name","FullName") | |
| .Bind("Url", "Web") | |
| .Ignore("Utc") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LedgerJournalTable jourTable, origJornalTable; | |
| LedgerJournalTrans jourTrans, origJournalTrans; | |
| SubledgerVoucherGeneralJournalEntry jourLink; | |
| ; | |
| origJornalTable = LedgerJournalTable::findByGeneralJournalEntry(journalEntry); | |
| if(origJornalTable){ | |
| select * from origJournalTrans where origJournalTrans.JournalNum == origJornalTable.JournalNum | |
| join jourLink where jourLink.GeneralJournalEntry == journalEntry.RecId && origJournalTrans.Voucher == jourLink.Voucher; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static LedgerJournalTable findByGeneralJournalEntry( GeneralJournalEntry journalEntry ) | |
| { | |
| LedgerJournalTable journalTable; | |
| LedgerEntryJournal journalLink; | |
| ; | |
| select firstOnly * from journalLink where journalLink.RecId == journalEntry.LedgerEntryJournal | |
| join journalTable where journalTable.JournalNum == journalLink.JournalNumber;// && | |
| //journalTable.dataAreaId == journalLink.LedgerJournalTableDataAreaId; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Mariano Julio Vicario aka Ranu - TW: @el_ranu | |
| * http://www.ranu.com.ar | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //app.js Socket IO Test | |
| var app = require('express').createServer(), | |
| redis = require('socket.io/node_modules/redis'), | |
| io = require('socket.io').listen(app); | |
| var pub = redis.createClient(port, "url"); | |
| var sub = redis.createClient(port, "url"); | |
| var store = redis.createClient(port, "url"); | |
| pub.auth('pass', function(){console.log("adentro! pub")}); | |
| sub.auth('pass', function(){console.log("adentro! sub")}); |
NewerOlder