Commit 09faf64a authored by manohar's avatar manohar

additional column values set in xml for lot_no generation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91578 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 76399d27
...@@ -148,7 +148,7 @@ public class WoPostSave extends ValidatorEJB implements WoPostSaveLocal, WoPos ...@@ -148,7 +148,7 @@ public class WoPostSave extends ValidatorEJB implements WoPostSaveLocal, WoPos
{ {
if(lotno == null || lotno.trim().length() == 0) if(lotno == null || lotno.trim().length() == 0)
{ {
tranIdG=generateTranId(ls_win,getCurrdateAppFormat(),lotno,sitecode,itemcode,conn); tranIdG=generateTranId(ls_win,getCurrdateAppFormat(),lotno,sitecode,itemcode,conn,currDetail);
System.out.println("tranIdG......."+tranIdG); System.out.println("tranIdG......."+tranIdG);
if(tranIdG.equalsIgnoreCase("ERROR") || tranIdG.trim().length() == 0) if(tranIdG.equalsIgnoreCase("ERROR") || tranIdG.trim().length() == 0)
{ {
...@@ -299,7 +299,7 @@ public class WoPostSave extends ValidatorEJB implements WoPostSaveLocal, WoPos ...@@ -299,7 +299,7 @@ public class WoPostSave extends ValidatorEJB implements WoPostSaveLocal, WoPos
}//End of MFGparm }//End of MFGparm
private String generateTranId(String windowName,String orderDate,String lot_no, String siteCode,String itemcode, Connection conn) private String generateTranId(String windowName,String orderDate,String lot_no, String siteCode,String itemcode, Connection conn, Node currDetail)
{ {
Statement stmt = null; Statement stmt = null;
...@@ -310,7 +310,8 @@ public class WoPostSave extends ValidatorEJB implements WoPostSaveLocal, WoPos ...@@ -310,7 +310,8 @@ public class WoPostSave extends ValidatorEJB implements WoPostSaveLocal, WoPos
String srType = "RS"; String srType = "RS";
String item_ser=""; String item_ser="";
System.out.println("windowName...... :"+windowName); System.out.println("windowName...... :"+windowName);
System.out.println("itemcode...... :"+itemcode); System.out.println("itemcode...... :"+itemcode);
GenericUtility genericUtility = GenericUtility.getInstance();
try try
{ {
sql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE TRAN_WINDOW= '"+windowName+"'"; sql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE TRAN_WINDOW= '"+windowName+"'";
...@@ -370,6 +371,24 @@ public class WoPostSave extends ValidatorEJB implements WoPostSaveLocal, WoPos ...@@ -370,6 +371,24 @@ public class WoPostSave extends ValidatorEJB implements WoPostSaveLocal, WoPos
xmlValues = xmlValues + "<item_ser>"+ item_ser + "</item_ser>"; xmlValues = xmlValues + "<item_ser>"+ item_ser + "</item_ser>";
xmlValues = xmlValues + "<item_code>"+itemcode + "</item_code>"; xmlValues = xmlValues + "<item_code>"+itemcode + "</item_code>";
xmlValues = xmlValues + "<lot_no>" + lot_no + "</lot_no>"; xmlValues = xmlValues + "<lot_no>" + lot_no + "</lot_no>";
String tempStr = genericUtility.getColumnValueFromNode("order_type",currDetail);
if (tempStr == null)
{
tempStr = "";
}
xmlValues = xmlValues + "<order_type>" + tempStr + "</order_type>";
tempStr = genericUtility.getColumnValueFromNode("lot_no__issue",currDetail);
if (tempStr == null)
{
tempStr = "";
}
xmlValues = xmlValues + "<lot_no__issue>" + tempStr + "</lot_no__issue>";
tempStr = genericUtility.getColumnValueFromNode("status",currDetail);
if (tempStr == null)
{
tempStr = "";
}
xmlValues = xmlValues + "<status>" + tempStr + "</status>";
xmlValues = xmlValues + "</Detail1></Root>"; xmlValues = xmlValues + "</Detail1></Root>";
System.out.println("xmlValues :["+xmlValues+"]"); System.out.println("xmlValues :["+xmlValues+"]");
TransIDGenerator tg = new TransIDGenerator(xmlValues, "BASE", CommonConstants.DB_NAME); TransIDGenerator tg = new TransIDGenerator(xmlValues, "BASE", CommonConstants.DB_NAME);
......
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