Commit 04d8c733 authored by mjadhav's avatar mjadhav

changes done in mahendra


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94502 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 81061523
......@@ -116,11 +116,12 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
System.out.println("childNodeName : "+childNodeName);
if(childNodeName.equalsIgnoreCase("frt_chgs_table"))
{
frtChgstable = checkNull(genericUtility.getColumnValue("frt_chgs_table",dom));
frtChgstable = frtChgstable==null?null:frtChgstable.trim();
System.out.println("frtChgstable :"+frtChgstable);
if (frtChgstable == null || frtChgstable.trim().length() == 0)
{
......@@ -135,6 +136,8 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
else if(childNodeName.equalsIgnoreCase("load_type"))
{
loadType = checkNull(genericUtility.getColumnValue("load_type",dom));
loadType = loadType==null?null:loadType.trim();
System.out.println("loadType :"+loadType);
if (loadType == null || loadType.trim().length() == 0)
{
......@@ -149,6 +152,8 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
else if(childNodeName.equalsIgnoreCase("charge_code"))
{
chargeCode = checkNull(genericUtility.getColumnValue("charge_code",dom));
chargeCode = chargeCode==null?null:chargeCode.trim();
System.out.println("chargeCode :"+chargeCode);
if (chargeCode == null || chargeCode.trim().length() == 0)
{
......@@ -158,7 +163,10 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
System.out.println("Charge code can not be blank!");
//break;
}
System.out.println("editFlag !! "+editFlag);
if(editFlag.equalsIgnoreCase("A"))
{
sql = "select count(1) from freight_charges_table "
+" where frt_chgs_table =? and load_type = ? and charge_code =?";
pstmt = conn.prepareStatement(sql);
......@@ -180,14 +188,18 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
errCode = "VMFCTEX";//Freight charges table,load type,charge code already exist!!!
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("sequence count greater than zero!!");
System.out.println("Freight charges table,load type,charge code already exist!!!");
//break;
}
}
}
else if(childNodeName.equalsIgnoreCase("charges_mode"))
{
chargeMode = checkNull(genericUtility.getColumnValue("charges_mode",dom));
chargeMode = chargeMode==null?null:chargeMode.trim();
System.out.println("chargeMode :"+chargeMode);
if (chargeMode == null || chargeMode.trim().length() == 0)
{
......@@ -230,7 +242,7 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
else if(childNodeName.equalsIgnoreCase("sequence"))
{
sequence = Integer.parseInt(genericUtility.getColumnValue("sequence",dom));
System.out.println("sequence :"+sequence);
if (sequence == 0.0 || sequence == 0)
{
errCode = "VMSEQEMT";//sequence can not be zero value.
......@@ -441,7 +453,7 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
try
{
System.out.println("Enter itemChanged method");
System.out.println("Enter itemChanged method ");
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
......@@ -468,6 +480,8 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
if(currentColumn.trim().equalsIgnoreCase("load_type"))
{
loadType = checkNull(genericUtility.getColumnValue("load_type", dom));
loadType = loadType==null?null:loadType.trim();
System.out.println("loadType :"+loadType);
System.out.println("mahendra itemchanged case 1 chargeCode : "+chargeCode);
if (loadType != null && loadType.trim().length() > 0)
{
......@@ -495,6 +509,8 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
else if(currentColumn.trim().equalsIgnoreCase("charge_code"))
{
chargeCode = checkNull(genericUtility.getColumnValue("charge_code", dom));
chargeCode = chargeCode==null?null:chargeCode.trim();
System.out.println("chargeCode :"+chargeCode);
if (chargeCode != null && chargeCode.trim().length() > 0)
{
......
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