Commit c5ec63ad authored by rtiwari's avatar rtiwari

ARRANGE COLUMN SEQ.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95258 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2860e210
......@@ -49,6 +49,9 @@ import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.hssf.util.HSSFColor;
import org.w3c.dom.*;
import com.sun.enterprise.appclient.Main;
import javax.xml.parsers.*;
// end 12/04/10 manoharan MF90BHU003
......@@ -3763,7 +3766,7 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
updateDemand(retXMLStr, adpElement.getSaleOrder(), adpElement.getLineNo());
} else
{
updateDemand(retXMLStr, " ", " ");
updateDemand(retXMLStr , " ", " ");
}
}
......@@ -6833,7 +6836,6 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
String batchQtyType = "0";
String unit = "0";
String desc = null;
double demand = 0;
double supply = 0;
double planDemand = 0;
......@@ -6851,6 +6853,7 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
double minPlanPerc = 0;
double batchQty = 0;
double purcRate = 0;
int purLeadTime = 0;
int qcLeadTime = 0;
int mfgLeadTime = 0;
......@@ -7314,15 +7317,38 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
{
valueXmlString.append("<site_code protect = '1'>").append("<![CDATA[" + siteCode + "]]>").append("</site_code>\r\n");
valueXmlString.append("<item_code protect = '1'>").append("<![CDATA[" + itemCode + "]]>").append("</item_code>\r\n");
// CHANGE BY RITESH ON 12/JUN/2014 START
if(flag)
{
valueXmlString.append("<description protect = '1'>").append("<![CDATA[" + desc + "]]>").append("</description>\r\n");
}else
{
valueXmlString.append("<description protect = '1'>").append("<![CDATA[" + "" + "]]>").append("</description>\r\n");
}
valueXmlString.append("<supp_sour protect = '1'>").append("<![CDATA[" + suppSour + "]]>").append("</supp_sour>\r\n");
} else
{
valueXmlString.append("<site_code protect = '1'>").append("<![CDATA[" + "" + "]]>").append("</site_code>\r\n");
valueXmlString.append("<item_code protect = '1'>").append("<![CDATA[" + "" + "]]>").append("</item_code>\r\n");
valueXmlString.append("<description protect = '1'>").append("<![CDATA[" + "" + "]]>").append("</description>\r\n");
valueXmlString.append("<supp_sour protect = '1'>").append("<![CDATA[" + "" + "]]>").append("</supp_sour>\r\n");
}
valueXmlString.append("<demand protect = '1'>").append("<![CDATA[" + getRequiredDecimal(demand, 3) + "]]>").append("</demand>\r\n");
valueXmlString.append("<supply protect = '1'>").append("<![CDATA[" + round(supply, 3) + "]]>").append("</supply>\r\n");
if (flag)
{
valueXmlString.append("<stock_qty protect = '1'>").append("<![CDATA[" + getRequiredDecimal(stockQty, 3) + "]]>").append("</stock_qty>\r\n");
valueXmlString.append("<oth_supply protect = '1'>").append("<![CDATA[" + getRequiredDecimal(othSupply, 3) + "]]>").append("</oth_supply>\r\n");
}else
{
valueXmlString.append("<stock_qty protect = '1'>").append("<![CDATA[" + getRequiredDecimal(stockQty, 3) + "]]>").append("</stock_qty>\r\n");
valueXmlString.append("<oth_supply protect = '1'>").append("<![CDATA[" + getRequiredDecimal(othSupply, 3) + "]]>").append("</oth_supply>\r\n");
}
// CHANGE BY RITESH ON 12/JUN/2014 END
valueXmlString.append("<due_date protect = '1'>").append("<![CDATA[" + dueDateStr + "]]>").append("</due_date>\r\n");
valueXmlString.append("<plan_supply protect = '1'>").append("<![CDATA[" + getRequiredDecimal(planSupply, 3) + "]]>").append("</plan_supply>\r\n");
valueXmlString.append("<running_demand protect = '1'>").append("<![CDATA[" + getRequiredDecimal(runningDemand, 3) + "]]>").append("</running_demand>\r\n");
......@@ -7353,9 +7379,9 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
valueXmlString.append("<pur_lead_time protect = '1'>").append("<![CDATA[" + getRequiredDecimal(purLeadTime, 2) + "]]>").append("</pur_lead_time>\r\n");
valueXmlString.append("<qc_lead_time protect = '1'>").append("<![CDATA[" + getRequiredDecimal(qcLeadTime, 2) + "]]>").append("</qc_lead_time>\r\n");
valueXmlString.append("<mfg_lead_time protect = '1'>").append("<![CDATA[" + getRequiredDecimal(mfgLeadTime, 2) + "]]>").append("</mfg_lead_time>\r\n");
valueXmlString.append("<description protect = '1'>").append("<![CDATA[" + desc + "]]>").append("</description>\r\n");
valueXmlString.append("<stock_qty protect = '1'>").append("<![CDATA[" + getRequiredDecimal(stockQty, 3) + "]]>").append("</stock_qty>\r\n");
valueXmlString.append("<oth_supply protect = '1'>").append("<![CDATA[" + getRequiredDecimal(othSupply, 3) + "]]>").append("</oth_supply>\r\n");
// valueXmlString.append("<description protect = '1'>").append("<![CDATA[" + desc + "]]>").append("</description>\r\n");
// valueXmlString.append("<stock_qty protect = '1'>").append("<![CDATA[" + getRequiredDecimal(stockQty, 3) + "]]>").append("</stock_qty>\r\n");
// valueXmlString.append("<oth_supply protect = '1'>").append("<![CDATA[" + getRequiredDecimal(othSupply, 3) + "]]>").append("</oth_supply>\r\n");
valueXmlString.append("<pending_po protect = '1'>").append("<![CDATA[" + getRequiredDecimal(pendPOQty, 3) + "]]>").append("</pending_po>\r\n");
valueXmlString.append("<pending_do protect = '1'>").append("<![CDATA[" + getRequiredDecimal(pendDOQty, 3) + "]]>").append("</pending_do>\r\n");
valueXmlString.append("<pending_indent protect = '1'>").append("<![CDATA[" + getRequiredDecimal(pendIndQty, 3) + "]]>").append("</pending_indent>\r\n");
......@@ -7378,18 +7404,15 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
valueXmlString.append("<pur_lead_time protect = '1'>").append("<![CDATA[" + 0.00 + "]]>").append("</pur_lead_time>\r\n");
valueXmlString.append("<qc_lead_time protect = '1'>").append("<![CDATA[" + 0.00 + "]]>").append("</qc_lead_time>\r\n");
valueXmlString.append("<mfg_lead_time protect = '1'>").append("<![CDATA[" + 0.00 + "]]>").append("</mfg_lead_time>\r\n");
valueXmlString.append("<description protect = '1'>").append("<![CDATA[" + "" + "]]>").append("</description>\r\n");
valueXmlString.append("<stock_qty protect = '1'>").append("<![CDATA[" + getRequiredDecimal(stockQty, 3) + "]]>").append("</stock_qty>\r\n");
valueXmlString.append("<oth_supply protect = '1'>").append("<![CDATA[" + getRequiredDecimal(othSupply, 3) + "]]>").append("</oth_supply>\r\n");
// valueXmlString.append("<description protect = '1'>").append("<![CDATA[" + "" + "]]>").append("</description>\r\n");
// valueXmlString.append("<stock_qty protect = '1'>").append("<![CDATA[" + getRequiredDecimal(stockQty, 3) + "]]>").append("</stock_qty>\r\n");
// valueXmlString.append("<oth_supply protect = '1'>").append("<![CDATA[" + getRequiredDecimal(othSupply, 3) + "]]>").append("</oth_supply>\r\n");
valueXmlString.append("<pending_po protect = '1'>").append("<![CDATA[" + getRequiredDecimal(pendPOQty, 3) + "]]>").append("</pending_po>\r\n");
valueXmlString.append("<pending_do protect = '1'>").append("<![CDATA[" + getRequiredDecimal(pendDOQty, 3) + "]]>").append("</pending_do>\r\n");
valueXmlString.append("<pending_indent protect = '1'>").append("<![CDATA[" + getRequiredDecimal(pendIndQty, 3) + "]]>").append("</pending_indent>\r\n");
valueXmlString.append("<pending_dr protect = '1'>").append("<![CDATA[" + getRequiredDecimal(pendDRQty, 3) + "]]>").append("</pending_dr>\r\n");
}
System.out.println("Printing valueXmlString----" + valueXmlString);
// ended by akhilesh
......@@ -8710,3 +8733,4 @@ class CyclicItem
* } catch(Exception e) { System.out.println("Exception [InsertPlanDemand] : " +
* e); e.printStackTrace(); errString = e.getMessage(); } return errString; }
*/
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