Commit 968cb2b7 authored by pjain's avatar pjain

changed by sankara on 09/10/14 updated source of transporter code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96559 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 658e9491
......@@ -2471,6 +2471,136 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
valueXmlString.append( "<freight_amt_add><![CDATA[" ).append(freightamount).append( "]]></freight_amt_add>\r\n" );
//changed by sankara on 03/01/14 display despatch freight_amt_add in ship_docs end.
}
//changed by sankara on 08/10/14 for set tran_code in case of D-ISS and C-ISS start.
else if( currentColumn.trim().equalsIgnoreCase( "ref_id" ) )
{
columnValue = genericUtility.getColumnValue("ref_ser",dom);
columnValue1 = genericUtility.getColumnValue("ref_id",dom);
System.out.println("refid::::::::::"+columnValue);
System.out.println("refseries::::::::::"+columnValue1);
if(columnValue1 != null && columnValue1.trim().length() > 0 )
{
if("C-ISS".equalsIgnoreCase(columnValue))
{
sql = " SELECT TRAN_CODE FROM CONSUME_ISS WHERE CONS_ISSUE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, columnValue1);
rs = pstmt.executeQuery();
if( rs.next() )
{
tranCode = checkNull(rs.getString("TRAN_CODE"));
System.out.println("tranCodeconsissue:::::::"+tranCode);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
if("D-ISS".equalsIgnoreCase(columnValue))
{
sql = "SELECT TRAN_CODE FROM DISTORD_ISS WHERE TRAN_ID = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, columnValue1);
rs = pstmt.executeQuery();
if( rs.next() )
{
tranCode = checkNull(rs.getString("TRAN_CODE"));
System.out.println("tranCodedistbution:::::::"+tranCode);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
if("S-DSP".equalsIgnoreCase(columnValue))
{
sql = "SELECT TRAN_CODE FROM DESPATCH WHERE DESP_ID = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, columnValue1);
rs = pstmt.executeQuery();
if( rs.next() )
{
tranCode = checkNull(rs.getString("TRAN_CODE"));
System.out.println("tranCodemanualdespatch:::::::"+tranCode);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
if(tranCode != null && tranCode.trim().length() >0)
{
valueXmlString.append( "<tran_code><![CDATA[" ).append( checkNull(tranCode) ).append( "]]></tran_code>\r\n" );
sql = "SELECT TRAN_NAME FROM TRANSPORTER WHERE TRAN_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranCode);
rs = pstmt.executeQuery();
if( rs.next() )
{
tranName=rs.getString(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
tranCodeHdr = genericUtility.getColumnValue("tran_code", dom1);
System.out.println("Header tran code:"+tranCodeHdr);
if(tranCodeHdr != null && tranCodeHdr.trim().length() > 0 )
{
if( tranCodeHdr.equalsIgnoreCase(tranCode))
{
System.out.println("18/06/14 checked in if");
valueXmlString.append( "<tran_code><![CDATA[" ).append( checkNull(tranCode) ).append( "]]></tran_code>\r\n" );
valueXmlString.append( "<transporter_tran_name><![CDATA[" ).append( checkNull( tranName) ).append( "]]></transporter_tran_name>\r\n" );
}
else
{
System.out.println("18/06/14 checked in else");
System.out.println("@@@@@ tran_code of detail is different from header tran_code");
valueXmlString.append( "</Detail2>\r\n" );
valueXmlString.append( "<Detail1>\r\n" );
valueXmlString.append( "<tran_code><![CDATA[" ).append( checkNull(tranCode) ).append( "]]></tran_code>\r\n" );
valueXmlString.append( "<transporter_tran_name><![CDATA[" ).append( checkNull( tranName) ).append( "]]></transporter_tran_name>\r\n" );
valueXmlString.append( "</Detail1>\r\n" );
valueXmlString.append( "<Detail2>\r\n" );
valueXmlString.append( "<tran_code><![CDATA[" ).append( checkNull(tranCode) ).append( "]]></tran_code>\r\n" );
valueXmlString.append( "<transporter_tran_name><![CDATA[" ).append( checkNull( tranName) ).append( "]]></transporter_tran_name>\r\n" );
}
}
else
{
valueXmlString.append( "</Detail2>\r\n" );
valueXmlString.append( "<Detail1>\r\n" );
valueXmlString.append( "<tran_code><![CDATA[" ).append( checkNull(tranCode) ).append( "]]></tran_code>\r\n" );
valueXmlString.append( "<transporter_tran_name><![CDATA[" ).append( checkNull( tranName) ).append( "]]></transporter_tran_name>\r\n" );
valueXmlString.append( "</Detail1>\r\n" );
valueXmlString.append( "<Detail2>\r\n" );
valueXmlString.append( "<tran_code><![CDATA[" ).append( checkNull(tranCode) ).append( "]]></tran_code>\r\n" );
valueXmlString.append( "<transporter_tran_name><![CDATA[" ).append( checkNull( tranName) ).append( "]]></transporter_tran_name>\r\n" );
}
} //if(tranCode != null && tranCode.trim().length() >0)
else
{
//valueXmlString.append( "<ref_id><![CDATA[" ).append( "" ).append( "]]></ref_id>\r\n" );
valueXmlString.append( "<tran_code><![CDATA[" ).append( "" ).append( "]]></tran_code>\r\n" );
valueXmlString.append( "<transporter_tran_name><![CDATA[" ).append( "").append( "]]></transporter_tran_name>\r\n" );
}
} //if( rs.next() )
else
{
valueXmlString.append( "<ref_id><![CDATA[" ).append( "" ).append( "]]></ref_id>\r\n" );
valueXmlString.append( "<tran_code><![CDATA[" ).append( "" ).append( "]]></tran_code>\r\n" );
valueXmlString.append( "<transporter_tran_name><![CDATA[" ).append( "").append( "]]></transporter_tran_name>\r\n" );
}
}
//changed by sankara on 08/10/14 for set tran_code in case of D-ISS and C-ISS end.
//changed by sankara on 26/06/14 for transporter code in shipment detail end.
else if( currentColumn.trim().equalsIgnoreCase( "curr_code" ) )
{
......
......@@ -239,6 +239,39 @@ public class ShipmentPos extends ValidatorEJB implements ShipmentPosLocal, Shipm
pstmt = null;*/
//changed by sankara on 07/jun/14 this code is excuted in side despatch case only
//Changed by Rohan to update gross weight in shipment content from shipment header.end
//changed by sankara on 08/10/14 for update tran_code in C-ISS AND D-ISS if tran_code is changed in shipment start.
if("C-ISS".equalsIgnoreCase(refSeries.trim()) || "D-ISS".equalsIgnoreCase(refSeries.trim()) )
{
NodeList detail2List = dom.getElementsByTagName("Detail2");
parentNodeListLength = detail2List.getLength();
for(int row = 0; row < parentNodeListLength; row++)
{
refid = GenericUtility.getInstance().getColumnValueFromNode("ref_id", dom.getElementsByTagName("Detail2").item(row));
System.out.println("refid:::::::"+refid);
}
}
if("C-ISS".equalsIgnoreCase(refSeries.trim()) )
{
sql = " UPDATE CONSUME_ISS SET TRAN_CODE = ? WHERE CONS_ISSUE = ? "; //C-ISS
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, transporterCode);
pstmt.setString(2, refid);
desupdCnt = pstmt.executeUpdate();
pstmt.close();
pstmt = null;
}
if("D-ISS".equalsIgnoreCase(refSeries.trim()) )
{
sql = " UPDATE DISTORD_ISS SET TRAN_CODE = ? WHERE TRAN_ID = ? "; //D-ISS
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, transporterCode);
pstmt.setString(2, refid);
desupdCnt = pstmt.executeUpdate();
pstmt.close();
pstmt = null;
}
//changed by sankara on 08/10/14 for update tran_code in C-ISS AND D-ISS if tran_code is changed in shipment end.
}
catch(Exception e)
{
......
......@@ -101,7 +101,13 @@ public class ShipmentPrs extends ValidatorEJB implements ShipmentPrsLocal, Shipm
if(!"D".equalsIgnoreCase(updateFlag))
{
tempPtcn = GenericUtility.getInstance().getColumnValueFromNode("ptcn", dom.getElementsByTagName("Detail2").item(row));
ptcn.add(tempPtcn);
//changed by sankara on 08/10/14 if ptcn found null start.
//ptcn.add(tempPtcn);
if( tempPtcn != null && tempPtcn.trim().length() > 0 )
{
ptcn.add(tempPtcn);
}
//changed by sankara on 08/10/14 if ptcn found null end.
tranCode = GenericUtility.getInstance().getColumnValueFromNode("tran_code", dom.getElementsByTagName("Detail2").item(row));
tranCodeSet.add(tranCode);
......
......@@ -134,6 +134,8 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
String locInvList = "";
String[] locList = null;
String invStatLoc = "";
//changed by Dhanraj on 30-08-14 [W14DSUN001] add interLocXFrXAllow for control stock tranfer to same,cross or not to invstat.
String interLocXFrXAllow="2";
boolean isLocToValid = true;
java.util.Date tranDateDt = null;
String prdCode = "";
......@@ -476,14 +478,16 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
if( "loc_code__to".equalsIgnoreCase( childNodeName ) )
{
/*Added By Dipak On 4 June 2012 Start*/
activePickInvstat = distCommon.getDisparams("999999","ACTIVE_PICK_INVSTAT",conn);
//changed by sankara on 22/09/14 not reuired in case3 start.
/* activePickInvstat = distCommon.getDisparams("999999","ACTIVE_PICK_INVSTAT",conn);
casePickInvstat = distCommon.getDisparams("999999","CASE_PICK_INVSTAT",conn);
resrvLocInvstat = distCommon.getDisparams("999999","RESERV_LOCATION",conn);
invStatList.add(activePickInvstat);
invStatList.add(casePickInvstat);
invStatList.add(resrvLocInvstat);
/*Added By Dipak On 4 June 2012 End*/
Added By Dipak On 4 June 2012 End
itemCode = genericUtility.getColumnValue("item_code", allDom, "3" );
siteCode = genericUtility.getColumnValue("site_code", allDom, "1" );
......@@ -672,8 +676,56 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
errList.add( "VTINVTRANF" );
errFields.add( childNodeName.toLowerCase() );
}
}*/
//changed by sankara on 09-07-13 validation for nosl end.....
//changed by sankara on 22/09/14 not reuired in case3 end.
//Start changed by Dhanraj 0n 30-08-14 [W14DSUN001] for contro stock transfer using stock_transfer_type maste data.not allowed.same invstat and any invsta.
System.out.println(" loc From invStat====> "+locFrominvStat+" locToinvStat====> "+locToinvStat);
/* sql =" SELECT STT.TRAN_TYPE,STT.EXP_SEG,STT.INTER_LOC_XFRX_ALLOW,IST.INV_STAT FROM STOCK_TRANSFER_TYPE STT,LOCATION LOC,INVSTAT IST "
+ " WHERE LOC.INV_STAT=IST.INV_STAT AND STT.TRAN_TYPE=IST.INV_STAT_TYPE AND LOC.LOC_CODE= ? ";*/
/* sql= " SELECT STT.TRAN_TYPE,STT.EXP_SEG,STT.INTER_LOC_XFRX_ALLOW FROM STOCK_TRANSFER_TYPE STT,INVSTAT IST "
+" WHERE STT.TRAN_TYPE=IST.INV_STAT_TYPE AND IST.INV_STAT= ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, locFrominvStat );
rs = pstmt.executeQuery();
if( rs.next() )
{
interLocXFrXAllow = rs.getString("INTER_LOC_XFRX_ALLOW");
System.out.println(" InterLocXFrXAllow "+interLocXFrXAllow);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if("2".equalsIgnoreCase(interLocXFrXAllow))
{
System.out.println("Stock transfer allowed to any inv stat");
}
//changed by sankara on 09-07-13 validation for nosl end.....
else if("0".equalsIgnoreCase(interLocXFrXAllow))
{
//stock tranfer not allowed;
System.out.println("Stock transfer not allowed ");
errList.add( "VTTRANFNOT" );
errFields.add( childNodeName.toLowerCase() );
}
else if("1".equalsIgnoreCase(interLocXFrXAllow))
{
if(!locFrominvStat.equalsIgnoreCase(locToinvStat))
{
//stock transfer allowed only same invstat.
System.out.println("Stock transfer allowed to same inv stat ");
errList.add( "VTTRANFASA" );
errFields.add( childNodeName.toLowerCase());
}
}*/
//End changed by Dhanraj 0n 30-08-14 [W14DSUN001] for contro stock transfer using stock_transfer_type maste data.not allowed.same invstat and any invsta.
//End Dhanraj Code Changes on 30-08-14 [W14DSUN001] .
} //End of case "loc_code__to"
else if( "lot_sl__to".equalsIgnoreCase( childNodeName ) )//Case added by gulzar on 21/12/11
......@@ -868,6 +920,327 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
break;
}
//Changed By Pragyan 11-AUG-14 To check and Facility Master implementation.end
//Start Changed by Dhanraj 03-09-14 [W14DSUN001]
//changed by sankara on 22/09/14 commented as per pragyan start.
/* locCodeFrom = genericUtility.getColumnValue( "loc_code__fr", currDom );
sql = "SELECT INV_STAT FROM LOCATION WHERE LOC_CODE= ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, locCode ); //To Locaton_Code
rs = pstmt.executeQuery();
if( rs.next() )
{
locToinvStat = rs.getString("INV_STAT"); //To InvStat
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
sql = " SELECT INV_STAT FROM LOCATION WHERE LOC_CODE = ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, locCodeFrom );//from Location_code
rs = pstmt.executeQuery();
if( rs.next() )
{
locFrominvStat = rs.getString("INV_STAT"); //from invstat
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println(" loc From location====> "+locCodeFrom+" loc location to====> "+locCode);
System.out.println(" loc From invStat====> "+locFrominvStat+" locToinvStat====> "+locToinvStat);
sql= " SELECT STT.TRAN_TYPE,STT.EXP_SEG,STT.INTER_LOC_XFRX_ALLOW FROM STOCK_TRANSFER_TYPE STT,INVSTAT IST "
+" WHERE STT.TRAN_TYPE=IST.INV_STAT_TYPE AND IST.INV_STAT= ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, locFrominvStat );
rs = pstmt.executeQuery();
if( rs.next() )
{
interLocXFrXAllow = rs.getString("INTER_LOC_XFRX_ALLOW");
System.out.println(" InterLocXFrXAllow "+interLocXFrXAllow);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if("2".equalsIgnoreCase(interLocXFrXAllow))
{
System.out.println("Stock transfer allowed to any inv stat");
}
else if("0".equalsIgnoreCase(interLocXFrXAllow))
{
//stock tranfer not allowed;
System.out.println("Stock transfer not allowed ");
errList.add( "VTTRANFNOT" );
errFields.add( childNodeName.toLowerCase() );
}
else if("1".equalsIgnoreCase(interLocXFrXAllow))
{
if(!locFrominvStat.equalsIgnoreCase(locToinvStat))
{
//stock transfer allowed only same invstat.
System.out.println("Stock transfer allowed to same inv stat ");
errList.add( "VTTRANFASA" );
errFields.add( childNodeName.toLowerCase());
}
}*/
/*Added By Dipak On 4 June 2012 Start*/
activePickInvstat = distCommon.getDisparams("999999","ACTIVE_PICK_INVSTAT",conn);
casePickInvstat = distCommon.getDisparams("999999","CASE_PICK_INVSTAT",conn);
resrvLocInvstat = distCommon.getDisparams("999999","RESERV_LOCATION",conn);
invStatList.add(activePickInvstat);
invStatList.add(casePickInvstat);
invStatList.add(resrvLocInvstat);
/*Added By Dipak On 4 June 2012 End*/
itemCode = genericUtility.getColumnValue("item_code", allDom, "3" );
siteCode = genericUtility.getColumnValue("site_code", allDom, "1" );
locCodeTo = checkNull(genericUtility.getColumnValue("loc_code__to", allDom, "3" ));
lotNo = genericUtility.getColumnValue("lot_no__fr", allDom, "3" );
lpnNo = genericUtility.getColumnValue("lot_sl__fr", allDom, "3" );
locCode = genericUtility.getColumnValue("loc_code__fr", allDom, "2" );
sql ="SELECT COUNT(*) AS LOCCOUNT FROM STOCK WHERE ITEM_CODE = ? AND SITE_CODE = ? AND LOC_CODE = ? " +
" AND LOT_NO = ? AND LOT_SL = ? AND EXP_DATE <= fn_sysdate()";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, itemCode );
pstmt.setString( 2, siteCode );
pstmt.setString( 3, locCode );
pstmt.setString( 4, lotNo );
pstmt.setString( 5, lpnNo );
rs = pstmt.executeQuery();
if( rs.next() )
{
locCount = rs.getInt("LOCCOUNT");
}
pstmt.close();
rs.close();
pstmt = null;
rs =null;
if(locCount > 0)
{
locInvList = distCommon.getDisparams("999999","NOT_TRANF_INV_STAT",conn);
System.out.println("locInvList>>>>>>"+locInvList);
if((!"".equalsIgnoreCase(locInvList.trim()) || locInvList != null) && locInvList.trim().length() > 0 )
{
locList = locInvList.split(",");
sql = "SELECT INV_STAT FROM LOCATION WHERE LOC_CODE = ?";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, locCodeTo );
rs = pstmt.executeQuery();
if( rs.next() )
{
invStatLoc = checkNull(rs.getString("INV_STAT"));
}
for(int i =0; i < locList.length ; i++)
{
System.out.println("Comparing values"+invStatLoc+"locList[i]"+locList[i]);
if(invStatLoc.trim().equalsIgnoreCase(locList[i].trim()))
{
errList.add( "VTLOCNTVAL" );
errFields.add( childNodeName.toLowerCase());
isLocToValid = false;
break;
}
}
}
}
System.out.println("isLocToValid["+isLocToValid+"]");
if(isLocToValid)
{
sql = "SELECT SINGLE_LOT_SL, ITEM_LOT_OPT, INV_STAT FROM LOCATION WHERE LOC_CODE = ?";//Changes are done by Dipak On 4 June 2012
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, locCodeTo );
rs = pstmt.executeQuery();
if( rs.next() )
{
singleLotSl = checkNull(rs.getString("SINGLE_LOT_SL"));
itemLotOpt = checkNull(rs.getString("ITEM_LOT_OPT"));
invStat = checkNull(rs.getString("INV_STAT"));//Added By Dipak On 4 June 2012
}
else
{
errList.add( "VMLOC6" );
errFields.add( childNodeName.toLowerCase() );
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
System.out.println("singleLotSl:::::::"+singleLotSl);
System.out.println("locCodeTo:::::::"+locCodeTo);
if( singleLotSl.trim().equalsIgnoreCase("Y") )
{
sql = "SELECT QUANTITY FROM STOCK WHERE SITE_CODE = ?"
+ " AND LOC_CODE = ? ORDER BY QUANTITY DESC";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, siteCode );
pstmt.setString( 2, locCodeTo );
rs = pstmt.executeQuery();
if( rs.next() )
{
quantity = rs.getDouble("QUANTITY");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
if( quantity != 0 )
{
errList.add( "LOCNOTEMPT" );
errFields.add( childNodeName.toLowerCase() );
}
}
else
{
if( itemLotOpt.trim().equals("0") )
{
sql = "SELECT COUNT(*) AS COUNT FROM STOCK WHERE (ITEM_CODE <> ? OR LOT_NO <> ?) AND SITE_CODE = ? AND LOC_CODE = ? AND QUANTITY > 0";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, itemCode );
pstmt.setString( 2, lotNo );
pstmt.setString( 3, siteCode );
pstmt.setString( 4, locCodeTo );
rs = pstmt.executeQuery();
if( rs.next() )
{
count = rs.getInt("COUNT");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
if( count > 0 )
{
errList.add( "VTLOCCODE2" );
errFields.add( childNodeName.toLowerCase() );
}
}
else if( itemLotOpt.trim().equals("1") )
{
sql = "SELECT COUNT(*) AS COUNT FROM STOCK WHERE ITEM_CODE <> ? AND SITE_CODE = ? AND LOC_CODE = ? AND QUANTITY > 0";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, itemCode );
pstmt.setString( 2, siteCode );
pstmt.setString( 3, locCodeTo );
rs = pstmt.executeQuery();
if( rs.next() )
{
count = rs.getInt("COUNT");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if( count > 0 )
{
errList.add( "VTLOCCODE4" );
errFields.add( childNodeName.toLowerCase() );
}
}
}
}
//changed by sankara on 09-07-13 validation for nosl start.....
locCodeFrom = genericUtility.getColumnValue( "loc_code__fr", currDom );
sql = " SELECT INV_STAT FROM LOCATION WHERE LOC_CODE = ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, locCodeFrom );//from Location_code
rs = pstmt.executeQuery();
if( rs.next() )
{
locFrominvStat = rs.getString("INV_STAT"); //from invstat
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
NoslInvstat = distCommon.getDisparams("999999","INV_NO_SL",conn);
//Start Dhanraj Code Changes on 30-08-14 [W14DSUN001].
//Start Changed by Dhanraj on 30-08-14 [W14DSUN001] for get inv stat multiple time....use only
sql = "SELECT INV_STAT FROM LOCATION WHERE LOC_CODE= ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, locCodeTo );
rs = pstmt.executeQuery();
if( rs.next() )
{
locToinvStat = rs.getString("INV_STAT");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
//Start Changed by Dhanraj on 30-08-14 [W14DSUN001] for get inv stat multiple time....use only
if( locFrominvStat.trim().equalsIgnoreCase(NoslInvstat) )
{
//Start Changed by Dhanraj on 30-08-14 [W14DSUN001] for get inv stat multiple time....hide only
/*sql = "SELECT INV_STAT FROM LOCATION WHERE LOC_CODE= ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, locCodeTo );
rs = pstmt.executeQuery();
if( rs.next() )
{
locToinvStat = rs.getString("INV_STAT");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;*/
//Start Changed by Dhanraj on 30-08-14 [W14DSUN001] for get inv stat multiple time....hide only
if(!locFrominvStat.equalsIgnoreCase(locToinvStat))
{
errList.add( "VTINVTRANF" );
errFields.add( childNodeName.toLowerCase() );
}
}
//changed by sankara on 09-07-13 validation for nosl end.....
System.out.println(" loc From invStat====> "+locFrominvStat+" locToinvStat====> "+locToinvStat);
//changed by sankara on 22/09/14 commented as per pragyan end.
//changed by sankara on 22/09/14 for location not emty for different item start.
itemCode = genericUtility.getColumnValue("item_code", allDom, "3" );
lotNo = genericUtility.getColumnValue("lot_no__fr", allDom, "3" );
System.out.println("itemCode::::::"+itemCode);
System.out.println("locCode::::::"+locCode);
System.out.println("lotNo::::::"+lotNo);
sql = " SELECT COUNT(*) AS COUNT FROM STOCK WHERE ITEM_CODE <> ? AND LOT_NO = ? AND LOC_CODE = ? AND QUANTITY > 0 ";
pstmt = conn.prepareStatement(sql);
pstmt.setString( 1, itemCode );
pstmt.setString( 2, lotNo );
pstmt.setString( 3, locCodeTo );
rs = pstmt.executeQuery();
if( rs.next() )
{
count = rs.getInt("COUNT");
System.out.println(" count:::::::::: "+count);
}
if(count > 0)
{
errList.add( "LOCNOTEMPT" );
errFields.add( childNodeName.toLowerCase() );
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
//changed by sankara on 22/09/14 for location not emty for different item end.
//End Changed by Dhanraj 03-09-14 [W14DSUN001]
}
}// for loop end
} //case 4 end
......@@ -1072,6 +1445,7 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
}
public String default_ItemChanged( Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams ) throws RemoteException,ITMException
{
System.out.println("Call stocktransfermultipleIc default_ItemChanged");
String sql = "";
String itemCode = "";
String itemDescr = "";
......@@ -1143,6 +1517,7 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
{
case 1:
{
System.out.println("Call stocktransfermultipleIc item changed case 1");
valueXmlString.append( "<Detail1 domID='1'>\r\n" );
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ) )
{
......@@ -1189,6 +1564,7 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
break;
case 2:
{
System.out.println("Call stocktransfermultipleIc item changed case 2");
valueXmlString.append( "<Detail2 domID='1'>\r\n" );
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ) )
{
......@@ -1207,6 +1583,7 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
break;
case 3:
{
System.out.println("Call stocktransfermultipleIc item changed case 3");
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ) )
{
int lineNo = 0;
......@@ -1220,10 +1597,29 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
{
siteCode = getSiteCode( xtraParams, conn );
}
// Start Changed by Dhanraj on 30-08-14 [W14DSUN001] for get to inv stat use..
String tranTypeDesc="";
sql = " SELECT INV_STAT_TYPE,STT.DESCR FROM LOCATION LOC,INVSTAT INV,STOCK_TRANSFER_TYPE STT "
+" WHERE LOC.INV_STAT=INV.INV_STAT AND STT.TRAN_TYPE=INV.INV_STAT_TYPE AND LOC_CODE= ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, locCode );
rs = pstmt.executeQuery();
if( rs.next() )
{
tranTypeDesc=rs.getString("INV_STAT_TYPE")+" - "+rs.getString("DESCR");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
//End Changed by Dhanraj on 30-08-14 [W14DSUN001] for get to inv stat use..
sql = " SELECT A.ITEM_CODE, A.SITE_CODE, A.LOC_CODE, A.LOT_NO, A.LOT_SL," +
" C.ITEM_SER, C.DESCR ITEM_DESCR, C.LOC_TYPE, C.LOC_ZONE__PREF, A.QUANTITY, "+
" D.DESCR LOC_DESCR, A.PACK_CODE, A.ALLOC_QTY, A.MFG_DATE, A.NO_ART, " +
" A.ACCT_CODE__INV, A.CCTR_CODE__INV, D.PHY_HAN_BASIS "+
//changed by sankara on 22/09/14 added unit as per ashish sir.
//" A.ACCT_CODE__INV, A.CCTR_CODE__INV, D.PHY_HAN_BASIS "+
" A.ACCT_CODE__INV, A.CCTR_CODE__INV, D.PHY_HAN_BASIS, A.UNIT "+
" FROM STOCK A,ITEM C, LOCATION D "+
" WHERE A.LOC_CODE = D.LOC_CODE " +
" AND A.ITEM_CODE = C.ITEM_CODE " +
......@@ -1250,7 +1646,7 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
cctrCode = rs.getString("CCTR_CODE__INV");
itemlocType = rs.getString("LOC_TYPE");
locZonePref = rs.getInt("LOC_ZONE__PREF");
unit = rs.getString("UNIT");
//phyHanBasis = rs.getString("PHY_HAN_BASIS");
domID++;
lineNo++;
......@@ -1276,10 +1672,12 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
valueXmlString.append("<cctr_code__dr><![CDATA[").append(checkNull(cctrCode)).append("]]></cctr_code__dr>\r\n");
valueXmlString.append("<phy_han_basis><![CDATA[").append(checkNull(phyHanBasis)).append("]]></phy_han_basis>\r\n");
sql = " SELECT DISTINCT A.LOC_CODE FROM LOCATION A ,INVSTAT B, STOCK S " +
sql = " SELECT DISTINCT A.LOC_CODE, S.QUANTITY FROM LOCATION A ,INVSTAT B, STOCK S " +
" WHERE A.INV_STAT = B.INV_STAT AND B.AVAILABLE = 'Y' " +
" AND (CASE WHEN B.STAT_TYPE IS NULL THEN ' ' ELSE B.STAT_TYPE END) <> 'S' " +
" AND A.LOC_CODE = S.LOC_CODE AND A.LOC_CODE <> ? AND S.ITEM_CODE = ? AND S.LOT_NO = ? AND S.SITE_CODE = ? AND S.QUANTITY <= 0 ";
//changed by sankara on 22/09/14 for location not emty for sufggest loc code
//" AND A.LOC_CODE = S.LOC_CODE AND A.LOC_CODE <> ? AND S.ITEM_CODE = ? AND S.LOT_NO = ? AND S.SITE_CODE = ? AND S.QUANTITY <= 0 ";
" AND A.LOC_CODE = S.LOC_CODE AND A.LOC_CODE <> ? AND S.ITEM_CODE = ? AND S.LOT_NO = ? AND S.SITE_CODE = ? ORDER BY S.QUANTITY DESC ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1,locCode );
pstmt1.setString(2,itemCode );
......@@ -1294,10 +1692,12 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
if ( locCodeTo == null || locCodeTo.trim().length() == 0 )
{
System.out.println("inside else if..........................................");
sql = " SELECT DISTINCT A.LOC_CODE FROM LOCATION A ,INVSTAT B, STOCK S " +
sql = " SELECT DISTINCT A.LOC_CODE, S.QUANTITY FROM LOCATION A ,INVSTAT B, STOCK S " +
" WHERE A.INV_STAT = B.INV_STAT AND B.AVAILABLE = 'Y' " +
" AND (CASE WHEN B.STAT_TYPE IS NULL THEN ' ' ELSE B.STAT_TYPE END) <> 'S' " +
" AND A.LOC_CODE = S.LOC_CODE AND A.LOC_CODE <> ? AND S.ITEM_CODE = ? AND S.LOT_NO <> ? AND S.SITE_CODE = ? AND S.QUANTITY <= 0 ";
//changed by sankara on 22/09/14 for location not emty for sufggest loc code
//" AND A.LOC_CODE = S.LOC_CODE AND A.LOC_CODE <> ? AND S.ITEM_CODE = ? AND S.LOT_NO <> ? AND S.SITE_CODE = ? AND S.QUANTITY <= 0 ";
" AND A.LOC_CODE = S.LOC_CODE AND A.LOC_CODE <> ? AND S.ITEM_CODE = ? AND S.LOT_NO <> ? AND S.SITE_CODE = ? ORDER BY S.QUANTITY DESC ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1,locCode );
pstmt1.setString(2,itemCode );
......@@ -1321,6 +1721,8 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
valueXmlString.append("<loc_code__to><![CDATA[").append(checkNull(locCodeTo.trim())).append("]]></loc_code__to>\r\n");
valueXmlString.append("<loc_code__sys><![CDATA[").append(checkNull(locCodeTo.trim())).append("]]></loc_code__sys>\r\n");
//Changed by Dhanraj on 30-08-14 [W14DSUN001] add tab(inv_stat_type) for tran type with desc disp.
valueXmlString.append("<transaction_type ><![CDATA[").append(checkNull(tranTypeDesc)).append("]]></transaction_type>\r\n");
valueXmlString.append("</Detail3>\r\n");
}
rs.close();rs = null;
......@@ -1363,6 +1765,8 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
String lotSlNew = genericUtility.getColumnValueFromNode("lot_sl__to", parentNode);
noArt = genericUtility.getColumnValueFromNode("no_art", parentNode);
String Quantity = genericUtility.getColumnValueFromNode("quantity", parentNode);
//changed by sankara for unit 22/09/14
unit = genericUtility.getColumnValueFromNode("unit", parentNode);
System.out.println("itemCode ----- ["+itemCode+"]");
acctCode = genericUtility.getColumnValueFromNode("acct_code__cr", parentNode);
cctrCode = genericUtility.getColumnValueFromNode("cctr_code__cr", parentNode);
......@@ -1385,11 +1789,33 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
valueXmlString.append("<lot_sl__fr><![CDATA[").append(checkNull(lotSl.trim())).append("]]></lot_sl__fr>\r\n");
valueXmlString.append("<lot_sl__to><![CDATA[").append(lotSlNew.trim()).append("]]></lot_sl__to>\r\n");
valueXmlString.append("<quantity><![CDATA[" + Quantity + "]]></quantity>\r\n");
valueXmlString.append("<no_art><![CDATA[" + noArt + "]]></no_art>\r\n");
valueXmlString.append("<no_art><![CDATA[" + noArt + "]]></no_art>\r\n");
//changed by sankara for unit 22/09/14
valueXmlString.append("<unit><![CDATA[").append(unit).append("]]></unit>\r\n");
valueXmlString.append("<acct_code__cr><![CDATA[").append(checkNull(acctCode)).append("]]></acct_code__cr>\r\n");
valueXmlString.append("<cctr_code__cr><![CDATA[").append(checkNull(cctrCode)).append("]]></cctr_code__cr>\r\n");
valueXmlString.append("<acct_code__dr><![CDATA[").append(checkNull(acctCode)).append("]]></acct_code__dr>\r\n");
valueXmlString.append("<cctr_code__dr><![CDATA[").append(checkNull(cctrCode)).append("]]></cctr_code__dr>\r\n");
valueXmlString.append("<cctr_code__dr><![CDATA[").append(checkNull(cctrCode)).append("]]></cctr_code__dr>\r\n");
// Start Changed by Dhanraj on 30-08-14 [W14DSUN001] for get to inv stat use..
String tranTypeDesc="";
sql = " SELECT INV_STAT_TYPE,STT.DESCR FROM LOCATION LOC,INVSTAT INV,STOCK_TRANSFER_TYPE STT "
+" WHERE LOC.INV_STAT=INV.INV_STAT AND STT.TRAN_TYPE=INV.INV_STAT_TYPE AND LOC_CODE= ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, locCode );
rs = pstmt.executeQuery();
if( rs.next() )
{
tranTypeDesc=rs.getString("INV_STAT_TYPE")+" - "+rs.getString("DESCR");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
//Changed by Dhanraj on 30-08-14 [W14DSUN001] add tab(inv_stat_type) for tran type with desc disp.
valueXmlString.append("<transaction_type ><![CDATA[").append(checkNull(tranTypeDesc)).append("]]></transaction_type>\r\n");
//End Changed by Dhanraj on 30-08-14 [W14DSUN001] for get to inv stat use..
valueXmlString.append("</Detail4>\r\n");
}
}
......
......@@ -106,7 +106,7 @@
<table_column>
<type size="120">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>remarks</name>
<name>transaction_type</name>
<dbname>stock_transfer_det.remarks</dbname>
</table_column>
<table_column>
......@@ -254,71 +254,6 @@
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Unit:</text>
<border>0</border>
<color>0</color>
<x>272</x>
<y>80</y>
<height>16</height>
<width>67</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>343</x>
<y>80</y>
<height>16</height>
<width>54</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
......@@ -416,7 +351,7 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>No. of cases :</text>
<text>NO OF ART:</text>
<border>0</border>
<color>0</color>
<x>82</x>
......@@ -519,7 +454,7 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Active quantity:</text>
<text>Quantity:</text>
<border>0</border>
<color>0</color>
<x>49</x>
......@@ -626,7 +561,7 @@
<valueishtml>0</valueishtml>
</html>
<name>loc_descr__fr</name>
<visible>1</visible>
<visible>0</visible>
<EditStyle style="edit">
<limit>40</limit>
<case>any</case>
......@@ -789,7 +724,7 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Lot Number From:</text>
<text>Lot NO:</text>
<border>0</border>
<color>0</color>
<x>49</x>
......@@ -1223,27 +1158,60 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>20</tabsequence>
<border>5</border>
<color>255</color>
<color>0</color>
<x>159</x>
<y>255</y>
<y>105</y>
<height>16</height>
<width>377</width>
<width>72</width>
<format>###,###.000</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>###,###.000</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</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>
<ColumnObject>
<band>Detail</band>
<id>21</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>255</color>
<x>438</x>
<y>105</y>
<height>16</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks</name>
<name>phy_han_basis</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>120</limit>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1256,29 +1224,29 @@
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<color>79741120</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Remarks:</text>
<text>Physical handling basis:</text>
<border>0</border>
<color>0</color>
<x>49</x>
<y>255</y>
<x>304</x>
<y>107</y>
<height>16</height>
<width>106</width>
<width>129</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks_t</name>
<name>phy_han_basis_t</name>
<visible>0</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
......@@ -1289,25 +1257,26 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<id>22</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<color>255</color>
<x>159</x>
<y>105</y>
<y>8</y>
<height>16</height>
<width>72</width>
<format>###,###.000</format>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity</name>
<name>loc_code__sys</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>###,###.000</mask>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
......@@ -1319,30 +1288,32 @@
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>79741120</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>21</id>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<border>5</border>
<color>255</color>
<x>438</x>
<y>105</y>
<x>159</x>
<y>30</y>
<height>16</height>
<width>102</width>
<width>72</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>phy_han_basis</name>
<name>tran_id</name>
<visible>0</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1361,23 +1332,51 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Physical handling basis:</text>
<text>Suggested Location Code:</text>
<border>0</border>
<color>0</color>
<x>304</x>
<y>107</y>
<x>8</x>
<y>8</y>
<height>16</height>
<width>129</width>
<width>147</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>phy_han_basis_t</name>
<name>loc_code__sys_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</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>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Remarks:</text>
<border>0</border>
<color>0</color>
<x>49</x>
<y>255</y>
<height>16</height>
<width>106</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks_t</name>
<visible>0</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
......@@ -1388,25 +1387,27 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>22</id>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>159</x>
<y>8</y>
<y>255</y>
<height>16</height>
<width>72</width>
<width>377</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code__sys</name>
<visible>1</visible>
<name>remarks</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>120</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1419,28 +1420,56 @@
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<color>67108864</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Transaction Type:</text>
<border>0</border>
<color>0</color>
<x>49</x>
<y>277</y>
<height>16</height>
<width>106</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>transaction_type_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</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>1</id>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>159</x>
<y>30</y>
<y>277</y>
<height>16</height>
<width>72</width>
<width>377</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<visible>0</visible>
<name>transaction_type</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>120</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -1457,29 +1486,29 @@
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<color>67108864</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Suggested Location Code:</text>
<text>Unit:</text>
<border>0</border>
<color>0</color>
<x>8</x>
<y>8</y>
<x>272</x>
<y>80</y>
<height>16</height>
<width>147</width>
<width>67</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code__sys_t</name>
<visible>1</visible>
<name>unit_t</name>
<visible>0</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
......@@ -1488,6 +1517,43 @@
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>343</x>
<y>80</y>
<height>16</height>
<width>54</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
......
......@@ -49885,7 +49885,7 @@ INSERT INTO genmst VALUES (
'VTSHLFLTYP',
'N',
'C',
'select count(*) from dual where ''E'' not in (''E'',''R'')' ,
'select count(*) from dual where ? not in (''E'',''R'')' ,
'0',
'Q',
TO_DATE('22-09-2014 23:57:20','DD-MM-YYYY HH24:MI:SS'),
......@@ -49972,7 +49972,28 @@ values ('TRAN_TYPE','W_RMPM_PORCP_WIZ','CW','CAPITAL WORK IN PROGRESS','CAPITAL
commit;
--End Dhanraj on 08-SEP-14
--End Dhanraj on 08-SEP-14
--changed by sankara on 09/10/14updated sql
update obj_forms set disp_metadata ='checkedImage@img<item_code>, <lot_no__fr>, <lot_sl__fr>, <quantity>, <unit>'
where win_name ='w_stocktransfer_multi_wiz'
and form_no ='3';
update obj_forms set disp_metadata ='checkedImage@img<lot_no__to>, <lot_sl__to>, <quantity>, <unit> = <loc_code__sys>'
where win_name ='w_stocktransfer_multi_wiz'
and form_no ='4';
INSERT INTO obj_itemchange (
obj_name ,
form_no ,
field_name ,
mandatory )
VALUES (
'shipment',
'2 ',
'ref_id',
NULL);
commit;
......@@ -14,7 +14,7 @@ table(column=(type=char(10) updatewhereclause=yes name=tran_id dbname="stock_tra
column=(type=char(15) updatewhereclause=yes name=lot_no__to dbname="stock_transfer_det.lot_no__to" )
column=(type=char(15) updatewhereclause=yes name=lot_sl__fr dbname="stock_transfer_det.lot_sl__fr" )
column=(type=char(15) updatewhereclause=yes name=lot_sl__to dbname="stock_transfer_det.lot_sl__to" )
column=(type=char(120) updatewhereclause=yes name=remarks dbname="stock_transfer_det.remarks" )
column=(type=char(120) updatewhereclause=yes name=transaction_type dbname="stock_transfer_det.remarks" )
column=(type=char(10) updatewhereclause=yes name=acct_code__cr dbname="stock_transfer_det.acct_code__cr" )
column=(type=char(10) updatewhereclause=yes name=acct_code__dr dbname="stock_transfer_det.acct_code__dr" )
column=(type=char(4) updatewhereclause=yes name=cctr_code__dr dbname="stock_transfer_det.cctr_code__dr" )
......@@ -29,23 +29,21 @@ table(column=(type=char(10) updatewhereclause=yes name=tran_id dbname="stock_tra
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"stock_transfer_det~" ) TABLE(NAME=~"item~" ) TABLE(NAME=~"location~" ALIAS=~"LOCATION_A~" ) TABLE(NAME=~"location~" ALIAS=~"LOCATION_B~" ) COLUMN(NAME=~"stock_transfer_det.tran_id~") COLUMN(NAME=~"stock_transfer_det.line_no~") COLUMN(NAME=~"stock_transfer_det.item_code~") COLUMN(NAME=~"stock_transfer_det.quantity~") COLUMN(NAME=~"stock_transfer_det.loc_code__fr~") COLUMN(NAME=~"stock_transfer_det.loc_code__to~") COLUMN(NAME=~"stock_transfer_det.lot_no__fr~") COLUMN(NAME=~"stock_transfer_det.lot_no__to~") COLUMN(NAME=~"stock_transfer_det.lot_sl__fr~") COLUMN(NAME=~"stock_transfer_det.lot_sl__to~") COLUMN(NAME=~"stock_transfer_det.remarks~") COLUMN(NAME=~"stock_transfer_det.acct_code__cr~") COLUMN(NAME=~"stock_transfer_det.acct_code__dr~") COLUMN(NAME=~"stock_transfer_det.cctr_code__dr~") COLUMN(NAME=~"stock_transfer_det.cctr_code__cr~") COLUMN(NAME=~"item.descr~") COLUMN(NAME=~"LOCATION_A.descr~") COLUMN(NAME=~"LOCATION_B.descr~") COLUMN(NAME=~"stock_transfer_det.no_art~") COLUMN(NAME=~"item.unit~") COLUMN(NAME=~"LOCATION_A.phy_han_basis~") COLUMN(NAME=~"stock_transfer_det.loc_code__sys~") JOIN (LEFT=~"stock_transfer_det.item_code~" OP =~"=~"RIGHT=~"item.item_code~" ) JOIN (LEFT=~"stock_transfer_det.loc_code__fr~" OP =~"=~"RIGHT=~"LOCATION_A.loc_code~" ) JOIN (LEFT=~"stock_transfer_det.loc_code__to~" OP =~"=~"RIGHT=~"LOCATION_B.loc_code~" )WHERE( EXP1 =~"stock_transfer_det.tran_id~" OP =~"=~" EXP2 =~":tran_id~" LOGIC =~"And~" ) WHERE( EXP1 =~"stock_transfer_det.line_no~" OP =~"=~" EXP2 =~":line_no~" ) ) ARG(NAME = ~"tran_id~" TYPE = string) ARG(NAME = ~"line_no~" TYPE = number) " arguments=(("tran_id", string),("line_no", number)) )
column(band=detail id=16 alignment="0" tabsequence=32766 border="5" color="255" x="235" y="55" height="16" width="301" format="[general]" html.valueishtml="0" name=item_descr visible="1" edit.limit=120 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Item Code:" border="0" color="0" x="49" y="55" height="16" width="106" html.valueishtml="0" name=item_code_t visible="1" font.face="Times New Roman" 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="Unit:" border="0" color="0" x="272" y="80" height="16" width="67" html.valueishtml="0" name=unit_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=20 alignment="0" tabsequence=32766 border="5" color="255" x="343" y="80" height="16" width="54" format="[general]" html.valueishtml="0" name=unit visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Transaction Id:" border="0" color="0" x="49" y="30" height="16" width="106" html.valueishtml="0" name=tran_id_t visible="0" font.face="Times New Roman" 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="Line No:" border="0" color="0" x="399" y="33" height="16" width="86" html.valueishtml="0" name=line_no_t visible="0" font.face="Times New Roman" 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=32766 border="5" color="255" x="489" y="33" height="16" width="47" format="[general]" html.valueishtml="0" name=line_no visible="0" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="No. of cases :" border="0" color="0" x="82" y="80" height="16" width="72" html.valueishtml="0" name=no_art_t visible="1" font.face="Times New Roman" 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 ART:" border="0" color="0" x="82" y="80" height="16" width="72" html.valueishtml="0" name=no_art_t visible="1" font.face="Times New Roman" 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=32766 border="5" color="255" x="159" y="55" height="16" width="72" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=19 alignment="0" tabsequence=10 border="5" color="255" x="158" y="80" height="16" width="40" format="0" html.valueishtml="0" name=no_art visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Active quantity:" border="0" color="0" x="49" y="105" height="16" width="106" html.valueishtml="0" name=quantity_t visible="1" font.face="Times New Roman" 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="Quantity:" border="0" color="0" x="49" y="105" height="16" width="106" html.valueishtml="0" name=quantity_t visible="1" font.face="Times New Roman" 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=5 alignment="0" tabsequence=32766 border="5" color="255" x="159" y="130" height="16" width="72" format="[general]" html.valueishtml="0" name=loc_code__fr visible="1" edit.limit=8 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Location Code From:" border="0" color="0" x="39" y="130" height="16" width="116" html.valueishtml="0" name=loc_code__fr_t visible="1" font.face="Times New Roman" 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=17 alignment="0" tabsequence=32766 border="5" color="255" x="235" y="130" height="16" width="301" format="[general]" html.valueishtml="0" name=loc_descr__fr visible="1" edit.limit=40 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=17 alignment="0" tabsequence=32766 border="5" color="255" x="235" y="130" height="16" width="301" format="[general]" html.valueishtml="0" name=loc_descr__fr visible="0" edit.limit=40 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=6 alignment="0" tabsequence=30 border="5" color="0" x="159" y="155" height="16" width="72" format="[general]" html.valueishtml="0" name=loc_code__to visible="1" edit.limit=8 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" 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="Location Code To:" border="0" color="0" x="49" y="155" height="16" width="106" html.valueishtml="0" name=loc_code__to_t visible="1" font.face="Times New Roman" 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=18 alignment="0" tabsequence=32766 border="5" color="255" x="235" y="155" height="16" width="301" format="[general]" html.valueishtml="0" name=loc_descr__to visible="0" edit.limit=40 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=7 alignment="0" tabsequence=32766 border="5" color="255" x="159" y="180" height="16" width="96" format="[general]" html.valueishtml="0" name=lot_no__fr visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Lot Number From:" border="0" color="0" x="49" y="180" height="16" width="106" html.valueishtml="0" name=lot_no__fr_t visible="1" font.face="Times New Roman" 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="Lot NO:" border="0" color="0" x="49" y="180" height="16" width="106" html.valueishtml="0" name=lot_no__fr_t visible="1" font.face="Times New Roman" 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="Lot Number To:" border="0" color="0" x="343" y="180" height="16" width="93" html.valueishtml="0" name=lot_no__to_t visible="0" font.face="Times New Roman" 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=8 alignment="0" tabsequence=32766 border="5" color="255" x="440" y="180" height="16" width="96" format="[general]" html.valueishtml="0" name=lot_no__to tag="" visible="0" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="255" x="159" y="205" height="16" width="96" format="[general]" html.valueishtml="0" name=lot_sl__fr visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
......@@ -58,14 +56,18 @@ column(band=detail id=14 alignment="0" tabsequence=32766 border="5" color="255"
text(band=detail alignment="1" text="Debit A/c:" border="0" color="0" x="360" y="230" height="16" width="58" html.valueishtml="0" name=acct_code__dr_t visible="0" font.face="Times New Roman" 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=13 alignment="0" tabsequence=32766 border="5" color="255" x="422" y="230" height="16" width="66" format="[general]" html.valueishtml="0" name=acct_code__dr visible="0" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=15 alignment="0" tabsequence=32766 border="5" color="255" x="492" y="230" height="16" width="44" format="[general]" html.valueishtml="0" name=cctr_code__cr visible="0" edit.limit=4 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="5" color="255" x="159" y="255" height="16" width="377" format="[general]" html.valueishtml="0" name=remarks visible="0" edit.limit=120 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Remarks:" border="0" color="0" x="49" y="255" height="16" width="106" html.valueishtml="0" name=remarks_t visible="0" font.face="Times New Roman" 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=4 alignment="0" tabsequence=20 border="5" color="0" x="159" y="105" height="16" width="72" format="###,###.000" html.valueishtml="0" name=quantity visible="1" editmask.mask="###,###.000" editmask.imemode=0 editmask.focusrectangle=no font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=21 alignment="0" tabsequence=32766 border="0" color="255" x="438" y="105" height="16" width="102" format="[general]" html.valueishtml="0" name=phy_han_basis visible="0" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Physical handling basis:" border="0" color="0" x="304" y="107" height="16" width="129" html.valueishtml="0" name=phy_han_basis_t visible="0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=22 alignment="0" tabsequence=32766 border="5" color="255" x="159" y="8" height="16" width="72" format="[general]" html.valueishtml="0" name=loc_code__sys visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="255" x="159" y="30" height="16" width="72" format="[general]" html.valueishtml="0" name=tran_id visible="0" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Suggested Location Code:" border="0" color="0" x="8" y="8" height="16" width="147" html.valueishtml="0" name=loc_code__sys_t visible="1" font.face="Times New Roman" 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="Remarks:" border="0" color="0" x="49" y="255" height="16" width="106" html.valueishtml="0" name=remarks_t visible="0" font.face="Times New Roman" 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=11 alignment="0" tabsequence=32766 border="5" color="255" x="159" y="255" height="16" width="377" format="[general]" html.valueishtml="0" name=remarks visible="0" edit.limit=120 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Transaction Type:" border="0" color="0" x="49" y="277" height="16" width="106" html.valueishtml="0" name=transaction_type_t visible="1" font.face="Times New Roman" 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=11 alignment="0" tabsequence=32766 border="5" color="255" x="159" y="277" height="16" width="377" format="[general]" html.valueishtml="0" name=transaction_type visible="1" edit.limit=120 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Unit:" border="0" color="0" x="272" y="80" height="16" width="67" html.valueishtml="0" name=unit_t visible="0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=20 alignment="0" tabsequence=32766 border="5" color="255" x="343" y="80" height="16" width="54" format="[general]" html.valueishtml="0" name=unit visible="0" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
htmltable(border="1" )
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 )
......
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