|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: |
String updateSql = "UPDATE AMF " +
" SET BLOCKED_CV = ?, " +
" BLOCKED_FC = ? " +
" WHERE BRANCH_CODE = ? " +
" AND CURRENCY_CODE = ? " +
" AND GL_CODE = ? " +
" AND CIF_SUB_NO = ? " +
" AND SL_NO = ? ";
statement = conn.prepareStatement(updateSql);
if (totalColumns > 0) {
//Now writing records in csv file
for (int r = 0; r < totalRows; r++) {
rowVector = (Vector) IADataVector.get(r);
// only update those blocked amounts which exists on imal side
if (rowVector.get(INDEX_PIBAS_ADDREF) != null &&
rowVector.get(INDEX_IMAL_ADDREF) != null) {
//System.out.println("updateRows= " + updateRows);
blockAmount = new Double(rowVector.get(INDEX_PIBAS_SHDWBALN).toString()).doubleValue();
branch = new Integer(rowVector.get(INDEX_IMAL_BRANCH).toString()).intValue();
currency = new Integer(rowVector.get(INDEX_IMAL_CURRENCY).toString()).intValue();
glCode = new Long(rowVector.get(INDEX_IMAL_GL).toString()).longValue();
cifNo = new Long(rowVector.get(INDEX_IMAL_CIF).toString()).longValue();
slNO = new Integer(rowVector.get(INDEX_IMAL_SL).toString()).intValue();
if (currency == 586) {
statement.setDouble(1, blockAmount);
statement.setLong(2, 0);
} else {
statement.setLong(1, 0);
statement.setDouble(2, blockAmount);
}
statement.setInt(3, branch);
statement.setInt(4, currency);
statement.setLong(5, glCode);
statement.setLong(6, cifNo);
statement.setInt(7, slNO);
statement.addBatch();
}
updateRows++;
}
statement.executeBatch();
}
statement.close();
conn.commit();
|
Advertisement
| Hall of Fame |