Commit eb141f42 authored by dpawar's avatar dpawar

added extra columns in xml


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99962 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 606cc5b2
...@@ -37,7 +37,7 @@ public class ExplodeBom ...@@ -37,7 +37,7 @@ public class ExplodeBom
String itemCode = "",usageType=""; String itemCode = "",usageType="";
String itemCodeBomDet = "",allocateType =""; String itemCodeBomDet = "",allocateType ="";
String lineType = "",locUsageType=""; String lineType = "",locUsageType="";
String bomCode = "",considerLotNoIssue =""; String bomCode = "",considerLotNoIssue ="",itemCategory = "";
String bomCodeInner = "",item_type =""; String bomCodeInner = "",item_type ="";
String bomCodeItem = "",item_ser =""; String bomCodeItem = "",item_ser ="";
String unit = "",unit_ref =""; String unit = "",unit_ref ="";
...@@ -55,6 +55,7 @@ public class ExplodeBom ...@@ -55,6 +55,7 @@ public class ExplodeBom
String xml_exp_lev =""; String xml_exp_lev ="";
String itemActive = null; String itemActive = null;
String siteItemActive = null; String siteItemActive = null;
String workOrder = "";
int pevoper = 0; int pevoper = 0;
SimpleDateFormat simpleDateFormat = null; SimpleDateFormat simpleDateFormat = null;
double perQty = 0,minPotencyPerc =0,netWeight =0; double perQty = 0,minPotencyPerc =0,netWeight =0;
...@@ -65,6 +66,9 @@ public class ExplodeBom ...@@ -65,6 +66,9 @@ public class ExplodeBom
double batchQty = 0; double batchQty = 0;
double roundTo = 0; double roundTo = 0;
char round; char round;
String suppCodeMfg= "",useInvStatus = "",mfgRef = "",dimension = "";
double minReqQty = 0;
//int mfgLeadTime = 0; comment by rajendra 14/04/07 //int mfgLeadTime = 0; comment by rajendra 14/04/07
//int qcLeadTime = 0; //int qcLeadTime = 0;
///int leadTime = 0; ///int leadTime = 0;
...@@ -118,6 +122,8 @@ public class ExplodeBom ...@@ -118,6 +122,8 @@ public class ExplodeBom
lineType = genericUtility.getColumnValue("line_type",dom); lineType = genericUtility.getColumnValue("line_type",dom);
sQuantity = genericUtility.getColumnValue("quantity",dom); sQuantity = genericUtility.getColumnValue("quantity",dom);
workOrder = genericUtility.getColumnValue("work_order",dom);
quantity = Double.parseDouble(sQuantity); quantity = Double.parseDouble(sQuantity);
bomCode = genericUtility.getColumnValue("bom_code",dom); bomCode = genericUtility.getColumnValue("bom_code",dom);
sDueDate = genericUtility.getColumnValue("due_date",dom); sDueDate = genericUtility.getColumnValue("due_date",dom);
...@@ -158,7 +164,11 @@ public class ExplodeBom ...@@ -158,7 +164,11 @@ public class ExplodeBom
+ " BOMDET.REQ_TYPE , BOMDET.MIN_QTY , BOMDET.OPERATION , BOMDET.CRIT_ITEM , BOMDET.ROUND , " + " BOMDET.REQ_TYPE , BOMDET.MIN_QTY , BOMDET.OPERATION , BOMDET.CRIT_ITEM , BOMDET.ROUND , "
+ " BOMDET.ROUND_TO , BOMDET.MATCH_POTENCY , BOMDET.MIN_POTENCY_PERC , BOMDET.ADJ_POTENCY , " + " BOMDET.ROUND_TO , BOMDET.MATCH_POTENCY , BOMDET.MIN_POTENCY_PERC , BOMDET.ADJ_POTENCY , "
+ " BOMDET.USAGE_TYPE , BOMDET.ALLOCATE_TYPE , BOMDET.LOC_USAGE_TYPE , BOMDET.CONSIDER_LOT_NO__ISSUE ," + " BOMDET.USAGE_TYPE , BOMDET.ALLOCATE_TYPE , BOMDET.LOC_USAGE_TYPE , BOMDET.CONSIDER_LOT_NO__ISSUE ,"
+ " ITEM.ACTIVE " + " ITEM.ACTIVE, "
//Changed by dadaso pawar 16/10/15[start]
+ " BOMDET.SUPP_CODE__MFG,CASE WHEN BOMDET.USE_INVSTATUS IS NULL THEN 'U' ELSE BOMDET.USE_INVSTATUS END AS USE_INVSTATUS,"
+ " BOMDET.MFG_REF,BOMDET.DIMENSION,CASE WHEN MIN_REQ_QTY IS NULL THEN 0 ELSE MIN_REQ_QTY END as MIN_REQ_QTY,BOMDET.ITEM_CATEGORY "
//Changed by Dadaso pawar 16/10/15[End]
+ " FROM BOMDET LEFT OUTER JOIN ITEM ON BOMDET.ITEM_CODE = ITEM.ITEM_CODE , BOM " + " FROM BOMDET LEFT OUTER JOIN ITEM ON BOMDET.ITEM_CODE = ITEM.ITEM_CODE , BOM "
+ " WHERE BOMDET.BOM_CODE = BOM.BOM_CODE " + " WHERE BOMDET.BOM_CODE = BOM.BOM_CODE "
+ " AND BOM.BOM_CODE = ? " + " AND BOM.BOM_CODE = ? "
...@@ -194,6 +204,14 @@ public class ExplodeBom ...@@ -194,6 +204,14 @@ public class ExplodeBom
considerLotNoIssue = rs.getString(18); considerLotNoIssue = rs.getString(18);
// 11-08-2007 manoharan // 11-08-2007 manoharan
itemActive = rs.getString("ACTIVE"); itemActive = rs.getString("ACTIVE");
suppCodeMfg = rs.getString("SUPP_CODE__MFG");
useInvStatus = rs.getString("USE_INVSTATUS");
mfgRef = rs.getString("MFG_REF");
dimension = rs.getString("DIMENSION");
minReqQty = rs.getDouble("MIN_REQ_QTY");
itemCategory = rs.getString("ITEM_CATEGORY");
System.out.println("12/06/14 itemActive before[ " +itemActive + "]"); System.out.println("12/06/14 itemActive before[ " +itemActive + "]");
if (itemActive == null || "null".equals(itemActive)) if (itemActive == null || "null".equals(itemActive))
{ {
...@@ -435,6 +453,7 @@ public class ExplodeBom ...@@ -435,6 +453,7 @@ public class ExplodeBom
//System.out.println(" Item " + itemCodeBomDet+ " Qty Per " + decFormat(perQty) + " Req Type " + reqType + " Qty Update :" + decFormat(quantityUpdate) ); //System.out.println(" Item " + itemCodeBomDet+ " Qty Per " + decFormat(perQty) + " Req Type " + reqType + " Qty Update :" + decFormat(quantityUpdate) );
valueXmlString.append("<Detail>"); valueXmlString.append("<Detail>");
valueXmlString.append("<work_order>").append("<![CDATA[").append(workOrder).append("]]>").append("</work_order>");
valueXmlString.append("<site_code>").append("<![CDATA[").append(siteCode).append("]]>").append("</site_code>"); valueXmlString.append("<site_code>").append("<![CDATA[").append(siteCode).append("]]>").append("</site_code>");
valueXmlString.append("<bom_code>").append("<![CDATA[").append(bomCode).append("]]>").append("</bom_code>"); valueXmlString.append("<bom_code>").append("<![CDATA[").append(bomCode).append("]]>").append("</bom_code>");
valueXmlString.append("<item_code>").append("<![CDATA[").append(itemCodeBomDet).append("]]>").append("</item_code>"); valueXmlString.append("<item_code>").append("<![CDATA[").append(itemCodeBomDet).append("]]>").append("</item_code>");
...@@ -533,7 +552,34 @@ public class ExplodeBom ...@@ -533,7 +552,34 @@ public class ExplodeBom
valueXmlString.append("<operation>").append("<![CDATA[").append(operation).append("]]>").append("</operation>"); //add by rajendra valueXmlString.append("<operation>").append("<![CDATA[").append(operation).append("]]>").append("</operation>"); //add by rajendra
valueXmlString.append("<crit_Item>").append("<![CDATA[").append(critItem).append("]]>").append("</crit_Item>"); //add by rajendra valueXmlString.append("<crit_Item>").append("<![CDATA[").append(critItem).append("]]>").append("</crit_Item>"); //add by rajendra
valueXmlString.append("<line_type>").append("<![CDATA[").append(lineTypeInner).append("]]>").append("</line_type>"); valueXmlString.append("<line_type>").append("<![CDATA[").append(lineTypeInner).append("]]>").append("</line_type>");
//Changed by Dadaso pawar on 08/09/15 [Start] [D15GSUN002] add remaining column in xml
valueXmlString.append("<unit>").append("<![CDATA[").append(unit).append("]]>").append("</unit>");
valueXmlString.append("<batch_qty>").append("<![CDATA[").append(batchQty).append("]]>").append("</batch_qty>");
valueXmlString.append("<qty_per>").append("<![CDATA[").append(perQty).append("]]>").append("</qty_per>");
valueXmlString.append("<req_type>").append("<![CDATA[").append(reqType).append("]]>").append("</req_type>");
valueXmlString.append("<match_potency>").append("<![CDATA[").append(matchPotency).append("]]>").append("</match_potency>");
valueXmlString.append("<min_potency_perc>").append("<![CDATA[").append(minPotencyPerc).append("]]>").append("</min_potency_perc>");
valueXmlString.append("<adj_potency>").append("<![CDATA[").append(adjPotency).append("]]>").append("</adj_potency>");
valueXmlString.append("<usage_type>").append("<![CDATA[").append(usageType).append("]]>").append("</usage_type>");
valueXmlString.append("<allocate_type>").append("<![CDATA[").append(allocateType).append("]]>").append("</allocate_type>");
valueXmlString.append("<loc_usage_type>").append("<![CDATA[").append(locUsageType).append("]]>").append("</loc_usage_type>");
valueXmlString.append("<consider_lot_no__issue>").append("<![CDATA[").append(considerLotNoIssue).append("]]>").append("</consider_lot_no__issue>");
valueXmlString.append("<active>").append("<![CDATA[").append(itemActive).append("]]>").append("</active>");
valueXmlString.append("<min_qty>").append("<![CDATA[").append(minQty).append("]]>").append("</min_qty>");
valueXmlString.append("<round>").append("<![CDATA[").append(round).append("]]>").append("</round>");
valueXmlString.append("<round_to>").append("<![CDATA[").append(roundTo).append("]]>").append("</round_to>");
valueXmlString.append("<supp_code__mfg>").append("<![CDATA[").append(suppCodeMfg).append("]]>").append("</supp_code__mfg>");
valueXmlString.append("<use_invstatus>").append("<![CDATA[").append(useInvStatus).append("]]>").append("</use_invstatus>");
valueXmlString.append("<mfg_ref>").append("<![CDATA[").append(mfgRef).append("]]>").append("</mfg_ref>");
valueXmlString.append("<dimension>").append("<![CDATA[").append(dimension).append("]]>").append("</dimension>");
valueXmlString.append("<min_req_qty>").append("<![CDATA[").append(minReqQty).append("]]>").append("</min_req_qty>");
valueXmlString.append("<item_category>").append("<![CDATA[").append(itemCategory).append("]]>").append("</item_category>");
valueXmlString.append("</Detail>"); valueXmlString.append("</Detail>");
//Changed by Dadaso pawar on 08/09/15 [End] [D15GSUN002]
if ( lineTypeInner.equals("B") ) if ( lineTypeInner.equals("B") )
{ {
......
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