Commit 179eb8ce authored by ppatro's avatar ppatro

stock transfer and replenishment iss validation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93357 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c208dc51
......@@ -693,6 +693,51 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
}
} //End of case 1 Validation
break;
//Changed by sankara on 17/07/13 adding validation where user going to do this task which is already processing by other user start...
case 2:
{
System.out.println("INCASE2");
childList = parentList.item(0).getChildNodes();
noOfChilds = childList.getLength();
for ( int ctr = 0; ctr < noOfChilds; ctr++ ) //Loop for each node of current detail
{
Node childNode = childList.item( ctr );
if( childNode.getNodeType() != Node.ELEMENT_NODE )
{
continue;
}
String childNodeName = childNode.getNodeName();
if ( childNode != null && childNode.getFirstChild() != null )
{
columnValue = childNode.getFirstChild().getNodeValue();
}
System.out.println(" columnName [" + childNodeName + "] columnValue [" + columnValue + "]");
if ( "repl_order".equalsIgnoreCase( childNodeName ) )
{
replOrder = genericUtility.getColumnValue( "repl_order", currFormDataDom );
sql = "SELECT CONFIRMED,CHG_USER FROM REPL_ISS_HDR WHERE REPL_ORDER = ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, replOrder );
rs = pstmt.executeQuery();
if( rs.next() )
{
if( "N".equalsIgnoreCase(rs.getString("CONFIRMED")) && !userId.trim().equalsIgnoreCase(rs.getString("CHG_USER").trim()))
{
errList.add( "VMACTRECHG" );
errFields.add( childNodeName.toLowerCase() );
}
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
}
}
break;
//Changed by sankara on 17/07/13 adding validation where user going to do this task which is already processing by other user end....
case 3:
{
childList = parentList.item(0).getChildNodes();
......
......@@ -42211,7 +42211,34 @@ INSERT INTO MESSAGES (
'Base',
NULL,
NULL);
///Rohan 18JUL13
INSERT INTO MESSAGES (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'VMACTRECHG',
'Repl Ord already processed',
'Replenishment order processed by other user !',
'E',
'Y',
NULL,
NULL,
NULL,
fn_sysdate(),
'BASE ',
'BASE ',
NULL,
NULL);
commit;
commit;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment