Commit f8081c8d authored by pjain's avatar pjain

changed by sankara on 18/09/14 updatecd source of dashboard


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96366 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4200e6cf
/* PURPOSE : Scan loc_code and lon_no OR LOT_SL then Display Detail information of stock.
* AUTHOR : Created By Dhanraj Thakare On 05/09/2014 W14FSUN004
*
*/
package ibase.webitm.bean.wms;
import ibase.system.config.AppConnectParm;
import ibase.webitm.ejb.wms.InventoryDispInfoDBRemote;
import ibase.webitm.utility.ITMException;
import java.io.Serializable;
//import java.util.HashMap;
import javax.naming.InitialContext;
@SuppressWarnings("serial")
public class InventoryDispInfoBean implements Serializable{
private String locationCode ;
private String qty;
private String lonNo;
private String lotSl;
private String location ;
private String allQty;
private String holdQty;
private String noArt;
private String grossWt;
InventoryDispInfoDBRemote inventoryDispInfoRemote = null;
public InventoryDispInfoBean()
{
System.out.println("inside InventoryDispInfoBean Created");
InitialContext ctx = null;
try
{
AppConnectParm appConnect = new AppConnectParm();
ctx = new InitialContext(appConnect.getProperty());
inventoryDispInfoRemote = (InventoryDispInfoDBRemote) ctx.lookup("ibase/InventoryDispInfoDB/remote");
System.out.println("instance created");
}
catch(Exception e)
{
System.out.println("Exception in creating InventoryDispInfoRemote");
e.printStackTrace();
}
}
public InventoryDispInfoBean(String locationCode, String qty, String lonNo,
String lotSl, String location, String allQty, String holdQty,
String noArt, String grossWt) {
super();
this.locationCode = locationCode;
this.qty = qty;
this.lonNo = lonNo;
this.lotSl = lotSl;
this.location = location;
this.allQty = allQty;
this.holdQty = holdQty;
this.noArt = noArt;
this.grossWt = grossWt;
}
public String getLocationCode() {
return locationCode;
}
public void setLocationCode(String locationCode) {
this.locationCode = locationCode;
}
public String getQty() {
return qty;
}
public void setQty(String qty) {
this.qty = qty;
}
public String getLonNo() {
return lonNo;
}
public void setLonNo(String lonNo) {
this.lonNo = lonNo;
}
public String getLotSl() {
return lotSl;
}
public void setLotSl(String lotSl) {
this.lotSl = lotSl;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public String getAllQty() {
return allQty;
}
public void setAllQty(String allQty) {
this.allQty = allQty;
}
public String getHoldQty() {
return holdQty;
}
public void setHoldQty(String holdQty) {
this.holdQty = holdQty;
}
public String getNoArt() {
return noArt;
}
public void setNoArt(String noArt) {
this.noArt = noArt;
}
public String getGrossWt() {
return grossWt;
}
public void setGrossWt(String grossWt) {
this.grossWt = grossWt;
}
public String getStocklDataLoc(String location,String lotNo,String lpn,String site) throws ITMException
{
String stockData = "";
try
{
stockData = inventoryDispInfoRemote.getStocklDataLoc( location,lotNo,lpn,site) ;
System.out.println(" bean stockData1=====>"+stockData);
}
catch(Exception e)
{
System.out.println("Exception in InventoryDispInfoDB.getStocklDataLoc() in accessing EJB");
e.printStackTrace();
stockData = null;
}
System.out.println(" bean stockData2=====>"+stockData);
return stockData;
}
/*public String getStocklDataLpn(String lpnNo) throws ITMException
{
String stockData = "";
try
{
stockData = inventoryDispInfoRemote.getStocklDataLpn( lpnNo) ;
}
catch(Exception e)
{
System.out.println("Exception in InventoryDispInfoDB.getStocklDataLpn() in accessing EJB");
e.printStackTrace();
stockData = null;
}
return stockData;
}*/
}
package ibase.webitm.bean.wms;
import ibase.webitm.ejb.wms.*;
import ibase.system.config.AppConnectParm;
import ibase.webitm.utility.ITMException;
import java.io.Serializable;
import java.rmi.RemoteException;
import javax.naming.InitialContext;
@SuppressWarnings("serial")
public class LocationStockOccuBean implements Serializable
{
LocationStockOccupancyRemote locationStockOccupancyRemote = null;
public LocationStockOccuBean()
{
System.out.println("inside LocationStockOccuBean Created");
InitialContext ctx = null;
try
{
AppConnectParm appConnect = new AppConnectParm();
ctx = new InitialContext(appConnect.getProperty());
locationStockOccupancyRemote = (LocationStockOccupancyRemote) ctx.lookup("ibase/LocationStockOccupancy/remote");
System.out.println("instance created");
}
catch(Exception e)
{
System.out.println("Exception in creating LocationStockOccupancy");
e.printStackTrace();
}
}
public String getLocPhyArea() throws RemoteException, ITMException
{
String xmlData = "";
try
{
xmlData = locationStockOccupancyRemote.getLocPhyArea();
}
catch(Exception e)
{
System.out.println("Exception in LocationStockOccuBean.getLocPhyArea() in accessing EJB");
e.printStackTrace();
xmlData = null;
}
return xmlData;
}
public String getSelectedArea( )
{
String selectedEntity="";
try
{
selectedEntity = locationStockOccupancyRemote.getSelectedArea();
}
catch(Exception e)
{
System.out.println("Exception in LocationStockOccuBean.getSelectedArea() in accessing EJB");
e.printStackTrace();
selectedEntity = null;
}
return selectedEntity;
}
public String getLocDtl(String locPhyArea, String siteCode,String locationRange) throws RemoteException, ITMException
{
String xmlData ="";
try
{
xmlData = locationStockOccupancyRemote.getLocDtl(locPhyArea,siteCode,locationRange);
}
catch(Exception e)
{
System.out.println("Exception in LocationStockOccuBean.getLocDtl() in accessing EJB");
e.printStackTrace();
xmlData = null;
}
return xmlData;
}
}
package ibase.webitm.bean.wms;
import ibase.system.config.AppConnectParm;
import ibase.webitm.ejb.wms.*;
import ibase.webitm.utility.ITMException;
import java.io.Serializable;
import java.rmi.RemoteException;
import javax.naming.InitialContext;
import ibase.system.config.AppConnectParm;
import ibase.webitm.utility.ITMException;
import java.io.Serializable;
import java.rmi.RemoteException;
import javax.naming.InitialContext;
@SuppressWarnings("serial")
public class ReplTaskBean implements Serializable
{
ReplTaskShowDetailRemote replTaskDetailRemote = null;
public ReplTaskBean()
{
System.out.println("inside LocationStockOccuBean Created");
InitialContext ctx = null;
try
{
AppConnectParm appConnect = new AppConnectParm();
ctx = new InitialContext(appConnect.getProperty());
replTaskDetailRemote = (ReplTaskShowDetailRemote) ctx.lookup("ibase/ReplTaskShowDetail/remote");
System.out.println("instance created");
}
catch(Exception e)
{
System.out.println("Exception in creating ReplTaskShowDetailRemote");
e.printStackTrace();
}
}
public String getTaskDetails() throws RemoteException, ITMException
{
String xmlData = "";
try
{
xmlData = replTaskDetailRemote.getTaskDetails();
}
catch(Exception e)
{
System.out.println("Exception in ReplTaskBean.getTaskDetails() in accessing EJB");
e.printStackTrace();
xmlData = null;
}
return xmlData;
}
}
......@@ -142,6 +142,8 @@ public class DockTranPos extends ValidatorEJB implements DockTranPosLocal, DockT
" AND O.LINE_NO = R.LINE_NO__ORD "+
" AND W.WAVE_ID = WT.WAVE_ID " +
" AND S.PICK_ORDER = R.PICK_ORDER " +
//changed by sankara on 18/09/14 added join for one pick multiple pallet.
" AND S.TRAN_ID = R.TRAN_ID " +
" AND S.PICK_ORDER = WT.REF_ID "+
" AND ( R.QUANTITY - CASE WHEN R.DEALLOC_QTY IS NULL THEN 0 ELSE R.DEALLOC_QTY END) > 0 "+
" AND R.LOC_CODE <> R.LOC_CODE__TO ";
......
This diff is collapsed.
/* PURPOSE : Scan loc_code and lon_no OR LOT_SL then Display Detail information of stock.
* AUTHOR : Created By Dhanraj Thakare On 05/09/2014 W14FSUN004
*
*/
package ibase.webitm.ejb.wms;
import javax.ejb.Local;
import ibase.webitm.utility.ITMException;
@Local
public interface InventoryDispInfoDBLocal {
public String getStocklDataLoc(String location,String lotNo,String lpn,String site) throws ITMException;
/*public String getStocklDataLpn(String lpnNo) throws ITMException;*/
}
/* PURPOSE : Scan loc_code and lon_no OR LOT_SL then Display Detail information of stock.
* AUTHOR : Created By Dhanraj Thakare On 05/09/2014 W14FSUN004
*
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote;
@Remote
public interface InventoryDispInfoDBRemote
{
public String getStocklDataLoc(String location,String lotNo,String lpn,String site) throws ITMException;
/*public String getStocklDataLpn(String lpnNo) throws ITMException;*/
}
This diff is collapsed.
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import javax.ejb.Local;
@Local
public interface LocationStockOccupancyLocal extends ValidatorLocal
{
public String getLocPhyArea() throws RemoteException, ITMException;
public String getLocDtl(String locPhyArea,String loginCode,String locationRange) throws RemoteException, ITMException;
public String getSelectedArea() throws RemoteException, ITMException;
}
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import javax.ejb.Remote;
@Remote
public interface LocationStockOccupancyRemote extends ValidatorRemote
{
public String getLocPhyArea() throws RemoteException, ITMException;
public String getLocDtl(String locPhyArea,String loginCode,String locationRange) throws RemoteException, ITMException;
public String getSelectedArea() throws RemoteException, ITMException;
}
This diff is collapsed.
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import javax.ejb.Local;
@Local
public interface ReplTaskShowDetailLocal extends ValidatorLocal
{
public String getTaskDetails() throws RemoteException, ITMException;
}
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import javax.ejb.Local;
import javax.ejb.Remote;
@Remote
public interface ReplTaskShowDetailRemote extends ValidatorRemote
{
public String getTaskDetails() throws RemoteException, ITMException;
}
package ibase.webitm.utility.wms;
import ibase.scheduler.utility.interfaces.Schedule;
import java.rmi.RemoteException;
import java.util.*;
import java.text.*;
import java.util.Date;
import java.sql.*;
import java.io.*;
import org.omg.CORBA.ORB;
import org.w3c.dom.*;
import java.util.Properties;
import javax.swing.text.NumberFormatter;
import javax.xml.parsers.*;
import javax.ejb.*;
import javax.naming.InitialContext;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.ejb.dis.InvAllocTraceBean;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.TransIDGenerator;
import ibase.utility.BaseException;
import ibase.utility.CommonConstants;
import ibase.utility.UserInfoBean;
import ibase.ejb.*;
import ibase.system.config.*;
import java.text.DateFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.*;
import java.math.*;
import java.net.InetAddress;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
import ibase.ejb.*;
import ibase.system.config.*;
import ibase.utility.*;
import java.util.*;
import java.sql.*;
import java.io.*;
import java.rmi.RemoteException;
import javax.ejb.*;
import javax.naming.InitialContext;
import java.text.*;
import javax.xml.parsers.*;
import org.w3c.dom.*;
@javax.ejb.Stateless
public class LocationStockUpdate implements Schedule
{
//GenericUtility genericUtility = GenericUtility.getInstance();
//ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
//ConnDriver connDriver = new ConnDriver();
//CommonConstants commonConstants = new CommonConstants();
String chgUser = null;
String chgTerm = null;
static long count_records=0;
boolean isError = false;
static int Lineno =0;
public String schedulePriority( String wrkflwPriority )throws Exception
{
return "";
}
public String schedule(HashMap map)throws Exception
{
return "";
}
public String schedule(String scheduleParamXML)throws Exception
{
String siteCode = "";
ibase.utility.UserInfoBean userInfo = null;
try
{
System.out.println("************ ["+scheduleParamXML+"]");
userInfo = new ibase.utility.UserInfoBean( scheduleParamXML );
siteCode = userInfo.getSiteCode();
System.out.println("Site code = "+siteCode);
locationSchdule(siteCode,scheduleParamXML);
}
catch(Exception e)
{
throw new Exception(e);
}
return "";
}
public int locationSchdule(String siteCode , String scheduleParamXML) throws RemoteException,ITMException
{
String sql = "";
String updatesql = "";
String locCode = "";
String locPhyArea = "";
String locPhyRow = "";
String locPhyCol = "";
String locPhysicalStack = "";
String locPhyStack = "";
String invStat = "";
int count = 0;
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
GenericUtility genericUtility = GenericUtility.getInstance();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
conn.setAutoCommit(false);
DistCommon distComm = new DistCommon();
System.out.println(" Calling stock occupency process *************$$$$$$$$**********************");
sql = " SELECT LOC_CODE, INV_STAT FROM LOCATION ";
pstmt = conn.prepareStatement(sql);
rs=pstmt.executeQuery();
while(rs.next())
{
locCode = checkNull(rs.getString("LOC_CODE"));
invStat = checkNull(rs.getString("INV_STAT"));
System.out.println("locCode:->"+locCode);
System.out.println("invStat:->"+invStat);
if(locCode != null && locCode.trim().length() > 0 )
{
locPhyArea = invStat;
System.out.println("locPhyArea::::"+locPhyArea);
locPhyRow = locCode.substring(locCode.indexOf(locCode), locCode.indexOf(locCode)+3);
System.out.println("locPhyrow::::"+locPhyRow);
locPhyCol = locCode.substring(locCode.indexOf(locCode)+3, locCode.indexOf(locCode)+5);
System.out.println("locPhycol::::"+locPhyCol);
locPhyStack = locCode.substring(locCode.indexOf(locCode)+5);
System.out.println("locPhystack::::"+locPhyStack);
updatesql = " UPDATE LOCATION SET LOC_PHY_AREA = ?, LOC_PHY_ROW = ?, LOC_PHY_COL = ?,LOC_PHY_STACK = ? WHERE LOC_CODE = ? ";
pstmt = conn.prepareStatement(updatesql);
pstmt.setString(1,invStat.trim());
pstmt.setString(2,locPhyRow.trim());
pstmt.setString(3,locPhyCol.trim());
pstmt.setString(4,locPhyStack.trim());
pstmt.setString(5,locCode);
count = pstmt.executeUpdate();
if( count > 0)
{
System.out.println("update count:::"+count) ;
}
pstmt.close();
pstmt = null;
}
}
}
catch(Exception e)
{
isError = true;
try
{
conn.rollback();
}
catch (SQLException e1)
{
e1.printStackTrace();
}
System.out.println("******Exception"+e.getMessage());
}
finally
{
try
{
if(!isError)
{
conn.commit();
}
else
{
conn.rollback();
}
if(conn != null)
{
if(pstmt!=null)
{
pstmt.close();
pstmt=null;
}
if(rs!=null)
{
rs.close();
rs=null;
}
conn.commit();
conn.close();
}
}
catch(Exception ex)
{
isError = true;
System.out.println("Exception is "+ex.getMessage());
}
}
return count;
} //verify vendor schdule()
private String checkNull(String input)
{
if (input==null)
{
input="";
}
return input;
}
}
......@@ -49495,6 +49495,126 @@ commit;
commit;
--start changed by Dhanraj on 10-Sep-14 add row for new mobile menu.
Insert into ITM2MENU
(APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY)
values ('WMS',1,56,0,0,0,'/ibase/wms/jsp/InventoryDetailsInfo.jsp','Inventory Details','Inventory Details','WMS.1.56.0.0.0','e12_logo.gif',null,null,'I',null,null,null,'Y');
Insert into user_rights
(PROFILE_ID,APPLICATION,MENU_ROW,MENU_COL,MENU_SUBCOL,LEVEL_4,LEVEL_5,MENU_NAME,RIGHTS,ACC_FILT,DEF_FILT,OBJ_NAME,FAV_OPTION,FAV_ORDER)
values
('SUN','WMS',1,56,0,0,0,'Inventory Details','*',null,null,'/ibase/webitm/jsp/InventoryDetailsInfo.jsp',null,null);
Insert into user_obj_fav (OBJ_NAME,USER_ID,CHG_DATE,CHG_USER,CHG_TERM)
values ('/ibase/wms/jsp/InventoryDetailsInfo.jsp','BASE',to_date('30-JUL-14','DD-MON-RR'),'BASE','172.16.100.193');
Insert into user_obj_fav (OBJ_NAME,USER_ID,CHG_DATE,CHG_USER,CHG_TERM)
values('/ibase/wms/jsp/InventoryDetailsInfo.jsp','WMS',to_date('30-JUL-14','DD-MON-RR'),'WMS','172.16.100.182');
--End changed by Dhanraj on 10-Sep-14 add row for new mobile menu.
INSERT INTO dashboard_comp(
user_id ,
page_id ,
comp_id ,
title ,
uri ,
width ,
height ,
row_no ,
column_no ,
comp_type ,
comp_name ,
entity_type ,
entity_code )
VALUES (
'BASE ',
6,
1,
'Location Stock Occupency',
'/ibase/wms/jsp/LocationStockOccupancy.jsp',
200,
0,
0,
1,
NULL,
NULL,
'U',
'BASE ');
INSERT INTO dashboard_pages (
user_id ,
page_id ,
title ,
uri ,
image_uri ,
page_type ,
entity_type ,
entity_code ,
chg_user ,
chg_term ,
chg_date )
VALUES (
'BASE ',
6,
'Location Stock Occupency',
'NA',
'../images/compose.gif',
'T',
'U',
'BASE ',
'99999 ',
'127.0.0.1',
TO_DATE('31-05-2014 11:37:36','DD-MM-YYYY HH24:MI:SS'));
INSERT INTO dashboard_comp(
user_id ,
page_id ,
comp_id ,
title ,
uri ,
width ,
height ,
row_no ,
column_no ,
comp_type ,
comp_name ,
entity_type ,
entity_code )
VALUES (
'BASE ',
3,
1,
'Task Details',
'/ibase/wms/jsp/ReplTaskShowDetail.jsp',
204,
0,
0,
1,
NULL,
NULL,
'U',
'BASE ');
INSERT INTO dashboard_pages (
user_id ,
page_id ,
title ,
uri ,
image_uri ,
page_type ,
entity_type ,
entity_code ,
chg_user ,
chg_term ,
chg_date )
VALUES (
'BASE ',
3,
' Task Wise Activity',
'null',
NULL,
'T',
'U',
'BASE ',
'Base ',
'172.16.148.23',
fn_sysdate());
This diff is collapsed.
@charset "utf-8";
/* CSS Document */
/*CSS Reset*/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
margin:0;
padding:0;
}
table {
border-collapse:collapse;
border-spacing:0;
}
fieldset,img {
border:0;
}
address,caption,cite,code,dfn,em,strong,th,var,small {
font-style:normal;
font-weight:normal;
}
ol,ul {
list-style:none;
}
caption,th {
text-align:left;
}
h1,h2,h3,h4,h5,h6 {
font-weight:normal;
}
q:before,q:after {
content:'';
}
abbr,acronym { border:0;
}
/* General styling */
body {
/* background:#202020; */
font-family: NotethisRegular, Verdana, Arial, sans-serif;
font-size:125%;
/* color:#202020; */
}
h1, h2, h3, h4, h5, h6 {
font-family: Arial, Gadget, sans-serif;
font-size:1 em;
text-align:left;
}
#wrapper {
width:500px;
margin:0 auto;
text-align:center;
padding-top:50px;
}
/* Index Card Styling */
ul#index_cards {
margin-top:50px;
text-align:center;
}
ul#index_cards li {
background:url(/ibase/dashboard/scm/images/card_bg.jpg) repeat;
height:300px;
width :100%;
display:block;
float:left;
border:1px solid #666;
padding:0px 0px;
position:absolute;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-moz-box-shadow: 2px 2px 10px #000;
-webkit-box-shadow: 2px 2px 10px #000;
-moz-transition: all 0.5s ease-in-out;
-webkit-transition: all 0.5s ease-in-out;
}
#celltable {
color:blue;
font-family: Arial, Courier, sans-serif;
font-size:10pt;
text-align:left;
height:25px;
width:300px;
cursor:default;
}
#celltable th {
border: 1px solid grey;
}
#celltable tr {
border: 1px solid grey;
}
#celltable td {
border: 1px solid grey;
width:50px;
}
/* Hover States */
ul#index_cards li:hover {
-moz-transform: scale(1.1) ;
-webkit-transform: scale(1.1);
z-index:100;
}
/* Content Styling */
ul#index_cards li img {
margin-top:7px;
background:#eee;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 0px 0px 5px #aaa;
-webkit-box-shadow: 0px 0px 5px #aaa;
}
ul#index_cards li p {
margin-top:4px;
text-align:left;
line-height:28px;
}
/* add new css by birendra Pandey */
.tblheader
{
font-weight: bold;
}
.parentstktbl {
FONT-FAMILY: Arial;
FONT-SIZE: 10pt;
width: 400px;
font: Arial,sans-serif,courier;
font-size: 9pt;
margin-left:5;
margin-top:4;
}
.stocktbl {
background: none repeat scroll 0 0 #EFF5FB;
FONT-FAMILY: Arial;
FONT-SIZE: 10pt;
width: 400px;
font: Arial,sans-serif,courier;
font-size: 9pt;
/* border: 1px solid;*/
}
.cellempty {
background-color:white;
}
.itemcell {
background-color:green;
}
.locationtbl
{
font-size: 9pt;
font: Arial,sans-serif,courier;
}
.areatd{
font-size: 9pt;
font: Arial,sans-serif,courier;
text-align:left
}
.popUpFiltrTbl {
background: none repeat scroll 0 0 #EFF5FB;
FONT-FAMILY: Arial;
FONT-SIZE: 11pt;
width: 397px;
font: Arial,sans-serif,courier;
padding-bottom: 15px;
margin-left: 5px;
}
.img {
position:relative;
right:5px;
top:0px;
bottom: 2px;
height :18px;
width :30;
text-align:right;
}
.pagetitle {
padding :2;
border-spacing:2;
border: 1px solid lightgrey;
background-color: lightgrey;
width :100%;
height :20px;
position: relative;
text-align:center;
FONT-FAMILY: Arial;
FONT-SIZE: 14pt;
font-weight:bold;
}
@charset "utf-8";
/* CSS Document */
/*CSS Reset*/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
margin:0;
padding:0;
}
table {
border-collapse:collapse;
border-spacing:0;
}
fieldset,img {
border:0;
}
address,caption,cite,code,dfn,em,strong,th,var,small {
font-style:normal;
font-weight:normal;
}
ol,ul {
list-style:none;
}
caption,th {
text-align:left;
}
h1,h2,h3,h4,h5,h6 {
font-weight:normal;
}
q:before,q:after {
content:'';
}
abbr,acronym { border:0;
}
/* General styling */
body {
/* background:#202020; */
font-family: NotethisRegular, Verdana, Arial, sans-serif;
font-size:125%;
/* color:#202020; */
}
h1, h2, h3, h4, h5, h6 {
font-family: Arial, Gadget, sans-serif;
font-size:1 em;
text-align:left;
}
#wrapper {
width:500px;
margin:0 auto;
text-align:center;
padding-top:50px;
}
/* Index Card Styling */
ul#index_cards {
margin-top:50px;
text-align:center;
}
ul#index_cards li {
background:url(/ibase/dashboard/scm/images/card_bg.jpg) repeat;
height:300px;
width :300px;
display:block;
float:left;
border:1px solid #666;
padding:0px 0px;
position:absolute;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-moz-box-shadow: 2px 2px 10px #000;
-webkit-box-shadow: 2px 2px 10px #000;
-moz-transition: all 0.5s ease-in-out;
-webkit-transition: all 0.5s ease-in-out;
}
#celltable {
color:blue;
font-family: Arial, Courier, sans-serif;
font-size:10pt;
text-align:left;
height:25px;
width:300px;
cursor:default;
}
#celltable th {
border: 1px solid grey;
}
#celltable tr {
border: 1px solid grey;
}
#celltable td {
border: 1px solid grey;
width:50px;
}
/* Hover States */
ul#index_cards li:hover {
-moz-transform: scale(1.1) ;
-webkit-transform: scale(1.1);
z-index:100;
}
/* Content Styling */
ul#index_cards li img {
margin-top:7px;
background:#eee;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 0px 0px 5px #aaa;
-webkit-box-shadow: 0px 0px 5px #aaa;
}
ul#index_cards li p {
margin-top:4px;
text-align:left;
line-height:28px;
}
/* add new css by birendra Pandey */
.tblheader
{
font-weight: bold;
}
.parentstktbl {
FONT-FAMILY: Arial;
FONT-SIZE: 10pt;
width: 400px;
font: Arial,sans-serif,courier;
font-size: 9pt;
margin-left:5;
margin-top:4;
}
.stocktbl {
background: none repeat scroll 0 0 #EFF5FB;
FONT-FAMILY: Arial;
FONT-SIZE: 10pt;
width: 400px;
font: Arial,sans-serif,courier;
font-size: 9pt;
/* border: 1px solid;*/
}
.cellempty {
background-color:lightgray;
}
.itemcell {
background-color:#58FA58;
}
.locationtbl
{
font-size: 9pt;
font: Arial,sans-serif,courier;
}
.areatd{
font-size: 9pt;
font: Arial,sans-serif,courier;
text-align:left
}
table.tablesorter {
font-family:arial;
background-color: #CDCDCD;
margin:10px 0pt 15px;
font-size: 8pt;
width: 100%;
text-align: left;
}
/** Minimal stand-alone css for dropdownchecklist support
We highly recommend using JQuery ThemeRoller instead
*/
.ui-dropdownchecklist {
font-size: medium;
color: black;
}
.ui-dropdownchecklist-selector {
height: 20px;
border: 1px solid #ddd;
background: #fff;
}
.ui-state-hover, .ui-state-active {
border-color: #5794bf;
}
.ui-dropdownchecklist-dropcontainer {
background-color: #fff;
border: 1px solid #999;
}
.ui-dropdownchecklist-item {
}
.ui-state-hover {
background-color: #39f;
}
.ui-state-disabled label {
color: #ccc;
}
.ui-dropdownchecklist-group {
font-weight: bold;
font-style: italic;
}
.ui-dropdownchecklist-indent {
padding-left: 7px;
}
/* Font size of 0 on the -selector and an explicit medium on -text required to eliminate
descender problems within the containers and still have a valid size for the text */
.ui-dropdownchecklist-selector-wrapper {
vertical-align: middle;
font-size: 0px;
}
.ui-dropdownchecklist-selector {
padding: 1px 2px 2px 2px;
font-size: 0px;
height:16px;
}
.ui-dropdownchecklist-text {
font-size: medium;
font-family: Arial, Courier, sans-serif;
font-size:10pt;
line-height: 20px;
}
.ui-dropdownchecklist-group {
padding: 1px 2px 2px 2px;
}
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
function onLoadFun()
{
document.getElementById("loading").style.visibility = "hidden";
document.getElementById("loading").innerHTML = "<img id=\"loading-image\" src=\"../images/loading.gif\" alt=\"Loading...\"/>";
doOperation("VIEW");
}
function doAction(action)
{
if((document.getElementById("comment").value != "" && document.getElementById("comment").value != null) || action == "VIEW")
{
doOperation(action);
}
}
function doOperation(action)
{
var xmlHttpReq = false;
var self = this;
// Xhr per Mozilla/Safari/Ie7
if (window.XMLHttpRequest)
{
self.xmlHttpReq = new XMLHttpRequest();
}
// per tutte le altre versioni di IE
else if (window.ActiveXObject)
{
self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
}
self.xmlHttpReq.open("POST", "/ibase/E12TransCommentsServlet", true);
self.xmlHttpReq.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
self.xmlHttpReq.onreadystatechange = function()
{
if (self.xmlHttpReq.readyState == 4)
{
if(action == "VIEW")
{
document.getElementById("loading").style.visibility = "hidden";
}
showMessage(self.xmlHttpReq.responseText,action);
}
else
{
if(action == "VIEW")
{
document.getElementById("loading").style.visibility = "visible";
}
}
}
self.xmlHttpReq.send(getParamValue(action));
}
function getParamValue(action)
{
var paramString = "";
paramString = "REF_SER="+document.getElementById("REF_SER").value;
paramString += "&TRAN_ID="+document.getElementById("TRAN_ID").value;
if(action == "ADD")
{
paramString += "&ACTION=ADD";
paramString += "&COMMENT="+document.getElementById("comment").value;
}
else
{
paramString += "&ACTION=VIEW";
}
return paramString;
}
function showMessage(msg,action)
{
if (window.DOMParser)
{
parser=new DOMParser();
xmlDoc=parser.parseFromString(msg,"text/xml");
}
else // Internet Explorer
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.loadXML(msg);
}
if(action == "ADD")
{
if(xmlDoc.getElementsByTagName("RESULT")[0].childNodes[0].nodeValue == "Success")
{
parent.E12ExistingComments.location.reload();
}
}
else
{
var doc = xmlDoc.getElementsByTagName("COMMENTS")[0].childNodes;
if(doc != null)
{
if(doc.length == 0)
{
document.getElementById("viewCommentsDivSub2").innerHTML = "<hr/><div>No Comments.</div><hr/>";
}
else
{
document.getElementById("viewCommentsDivSub2").innerHTML = "<hr/>";
for ( i = 0 ; i < doc.length ; i++)
{
value = doc[i].childNodes[0];
if(value != undefined || value != null)
{
document.getElementById("viewCommentsDivSub2").innerHTML += "<div class=\"comment\" id=\"comment\">" + doc[i].childNodes[0].nodeValue + "</div><hr/>"
}
}
}
}
else
{
document.getElementById("viewCommentsDivSub2").innerHTML = "<hr/><div>No Comments.</div><hr/>";
}
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
//check for the validity of the password
function isPassVaild(currPass, newPass, confirmPass)
{
var isValid = false;
//check old password
//Changed by Gayatri Yadav on 30-Sept-2010 [ WI01SUN006 ] [ To implement SHA-256 while login ]
//if ( (currPass == currPwd))
if ( (currPass == currPwd) || (currPwd == sha256_digest(currPass)) )
{
if (newPass == confirmPass)
{
if (newPass.toLowerCase().indexOf("password") == -1)
{
//check the length of the new password
if(newPass.length < minPwdLen )
{
//added by Kiran G for Russian SErver
//alert("Minimum password length is "+minPwdLen+" characters !");
var minPasswdLen = "Minimum password length is".toLocaleString();
var characters = "characters !".toLocaleString();
alert(minPasswdLen+" "+minPwdLen+" "+characters);
}
else
{
if (checkContents(newPass))
{
var toBeChecked = (trim(fname.toLowerCase())== "")?true:false;
//check whether name is used in the password or not
if (toBeChecked || newPass.toLowerCase().indexOf(trim(fname.toLowerCase())) == -1 )
{
toBeChecked = (trim(mname.toLowerCase())== "")?true:false;
if (toBeChecked || newPass.toLowerCase().indexOf(trim(mname.toLowerCase())) == -1)
{
toBeChecked = (trim(lname.toLowerCase())== "")?true:false;
if (toBeChecked || newPass.toLowerCase().indexOf(trim(lname.toLowerCase())) == -1)
{
if(newPass.toLowerCase().indexOf(trim(empCode.toLowerCase())) == -1)
{
if (currPass == newPass)
{
//alert("New Password and Old Password are same, choose different password");
//added by Kiran G for Russian Server
var passwdSame= "New Password and Old Password are same, choose different password".toLocaleString();
alert(passwdSame);
}
else
{
isValid = true;
}
}
else
{
//alert("Employee code cannot be used in the password");
//added by Kiran G for Russian Server
var empCodePasswd = "Employee code cannot be used in the password".toLocaleString();
alert(empCodePasswd);
}
}
else
{
//alert("Last Name cannot be used as password, select another password");
//added by Kiran G for Russian Server
var lastNamePasswd="Last Name cannot be used as password, select another password".toLocaleString();
alert(lastNamePasswd);
}
}
else
{
//alert("Middle Name cannot be used as password, select another password");
//added by Kiran G for Russian Server
var middleNamePasswd="Middle Name cannot be used as password, select another password".toLocaleString();
alert(middleNamePasswd);
}
}
else
{
//alert("First Name cannot be used as password, select another password");
//added by Kiran G for Russian Server
var firstNamePasswd="First Name cannot be used as password, select another password";
alert(firstNamePasswd.toLocaleString());
}
}
else
{
//alert("Password must contains atleast one Uppercase character, Lowercase character and a Digit !");
//added by Kiran G for Russian Server
var passwdContains="Password must contains atleast one Uppercase character, Lowercase character and a Digit !".toLocaleString();
alert(passwdContains);
}
}
}
else
{
//alert("The word password cannot be used as password, select another password");
//added by Kiran G for Russian Server
var passwd="The word password cannot be used as password, select another password".toLocaleString();
alert(passwd);
}
}
else
{
//alert("New Password and Confirm Password do not match");
//added by Kiran G for Russian Server
var passwdNotMatch="New Password and Confirm Password do not match".toLocaleString();
alert(passwdNotMatch);
}
}
else
{
/*alert("Old password is incorrect !");*/
//added by Kiran G for Russian Server
var oldPasswdInCorrect= "OldPasswordisincorrect!";
alert(oldPasswdInCorrect.toLocaleString());
}
return isValid;
}
//password must contain atleast one uppercase character, a lowercase charater and a digit
function checkContents(newPass)
{
var isUpperCase = false;
var isLowerCase = false;
var isDigit = false;
for(var cnt=0; cnt<newPass.length; cnt++)
{
var letter = newPass.charAt(cnt);
if (!isUpperCase && letter >= 'A' && letter <='Z')
{
isUpperCase = true;
}
else if (!isLowerCase && letter >= 'a' && letter <= 'z')
{
isLowerCase = true;
}
else if (!isDigit && letter >= 0 && letter <= 9)
{
isDigit = true;
}
}
if (isUpperCase && isLowerCase && isDigit)
return true;
else
return false;
}
function ltrim(s)
{
return s.replace( /^\s*/, "" );
}
function rtrim ( s )
{
return s.replace( /\s*$/, "" );
}
function trim ( s )
{
return rtrim(ltrim(s));
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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