Commit bab5b403 authored by prahate's avatar prahate

EJB Component for Bank Guarantee.[F15DSUN018]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98483 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 18dcfae9
......@@ -197,7 +197,14 @@ public class BankGuaranteeIC extends ValidatorEJB implements BankGuaranteeICLoca
pstmt.close();
pstmt = null;
if (prdCode != null && prdCode.trim().length() > 0)
if (prdCode == null || prdCode.trim().length() == 0)
{
System.out.println("Project Code not Defined.");
errCode = "VMPRDNTDF";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else //(prdCode != null && prdCode.trim().length() > 0)
{
sql = "Select count(1) from period_stat where prd_code = ? "
+ " AND site_code = ? ";
......@@ -241,11 +248,11 @@ public class BankGuaranteeIC extends ValidatorEJB implements BankGuaranteeICLoca
break;
}
}
else
/*else
{
errString = itmDBAccessEJB.getErrorString("","VMPRDNTDF", userId);
break;
}
}*/
}
}
else if(childNodeName.equalsIgnoreCase("site_code__for"))
......
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