public class CommonMethodsImpl extends Object implements CommonMethodsI
| Constructor and Description |
|---|
CommonMethodsImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
checkRecordIdInLog(String recordId,
int userId,
Connection connection)
This is to check if a record already exist in integrationlog
|
double |
getAccountBalance(int bankAccountId,
String vcDate,
Connection connection)
Get the bank balance for the bank account
|
String |
getBankCode(int bankAccountId,
Connection connection)
Get the account code for the bank account
|
String |
getBankId(int bankAccountId,
Connection connection)
Get the bank and bank branch of the bank acocunt
|
String |
getCashInHand(int BoundaryId,
Connection connection)
Get the cash in hand code account for the boundary
|
String |
getChequeInHand(int BoundaryId,
Connection connection)
Get the Cheque in hand code account for the boundary
|
String |
getCodeName(String purposeId)
Get the acccount code and name for the account with the purposeid
|
String |
getDivisionCode(Integer divid,
Connection connection)
Get the division code of the id passed
|
Integer |
getDivisionId(Integer fieldId,
Connection connection)
Get the division id for the sub field passed
|
Integer |
getDivisionIdFromCode(String divisionCode,
Connection connection)
This API will return the sub feild id when the boundary num is passed.
|
String |
getFinacialYear(String vDate,
Connection connection)
Get the financial year for the data passed
|
String |
getFiscalPeriod(String vDate,
Connection connection)
Get the fiscal period id for the date passed
|
String |
getGlCode(String glCodeId,
Connection connection)
Get the accountcode of the is paased.
|
String |
getGlCodeId(String glCode,
Connection connection)
This method gets the GlCodeId by passing GLCODE as parameter added by Sapna
|
String |
getNameFromCode(String glcode,
Connection connection)
Get the name of the accountcode passed
|
String |
getPTCode(String forYear,
Connection connection)
Get the property tax code for the year
|
String |
getTransRunningNumber(String fundId,
String txnType,
String vDate,
Connection con) |
String |
getTxnNumber(String txnType,
String vDate)
This API will return the transaction no for any type of txn.
|
String |
getTxnNumber(String fundId,
String txnType,
String vDate,
Connection con)
added by Iliyaraja This API will return the generated Voucher number.
|
public String getCashInHand(int BoundaryId, Connection connection) throws Exception
getCashInHand in interface CommonMethodsIExceptionpublic String getChequeInHand(int BoundaryId, Connection connection) throws Exception
getChequeInHand in interface CommonMethodsIExceptionpublic String getPTCode(String forYear, Connection connection) throws Exception
getPTCode in interface CommonMethodsIExceptionpublic String getBankCode(int bankAccountId, Connection connection) throws Exception
getBankCode in interface CommonMethodsIExceptionpublic String getFiscalPeriod(String vDate, Connection connection) throws TaskFailedException, Exception
getFiscalPeriod in interface CommonMethodsITaskFailedExceptionExceptionpublic String getBankId(int bankAccountId, Connection connection) throws Exception
getBankId in interface CommonMethodsIExceptionpublic double getAccountBalance(int bankAccountId,
String vcDate,
Connection connection)
throws Exception
getAccountBalance in interface CommonMethodsIExceptionpublic String getCodeName(String purposeId) throws Exception
getCodeName in interface CommonMethodsIExceptionpublic String getNameFromCode(String glcode, Connection connection) throws Exception
getNameFromCode in interface CommonMethodsIExceptionpublic String getGlCode(String glCodeId, Connection connection) throws Exception
getGlCode in interface CommonMethodsIExceptionpublic String checkRecordIdInLog(String recordId, int userId, Connection connection) throws Exception
checkRecordIdInLog in interface CommonMethodsIExceptionpublic String getDivisionCode(Integer divid, Connection connection) throws Exception
getDivisionCode in interface CommonMethodsIExceptionpublic Integer getDivisionId(Integer fieldId, Connection connection) throws Exception
getDivisionId in interface CommonMethodsIExceptionpublic String getFinacialYear(String vDate, Connection connection) throws Exception
getFinacialYear in interface CommonMethodsIExceptionpublic String getGlCodeId(String glCode, Connection connection) throws Exception
getGlCodeId in interface CommonMethodsIExceptionpublic String getTxnNumber(String txnType, String vDate) throws Exception
getTxnNumber in interface CommonMethodsIExceptionpublic String getTxnNumber(String fundId, String txnType, String vDate, Connection con) throws Exception
getTxnNumber in interface CommonMethodsIExceptionpublic String getTransRunningNumber(String fundId, String txnType, String vDate, Connection con) throws Exception
getTransRunningNumber in interface CommonMethodsIExceptionpublic Integer getDivisionIdFromCode(String divisionCode, Connection connection) throws Exception
getDivisionIdFromCode in interface CommonMethodsIExceptionCopyright © 2015–2017 eGovernments Foundation. All rights reserved.