Commit 19c9a515 authored by mjadhav's avatar mjadhav

changes done in centercode


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97118 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 397c2d6f
...@@ -573,6 +573,7 @@ public class GenInvoiceSchedule implements Schedule { ...@@ -573,6 +573,7 @@ public class GenInvoiceSchedule implements Schedule {
String custBillAdd1="",custBillAdd2="",custBillAdd3="",custBillCity="",custBillStateCode="",custBillPin="",custBillCounty=""; String custBillAdd1="",custBillAdd2="",custBillAdd3="",custBillCity="",custBillStateCode="",custBillPin="",custBillCounty="";
String custDlvAdd1="",custDlvAdd2="",custDlvAdd3="",custDlvCity="",custDlvStateCode="",custDlvPin="",custDlvCounty=""; String custDlvAdd1="",custDlvAdd2="",custDlvAdd3="",custDlvCity="",custDlvStateCode="",custDlvPin="",custDlvCounty="";
String custBillStatedescr="",custDlvStatedescr=""; String custBillStatedescr="",custDlvStatedescr="";
String register_1="",register_2="",register_3="";
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
try try
...@@ -732,7 +733,8 @@ public class GenInvoiceSchedule implements Schedule { ...@@ -732,7 +733,8 @@ public class GenInvoiceSchedule implements Schedule {
custBillCounty = custBillCounty == null ? " " : custBillCounty.trim(); custBillCounty = custBillCounty == null ? " " : custBillCounty.trim();
sql = "select cust_name,ADDR1,ADDR2,ADDR3,CITY,STATE_CODE,PIN,COUNT_CODE from customer where CUST_CODE=?" ;
sql = "select cust_name,ADDR1,ADDR2,ADDR3,CITY,STATE_CODE,PIN,COUNT_CODE,REGISTR_1,REGISTR_2,REGISTR_3 from customer where CUST_CODE=?" ;
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, custCodeDlv); pstmt.setString(1, custCodeDlv);
...@@ -747,6 +749,9 @@ public class GenInvoiceSchedule implements Schedule { ...@@ -747,6 +749,9 @@ public class GenInvoiceSchedule implements Schedule {
custDlvStateCode = rs.getString("STATE_CODE"); custDlvStateCode = rs.getString("STATE_CODE");
custDlvPin = rs.getString("PIN"); custDlvPin = rs.getString("PIN");
custDlvCounty = rs.getString("COUNT_CODE"); custDlvCounty = rs.getString("COUNT_CODE");
register_1 = rs.getString("REGISTR_1");
register_2 = rs.getString("REGISTR_2");
register_3 = rs.getString("REGISTR_3");
} }
rs.close(); rs.close();
...@@ -761,6 +766,9 @@ public class GenInvoiceSchedule implements Schedule { ...@@ -761,6 +766,9 @@ public class GenInvoiceSchedule implements Schedule {
custDlvStateCode = custDlvStateCode == null ? " " : custDlvStateCode.trim(); custDlvStateCode = custDlvStateCode == null ? " " : custDlvStateCode.trim();
custDlvPin = custDlvPin == null ? " " : custDlvPin.trim(); custDlvPin = custDlvPin == null ? " " : custDlvPin.trim();
custDlvCounty = custDlvCounty == null ? " " : custDlvCounty.trim(); custDlvCounty = custDlvCounty == null ? " " : custDlvCounty.trim();
register_1 = register_1 == null ? " " : register_1.trim();
register_2 = register_2 == null ? " " : register_2.trim();
register_3 = register_3 == null ? " " : register_3.trim();
System.out.println("custNameBill :"+custNameBill); System.out.println("custNameBill :"+custNameBill);
System.out.println("custNameDlv :"+custNameDlv); System.out.println("custNameDlv :"+custNameDlv);
...@@ -859,7 +867,7 @@ public class GenInvoiceSchedule implements Schedule { ...@@ -859,7 +867,7 @@ public class GenInvoiceSchedule implements Schedule {
Element administrativeCentresparent = doc.createElement("AdministrativeCentres"); Element administrativeCentresparent = doc.createElement("AdministrativeCentres");
Element admCustDlv = doc.createElement("AdministrativeCentre"); Element admCustDlv = doc.createElement("AdministrativeCentre");
admCustDlv.appendChild(getElementValue(doc, parties, "CentreCode", custCodeDlv)); admCustDlv.appendChild(getElementValue(doc, parties, "CentreCode", register_1));
admCustDlv.appendChild(getElementValue(doc, parties, "RoleTypeCode", "01")); admCustDlv.appendChild(getElementValue(doc, parties, "RoleTypeCode", "01"));
// administrativeCentres.appendChild(getElementValue(doc, parties, "RoleTypeCode", "03")); // administrativeCentres.appendChild(getElementValue(doc, parties, "RoleTypeCode", "03"));
if(custNameDlv != "") if(custNameDlv != "")
...@@ -880,7 +888,7 @@ public class GenInvoiceSchedule implements Schedule { ...@@ -880,7 +888,7 @@ public class GenInvoiceSchedule implements Schedule {
Element admCustBill = doc.createElement("AdministrativeCentre"); Element admCustBill = doc.createElement("AdministrativeCentre");
if(custCodeBill != "") if(custCodeBill != "")
{ {
admCustBill.appendChild(getElementValue(doc, parties, "CentreCode", custCodeBill)); admCustBill.appendChild(getElementValue(doc, parties, "CentreCode", register_2));
} }
admCustBill.appendChild(getElementValue(doc, parties, "RoleTypeCode", "02")); admCustBill.appendChild(getElementValue(doc, parties, "RoleTypeCode", "02"));
// administrativeCentres.appendChild(getElementValue(doc, parties, "RoleTypeCode", "03")); // administrativeCentres.appendChild(getElementValue(doc, parties, "RoleTypeCode", "03"));
...@@ -901,7 +909,7 @@ public class GenInvoiceSchedule implements Schedule { ...@@ -901,7 +909,7 @@ public class GenInvoiceSchedule implements Schedule {
Element administrativeCentres = doc.createElement("AdministrativeCentre"); Element administrativeCentres = doc.createElement("AdministrativeCentre");
administrativeCentres.appendChild(getElementValue(doc, parties, "CentreCode", custCode)); administrativeCentres.appendChild(getElementValue(doc, parties, "CentreCode", register_3));
administrativeCentres.appendChild(getElementValue(doc, parties, "RoleTypeCode", "03")); administrativeCentres.appendChild(getElementValue(doc, parties, "RoleTypeCode", "03"));
// administrativeCentres.appendChild(getElementValue(doc, parties, "RoleTypeCode", "03")); // administrativeCentres.appendChild(getElementValue(doc, parties, "RoleTypeCode", "03"));
if(custName != "") if(custName != "")
......
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