Commit a4de9eaf authored by caluka's avatar caluka

changes done for Material Requirement HTML wizard Transaction[MF3KSUN005]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95014 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c938b9b4
package ibase.webitm.ejb.mfg;
import ibase.utility.*;
import ibase.system.config.*;
import ibase.webitm.ejb.*;
import ibase.webitm.ejb.mfg.RequirementICRemote;
import ibase.webitm.utility.*;
import javax.servlet.http.*;
import java.io.*;
import javax.naming.InitialContext;
public class ReqITMWizardPopHelpBean
{
private ibase.utility.UserInfoBean userInfo = null;
private HttpSession sessionCtx = null;
ITMWizardStatefulRemote itmWizardRemote = null;
private String objName = "";
private String user_lang ="en";
private String user_country = "US";
public ReqITMWizardPopHelpBean ( String objName, HttpSession sessionCtx ) throws ITMException
{
try
{
this.objName = objName;
this.sessionCtx = sessionCtx;
this.userInfo = ( ibase.utility.UserInfoBean ) this.sessionCtx.getAttribute("USER_INFO");
this.user_lang = this.userInfo.getUserLanguage();
this.user_country = this.userInfo.getUserCountry();
if( this.itmWizardRemote == null )
{
InitialContext ctx = new InitialContext( new AppConnectParm().getProperty() );
this.itmWizardRemote = (ibase.webitm.ejb.ITMWizardStatefulRemote)ctx.lookup("ibase/ITMWizardStatefulEJB/remote");
this.itmWizardRemote.setUserInfo( this.userInfo );
this.itmWizardRemote.loadFormsMetaData( this.objName, "1", this.objName+"21", this.userInfo.getEmpCode(), this.userInfo.getProfileId() );
}
}
catch (ITMException itme)
{
itmWizardRemote.remove();
itmWizardRemote = null;
throw itme;
}
catch (Exception e)
{
itmWizardRemote.remove();
itmWizardRemote = null;
throw new ITMException(e);
}
}
public ReqITMWizardPopHelpBean () throws ITMException
{
}
//get item code pop help
public String getItemCodeList( String itemCode,String search ,String dbID,String siteCode) throws ITMException
{
String itemCodeData = "";
RequirementICRemote requirementICRemote = null;
try
{
InitialContext ctx = new InitialContext( new AppConnectParm().getProperty() );
requirementICRemote = (ibase.webitm.ejb.mfg.RequirementICRemote)ctx.lookup("ibase/RequirementIC/remote");
itemCodeData = requirementICRemote.getItemCodeList( itemCode ,search,dbID,siteCode);
requirementICRemote = null;
System.out.println("itemCodeData=="+itemCodeData);
String xslFileName = getXSLFileName( "requirement_item_code_wiz_" + this.user_lang + "_" + this.user_country + ".xsl" );
//String xslFileName = getXSLFileName( "requirement_item_code_wiz_en_US.xsl" );
itemCodeData = ( new ibase.webitm.utility.GenericUtility() ).transformToString( xslFileName, itemCodeData, CommonConstants.APPLICATION_CONTEXT + File.separator + "temp", "Output", ".html" );
System.out.println("itemCodeData==="+itemCodeData);
}
catch ( Exception e )
{
throw new ITMException(e);
}
finally
{
if ( requirementICRemote != null )
{
requirementICRemote = null;
}
}
return itemCodeData;
}
private String getXSLFileName( String xslFileName )throws ITMException
{
String retFileName = null;
try
{
String defaultPath = null;
if( CommonConstants.APPLICATION_CONTEXT != null )
{
defaultPath = CommonConstants.APPLICATION_CONTEXT + CommonConstants.ITM_CONTEXT + File.separator;
}
else
{
defaultPath = ".." + File.separator + "webapps" + File.separator + "ibase" + File.separator + CommonConstants.ITM_CONTEXT + File.separator;
}
File xslPath = new File( defaultPath + File.separator + "xsl" + File.separator + CommonConstants.THEME + File.separator + "WIZARD");
if ( !xslPath.exists() )
{
xslPath.mkdir();
}
System.out.println( " xslPath [" + xslPath +"] xslFileName ["+xslFileName +"]");
File xslFile = new File(xslPath , xslFileName);
if( xslFile.exists() )
{
retFileName = xslFile.getAbsolutePath();
}
else
{
throw new ITMException( new Exception( retFileName + " Wizard XSL file Not Found") );
}
}
catch (Exception e)
{
throw new ITMException(e);
}
return retFileName;
}
}
...@@ -24,4 +24,5 @@ public interface RequirementICLocal extends ValidatorLocal ...@@ -24,4 +24,5 @@ public interface RequirementICLocal extends ValidatorLocal
public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException; public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String getItemCodeList(String itemCode, String search, String dbID,String siteCode)throws ITMException;
} }
...@@ -25,4 +25,7 @@ public interface RequirementICRemote extends ValidatorRemote ...@@ -25,4 +25,7 @@ public interface RequirementICRemote extends ValidatorRemote
public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException; public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String getItemCodeList(String itemCode, String search, String dbID,String siteCode)throws ITMException;
} }
...@@ -1220,6 +1220,10 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe ...@@ -1220,6 +1220,10 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
// (String)siteMapEntry.getKey()); // (String)siteMapEntry.getKey());
int ctr; int ctr;
for (ctr = 0; ctr < itemArr.size(); ctr++) for (ctr = 0; ctr < itemArr.size(); ctr++)
{
if(isRequirement)
{
if(siteItemList.contains((String) siteMapEntry.getKey()+(String) itemArr.get(ctr)))//Added by chandrashekar 0n 02-05-2014
{ {
System.out.println("(String)itemArr.get(ctr)--" + (String) itemArr.get(ctr)); System.out.println("(String)itemArr.get(ctr)--" + (String) itemArr.get(ctr));
suppSour = getSuppSour((String) siteMapEntry.getKey(), (String) itemArr.get(ctr)); suppSour = getSuppSour((String) siteMapEntry.getKey(), (String) itemArr.get(ctr));
...@@ -1261,6 +1265,50 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe ...@@ -1261,6 +1265,50 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
hmap.clear(); hmap.clear();
} }
} }
}else if(isDetailReq)
{
System.out.println("(String)itemArr.get(ctr)--" + (String) itemArr.get(ctr));
suppSour = getSuppSour((String) siteMapEntry.getKey(), (String) itemArr.get(ctr));
suppSour = suppSour.trim();
bomCode = getBomCode((String) siteMapEntry.getKey(), (String) itemArr.get(ctr));
System.out.println("SuppSour---" + suppSour + "bomCode--" + bomCode);
// System.out.println("populateAllItem(): Supp_Sour:..." +
// suppSour + " Bom Code:..." + bomCode);
if (((suppSour != null) && (!suppSour.equals("P"))) && (bomCode != null))
{
Set levelBom = new HashSet();
level = 1;
levelBom.add(bomCode);
hmap.put(new Integer(level), levelBom);
// itemHashMap.put( (String)itemArr.get(ctr), new
// Integer(count) );
System.out.println("itemArr.get(ctr)--" + itemArr.get(ctr));
itemList.add((String) itemArr.get(ctr));
// System.out.println("Exploding BOM for site : " +
// (String)siteMapEntry.getKey() + " Item : " +
// (String)itemArr.get(ctr) + " BOM : " + bomCode);
// Added by Jiten 07/11/06
cyclicItem.bomCode = bomCode;
cyclicItem.itemCode = (String) itemArr.get(ctr);
cyclicItem.siteCode = (String) siteMapEntry.getKey();
// end
validBomItemCode = cyclicItem.itemCode; // 19-01-2007
// manoharan
cyclicCheck = new HashSet();
errString = bomExplode((String) siteMapEntry.getKey(), bomCode);
itemHashMap.clear();
if (errString != null && errString.trim().length() > 0)
{
System.out.println("Error While Calling method bomExplode(String, String):..." + errString);
return errString;
}
level = 0;
hmap.clear();
}
}
}
itemList.clear(); itemList.clear();
} }
......
<%@page import = "java.lang.*,java.util.*, ibase.utility.*, java.io.* , ibase.webitm.utility.ITMException"%>
<jsp:useBean id="reqitmwizardlist" class="ibase.webitm.ejb.mfg.ReqItmWizardListBean" scope="session"></jsp:useBean>
<%
System.out.println("@@@@@@@@@ In REQITMWizardList.jsp @@@@@@@@@@@@@@@@");
// StrgMeetWizardBean itmWizardBean = new StrgMeetWizardBean();
//System.out.println("request.getParameter(\"SELECTED_ITEM\") "+request.getParameter("SELECTED_ITEM"));
System.out.println("request.getParameter(\"item_code\") "+request.getParameter("item_code"));
// StrgCode passed for future implementation of strgCustmer wise itemList
// String salesPers = ( String ) request.getParameter("SALES_PERS");
// String strgCode = ( String ) request.getParameter("STRG_CODE");
//String selectedItems = ( String ) request.getParameter("SELECTED_ITEM");
String selectedItems = ( String ) request.getParameter("item_code");
//String divData = ( String ) request.getParameter("div_data");// div_data
//String xslFileName = getXSLFileName("mrp_run_wiz4_wiz_en_US_A.xsl");
System.out.println("@@@@@@@@@@@@selectedItems["+selectedItems+"]");
//String htmlData = ( new ibase.webitm.utility.GenericUtility() ).transformToString( xslFileName, selectedSampleItems, CommonConstants.APPLICATION_CONTEXT + File.separator + "temp", "Output", ".html" );
// String htmlData = MRPWizardBean.getSalesPersSampleItemList( salesPers, strgCode, selectedItems, selectedSampleItems );
reqitmwizardlist.setItemchange(selectedItems);
System.out.println("@@@@@@@@@@@@complete--------------");
%>
<%System.out.println("XXXXXXXXXXXXXXXXXXXX MRPExprotExcel.jsp XXXXXXXXXXXXXXXXXXXX");%>
<%-- <%@page import = "ibase.webitm.ejb.mfg.ReqViewMrpBean"%> --%>
<jsp:useBean id="ReqViewMrpBean" class="ibase.webitm.ejb.mfg.ReqViewMrpBean" scope="session"></jsp:useBean>
<%@page import = "java.sql.*,ibase.utility.*,java.util.List,java.util.Collection,java.util.ArrayList"%>
<%@page import="java.io.FileOutputStream,java.io.File"%>
<%@page import="org.apache.poi.hssf.usermodel.*"%>
<%@page import="javax.xml.parsers.DocumentBuilderFactory,javax.xml.parsers.DocumentBuilder,org.w3c.dom.*"%>
<%@ page import="org.apache.poi.hssf.util.HSSFColor"%>
<%@ page contentType="application/excel" language="java" %>
<%!
int rownum = 0;
HSSFSheet firstSheet;
HSSFWorkbook workbook;
HSSFRow headerRow;
HSSFFont my_font;
HSSFCellStyle my_style;
%>
<%
workbook = new HSSFWorkbook();
firstSheet = workbook.createSheet("REQUIREMENT");
headerRow = firstSheet.createRow(rownum);
headerRow.setHeightInPoints(40);
HSSFSheet firstSheet = workbook.createSheet();
my_style = workbook.createCellStyle();
my_font=workbook.createFont();
my_font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
my_font.setColor(HSSFColor.BLACK.index);
my_style.setFont(my_font);
List<String> headerRow = new ArrayList<String>();
headerRow.add("SITECODE");
headerRow.add("ITEMCODE");
headerRow.add("SUPP SOURCE");
headerRow.add("DEMAND");
headerRow.add("SUPPLY");
headerRow.add("DUE DATE");
headerRow.add("PLAN SUPPLY");
headerRow.add("RUNNING DEMAND");
headerRow.add("RUNNING SUPPLY");
headerRow.add("RUNNING PLAN SUPPLY");
headerRow.add("INDIPENDENT DEMAND");
headerRow.add("BOM CODE");
headerRow.add("ORDER OPTION");
headerRow.add("BATCH QTY TYPE");
headerRow.add("UNIT");
headerRow.add("MIN ORDER QTY");
headerRow.add("INTEGRAL QTY");
headerRow.add("MAX QTY");
headerRow.add("MIN QTY");
headerRow.add("REORDER QTY");
headerRow.add("YIELD PERC");
headerRow.add("MIN PLAN PERC");
headerRow.add("BATCH QTY");
headerRow.add("PURCHASE RATE");
headerRow.add("PURCHASE LEAD TIME");
headerRow.add("QC LEAD TIME");
headerRow.add("MFG LEAD TIME");
headerRow.add("DESCRIPTION");
headerRow.add("STOCK QTY");
headerRow.add("OTHER SUPPLY");
headerRow.add("PENDING PO");
headerRow.add("PENDING DO");
headerRow.add("PENDING INDENT");
headerRow.add("PENDING DR");
List<List> firstRow = new ArrayList<List>();
System.out.println("request.getParameter(\"SAVE_SAMPLE_DATA\") "+request.getParameter("SAVE_SAMPLE_DATA"));
String saveSampleData = ( String ) request.getParameter("SAVE_SAMPLE_DATA");
System.out.println("@@@@@@@@@@@@saveSampleData["+saveSampleData+"]");
firstRow = ReqViewMrpBean.preSaveForm(saveSampleData);
for(int k=0; k<firstRow.size(); k++)
{
if(k==firstRow.size()-1)
{
List<String> titleRowvalues = new ArrayList<String>();
titleRowvalues= firstRow.get(k);
String sitecodefrom= titleRowvalues.get(0);
String sitecodeto= titleRowvalues.get(1);
List<String> titleRow1 = new ArrayList<String>();
titleRow1.add("SITECODE FROM");
titleRow1.add(sitecodefrom);
titleRow1.add("SITECODETO");
titleRow1.add(sitecodeto);
ExcelExport(titleRow1,headerRow,firstRow) ;
ExcelExport();
}
}
%>
<%! void ExcelExport(){
FileOutputStream fos = null;
try {
fos=new FileOutputStream(new File("/home/base/jboss-5.1.0.GA/EDI/ReqMRPExcelSheet.xls"));
workbook.write(fos);
} catch (Exception e) {
e.printStackTrace();
}
}
%>
<%! void ExcelExport(List<String> r1,List<String> l1,List<List> v1) throws Exception {
HSSFRow row=null;
HSSFCell cell=null;
int rownum = 0;
try {
row = firstSheet.createRow(rownum);
int mid=l1.size()/2;
for(int n=0; n<r1.size(); n++)
{
cell = row.createCell((short) mid);
cell.setCellValue(r1.get(n));
cell.setCellStyle(my_style);
mid++;
}
rownum++;
List<String> v2 = new ArrayList<String>();
row = firstSheet.createRow(rownum);
for(int k=0; k<l1.size(); k++)
{
cell = row.createCell((short) k);
cell.setCellValue(l1.get(k));
cell.setCellStyle(my_style);
}
rownum++;
for (int x = 0; x< v1.size()-1; x++)
{
row = firstSheet.createRow(rownum);
v2= v1.get(x);
for(int y=0; y<v2.size(); y++)
{
cell = row.createCell((short) y);
cell.setCellValue(v2.get(y));
}
rownum++;
}
} catch (Exception e) {
e.printStackTrace();
} finally {
}
}
%>
<%System.out.println("XXXXXXXXXXXXXXXXXXXX RunMRPExprotExcel.jsp XXXXXXXXXXXXXXXXXXXX");%>
<%-- <%@page import = "ibase.webitm.ejb.mfg.ReqViewMrpBean"%> --%>
<jsp:useBean id="RunMrpViewBean" class="ibase.webitm.ejb.mfg.RunMrpViewBean" scope="session"></jsp:useBean>
<%@page import = "java.sql.*,ibase.utility.*,java.util.List,java.util.Collection,java.util.ArrayList"%>
<%@page import="java.io.FileOutputStream,java.io.File"%>
<%@page import="org.apache.poi.hssf.usermodel.*"%>
<%@page import="javax.xml.parsers.DocumentBuilderFactory,javax.xml.parsers.DocumentBuilder,org.w3c.dom.*"%>
<%@ page import="org.apache.poi.hssf.util.HSSFColor"%>
<%@ page contentType="application/excel" language="java" %>
<%!
int rownum = 0;
HSSFSheet firstSheet;
HSSFWorkbook workbook;
HSSFRow headerRow;
HSSFFont my_font;
HSSFCellStyle my_style;
%>
<%
workbook = new HSSFWorkbook();
firstSheet = workbook.createSheet("RUN MRP");
headerRow = firstSheet.createRow(rownum);
headerRow.setHeightInPoints(40);
HSSFSheet firstSheet = workbook.createSheet();
my_style = workbook.createCellStyle();
my_font=workbook.createFont();
my_font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
my_font.setColor(HSSFColor.BLACK.index);
my_style.setFont(my_font);
List<String> titleRow = new ArrayList<String>();
titleRow.add("PERIOD FROM");
titleRow.add("PERIOD TO");
titleRow.add("SITE CODE FROM");
titleRow.add("SITE CODE TO");
List<String> headerRow = new ArrayList<String>();
headerRow.add("SALE ORDER");
headerRow.add("LINE NO");
headerRow.add("SITE CODE");
headerRow.add("ITEM CODE");
headerRow.add("ITEM DESCRIPTION");
headerRow.add("LOTNO");
headerRow.add("LOTSL");
headerRow.add("LOCATION CODE");
headerRow.add("TRANSER");
headerRow.add("TRAN ID");
headerRow.add("REF LINE NO");
headerRow.add("UNIT");
headerRow.add("QUANTITY REQUIRED");
headerRow.add("ALLOCATION QTY");
headerRow.add("STOCK QUANTITY");
headerRow.add("AVILABLE SUPPLY");
headerRow.add("SOURCE SUPPLY");
headerRow.add("PLANNED QTY");
headerRow.add("PARENT ITEM");
List<List> firstRow = new ArrayList<List>();
String saveSampleData = ( String ) request.getParameter("SAVE_SAMPLE_DATA");
System.out.println("@@@@@@@@@@@@saveSampleData["+saveSampleData+"]");
firstRow = RunMrpViewBean.preSaveForm(saveSampleData);
for(int k=0; k<firstRow.size(); k++)
{
if(k==firstRow.size()-1)
{
List<String> titleRowvalues = new ArrayList<String>();
titleRowvalues= firstRow.get(k);
String periodfrom= titleRowvalues.get(0);
String periodto= titleRowvalues.get(1);
String sitecodefrom= titleRowvalues.get(2);
String sitecodeto= titleRowvalues.get(3);
List<String> titleRow1 = new ArrayList<String>();
titleRow1.add("PERIOD FROM");
titleRow1.add(periodfrom);
titleRow1.add("PERIOD FROM");
titleRow1.add(periodto);
List<String> titleRow2 = new ArrayList<String>();
titleRow2.add("SITECODE FROM");
titleRow2.add(sitecodefrom);
titleRow2.add("SITECODETO");
titleRow2.add(sitecodeto);
ExcelExport(titleRow1,titleRow2,headerRow,firstRow) ;
ExcelExport();
}
}
%>
<%! void ExcelExport(){
FileOutputStream fos = null;
try {
fos=new FileOutputStream(new File("/home/base/jboss-5.1.0.GA/EDI/RunMRPExcelSheet.xls"));
workbook.write(fos);
} catch (Exception e) {
e.printStackTrace();
}
}
%>
<%! void ExcelExport(List<String> r1,List<String> rv,List<String> l1,List<List> v1) throws Exception {
/* HSSFCell cell=null; */
HSSFRow row=null;
HSSFCell cell=null;
int rownum = 0;
try {
row = firstSheet.createRow(rownum);
int mid=l1.size()/2;
for(int n=0; n<r1.size(); n++)
{
cell = row.createCell((short) mid);
cell.setCellValue(r1.get(n));
cell.setCellStyle(my_style);
mid++;
}
rownum++;
row = firstSheet.createRow(rownum);
int mid1=l1.size()/2;
for(int b=0; b<rv.size(); b++)
{
cell = row.createCell((short) mid1);
cell.setCellValue(rv.get(b));
cell.setCellStyle(my_style);
mid1++;
}
rownum++;
row = firstSheet.createRow(rownum);
for(int k=0; k<l1.size(); k++)
{
cell = row.createCell((short) k);
cell.setCellValue(l1.get(k));
cell.setCellStyle(my_style);
}
rownum++;
List<String> v2 = new ArrayList<String>();
for (int x = 0; x< v1.size()-1; x++)
{
row = firstSheet.createRow(rownum);
v2= v1.get(x);
for(int y=0; y<v2.size(); y++)
{
cell = row.createCell((short) y);
cell.setCellValue(v2.get(y));
}
rownum++;
}
} catch (Exception e) {
e.printStackTrace();
} finally {
}
}
%>
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 ('MRP',1,3,0,0,0,'/ibase/webitm/jsp/SelectMRPWiz.jsp','Select MRP Wizard',' Select MRP Wizard','MRP.1.3.0.0.0',null,null,null,'I',null,null,null,null);
Insert into system_events (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT)
values ('requirement','pre_validate','1','prv_requirement',null,'0',sysdate,'base','base','2','EJB','RequirementIC',null);
update SYSTEM_EVENTS set EVENT_CODE='pre_navigate' WHERE OBJ_NAME='requirement' and EVENT_CODE='pre_navigate_next' ;
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 ('MRP',1,2,0,0,0,'/ibase/webitm/jsp/E12WizardPage.jsp?OBJ_NAME=requirement&amp;FORM_NO=1','Material Requirement','Material Requirement','MRP.1.2.0.0.0',null,null,null,'I',null,null,null,'Y');
Insert into USER_OBJ_FAV (OBJ_NAME,USER_ID,CHG_DATE,CHG_USER,CHG_TERM)
values ('requirement','BASE',SYSDATE,'BASE','BASE');
UPDATE USER_RIGHTS SET FAV_OPTION = 'Y' where OBJ_NAME='requirement' AND PROFILE_ID='SUN';
$PBExportHeader$d_requirement21.srd $PBExportHeader$d_requirement21.srd
release 9; release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no ) datawindow(units=0 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" ) summary(height=0 color="536870912" )
footer(height=0 color="536870912" ) footer(height=0 color="536870912" )
detail(height=66 color="536870912" ) detail(height=280 color="536870912" )
table(column=(type=char(10) updatewhereclause=no name=site_code__to dbname="site_code__fr" ) table(column=(type=char(10) updatewhereclause=yes name=site_code__fr dbname="site_code__fr" )
column=(type=char(10) updatewhereclause=no name=site_code__to dbname="site_code__to" ) column=(type=char(10) updatewhereclause=yes name=site_code__to dbname="site_code__to" )
) )
text(band=detail alignment="1" text="Site Code From:" border="0" color="33554432" x="24" y="14" height="16" width="94" html.valueishtml="0" name=site_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" height.autosize=yes) text(band=detail alignment="1" text="Site Code Fr:" border="0" color="33554432" x="37" y="52" height="64" width="402" html.valueishtml="0" name=site_code__fr_t visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Site Code To :" border="0" color="33554432" x="242" y="14" height="16" width="94" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" height.autosize=yes) text(band=detail alignment="1" text="Site Code To:" border="0" color="33554432" x="818" y="52" height="64" width="402" html.valueishtml="0" name=site_code__to_t visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="33554432" x="122" y="14" height="16" width="76" format="[general]" html.valueishtml="0" name=site_code__fr visible="1" height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="33554432" x="475" y="48" height="76" width="274" format="[general]" html.valueishtml="0" name=site_code__fr visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=1 alignment="0" tabsequence=20 border="5" color="33554432" x="341" y="14" height="16" width="76" format="[general]" html.valueishtml="0" name=site_code__to visible="1" height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=20 border="5" color="33554432" x="1257" y="48" height="76" width="274" format="[general]" html.valueishtml="0" name=site_code__to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
htmltable(border="1" ) htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
This diff is collapsed.
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Sybase_eDataWindow> <Sybase_eDataWindow>
<Release>9</Release> <Release>9</Release>
<BaseDefinition> <BaseDefinition>
<units>1</units> <units>0</units>
<timer_interval>0</timer_interval> <timer_interval>0</timer_interval>
<color>67108864</color> <color>67108864</color>
<processing>0</processing> <processing>0</processing>
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
<printername></printername> <printername></printername>
<orientation>0</orientation> <orientation>0</orientation>
<margin> <margin>
<left>24</left> <left>110</left>
<right>24</right> <right>110</right>
<top>24</top> <top>96</top>
<bottom>24</bottom> <bottom>96</bottom>
</margin> </margin>
<paper> <paper>
<source>0</source> <source>0</source>
...@@ -39,19 +39,19 @@ ...@@ -39,19 +39,19 @@
<color>536870912</color> <color>536870912</color>
</Footer> </Footer>
<Detail> <Detail>
<height>66</height> <height>280</height>
<color>536870912</color> <color>536870912</color>
</Detail> </Detail>
<TableDefinition> <TableDefinition>
<table_column> <table_column>
<type size="10">char</type> <type size="10">char</type>
<updatewhereclause>no</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>site_code__to</name> <name>site_code__fr</name>
<dbname>site_code__fr</dbname> <dbname>site_code__fr</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="10">char</type> <type size="10">char</type>
<updatewhereclause>no</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>site_code__to</name> <name>site_code__to</name>
<dbname>site_code__to</dbname> <dbname>site_code__to</dbname>
</table_column> </table_column>
...@@ -59,17 +59,17 @@ ...@@ -59,17 +59,17 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Site Code From:</text> <text>Site Code Fr:</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>24</x> <x>37</x>
<y>14</y> <y>52</y>
<height>16</height> <height>64</height>
<width>94</width> <width>402</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>site_code_t</name> <name>site_code__fr_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Arial</face> <face>Arial</face>
...@@ -83,23 +83,32 @@ ...@@ -83,23 +83,32 @@
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
<height.autosize>yes</height.autosize>
</TextObject> </TextObject>
<TextObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <id>1</id>
<text>Site Code To :</text> <alignment>0</alignment>
<border>0</border> <tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color> <color>33554432</color>
<x>242</x> <x>475</x>
<y>14</y> <y>48</y>
<height>16</height> <height>76</height>
<width>94</width> <width>274</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>t_1</name> <name>site_code__fr</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font> <font>
<face>Arial</face> <face>Arial</face>
<height>-10</height> <height>-10</height>
...@@ -109,37 +118,25 @@ ...@@ -109,37 +118,25 @@
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>2</mode>
<color>536870912</color> <color>16777215</color>
</background> </background>
<height.autosize>yes</height.autosize> </ColumnObject>
</TextObject> <TextObject>
<ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>1</id> <alignment>1</alignment>
<alignment>0</alignment> <text>Site Code To:</text>
<tabsequence>10</tabsequence> <border>0</border>
<border>5</border>
<color>33554432</color> <color>33554432</color>
<x>122</x> <x>818</x>
<y>14</y> <y>52</y>
<height>16</height> <height>64</height>
<width>76</width> <width>402</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>site_code__fr</name> <name>site_code__to_t</name>
<visible>1</visible> <visible>1</visible>
<height.autosize>yes</height.autosize>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font> <font>
<face>Arial</face> <face>Arial</face>
<height>-10</height> <height>-10</height>
...@@ -152,25 +149,24 @@ ...@@ -152,25 +149,24 @@
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
</ColumnObject> </TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>1</id> <id>2</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>20</tabsequence> <tabsequence>20</tabsequence>
<border>5</border> <border>5</border>
<color>33554432</color> <color>33554432</color>
<x>341</x> <x>1257</x>
<y>14</y> <y>48</y>
<height>16</height> <height>76</height>
<width>76</width> <width>274</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>site_code__to</name> <name>site_code__to</name>
<visible>1</visible> <visible>1</visible>
<height.autosize>yes</height.autosize>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
...@@ -188,8 +184,8 @@ ...@@ -188,8 +184,8 @@
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>2</mode>
<color>536870912</color> <color>16777215</color>
</background> </background>
</ColumnObject> </ColumnObject>
<HtmlTable> <HtmlTable>
......
<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="Cache-Control" content="no-store" />
</head>
<body >
<script type="text/javascript" src="/ibase/webitm/js/REQUIREMENTWizard.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/ITMWizardCalendar.js"></script>
<script>
var calendertop = 100;
var calenderleft = 200;
var selectedObj = null;
var global_date_format ="dd/MM/yy";
var global_date_type= "date";
function assignDate( date )
{
document.getElementById( selectedObj ).value = date;
document.getElementById( selectedObj ).focus();
}
function checkForactBack()
{
var actCode = "";
if ( document.getElementById("Detail1..activity_code") != null )
{
actCode = document.getElementById("Detail1..activity_code").value;
}
else
{
actCode = document.getElementById("Detail1.1.activity_code").value;
}
var nextButton = document.getElementById("ActNext");
if(actCode != null &amp; (actCode == "CL" || actCode == "SL" || actCode == "TL"
|| actCode == "PL" || actCode == "BD" || actCode == "HL" || actCode ==
"SD" || actCode == "OH" || actCode == "CO" || actCode == "ED"))
{
nextButton.disabled = true;
}
else
{
nextButton.disabled = false;
}
}
function addLoadEvent(func)
{
var oldonload = window.onload;
if (typeof window.onload != 'function')
{
window.onload = func;
}
else
{
window.onload = function()
{
if (oldonload)
{
oldonload();
}
func();
}
}
}
</script>
<style type="text/css">
.tableClass
{margin-left:10px;margin-top:20px}
.header_td
{border:inset 0;background:#FFCCCC;font-family:verdana;font-size:11pt;text-align:center}
.input_editable
{border:inset 2;color:#102132;background:#D7E5F9;text-align:left;font-family:verdana;font-size:9pt}
.td_leftAlign
{background:#D7E5F9;text-align:left;font-family:verdana;font-size:9pt}
</style>
<form name = "Wizard_activity" METHOD="POST" ACTION="/ibase/ITMWizardHandlerServlet" onSubmit="javascript:return validateActivity('1');">
<table id="activityTable" class="tableClass" border="0" cellSpacing="2" cellPadding="1">
<tr>
<td class="header_td" colspan="4">
<strong>SELECT MRP WIZARD </strong>
</td>
</tr>
<xsl:for-each select="//Detail1">
<xsl:variable name="date_from"><xsl:value-of select="date_from"/></xsl:variable>
<xsl:variable name="date_to"><xsl:value-of select="date_to"/></xsl:variable>
<xsl:variable name="site_code__from"><xsl:value-of select="site_code__from"/></xsl:variable>
<xsl:variable name="site_code__to"><xsl:value-of select="site_code__to"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<tr>
<td class="td_leftAlign" nowrap="true">
<strong>Period From :</strong>
</td>
<td class="td_leftAlign">
<!-- <input type="text" class="input_editable" size="15" value="{$date_from}" name="Detail1.{normalize-space($dbID)}.event_date" id="Detail1.{normalize-space($dbID)}.event_date" maxlength="8" ISCHANGED="false" onblur="checkDate(this)"/> ( DD/MM/YY )-->
<input type="text" class="input_editable" size="15" value="{$date_from}" name="Detail1.{normalize-space($dbID)}.date_from" id="Detail1.{normalize-space($dbID)}.date_from" maxlength="8" ISCHANGED="false" />
<img src="/ibase/webitm/images/Standard/e12_pophelp_16.jpg" onClick="selectedObj = 'Detail1.{normalize-space($dbID)}.date_from'; javascript:show_calendar('Detail1.{normalize-space($dbID)}.date_from','','','DD/MM/YY');"/>( DD/MM/YY )
</td>
<td class="td_leftAlign" nowrap="true">
<strong>Period To :</strong>
</td>
<td class="td_leftAlign">
<input type="text" class="input_editable" size="15" value="{$date_to}" name="Detail1.{normalize-space($dbID)}.date_to" id="Detail1.{normalize-space($dbID)}.date_to" maxlength="8" ISCHANGED="false" />
<img src="/ibase/webitm/images/Standard/e12_pophelp_16.jpg" onClick="selectedObj = 'Detail1.{normalize-space($dbID)}.date_to'; javascript:show_calendar('Detail1.{normalize-space($dbID)}.date_to','','','DD/MM/YY');"/>( DD/MM/YY )
</td>
</tr>
<tr>
<td class="td_leftAlign" nowrap="true">
<strong>Site Code From :</strong>
</td>
<td class="td_leftAlign">
<input type="text" class="input_editable" size="15" value="{$site_code__from}" name="Detail1.{normalize-space($dbID)}.site_code__from" id="Detail1.{normalize-space($dbID)}.site_code__from" maxlength="05" ISCHANGED="false" onblur="return upperCase(this.id)"/>
<a href="javascript:callActivityTypeJSP( '{normalize-space($dbID)}','{normalize-space($site_code__from)}' );"> <img src="/ibase/webitm/images/Standard/e12_pophelp_16.jpg" border="0"/> </a>
</td>
<td class="td_leftAlign" nowrap="true">
<strong>Site Code To :</strong>
</td>
<td class="td_leftAlign">
<input type="text" class="input_editable" size="15" value="{$site_code__to}" name="Detail1.{normalize-space($dbID)}.site_code__to" id="Detail1.{normalize-space($dbID)}.site_code__to" maxlength="05" ISCHANGED="false" onblur="return upperCase(this.id)"/>
<a href="javascript:callActivityTypeJSP( '{normalize-space($dbID)}','{normalize-space($site_code__to)}' );"> <img src="/ibase/webitm/images/Standard/e12_pophelp_16.jpg" border="0"/> </a>
</td>
</tr>
<tr>
<td class="td_leftAlign" nowrap="true">
<strong>Type :</strong>
</td><td><div align="left">
<select name="Type" id="mrp">
<option value="mrp_run_wiz">Detail</option>
<option value="requirement">Summary</option>
</select>
</div></td>
</tr>
<tr>
<td class="td_leftAlign">
<div id = "teamCodes{normalize-space($dbID)}" name="teamCodes{normalize-space($dbID)}" style="display:none"><span id = "teamSpanCodes{normalize-space($dbID)}" ><font size='2pt' face="Verdana">
</font></span></div>
</td>
</tr>
</xsl:for-each>
<tr>
<td colspan="2">
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="select_mrp_wiz" name="OBJ_NAME" />
<input type="hidden" value="" name="action" id="action" />
<input type="submit" style="cursor:hand" value="Next" name = "ActNext" id = "ActNext" title='' onclick="return setActionVal1('next')"/>
</td>
</tr>
</table>
<table id="errorActivityTable" class="tableClass" border="0" cellSpacing="2" cellPadding="1">
<xsl:for-each select="//error">
<xsl:if test="position() = 1">
<tr>
<td class="td_leftAlign" nowrap="true" valign="bottom">
Message :
</td>
<td class="td_leftAlign" nowrap="true" valign="bottom">
Description :
</td>
</tr>
</xsl:if>
<xsl:variable name="message"><xsl:value-of select="message"/></xsl:variable>
<xsl:variable name="description"><xsl:value-of select="description"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domId"/></xsl:variable>
<xsl:variable name="column_name"><xsl:value-of select="@column_name"/></xsl:variable>
<tr>
<td class="td_leftAlign" nowrap="true">
<xsl:value-of select="message"/>
</td>
<td class="td_leftAlign" nowrap="true">
<xsl:value-of select="description"/>
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="//error">
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:if test="position() = 1">
<xsl:if test="$type = 'W'">
<tr>
<td class="td_leftAlign" nowrap="true" valign="bottom">
Override Warnings :
</td>
<td class="td_leftAlign" nowrap="true" valign="bottom">
<input type="checkbox" name="forceSave" value="false" onClick="setChecked(this)"/>
</td>
</tr>
</xsl:if>
</xsl:if>
</xsl:for-each>
</table>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
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