Commit 32a86ed3 authored by ppatro's avatar ppatro

updated release on 211112


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92171 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 95658075
...@@ -11,11 +11,14 @@ import ibase.webitm.utility.GenericUtility; ...@@ -11,11 +11,14 @@ import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.sql.*; import java.sql.*;
import java.text.SimpleDateFormat;
import org.w3c.dom.*; import org.w3c.dom.*;
@javax.ejb.Stateless @javax.ejb.Stateless
public class CartonNoGenIC extends ValidatorEJB implements CartonNoGenICLocal, CartonNoGenICRemote public class CartonNoGenIC extends ValidatorEJB implements CartonNoGenICLocal, CartonNoGenICRemote
{ {
GenericUtility genericUtility = GenericUtility.getInstance();
/** /**
* The method defined with no paramter and returns nothing * The method defined with no paramter and returns nothing
*/ */
...@@ -102,8 +105,9 @@ public class CartonNoGenIC extends ValidatorEJB implements CartonNoGenICLocal, C ...@@ -102,8 +105,9 @@ public class CartonNoGenIC extends ValidatorEJB implements CartonNoGenICLocal, C
int noOfChilds = 0; int noOfChilds = 0;
String childNodeName = ""; String childNodeName = "";
Node childNode =null; Node childNode =null;
boolean isNumber = true; boolean isNumber = true;
String sql = "";
int count=0;
String userID = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "LoginCode" ); String userID = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "LoginCode" );
...@@ -161,11 +165,22 @@ public class CartonNoGenIC extends ValidatorEJB implements CartonNoGenICLocal, C ...@@ -161,11 +165,22 @@ public class CartonNoGenIC extends ValidatorEJB implements CartonNoGenICLocal, C
} }
} }
} //ENDED BY MAHESH PATIDAR
//Changed by Sankara on 19/11/2012 to add validation for printer_name[Start]
else if ( "printer_name".equalsIgnoreCase( childNodeName ) )
{
columnValue = "";
columnValue = genericUtility.getColumnValue("pallet_label",currDom);
System.out.println(" my print label ->["+columnValue+"]");
if (childNode.getFirstChild()==null && "Y".equalsIgnoreCase(columnValue))//checking for null no_of_cartons
{
errString = getErrorString("no_of_pallet","BLKPRINTNM",userID);
break;
} }
//ENDED BY MAHESH PATIDAR
} }
//Changed by Sankara on 19/11/2012 to add validation for printer_name[End]
} }
} //end of try
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception in CartonNoGenIC == >"); System.out.println("Exception in CartonNoGenIC == >");
...@@ -200,7 +215,150 @@ public class CartonNoGenIC extends ValidatorEJB implements CartonNoGenICLocal, C ...@@ -200,7 +215,150 @@ public class CartonNoGenIC extends ValidatorEJB implements CartonNoGenICLocal, C
} //end of finally } //end of finally
return (errString); return (errString);
} }
private String checkNull(String string)
{
if(string == null)
{
string = "";
}
return string;
}
//Changed by Sankara on 19/11/2012 for default value of pallet_label[Start]
public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String valueXmlString = "";
try
{
dom = parseString(xmlString);
dom1 = parseString(xmlString1);
if (xmlString != null && xmlString.trim().length()!=0)
{
dom = genericUtility.parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length()!=0)
{
dom1 = genericUtility.parseString(xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length()!=0)
{
dom2 = genericUtility.parseString(xmlString2);
}
valueXmlString = itemChanged( dom, dom1, dom2, objContext, currentColumn, editFlag, xtraParams );
}
catch(Exception e)
{
System.out.println("Exception : [TrainingEJB][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException( e );
}
return valueXmlString;
}
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{
StringBuffer valueXmlString = new StringBuffer();
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null ;
int currentFormNo = 0 ;
String siteCode = "";
String palletLabel = "";
String chgTerm = "";
java.util.Date currDate = null;
String currDateStr = null;
ConnDriver connDriver = new ConnDriver();
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver=null;
String applDateFormat = genericUtility.getApplDateFormat();
currDate = new java.util.Date();
SimpleDateFormat sdf = new SimpleDateFormat(applDateFormat);
currDateStr = sdf.format(currDate);
if(objContext != null && objContext.trim().length()>0)
{
currentFormNo = Integer.parseInt(objContext);
}
valueXmlString = new StringBuffer("<?xml version=\"1.0\"?><Root><header><editFlag>");
valueXmlString.append(editFlag).append("</editFlag></header>");
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "chgTerm" ));
System.out.println("********__******ITEM DEFAULT CALLED");
switch(currentFormNo)
{
case 1 :
{
valueXmlString.append("<Detail1 domID='1' selected=\"N\">\r\n");
valueXmlString.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\" />\r\n");
if(currentColumn.trim().equalsIgnoreCase("itm_default"))
{
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
valueXmlString.append("<pallet_label>").append("N").append("</pallet_label>");
}
else if("pallet_label".equalsIgnoreCase(currentColumn.trim()))
{
palletLabel = genericUtility.getColumnValue("pallet_label",dom);
if( "N".equalsIgnoreCase(palletLabel) )
{
valueXmlString.append("<printer_name protect=\"1\">").append("").append("</printer_name>");
}
else
{
valueXmlString.append("<printer_name protect=\"0\">").append("").append("</printer_name>");
}
}
valueXmlString.append("</Detail1>");
}
break;
}
valueXmlString.append("</Root>");
System.out.println("=================["+valueXmlString+"]");
}
catch(Exception e)
{
e.printStackTrace();
System.out.println("Exception ::"+e.getMessage());
throw new ITMException(e);
}
finally
{
try
{
if(conn!=null)
{
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(conn != null)
{
conn.close();
conn = null;
}
}
}
catch(Exception d)
{
d.printStackTrace();
}
}
return valueXmlString.toString();
}
//Changed by Sankara on 19/11/2012 for default value of pallet_label[End]
private boolean checkNumeric( String noOfLabel ) throws Exception private boolean checkNumeric( String noOfLabel ) throws Exception
{ {
char[] cArray = noOfLabel.toCharArray(); char[] cArray = noOfLabel.toCharArray();
......
...@@ -7,6 +7,7 @@ package ibase.webitm.ejb.wms; ...@@ -7,6 +7,7 @@ package ibase.webitm.ejb.wms;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import org.w3c.dom.*; import org.w3c.dom.*;
import ibase.webitm.ejb.*; import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import javax.ejb.*; import javax.ejb.*;
...@@ -17,4 +18,7 @@ public interface CartonNoGenICLocal extends ValidatorLocal ...@@ -17,4 +18,7 @@ public interface CartonNoGenICLocal extends ValidatorLocal
public String wfValData() throws RemoteException,ITMException; public String wfValData() throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException; public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException; public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged() throws RemoteException,ITMException;
public String itemChanged(String xmlCurrFrmString, String xmlHdrFrmString,String xmlAllFrmString, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
} }
\ No newline at end of file
...@@ -7,6 +7,7 @@ package ibase.webitm.ejb.wms; ...@@ -7,6 +7,7 @@ package ibase.webitm.ejb.wms;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import org.w3c.dom.*; import org.w3c.dom.*;
import ibase.webitm.ejb.*; import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import javax.ejb.*; import javax.ejb.*;
...@@ -17,4 +18,7 @@ public interface CartonNoGenICRemote extends ValidatorRemote ...@@ -17,4 +18,7 @@ public interface CartonNoGenICRemote extends ValidatorRemote
public String wfValData() throws RemoteException,ITMException; public String wfValData() throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException; public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException; public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged() throws RemoteException,ITMException;
public String itemChanged(String xmlCurrFrmString, String xmlHdrFrmString,String xmlAllFrmString, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
} }
\ No newline at end of file
...@@ -8,14 +8,23 @@ package ibase.webitm.ejb.wms; ...@@ -8,14 +8,23 @@ package ibase.webitm.ejb.wms;
import java.sql.*; import java.sql.*;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import org.w3c.dom.*; import org.w3c.dom.*;
import ibase.system.config.*; import ibase.system.config.*;
import ibase.webitm.ejb.*; import ibase.webitm.ejb.*;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.utility.GenericUtility; import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import ibase.webitm.utility.TransIDGenerator; import ibase.webitm.utility.TransIDGenerator;
import ibase.utility.CommonConstants; import ibase.utility.CommonConstants;
import java.util.ArrayList;
import java.util.TreeMap;
import ibase.webitm.reports.utility.JasperReportGenerator;
import ibase.webitm.reports.utility.XSDParser;
import java.util.Random;
@javax.ejb.Stateless @javax.ejb.Stateless
public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,CartonNoGenPrcRemote public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,CartonNoGenPrcRemote
{ {
...@@ -30,6 +39,7 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca ...@@ -30,6 +39,7 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca
String retString = ""; String retString = "";
public String process() throws RemoteException,ITMException public String process() throws RemoteException,ITMException
{ {
return ""; return "";
...@@ -72,6 +82,8 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca ...@@ -72,6 +82,8 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca
String sIns = ""; String sIns = "";
String cartonID = ""; String cartonID = "";
String palletNo = ""; String palletNo = "";
String printer = "";
String PalletLabel = "";
int numCarton = 0; int numCarton = 0;
int numPallet = 0; int numPallet = 0;
PreparedStatement pSel = null; PreparedStatement pSel = null;
...@@ -105,9 +117,6 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca ...@@ -105,9 +117,6 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca
refSer = rsSel.getString("REF_SER"); refSer = rsSel.getString("REF_SER");
} }
String chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"); String chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
String chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"chgTerm"); String chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"chgTerm");
...@@ -163,6 +172,8 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca ...@@ -163,6 +172,8 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca
//END COMMENT BY MAHESH PATIDAR //END COMMENT BY MAHESH PATIDAR
//ADDED BY MAHESH PATIDAR ON 05/06/12 FOR REQUEST 'WM2CSUN001' //ADDED BY MAHESH PATIDAR ON 05/06/12 FOR REQUEST 'WM2CSUN001'
ArrayList al = new ArrayList();
if(windowName.trim().equals("w_palletprc")) if(windowName.trim().equals("w_palletprc"))
{ {
sIns = " INSERT INTO PALLET_NO (PALLET_NO,STATUS) VALUES (?,'A') "; //change by Kunal Mandhre on 28/07/12 insert status as per S Manoharan instruction sIns = " INSERT INTO PALLET_NO (PALLET_NO,STATUS) VALUES (?,'A') "; //change by Kunal Mandhre on 28/07/12 insert status as per S Manoharan instruction
...@@ -174,7 +185,10 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca ...@@ -174,7 +185,10 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca
pIns.setString(1,palletNo); pIns.setString(1,palletNo);
pIns.addBatch(); pIns.addBatch();
pIns.clearParameters(); pIns.clearParameters();
al.add(palletNo);
} }
} }
else else
{ {
...@@ -200,11 +214,25 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca ...@@ -200,11 +214,25 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca
if ( updCnt.length > 0 ) if ( updCnt.length > 0 )
{ {
conn.commit(); conn.commit();
//Changed By Sankara on 19/11/2012 to Call Report [Start]
printer = checkNull(genericUtility.getColumnValue("printer_name",headerDom));
PalletLabel = checkNull(genericUtility.getColumnValue("pallet_label",headerDom));
System.out.println(" pallete -["+palletNo+"]");
if("Y".equalsIgnoreCase(PalletLabel) && al.size() > 0)
{
System.out.println(" array first ->["+al.get(0).toString()+"] last array ->["+al.get(numPallet-1).toString()+"]");
String reportString = generateReport(printer,"A", al.get(0).toString() ,al.get(numPallet-1).toString(), conn);
System.out.println("***reportString***************"+reportString);
}
//Changed By Sankara on 19/11/2012 to Call Report [End]
ITMDBAccessLocal itmDBAccessLocal = new ITMDBAccessEJB(); ITMDBAccessLocal itmDBAccessLocal = new ITMDBAccessEJB();
retString = itmDBAccessLocal.getErrorString("","PRCSUCCESS",""); retString = itmDBAccessLocal.getErrorString("","PRCSUCCESS","");
} }
}//end of try
} //end of try
catch(BatchUpdateException buex) catch(BatchUpdateException buex)
{ {
try try
...@@ -284,6 +312,95 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca ...@@ -284,6 +312,95 @@ public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,Ca
} }
return retString ; return retString ;
}//end of DOCProcess }//end of DOCProcess
//Changed by Sankara on 19/11/2012 to Call Report [Start]
private String generateReport(String printer, String status, String palletNoFirst, String palletNoLast, Connection conn) throws ITMException
{
String errString ="";
String reportObjName = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
DistCommon discommon = new DistCommon();
String chgUser = "";
try
{
reportObjName = checkNull(discommon.getDisparams("999999","CARTON_GEN_OBJNAME",conn));
System.out.println("Printer *->["+printer.trim()+"] report_obj_name ["+reportObjName+"] ");
System.out.println("inside report generation :: and pallet no 1 ["+palletNoFirst+"] pallet last ->["+palletNoLast+"]");
ibase.webitm.reports.utility.JasperReportGenerator jrGenerator = new ibase.webitm.reports.utility.JasperReportGenerator();
String xsdString ="<Arguments>" +
"<Argument id=\"pallet_no_fr\" name=\"pallet_no_fr\">" +
"<argType>java.lang.String</argType>" +
//"<value>"+ptcnList.get(i)+"</value>" +
"<value>"+palletNoFirst+"</value>" +
"</Argument>" +
"<Argument id=\"pallet_no_to\" name=\"pallet_no_to\">" +
"<argType>java.lang.String</argType>" +
//"<value>"+ptcnList.get(i)+"</value>" +
"<value>"+palletNoLast+"</value>" +
"</Argument>" +
"<Argument id=\"as_status\" name=\"as_status\">" +
"<argType>java.lang.String</argType>" +
//"<value>"+ptcnList.get(i)+"</value>" +
"<value>"+status+"</value>" +
"</Argument>" +
"<Argument id=\"x_path\" name=\"x_path\">" +
"<argType>java.lang.String</argType>" +
"<value>/DocumentRoot/pallet_no</value>" +
"</Argument>" +
"<Argument id=\"design_source\" name=\"design_source\">" +
"<argType>java.lang.String</argType>" +
"<value>pallet_no.jrxml</value>" +
"</Argument>" +
"<Argument id=\"data_source\" name=\"data_source\">" +
"<argType>java.lang.String</argType>" +
"<value>SQL</value>" +
"</Argument>" +
"<Argument id=\"bind_type\" name=\"bind_type\">" +
"<argType>java.lang.Integer</argType>" +
"<value>0</value>" +
"</Argument>" +
"<Argument id=\"report_type\" name=\"report_type\">" +
"<argType>java.lang.String</argType>" +
"<value>JASPER</value>" +
"</Argument>" +
"<Argument id=\"report_save_type\" name=\"report_save_type\">" +
"<argType>java.lang.String</argType>" +
"<value>NATIVE</value>" +
"</Argument>" +
"</Arguments>";
System.out.println(" XSD parser **->["+xsdString+"]");
errString = jrGenerator.printReport(reportObjName, xsdString, chgUser, printer.trim(), 1, conn);
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if( pstmt != null)
{
pstmt.close();
pstmt = null;
}
if( rs != null)
{
rs.close();
rs = null;
}
}
catch (Exception e2)
{
throw new ITMException(e2);
}
}
return errString;
}
//Changed by Sankara on 19/11/2012 to Call Report [End]
private String checkNull( String input ) private String checkNull( String input )
{ {
if( input == null ) if( input == null )
......
...@@ -39,17 +39,126 @@ ...@@ -39,17 +39,126 @@
<color>536870912</color> <color>536870912</color>
</Footer> </Footer>
<Detail> <Detail>
<height>27</height> <height>103</height>
<color>536870912</color> <color>536870912</color>
</Detail> </Detail>
<TableDefinition> <TableDefinition>
<table_column> <table_column>
<type>number</type> <type>number</type>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>no</updatewhereclause>
<name>no_of_pallet</name> <name>no_of_pallet</name>
<dbname>no_of_pallet</dbname> <dbname>no_of_pallet</dbname>
</table_column> </table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>pallet_label</name>
<dbname>pallet_label</dbname>
<initial>NO</initial>
<values>
<item display="YES" data="Y"/>
<item display="NO" data="N"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>printer_name</name>
<dbname>printer_name</dbname>
</table_column>
</TableDefinition> </TableDefinition>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Print Label:</text>
<border>0</border>
<color>33554432</color>
<x>210</x>
<y>11</y>
<height>16</height>
<width>79</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_label_t</name>
<visible>1</visible>
<font>
<face>Tahoma</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>293</x>
<y>11</y>
<height>16</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_label</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Tahoma</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Number Of Pallets:</text>
<border>0</border>
<color>33554432</color>
<x>2</x>
<y>11</y>
<height>16</height>
<width>111</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_of_pallet_t</name>
<visible>1</visible>
<font>
<face>Tahoma</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>1</id> <id>1</id>
...@@ -57,8 +166,8 @@ ...@@ -57,8 +166,8 @@
<tabsequence>10</tabsequence> <tabsequence>10</tabsequence>
<border>5</border> <border>5</border>
<color>33554432</color> <color>33554432</color>
<x>93</x> <x>117</x>
<y>5</y> <y>11</y>
<height>16</height> <height>16</height>
<width>60</width> <width>60</width>
<format>[general]</format> <format>[general]</format>
...@@ -91,17 +200,17 @@ ...@@ -91,17 +200,17 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>No Of Pallet:</text> <text>Printer Name:</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>10</x> <x>2</x>
<y>5</y> <y>34</y>
<height>16</height> <height>16</height>
<width>79</width> <width>111</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>no_of_pallet_t</name> <name>printer_name_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Tahoma</face> <face>Tahoma</face>
...@@ -116,6 +225,42 @@ ...@@ -116,6 +225,42 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>34</y>
<height>16</height>
<width>217</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>printer_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Tahoma</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable> <HtmlTable>
<border>1</border> <border>1</border>
</HtmlTable> </HtmlTable>
......
...@@ -34494,3 +34494,432 @@ INSERT INTO messages ( ...@@ -34494,3 +34494,432 @@ INSERT INTO messages (
'BASE', 'BASE',
NULL, NULL,
NULL); NULL);
---- Changed on 21-11-12
INSERT INTO system_events (
obj_name ,
event_code ,
event_context ,
service_code ,
method_rule ,
overwrite_core ,
chg_date ,
chg_user ,
chg_term ,
result_handle ,
comp_type ,
comp_name ,
comm_format )
VALUES (
'palletprc',
'post_item_change',
'1',
'poic_palletprc',
NULL,
'0',
sysdate,
'Sankar ',
'BASE',
'2',
'EJB',
'CartonNoGenIC',
NULL);
INSERT INTO system_event_services (
service_code ,
service_descr ,
service_uri ,
service_provider ,
method_name ,
return_value ,
return_type ,
return_descr ,
return_xfrm ,
chg_date ,
chg_user ,
chg_term )
VALUES (
'poic_palletprc',
'post item change',
'http://localhost:9090/axis/services/ValidatorService',
'BASE',
'itemChanged',
'String',
'S',
NULL,
NULL,
sysdate,
'Sankar ',
'BASE');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'poic_palletprc',
1,
'COMPONENT_TYPE',
'I',
NULL,
'S',
NULL,
sysdate,
'Sankar ',
'BASE',
'EJB');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'poic_palletprc',
2,
'COMPONENT_NAME',
'I',
NULL,
'S',
NULL,
sysdate,
'Sankar ',
'BASE',
'CartonNoGenIC');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'poic_palletprc',
3,
'XML_DATA',
'I',
NULL,
'S',
NULL,
sysdate,
'Sankar ',
'BASE',
NULL);
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'poic_palletprc',
4,
'XML_DATA_1',
'I',
NULL,
'S',
NULL,
sysdate,
'sankar ',
'BASE',
NULL);
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'poic_palletprc',
5,
'XML_DATA_ALL',
'I',
NULL,
'S',
NULL,
sysdate,
'Sankar ',
'BASE',
NULL);
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'poic_palletprc',
6,
'OBJ_CONTEXT',
'I',
NULL,
'S',
NULL,
sysdate,
'Sankar ',
'BASE',
NULL);
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'poic_palletprc',
7,
'FOCUSED_COLUMN',
'I',
NULL,
'S',
NULL,
sysdate,
'Sankar ',
'BASE',
NULL);
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'poic_palletprc',
8,
'EDIT_FLAG',
'I',
NULL,
'S',
NULL,
sysdate,
'Sankar ',
'BASE',
NULL);
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'poic_palletprc',
9,
'XTRA_PARAMS',
'I',
NULL,
'S',
NULL,
sysdate,
'Sankar ',
'BASE',
NULL);
INSERT INTO obj_itemchange(
obj_name ,
form_no ,
field_name ,
mandatory )
VALUES (
'palletprc',
'1 ',
'itm_default',
NULL);
INSERT INTO obj_itemchange(
obj_name ,
form_no ,
field_name ,
mandatory )
VALUES (
'palletprc',
'1 ',
'pallet_label',
'Y');
INSERT INTO pophelp (
field_name ,
mod_name ,
sql_str ,
dw_object ,
msg_title ,
width ,
height ,
chg_date ,
chg_user ,
chg_term ,
dist_opt ,
filter_string ,
sql_input ,
default_col ,
pop_align ,
query_mode ,
page_context ,
pophelp_cols ,
pophelp_source ,
multi_opt ,
help_option )
VALUES (
'PRINTER_NAME',
'W_PALLETPRC',
'SELECT DESCR FROM GENCODES WHERE FLD_NAME =''PRINTER_NAME'' AND MOD_NAME = ''W_PALLETPRC''',
NULL,
'PRINTER NAME',
0,
0,
TO_DATE('17-11-2012 15:02:10','DD-MM-YYYY HH24:MI:SS'),
'BASE ',
'BASE ',
'0',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
INSERT INTO gencodes (
fld_name ,
mod_name ,
fld_value ,
descr ,
sh_descr ,
chg_date ,
chg_user ,
chg_term ,
active ,
udf_str1 ,
udf_str2 ,
udf_str3 )
VALUES (
'PRINTER_NAME',
'W_PALLETPRC',
'YES',
'\\172.16.100.90\unimis-hpljP3015-001',
'PRINTER',
TO_DATE('16-02-2001 18:54:50','DD-MM-YYYY HH24:MI:SS'),
'SUN ',
'BASE ',
'Y',
NULL,
NULL,
NULL);
INSERT INTO disparm (
prd_code ,
var_name ,
var_type ,
var_value ,
descr ,
var_subs ,
chg_date ,
chg_user ,
chg_term )
VALUES (
'999999',
'CARTON_GEN_OBJNAME',
'S',
'pallet_no',
'Object name of Report',
NULL,
TO_DATE('2-08-2012 00:00:00','DD-MM-YYYY HH24:MI:SS'),
'BASE ',
'BASE ');
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 (
'BLKPRINTNM',
'Printer Name Blank',
'Printer Name Should not be Blank',
'E',
'Y',
NULL,
NULL,
NULL,
TO_DATE('20-11-2012 11:59:45','DD-MM-YYYY HH24:MI:SS'),
'Base ',
'Base ',
NULL,
NULL);
update obj_forms set SCAN_METADATA = '<SCAN_INFO><MAPPING_SCAN ORDER="1"><SCAN_LABEL>Location From:</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>loc_code</FIELD></FIELDS></MAPPING_SCAN><MAPPING_SCAN ORDER="2"><SCAN_LABEL>LPN No:</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>lot_sl</FIELD></FIELDS></MAPPING_SCAN><MAPPING_SCAN ORDER="3"><SCAN_LABEL>Item Code:</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>item_code</FIELD></FIELDS></MAPPING_SCAN><MAPPING_SCAN ORDER="4"><SCAN_LABEL>Lot No:</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>lot_no</FIELD></FIELDS></MAPPING_SCAN><INPUT_SCAN ORDER="1"><SCAN_LABEL>New LPN:</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>lot_sl__new</FIELD></FIELDS></INPUT_SCAN><SCAN_CONDITION field="lot_sl__new">order_type != "T"</SCAN_CONDITION></SCAN_INFO>'
where win_name ='w_active_repl_iss' and form_no = 3;
commit;
commit;
\ No newline at end of file
...@@ -3,11 +3,17 @@ release 9; ...@@ -3,11 +3,17 @@ release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no ) datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" ) summary(height=0 color="536870912" )
footer(height=0 color="536870912" ) footer(height=0 color="536870912" )
detail(height=27 color="536870912" ) detail(height=103 color="536870912" )
table(column=(type=number updatewhereclause=yes name=no_of_pallet dbname="no_of_pallet" ) table(column=(type=number updatewhereclause=no name=no_of_pallet dbname="no_of_pallet" )
column=(type=char(10) updatewhereclause=no name=pallet_label dbname="pallet_label" initial="NO" values="YES Y/NO N/" )
column=(type=char(10) updatewhereclause=no name=printer_name dbname="printer_name" )
) )
column(band=detail id=1 alignment="1" tabsequence=10 border="5" color="33554432" x="93" y="5" height="16" width="60" format="[general]" html.valueishtml="0" name=no_of_pallet visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=detail alignment="1" text="Print Label:" border="0" color="33554432" x="210" y="11" height="16" width="79" html.valueishtml="0" name=pallet_label_t visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="No Of Pallet:" border="0" color="33554432" x="10" y="5" height="16" width="79" html.valueishtml="0" name=no_of_pallet_t visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=20 border="5" color="33554432" x="293" y="11" height="16" width="66" format="[general]" html.valueishtml="0" name=pallet_label visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Number Of Pallets:" border="0" color="33554432" x="2" y="11" height="16" width="111" html.valueishtml="0" name=no_of_pallet_t visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="1" tabsequence=10 border="5" color="33554432" x="117" y="11" height="16" width="60" format="[general]" html.valueishtml="0" name=no_of_pallet visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Printer Name:" border="0" color="33554432" x="2" y="34" height="16" width="111" html.valueishtml="0" name=printer_name_t visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=30 border="5" color="33554432" x="117" y="34" height="16" width="217" format="[general]" html.valueishtml="0" name=printer_name visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" ) htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
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