Fix Bug [ 1750263 ] 2Pack i18n issue

This commit is contained in:
Carlos Ruiz 2007-07-10 04:45:56 +00:00
parent f3f7749a2e
commit 1391810719
1 changed files with 4 additions and 15 deletions

View File

@ -206,30 +206,19 @@ public class PackRoll extends SvrProcess {
// Update "Updated" field with current date // Update "Updated" field with current date
else if (columnName.equals("Updated")) { else if (columnName.equals("Updated")) {
// Format Date // Format Date
// TODO Correct to include proper time of
// update
Date today = new Date();
SimpleDateFormat formatter = new SimpleDateFormat(
"dd-MMM-yyyy");
String colDate = formatter.format(today);
sqlC = new StringBuffer("UPDATE " sqlC = new StringBuffer("UPDATE "
+ tableName + " SET " + columnName + tableName + " SET " + columnName
+ " = '" + colDate + "' WHERE " + " = SYSDATE WHERE "
+ columnIDName + " = " + recordID); + columnIDName + " = " + recordID);
no = DB no = DB.executeUpdate(sqlC.toString(), null);
.executeUpdate(sqlC.toString(),
null);
// Update uninstall field // Update uninstall field
sqlD = new StringBuffer( sqlD = new StringBuffer(
"UPDATE AD_Package_Imp_Backup" "UPDATE AD_Package_Imp_Backup"
+ " SET Uninstall = 'Y'" + " SET Uninstall = 'Y'"
+ " WHERE AD_Package_Imp_Backup_ID = " + " WHERE AD_Package_Imp_Backup_ID = "
+ rs2 + rs2.getInt("AD_Package_Imp_Backup_ID"));
.getInt("AD_Package_Imp_Backup_ID")); no = DB.executeUpdate(sqlD.toString(), null);
no = DB
.executeUpdate(sqlD.toString(),
null);
} }
// Update "UpdatedBy" field with current user // Update "UpdatedBy" field with current user
else if (columnName.equals("UpdatedBy")) { else if (columnName.equals("UpdatedBy")) {