@Transactional(readOnly=true) @Service(value="eGovernCommon") public class EGovernCommon extends AbstractTask
| Constructor and Description |
|---|
EGovernCommon() |
| Modifier and Type | Method and Description |
|---|---|
String |
assignValue(String data,
String defaultValue) |
void |
execute(String taskName,
String gridName,
DataCollection datacol,
Connection con,
boolean errorData,
boolean gridHasCol,
String prefix) |
String |
formatString(String strToFormat)
This function is to handle the single quotes.
|
BigDecimal |
getAccountBalance(Date VoucherDate,
String bankAccountId) |
BigDecimal |
getAccountBalance(String recDate,
String bankAccountId) |
String |
getBillNumber() |
long |
getCGNumber() |
String |
getCurDateTime() |
String |
getCurrentDate()
This function returns the system date of the database server.
|
String |
getCurrentDateTime()
Deprecated.
|
String |
getEffectiveDateFilter(String val) |
String |
getEg_Voucher(String vouType,
String fiscalPeriodIdStr) |
String |
getEGWStatusId(String moduleType,
String description)
To get the EGW_STATUS id
|
String |
getFiscalPeriod(String vDate)
This API returns the fiscialperiodid for the date passed
|
List |
getFormFields(DataCollection datacol) |
org.egov.infstr.services.PersistenceService |
getPersistenceService() |
boolean |
isUniqueVN(String vcNum,
String vcDate) |
boolean |
isUniqueVN(String vcNum,
String vcDate,
DataCollection datacol)
Function to check if the voucher number is Unique
|
void |
setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService) |
String |
trimChar(String str,
char ch)
this function trims ch in string
|
extractData, updatepublic void execute(String taskName, String gridName, DataCollection datacol, Connection con, boolean errorData, boolean gridHasCol, String prefix) throws TaskFailedException
execute in class AbstractTaskTaskFailedExceptionpublic long getCGNumber()
public String getCurrentDate() throws TaskFailedException
connection - TaskFailedExceptionpublic List getFormFields(DataCollection datacol)
datacol - public String formatString(String strToFormat)
strToFormat - @Deprecated public String getCurrentDateTime() throws TaskFailedException
TaskFailedExceptionpublic String getEg_Voucher(String vouType, String fiscalPeriodIdStr) throws TaskFailedException, Exception
vouType - Eg - U/DBP/CGVNfiscialPeriod - conn - TaskFailedException,ExceptionTaskFailedExceptionExceptionpublic String getEffectiveDateFilter(String val) throws TaskFailedException, Exception
TaskFailedExceptionExceptionpublic String getCurDateTime() throws TaskFailedException, Exception
TaskFailedExceptionExceptionpublic String getBillNumber() throws TaskFailedException, Exception
TaskFailedExceptionExceptionpublic String getFiscalPeriod(String vDate) throws TaskFailedException
vDate - con - TaskFailedExceptionpublic boolean isUniqueVN(String vcNum, String vcDate, DataCollection datacol) throws TaskFailedException, Exception
vcNum - vcDate - datacol - conn - TaskFailedExceptionExceptionpublic boolean isUniqueVN(String vcNum, String vcDate) throws Exception, TaskFailedException
vcNum - vcDate - conn - TaskFailedException,ExceptionExceptionTaskFailedExceptionpublic BigDecimal getAccountBalance(Date VoucherDate, String bankAccountId) throws TaskFailedException
TaskFailedExceptionpublic BigDecimal getAccountBalance(String recDate, String bankAccountId) throws TaskFailedException
TaskFailedExceptionpublic String trimChar(String str, char ch)
str - ch - public String getEGWStatusId(String moduleType, String description) throws TaskFailedException
con - moduleType - description - TaskFailedExceptionpublic org.egov.infstr.services.PersistenceService getPersistenceService()
public void setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.