Commit 865a934b authored by ssarkar's avatar ssarkar

changed by sumit on 23/03/13 for bug of deallocation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92864 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8418e148
...@@ -941,10 +941,10 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal, ...@@ -941,10 +941,10 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
deallocArtConfLocal = (DeallocArtConfLocal)ctx.lookup("ibase/DeallocArtConf/local"); deallocArtConfLocal = (DeallocArtConfLocal)ctx.lookup("ibase/DeallocArtConf/local");
errString = deallocArtConfLocal.confirm(tranId, xtraParams, "", conn, false); errString = deallocArtConfLocal.confirm(tranId, xtraParams, "", conn, false);
System.out.println(" ************ errString ******** ["+errString+"]"); System.out.println(" ************ errString ******** ["+errString+"]");
if (errString.indexOf("VTSUCC1") > -1) /*if (errString.trim().length() > 0)
{ {
errString = ""; errString = "";
} }*/
}//try end }//try end
catch(Exception e) catch(Exception e)
...@@ -970,7 +970,7 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal, ...@@ -970,7 +970,7 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
System.out.println("Closing Connection...."); System.out.println("Closing Connection....");
try try
{ {
if (errString == null || errString.trim().length() == 0 || errString.contains("VTSUCC1")) if (errString == null || errString.trim().length() == 0 )
{ {
conn.commit(); conn.commit();
//errString="VTCOMPL"; //errString="VTCOMPL";
......
...@@ -32084,7 +32084,57 @@ INSERT INTO system_service_args VALUES ( ...@@ -32084,7 +32084,57 @@ INSERT INTO system_service_args VALUES (
'AVIPRASH ', 'AVIPRASH ',
'BASE216'); 'BASE216');
-- added by sumit on 22/03/13
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 (
'INVDEALLQ5',
'Invalid location',
'Quantity can not be deallocated from PND location.',
'E',
'Y',
NULL,
NULL,
NULL,
TO_DATE('14-12-2012 00:00:00','DD-MM-YYYY HH24:MI:SS'),
'BASE',
'BASE',
NULL,
NULL);
create or replace
function fn_wave_status(SI_WAVE_ID IN CHAR)
return CHAR IS STATUS CHAR;
CNT NUMBER;
CNT1 NUMBER;
BEGIN
BEGIN
SELECT count(*) INTO CNT FROM WAVE_TASK_DET WHERE WAVE_ID = SI_WAVE_ID;
SELECT count(*) INTO CNT1 FROM WAVE_TASK_DET WHERE WAVE_ID = SI_WAVE_ID AND STATUS = 'Y';
IF (CNT = cnt1 ) THEN
STATUS := 'Y';
ELSE
STATUS := 'N';
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
STATUS :='N';
END;
RETURN STATUS;
END;
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