This file contains 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
Local Package:Header &oInvoiceHeader = create Package:Header(); | |
Local number &nCnt; | |
Local SQL &sqlHeader, &sqlLine; | |
Local Record &recHeader, &recLine; | |
Local array of Record &arrHeader, &arrLine; | |
&recHeader = CreateRecord(Record.Z_HDR_TAO); | |
&arrHeader = CreateArrayRept(&recHeader, 0); |
This file contains 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
import PACKAGE:Utils:StringHashtable; | |
class Header | |
method Header(); | |
method init(); | |
method insert(); | |
method createFile(); | |
property string fileName get; | |
property string fullFilePathName get; |
This file contains 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
Local PACKAGE:NumberHashtable &oHrsByErnCd = Create PACKAGE:NumberHashtable(); | |
Local Rowset &rsTSIntfc = CreateRowset(Record.Z_TSINFC_VW); | |
REM Get all the timesheets for the week | |
&rsTSIntfc.Fill(" WHERE EARNS_END_DT = %DateIn(:1) AND EMPLID = :2 ", &Timesheet.WeekEndDate, &Timesheet.EmplID); | |
For &nCnt = 1 To &rsTSIntfc.RowCount | |
&recTSIntfc = &rsTSIntfc(&nCnt).Z_TSINFC_VW; | |
REM Add the Hours to the Hashtable with ERNCD as the Key | |
&oHrsByErnCd.Add(&recTSIntfc.ERNCD.value, &recTSIntfc.TOTAL_HRS.value); | |
End-For; |
This file contains 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
/* | |
This class provides a simple Hashtable implementation for storing and looking up Numbers based on String keys | |
*/ | |
class NumberHashtable | |
method NumberHashtable(); | |
method Put(&key As string, &value As number); |
This file contains 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
/* | |
This class provides a simple Hashtable implementation for storing and looking up Strings based on String keys | |
*/ | |
class StringHashtable | |
method StringHashtable(); | |
method Put(&key As string, &value As string); |
This file contains 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
import Z_REST_UTIL:Request; | |
class InstrumentAssignments | |
method InstrumentAssignments(&nVendorId As number, &nPaymentPartyId As number, &nPaymentInstrumentId As number); | |
property number VendorId readonly; | |
property number PaymentPartyId readonly; | |
property number PaymentInstrumentId readonly; | |
property string PaymentFlow readonly; | |
property string PaymentInstrumentType readonly; | |
property string PrimaryIndicator readonly; |
This file contains 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
/** APPLICATION_PACKAGE.Z_REST_UTIL.Request.OnExecute **/ | |
import EOEW_ETLAPI:COMMON:HashTable; | |
class Request | |
method Request(&sURL As string); | |
method get() Returns JsonObject; | |
method post(&jsonRequest As JsonObject) Returns JsonObject; | |
method generateRequest(&MethodName As string, &Request As string) Returns JsonObject; | |
method buildGenericMessage(&MethodName As string, &Request As string) Returns Message; | |
method base64ToString(&sBase64 As string) Returns string; |
This file contains 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
/** | |
* This module uses global declared functions to communicate with the youtube api (iframe) | |
* Communication to parent (implementation) modules is done with jquery trigger. | |
* | |
* basic exsample: | |
* <div class="video-wrapper"> | |
* <div id="unique-id-here" | |
* </div> | |
* </div> | |
* |