Commit bf2bb02d authored by caluka's avatar caluka

MRP Requirement for checkbox unselection[MF3KSUN005]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95546 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 274e6e34
...@@ -210,8 +210,8 @@ public class RequirementIC extends ValidatorEJB implements RequirementICLocal, R ...@@ -210,8 +210,8 @@ public class RequirementIC extends ValidatorEJB implements RequirementICLocal, R
* dueDate1 = ""; } * dueDate1 = ""; }
*/ */
valueXmlString.append("<Detail2 domID='" + lineNo + "' objContext = '" + currentFormNo + "' selected=\"Y\">\r\n"); valueXmlString.append("<Detail2 domID='" + lineNo + "' objContext = '" + currentFormNo + "' selected=\"N\">\r\n");
valueXmlString.append("<attribute selected=\"Y\" updateFlag=\"E\" status=\"O\" pkNames=\"\"/>\r\n"); valueXmlString.append("<attribute selected=\"N\" updateFlag=\"E\" status=\"O\" pkNames=\"\"/>\r\n");
valueXmlString.append("<site_code>").append("<![CDATA[" + rs.getString("SITE_CODE") + "]]>").append("</site_code>\r\n"); valueXmlString.append("<site_code>").append("<![CDATA[" + rs.getString("SITE_CODE") + "]]>").append("</site_code>\r\n");
valueXmlString.append("<item_code>").append("<![CDATA[" + rs.getString("ITEM_CODE") + "]]>").append("</item_code>\r\n"); valueXmlString.append("<item_code>").append("<![CDATA[" + rs.getString("ITEM_CODE") + "]]>").append("</item_code>\r\n");
valueXmlString.append("<item_descr protect = '1'>").append("<![CDATA[" + rs.getString("DESCR") + "]]>").append("</item_descr>\r\n"); valueXmlString.append("<item_descr protect = '1'>").append("<![CDATA[" + rs.getString("DESCR") + "]]>").append("</item_descr>\r\n");
...@@ -227,8 +227,8 @@ public class RequirementIC extends ValidatorEJB implements RequirementICLocal, R ...@@ -227,8 +227,8 @@ public class RequirementIC extends ValidatorEJB implements RequirementICLocal, R
if (detCnt == 0) if (detCnt == 0)
{ lineNo++;//Added by chandrashekar on 06/05/2014 { lineNo++;//Added by chandrashekar on 06/05/2014
// valueXmlString.append("<Detail2>\r\n"); // valueXmlString.append("<Detail2>\r\n");
valueXmlString.append("<Detail2 domID='" + lineNo + "' objContext = '" + currentFormNo + "' selected=\"Y\">\r\n"); valueXmlString.append("<Detail2 domID='" + lineNo + "' objContext = '" + currentFormNo + "' selected=\"N\">\r\n");
valueXmlString.append("<attribute selected=\"Y\" updateFlag=\"E\" status=\"O\" pkNames=\"\"/>\r\n"); valueXmlString.append("<attribute selected=\"N\" updateFlag=\"E\" status=\"O\" pkNames=\"\"/>\r\n");
valueXmlString.append("<site_code>").append("").append("</site_code>\r\n"); valueXmlString.append("<site_code>").append("").append("</site_code>\r\n");
valueXmlString.append("<item_code>").append("").append("</item_code>\r\n"); valueXmlString.append("<item_code>").append("").append("</item_code>\r\n");
...@@ -333,10 +333,12 @@ public class RequirementIC extends ValidatorEJB implements RequirementICLocal, R ...@@ -333,10 +333,12 @@ public class RequirementIC extends ValidatorEJB implements RequirementICLocal, R
if (itemCode != null && itemCode.trim().length() > 0) if (itemCode != null && itemCode.trim().length() > 0)
{ {
itemTreeSet.add(itemCode); itemTreeSet.add(itemCode);
System.out.println("itemTreeSet1["+itemTreeSet+"]");
} }
if (siteCode != null && siteCode.trim().length() > 0) if (siteCode != null && siteCode.trim().length() > 0)
{ {
siteTreeSet.add(siteCode); siteTreeSet.add(siteCode);
System.out.println("siteTreeSet1["+siteTreeSet+"]");
} }
if (tranIdDom == null || tranIdDom.trim().length() == 0) if (tranIdDom == null || tranIdDom.trim().length() == 0)
{ {
...@@ -400,17 +402,24 @@ public class RequirementIC extends ValidatorEJB implements RequirementICLocal, R ...@@ -400,17 +402,24 @@ public class RequirementIC extends ValidatorEJB implements RequirementICLocal, R
} }
} }
noOfItem = itemTreeSet.size(); noOfItem = itemTreeSet.size();
System.out.println("itemTreeSet:["+itemTreeSet+"]");
if (noOfItem > 0) if (noOfItem > 0)
{ {
itemCodeFr = (String) itemTreeSet.first(); itemCodeFr = (String) itemTreeSet.first();
itemCodeTo = (String) itemTreeSet.last(); itemCodeTo = (String) itemTreeSet.last();
System.out.println("itemCodeFr["+itemCodeFr+"]");
System.out.println("itemCodeTo["+itemCodeTo+"]");
} }
noOfSite = siteTreeSet.size(); noOfSite = siteTreeSet.size();
System.out.println("siteTreeSet:["+siteTreeSet+"]");
if (noOfSite > 0) if (noOfSite > 0)
{ {
siteCodeFr = (String) siteTreeSet.first(); siteCodeFr = (String) siteTreeSet.first();
siteCodeTo = (String) siteTreeSet.last(); siteCodeTo = (String) siteTreeSet.last();
System.out.println("siteCodeFr["+siteCodeFr+"]");
System.out.println("siteCodeTo["+siteCodeTo+"]");
} }
int insCnt[] = null; int insCnt[] = null;
......
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