Doit ( )

 Here you can write your logic and return message(s) etc. as shown below. 

For context, Use GetCtx() function to get Ctx class Object. 

 

///<summary> 

/// Perrform process.       

///</summary> 

///<returns>Message to be translated</returns> 

protectedoverridestring DoIt() 

        { 

            log.Info("Increment on HRA=" + _hra); 

 

int amount = _hra + _hra / 100 * 10; 

 

string sql = ""; 

string result = ""; 

 

try 

            { 

                sql = "UPDATE VAT_EMPLOYEE SET vat_hra=" + amount + " WHERE VAT_EMPLOYEEGRADE='" + grade + "'"; 

 

int outPut = DB.ExecuteQuery(sql, null, null); 

if (outPut > 0) 

                    result = "Record updated sucessfully"; 

else 

                    result = "Error while saving the record"; 

 

            } 

 

catch (Exception e) 

            { 

                log.Log(Level.SEVERE, sql, e); 

 

            } 

 

return result; 

        }