Commit e6ed6153 authored by arawankar's avatar arawankar

ItemIC.java

-Added condition to validate qc cycle time
If auto retest is yes then qc time cycle should be greater than 0

Office_sql.txt
-Added messages table entry.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@193721 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ef0942f1
......@@ -68,6 +68,9 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
java.util.Date today = null, validUpto = null;
NodeList parentNodeList = null, childNodeList = null;
Node parentNode = null, childNode = null;
//Modified by Rohini T. on[28/11/2018][Validate Qc Cycle Time][Start]
String qcTime = "";
//Modified by Rohini T. on[28/11/2018][Validate Qc Cycle Time][End]
ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>();
FinCommon finCommon = new FinCommon(); // Changed By Nasruddin 19-SEP-16
......@@ -1452,8 +1455,32 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
//Modified by Rohini T. on[28/11/2018][Validate Qc Cycle Time][Start]
else
{
if("Y".equalsIgnoreCase(childNodeValue))
{
qcTime = checkNullAndTrim(genericUtility.getColumnValue("qc_cycle_time", dom));
int qcRetestTime = 0;
try
{
qcRetestTime = Integer.parseInt(qcTime);
}
else if(childNodeName.equalsIgnoreCase("auto_reqc"))
catch (Exception e)
{
e.printStackTrace();
qcRetestTime = 0;
}
if (qcRetestTime <= 0)
{
errCode = "VMQCCYCLE";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
}
/*else if(childNodeName.equalsIgnoreCase("auto_reqc"))
{
childNodeValue = checkNullAndTrim(genericUtility.getColumnValue(childNodeName, dom));
if (childNodeValue == null || childNodeValue.trim().length() == 0)
......@@ -1462,7 +1489,8 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}*/
//Modified by Rohini T. on[28/11/2018][Validate Qc Cycle Time][End]
else if(childNodeName.equalsIgnoreCase("no_sales_month"))
{
//Changed by wasim on 04-01-2017 to remove checknulltrim
......
......@@ -101,3 +101,10 @@ VALUES ('VTMFGEXPDT','Mfg date is greater','Expiry date should be greater than m
commit;
------------ Added by Anjali R. on 23-11-2018 [End]
------------ Added by Anjali R. on 28-11-2018 [Start]
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION)
values ('VMQCCYCLE','INVALID QC CYCLE TIME','Please enter qc cycle time more than zero.','E','Y',null,null,null,SYSDATE,'BASE','BASE',null,null);
commit;
------------ Added by Anjali R. on 28-11-2018 [End]
\ No newline at end of file
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