Commit 50dc0c09 authored by smane's avatar smane

Add validation for Doctor/Pharmacy in filter screen of POB Transaction Workflow (D15FSUN007)


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98719 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 80b0d2db
......@@ -260,6 +260,8 @@ public class POBWizIC extends ValidatorEJB implements POBWizICLocal, POBWizICRem
} else if (childNodeName.equalsIgnoreCase("sc_code"))
{
scCode = this.genericUtility.getColumnValue("sc_code", dom);
itemSer = this.genericUtility.getColumnValue("item_ser", dom);
System.out.println(">>>itemSer:"+itemSer);
if (scCode != null && scCode.trim().length() > 0)
{
if (!(isExist(conn, "strg_customer", "sc_code", scCode)))
......@@ -268,7 +270,34 @@ public class POBWizIC extends ValidatorEJB implements POBWizICLocal, POBWizICRem
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
} else
else
{
//Condition Added by sagar on 13/10/15 validate Customer/Pharmacy in strg_series table
count= 0;
sql = " select count(*) as cnt from strg_series a, strg_customer b where a.sc_code = b.sc_code and a.item_ser= ? and a.sales_pers= ? and a.sc_code= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemSer);
pstmt.setString(2, loginEmpCode);
pstmt.setString(3, scCode);
rs = pstmt.executeQuery();
if (rs.next())
{
count = rs.getInt("cnt");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println(">>>>strg_series count:"+ count);
if (count == 0)
{
errCode = "VMSTRGSRCD";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else
{
errCode = "VMSTRGCDBK";
errList.add(errCode);
......
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