我想将数据值写入文件 [英] i want to write data values to a file

查看:78
本文介绍了我想将数据值写入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个.java类
1>>> TestReqModel.java
2>>> TestReqPersistentService.java ..............

i have tow .java class
1>>> TestReqModel.java
2>>> TestReqPersistentService.java..............

in file  TestReqModel.java..i have------------------------------

package org.tata.parikshak.service;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Hashtable;

public class TestReqModel 
{
    
  public static String selDomain;
  public static String selInvestigation;
  private String partnumber;
  private String plmstatus;
 private String workorder;
 
 private String historyofTest;

private String objectiveOfAnalysis;
private String typeOfAnalysis;
private String otherDetails;
private String caxNumberLocation;
private String namecontactNumber;
private String desireDate;



    public String getCaxNumberLocation() {
        return caxNumberLocation;
    }

    public void setCaxNumberLocation(String caxNumberLocation) {
        this.caxNumberLocation = caxNumberLocation;
    }

    public String getDesireDate() {
        return desireDate;
    }

    public void setDesireDate(String desireDate) {
        this.desireDate = desireDate;
    }

    public String getHistoryofTest() {
        return historyofTest;
    }

    public void setHistoryofTest(String historyofTest) {
        this.historyofTest = historyofTest;
    }

    public String getNamecontactNumber() {
        return namecontactNumber;
    }

    public void setNamecontactNumber(String namecontactNumber) {
        this.namecontactNumber = namecontactNumber;
    }

    public String getObjectiveOfAnalysis() {
        return objectiveOfAnalysis;
    }

    public void setObjectiveOfAnalysis(String objectiveOfAnalysis) {
        this.objectiveOfAnalysis = objectiveOfAnalysis;
    }

    public String getOtherDetails() {
        return otherDetails;
    }

    public void setOtherDetails(String otherDetails) {
        this.otherDetails = otherDetails;
    }

    public String getPartnumber() {
        return partnumber;
    }

    public void setPartnumber(String partnumber) {
        this.partnumber = partnumber;
    }

    public String getPlmstatus() {
        return plmstatus;
    }

    public void setPlmstatus(String plmstatus) {
        this.plmstatus = plmstatus;
    }

    public String getSelDomain() {
        return selDomain;
    }

    public void setSelDomain(String selDomain) {
        this.selDomain = selDomain;
    }

    public String getSelInvestigation() {
        return selInvestigation;
    }

    public void setSelInvestigation(String selInvestigation) {
        this.selInvestigation = selInvestigation;
    }

    public String getTypeOfAnalysis() {
        return typeOfAnalysis;
    }

    public void setTypeOfAnalysis(String typeOfAnalysis) {
        this.typeOfAnalysis = typeOfAnalysis;
    }

    public String getWorkorder() {
        return workorder;
    }

  
                                            
         public TestReqModel()  {
              this.workorder  = new String();
            this.typeOfAnalysis = new String();
            this.caxNumberLocation = new String();
            this.desireDate = new String();
            this.historyofTest = new String();
            this.namecontactNumber = new String();
            this.otherDetails = new String();
            this.plmstatus = new String();
            this.selInvestigation = new String();
            this.selDomain = new String();
            this.partnumber = new String();
            this.objectiveOfAnalysis = new String();
           
            
         }   

       
}

--------------------------------------------- --------------------------
AND IN TestReqPersistentService.java文件



-------------------------------------------------- ----------------------------------
公共类TestReqPersistentService {


在此处给我代码///////





/////////

}

我想读取该值并将其保存在此类中的文本文件中的代码

不要喊.它被认为是粗鲁的,不礼貌的.

-----------------------------------------------------------------------
AND IN TestReqPersistentService.java FILE



------------------------------------------------------------------------------------
public class TestReqPersistentService {


GIVE ME CODE HERE///////





//////////

}

I WANT THE CODE TO READ THOSE VALUE AND SAVE IN A TEXT FILE IN THIS CLASS

don''t SHOUT. It is considered rude, bad manners.

推荐答案

请参见^ ].


公共类TestReqPersistentService
{
TestReqModel testreqmodel =新的TestReqModel();

公共TestReqPersistentService()
{}

私人TestReqPersistentService(TestReqModel testreqmodel){
这个. testreqmodel = testreqmodel;
}
公共无效saveFile()
{
testreqmodel.getPartnumber();

试试{
FileOutputStream fos = new FileOutputStream("D:\\ modelValues.txt");
ObjectOutputStream oos =新的ObjectOutputStream(fos);
oos.writeObject(testreqmodel);
oos.flush();
oos.close();
fos.close();
System.out.println(正在读取file1 .....");
System.out.println(正在读取file11 ....." + testreqmodel.getPartnumber());
}
捕获(FileNotFoundException e){
e.printStackTrace();
}
捕获(IOException e){
e.printStackTrace();
}

}
公共无效readFile()
{

试试
{
FileInputStream fis =新的FileInputStream("D:\\ modelValues.txt");
ObjectInputStream ois =新的ObjectInputStream(fis);
对象obj = ois.readObject();

System.out.println(正在读取文件-....." + obj.getClass());
}捕获(FileNotFoundException e){
e.printStackTrace();
}捕获(IOException e){
e.printStackTrace();
}赶上(ClassNotFoundException e){
e.printStackTrace();
}
}
public class TestReqPersistentService
{
TestReqModel testreqmodel = new TestReqModel();

public TestReqPersistentService()
{}

private TestReqPersistentService( TestReqModel testreqmodel ) {
this. testreqmodel = testreqmodel ;
}
public void saveFile()
{
testreqmodel.getPartnumber() ;

try{
FileOutputStream fos = new FileOutputStream("D:\\modelValues.txt");
ObjectOutputStream oos = new ObjectOutputStream(fos);
oos.writeObject( testreqmodel );
oos.flush();
oos.close();
fos.close();
System.out.println("reading file1 .....");
System.out.println("reading file11 ....." + testreqmodel.getPartnumber());
}
catch (FileNotFoundException e){
e.printStackTrace();
}
catch (IOException e){
e.printStackTrace();
}

}
public void readFile()
{

try
{
FileInputStream fis = new FileInputStream("D:\\modelValues.txt");
ObjectInputStream ois = new ObjectInputStream(fis);
Object obj = ois.readObject();

System.out.println("reading file--- ....." +obj.getClass());
} catch (FileNotFoundException e){
e.printStackTrace();
} catch (IOException e){
e.printStackTrace();
}catch (ClassNotFoundException e){
e.printStackTrace();
}
}


<%-
文件:testReqForm
创建于:2012年2月13日,1:51:44 PM
作者:svy08509
-%>


<%@ page import ="org.tata.parikshak.service.TestReqModel"%>
<%-<%@ page import ="org.tata.parikshak.service.TestReqPersistentService"%>-%>
<%@ page contentType ="text/html" pageEncoding ="UTF-8"%>

<%布尔值authVal = false;%>
<%if(authVal == true)%>


<%-< jsp:useBean id ="testReqModel" class ="org.tata.parikshak.service.TestReqModel" scope ="application"/>-%>


< jsp:useBean id ="testReqModel" class ="org.tata.parikshak.service.TestReqModel" scope ="session"/>
< jsp:setProperty name ="testReqModel" property ="partnumber" value =<%= request.getParameter(" partnumber)%>"/>
< jsp:setProperty name ="testReqModel" property ="selDomain" value =<%= request.getParameter(" selDomain)%>"/>
< jsp:setProperty name ="testReqModel" property ="selInvestigation" value =<%= request.getParameter(" selInvestigation)%>"//gt;
< jsp:setProperty name ="testReqModel" property ="plmstatus" value =<%= request.getParameter(" plmstatus)%>"/>
<%
字符串jspPLMNumber = testReqModel.getPartnumber();
字符串jspSelDomain = testReqModel.getSelDomain();
字符串selInvestigation = testReqModel.getSelInvestigation();
字符串plmstatus = testReqModel.getPlmstatus();
System.out.println("JSPPPP jspPLMNumber ***** ii" + jspPLMNumber);
System.out.println("JSPPPP jspSelDomain1 ***** ii22" + jspSelDomain);
System.out.println("JSPPPP jsp2 ***** ii22" + selInvestigation);
System.out.println("JSPPPP 3 ***** ii22" + plmstatus);
%>

< jsp:useBean id ="reqservice" class ="org.tata.parikshak.service.TestReqPersistentService" scope ="session"/>

<%
reqservice.saveFile();

System.out.println("JSPPPP jspPLMNumber ***** iiAFTER SERIVCE MESSAGE");
%>
<!DOCTYPE html>
< html>
< head>
< meta http-equiv ="Content-Type" content ="text/html; charset = UTF-8">
< title>测试请求</title>
< link href ="css/header.css" rel ="stylesheet" type ="text/css"/>
< SCRIPT language ="javascript">
函数addDRAFT(tableID){

var table = document.getElementById(tableID);

var rowCount = table.rows.length;
var row = table.insertRow(rowCount);

var cell1 = row.insertCell(0);
var element1 = document.createElement("input");
element1.type =复选框";
cell1.appendChild(element1);

var cell2 = row.insertCell(1);
cell2.innerHTML = rowCount +1;

var cell3 = row.insertCell(2);
var element2 = document.createElement("input");
element2.type =文字";
cell3.appendChild(element2);

}
</SCRIPT>





<!-< style type ="text/css">
body {font-size:50%;字体家族:"Lucida Grande",Verdana,Arial,Sans-Serif;左边距:40px; }
ul#tabs {list-style-type:none;边距:30px 0 0 0;填充:0 0 0.3em 0; -webkit-border-radius:8px;
-moz-border-radius:8px;
border-radius:8px; }
ul#tabs li {display:inline; }
ul#tabs li a {color:#42454a;背景颜色:#dedbde;边框:1px实心#c9c3ba;底部边框:无;填充:0.3em;文字修饰:无; }
ul#tabs li a:hover {background-color:#f1f0ee; }
ul#tabs li a.selected {color:#000;背景颜色:#f1f0ee; font-weight:粗体;填充:0.7em 0.3em 0.38em 0.3em; }
div.tabContent {边框:1px实心#c9c3ba;宽度:70%;填充:0.5em;背景颜色:#f1f0ee; }
div.tabContent.hide {display:none; }
</style>->
<!-< script type ="text/javascript">
//<![CDATA [

var tabLinks = new Array();
var contentDivs = new Array();

函数init(){

//从页面中获取选项卡链接和内容div
var tabListItems = document.getElementById(''tabs'').childNodes;
for(var i = 0; i< tabListItems.length; i ++){
if(tabListItems [i] .nodeName =="LI"){
var tabLink = getFirstChildWithTagName(tabListItems [i],``A'');
var id = getHash(tabLink.getAttribute(''href''));
tabLinks [id] = tabLink;
contentDivs [id] = document.getElementById(id);
}
}

//将onclick事件分配给选项卡链接,并且
//突出显示第一个标签页
var i = 0;

for(tabLinks中的var id){
tabLinks [id] .onclick = showTab;
tabLinks [id] .onfocus = function(){this.blur()};
如果(i == 0)tabLinks [id] .className =``已选择'';
i ++;
}

//隐藏除第一个
之外的所有内容div var i = 0;

for(contentDivs中的var id){
如果(i!= 0)contentDivs [id] .className =``tabContent hide'';
i ++;
}
}

函数showTab(){
var selectedId = getHash(this.getAttribute(''href''));

//突出显示选定的标签,然后将所有其他标签变暗.
//还显示选定的内容div,并隐藏所有其他内容.
for(contentDivs中的var id){
if(id == selectedId){
tabLinks [id] .className =``已选择'';
contentDivs [id] .className =``tabContent'';
} else {
tabLinks [id] .className ='''';
contentDivs [id] .className =''tabContent hide'';

}
}

//停止浏览器,点击链接
返回false;
}

函数getFirstChildWithTagName(element,tagName){
for(var i = 0; i< element.childNodes.length; i ++){
如果(element.childNodes [i] .nodeName == tagName)返回element.childNodes [i];
}
}

函数getHash(url){
var hashPos = url.lastIndexOf(``#'');
返回url.substring(hashPos + 1);
}

//]]>

函数validateForm()
{
if(document.frmTDM.plmstatus.value ==")
{
alert(区域名称应留空");
document.frmTDM.plmstatus.focus();
返回false;
}

}
</script>

</head>
< body>



< table width ="95%" border ="0" align ="center" height ="auto">
< form name ="frmTDM" action =#" method ="post">
< tr>
< td ALIGN ="CENTER">
< h1>测试请求</H1>
</td>
</tr>
< tr>

< td width ="95%">
< fieldset style ="95%;-webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px;">
< legend>< font color ="black"></font></legend>
< table cellpadding ="2" cellspacing ="2" width ="100%">

< tr>
< td>选择您的域</td>
< td>

<选择name ="selDomain">
< option value ="CRC"> --- SELECT -----</option>
< option value ="crash"> ERC崩溃</option>
< option value ="nvh"> ERC NVH</option>
< option value ="odt"> ERC ODT</option>
< option value ="idt"> ERC IDT</option>
< option value ="durability"> ERC耐久性</option>
< option value ="climate"> ERC CLIMATE</option>
< option value ="engines"> ERC引擎</option>
</select>


</tr>
< tr>
< td>< font color ="blue">< span style ="text-shadow:3px 2px 3px#555;">调查类型</span></font></td>
< td>

<选择name ="selInvestigation">
< option value ="CRC1"> --- SELECT -----</option>
< option value ="CRC">降低成本/统一成本</option>
< option value ="FSD">首次源开发</option>
< option value ="PQI">性能质量改进</option>
< option value ="RR">法规要求</option>
< option value ="DG">数据生成</option>
< option value ="AD">替代开发</option>
< option value ="ND">新开发</option>
< option value ="FF">字段故障</option>
< option value ="TF">测试失败</option>
</select></td>
</tr>

< tr>
< td>< font color ="blue">< span style ="text-shadow:3px 2px 3px#555;"> PLM部件号</span></font></td>
< td>
<!-< input type ="text" name ="firstname" title ="PLM Part" style ="color:#888;"
value ="PLM部件号" onfocus ="inputFocus(this)" onblur ="inputBlur(this)"/>->

< table width ="95%" border ="0" align ="center">
< form name ="frmTDM" action =#" method ="post" align ="center">
<!-< tr>
< td>
< button class ="button blue">草稿中的新Requst</button>
</td>
</tr>->
< tr>

< td width ="95%">

< table cellpadding ="2" cellspacing ="2" width ="100%">
< tr>
< td>选择您的域</td>
< td>

<选择name ="selDomain">
< option value ="crash"> ERC崩溃</option>
< option value ="nvh"> ERC NVH</option>
< option value ="odt"> ERC ODT</option>
< option value ="idt"> ERC IDT</option>
< option value ="durability"> ERC耐久性</option>
< option value ="climate"> ERC CLIMATE</option>
< option value ="engines"> ERC引擎</option>
</select>
</td>
</tr>
< tr>
< td>调查类型</td>
< td>

<选择name ="selInvestigation">
< option value ="CRC">降低成本/统一成本</option>
< option value ="FSD">首次源开发</option>
< option value ="PQI">性能质量改进</option>
< option value ="RR">法规要求</option>
< option value ="DG">数据生成</option>
< option value ="AD">替代开发</option>
< option value ="ND">新开发</option>
< option value ="FF">字段故障</option>
< option value ="TF">测试失败</option>
</select></td>
</tr>

< tr>
< td> PLM零件号</td>
< td>

< input type ="text" id ="txtPLM" class ="writefrmtxt_tutorial" name ="partnumber" rows ="8" style ="width:200px; height:20px;">

</td>< td>
<%if((request.getParameter("partnumber")== null)){%>

<%}%>
<%if((request.getParameter("partnumber")!= null)){%>
<%if(authVal == false){%>
< span style ="color:red"> PLM零件号必须</span>

<%}%>
<%}%></td>
<!-
< td><%= org.tata.parikshak.service.TestReqPersistentService.class%></td>->
</tr>
< tr>
< td> PLM状态& Rev</td>
< td>
< textarea id ="txtPLM" class ="writefrmtxt_tutorial" name ="plmstatus" rows ="8" style ="width:200px; height:20px;"></textarea>
</td>
</tr>





< tr>
< td>工作单</td>
< td>
< textarea id ="txtPLM" class ="writefrmtxt_tutorial" name =评论" rows ="8" style ="width:200px; height:20px;"></textarea>
</td>
</tr>
< tr>
< td>背景或< br>测试/分析的历史记录</td>
< td>
< textarea id ="txtPLM" class ="writefrmtxt_tutorial" name =评论" rows ="8" style ="width:200px; height:20px;"></textarea>
</td>
</tr>
< tr>
< td>测试/分析的目标</td>
< td>
< textarea id ="txtPLM" class ="writefrmtxt_tutorial" name =评论" rows ="8" style ="width:200px; height:20px;"></textarea>
</td>
</tr>
< tr>
< td>选择分析/测试的类型</td>
< td>
< textarea id ="txtPLM" class ="writefrmtxt_tutorial" name =评论" rows ="8" style ="width:200px; height:20px;"></textarea>
</td>
</tr>
< tr>
< td> Analysis/Test的其他详细信息</td>
< td>
< textarea id ="txtPLM" class ="writefrmtxt_tutorial" name =评论" rows ="8" style ="width:200px; height:20px;"></textarea>
</td>
</tr>
< tr>
< td> CAX参考位置</td>
< td>
< textarea id ="txtPLM" class ="writefrmtxt_tutorial" name =评论" rows ="8" style ="width:200px; height:20px;"></textarea>
</td>
</tr>
< tr>
< td>名称&联系电话号码
/td>
< td>
< textarea id ="txtPLM" class ="writefrmtxt_tutorial" name =评论" rows ="8" style ="width:200px; height:20px;"></textarea>
</td>
</tr>
< tr>
< td>需要反馈的日期</td>
< td>
< textarea id ="txtPLM" class ="writefrmtxt_tutorial" name =评论" rows ="8" style ="width:200px; height:20px;"></textarea>
</td>
</tr>
< tr>
< td></td>
< td valign ="bottom" align ="right">
< button class ="button blue small" onclick ="return fnSubmit();"> Submit</button>
& nbsp;
<!-< button class ="button blue small" onclick ="sendDocument();">保存草稿</button>->
< INPUT type ="button" value =另存为草稿" onclick ="addDRAFT(''dataTable'')"/>
</td>

</tr>
</table>
<!-</fieldset> ->
</td>
< td>& nbsp;</td>
</tr>

</form>
</table>
< TABLE id ="dataTable" width ="350px" border ="1">
< TR>
< TD><输入type ="checkbox" name ="chk"/></TD>
< TD> 1</TD>
< TD> < INPUT type ="text"/> </TD>
</TR>
</TABLE>


</body>
</html>
<%--
Document : testReqForm
Created on : Feb 13, 2012, 1:51:44 PM
Author : svy08509
--%>


<%@page import="org.tata.parikshak.service.TestReqModel"%>
<%--<%@page import="org.tata.parikshak.service.TestReqPersistentService"%>--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<% boolean authVal = false;%>
<%if(authVal==true)%>


<%--<jsp:useBean id="testReqModel" class="org.tata.parikshak.service.TestReqModel" scope="application"/>--%>


<jsp:useBean id="testReqModel" class="org.tata.parikshak.service.TestReqModel" scope="session"/>
<jsp:setProperty name="testReqModel" property="partnumber" value="<%=request.getParameter("partnumber")%>"/>
<jsp:setProperty name="testReqModel" property="selDomain" value="<%=request.getParameter("selDomain")%>"/>
<jsp:setProperty name="testReqModel" property="selInvestigation" value="<%=request.getParameter("selInvestigation")%>"/>
<jsp:setProperty name="testReqModel" property="plmstatus" value="<%=request.getParameter("plmstatus")%>"/>
<%
String jspPLMNumber = testReqModel.getPartnumber();
String jspSelDomain = testReqModel.getSelDomain();
String selInvestigation = testReqModel.getSelInvestigation();
String plmstatus = testReqModel.getPlmstatus();
System.out.println("JSPPPP jspPLMNumber *****ii " + jspPLMNumber);
System.out.println("JSPPPP jspSelDomain1 *****ii22 " + jspSelDomain);
System.out.println("JSPPPP jsp2 *****ii22 " + selInvestigation);
System.out.println("JSPPPP 3 *****ii22 " + plmstatus);
%>

<jsp:useBean id="reqservice" class="org.tata.parikshak.service.TestReqPersistentService" scope="session"/>

<%
reqservice.saveFile();

System.out.println("JSPPPP jspPLMNumber *****iiAFTER SERIVCE MESSAGE ");
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>test request</title>
<link href="css/header.css" rel="stylesheet" type="text/css" />
<SCRIPT language="javascript">
function addDRAFT(tableID) {

var table = document.getElementById(tableID);

var rowCount = table.rows.length;
var row = table.insertRow(rowCount);

var cell1 = row.insertCell(0);
var element1 = document.createElement("input");
element1.type = "checkbox";
cell1.appendChild(element1);

var cell2 = row.insertCell(1);
cell2.innerHTML = rowCount + 1;

var cell3 = row.insertCell(2);
var element2 = document.createElement("input");
element2.type = "text";
cell3.appendChild(element2);

}
</SCRIPT>





<!-- <style type="text/css">
body { font-size: 50%; font-family: ''Lucida Grande'', Verdana, Arial, Sans-Serif;margin-left:40px; }
ul#tabs { list-style-type: none; margin: 30px 0 0 0; padding: 0 0 0.3em 0;-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px; }
ul#tabs li { display: inline; }
ul#tabs li a { color: #42454a; background-color: #dedbde; border: 1px solid #c9c3ba; border-bottom: none; padding: 0.3em; text-decoration: none; }
ul#tabs li a:hover { background-color: #f1f0ee; }
ul#tabs li a.selected { color: #000; background-color: #f1f0ee; font-weight: bold; padding: 0.7em 0.3em 0.38em 0.3em; }
div.tabContent { border: 1px solid #c9c3ba;width: 70%; padding: 0.5em; background-color: #f1f0ee; }
div.tabContent.hide { display: none; }
</style>-->
<!-- <script type="text/javascript">
//<![CDATA[

var tabLinks = new Array();
var contentDivs = new Array();

function init() {

// Grab the tab links and content divs from the page
var tabListItems = document.getElementById(''tabs'').childNodes;
for ( var i = 0; i < tabListItems.length; i++ ) {
if ( tabListItems[i].nodeName == "LI" ) {
var tabLink = getFirstChildWithTagName( tabListItems[i], ''A'' );
var id = getHash( tabLink.getAttribute(''href'') );
tabLinks[id] = tabLink;
contentDivs[id] = document.getElementById( id );
}
}

// Assign onclick events to the tab links, and
// highlight the first tab
var i = 0;

for ( var id in tabLinks ) {
tabLinks[id].onclick = showTab;
tabLinks[id].onfocus = function() { this.blur() };
if ( i == 0 ) tabLinks[id].className = ''selected'';
i++;
}

// Hide all content divs except the first
var i = 0;

for ( var id in contentDivs ) {
if ( i != 0 ) contentDivs[id].className = ''tabContent hide'';
i++;
}
}

function showTab() {
var selectedId = getHash( this.getAttribute(''href'') );

// Highlight the selected tab, and dim all others.
// Also show the selected content div, and hide all others.
for ( var id in contentDivs ) {
if ( id == selectedId ) {
tabLinks[id].className = ''selected'';
contentDivs[id].className = ''tabContent'';
} else {
tabLinks[id].className = '''';
contentDivs[id].className = ''tabContent hide'';

}
}

// Stop the browser following the link
return false;
}

function getFirstChildWithTagName( element, tagName ) {
for ( var i = 0; i < element.childNodes.length; i++ ) {
if ( element.childNodes[i].nodeName == tagName ) return element.childNodes[i];
}
}

function getHash( url ) {
var hashPos = url.lastIndexOf ( ''#'' );
return url.substring( hashPos + 1 );
}

//]]>

function validateForm()
{
if(document.frmTDM.plmstatus.value=="")
{
alert("AREA Name should be left blank");
document.frmTDM.plmstatus.focus();
return false;
}

}
</script>

</head>
<body>



<table width="95%" border="0" align="center" height="auto">
<form name="frmTDM" action="#" method="post">
<tr>
<td ALIGN="CENTER">
<h1>TEST REQUEST</H1>
</td>
</tr>
<tr>

<td width="95%">
<fieldset style="95%;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px; ">
<legend><font color="black"></font></legend>
<table cellpadding="2" cellspacing="2" width="100%">

<tr>
<td>SELECT YOUR DOMAIN</td>
<td>

<select name="selDomain">
<option value="CRC">---SELECT-----</option>
<option value="crash">ERC CRASH</option>
<option value="nvh">ERC NVH</option>
<option value="odt">ERC ODT</option>
<option value="idt">ERC IDT</option>
<option value="durability">ERC DURABILITY</option>
<option value="climate">ERC CLIMATE</option>
<option value="engines">ERC ENGINES</option>
</select>


</tr>
<tr>
<td><font color="blue"><span style=" text-shadow: 3px 2px 3px #555;">TYPE OF INVESTIGATION</span></font></td>
<td>

<select name="selInvestigation">
<option value="CRC1">---SELECT-----</option>
<option value="CRC">Cost-Weight Reduction/Commonisation</option>
<option value="FSD">First Source Development</option>
<option value="PQI">Performance-Quality Improvement</option>
<option value="RR">Regulatory Requirement</option>
<option value="DG">Data Generation</option>
<option value="AD">Alternate Development</option>
<option value="ND">New Development</option>
<option value="FF">Field Failure</option>
<option value="TF">Test Failure</option>
</select></td>
</tr>

<tr>
<td><font color="blue"><span style=" text-shadow: 3px 2px 3px #555;">PLM PART NUMBER</span></font></td>
<td>
<!-- <input type="text" name="firstname" title="PLM Part" style="color:#888;"
value="PLM Part Number" onfocus="inputFocus(this)" onblur="inputBlur(this)" />-->

<table width="95%" border="0" align="center">
<form name="frmTDM" action="#" method="post"align="center" >
<!-- <tr>
<td>
<button class="button blue">New Requst From Draft</button>
</td>
</tr>-->
<tr>

<td width="95%">

<table cellpadding="2" cellspacing="2" width="100%">
<tr>
<td>Select your domain</td>
<td>

<select name="selDomain">
<option value="crash">ERC CRASH</option>
<option value="nvh">ERC NVH</option>
<option value="odt">ERC ODT</option>
<option value="idt">ERC IDT</option>
<option value="durability">ERC DURABILITY</option>
<option value="climate">ERC CLIMATE</option>
<option value="engines">ERC ENGINES</option>
</select>
</td>
</tr>
<tr>
<td>Type of Investigation</td>
<td>

<select name="selInvestigation">
<option value="CRC">Cost-Weight Reduction/Commonisation</option>
<option value="FSD">First Source Development</option>
<option value="PQI">Performance-Quality Improvement</option>
<option value="RR">Regulatory Requirement</option>
<option value="DG">Data Generation</option>
<option value="AD">Alternate Development</option>
<option value="ND">New Development</option>
<option value="FF">Field Failure</option>
<option value="TF">Test Failure</option>
</select></td>
</tr>

<tr>
<td>PLM Partt Number</td>
<td>

<input type="text" id="txtPLM" class="writefrmtxt_tutorial" name="partnumber" rows="8" style="width: 200px; height: 20px;">

</td><td>
<%if((request.getParameter("partnumber")==null)){%>

<%}%>
<%if((request.getParameter("partnumber")!=null)){%>
<%if (authVal == false){%>
<span style="color: red">PLM PART NUMBER IS MUST</span>

<%}%>
<%}%></td>
<!--
<td><%= org.tata.parikshak.service.TestReqPersistentService.class %></td>-->
</tr>
<tr>
<td>PLM Status & Rev</td>
<td>
<textarea id="txtPLM" class="writefrmtxt_tutorial" name="plmstatus" rows="8" style="width: 200px; height: 20px;"></textarea>
</td>
</tr>





<tr>
<td>Work Order</td>
<td>
<textarea id="txtPLM" class="writefrmtxt_tutorial" name="comment" rows="8" style="width: 200px; height: 20px;"></textarea>
</td>
</tr>
<tr>
<td>Background or<br> history for Test/Analysis</td>
<td>
<textarea id="txtPLM" class="writefrmtxt_tutorial" name="comment" rows="8" style="width: 200px; height: 20px;"></textarea>
</td>
</tr>
<tr>
<td>Objective of Test/Analysis</td>
<td>
<textarea id="txtPLM" class="writefrmtxt_tutorial" name="comment" rows="8" style="width: 200px; height: 20px;"></textarea>
</td>
</tr>
<tr>
<td>Select type of Analysis/Test</td>
<td>
<textarea id="txtPLM" class="writefrmtxt_tutorial" name="comment" rows="8" style="width: 200px; height: 20px;"></textarea>
</td>
</tr>
<tr>
<td>Any other details of of Analysis/Test</td>
<td>
<textarea id="txtPLM" class="writefrmtxt_tutorial" name="comment" rows="8" style="width: 200px; height: 20px;"></textarea>
</td>
</tr>
<tr>
<td>CAX Reference Location</td>
<td>
<textarea id="txtPLM" class="writefrmtxt_tutorial" name="comment" rows="8" style="width: 200px; height: 20px;"></textarea>
</td>
</tr>
<tr>
<td>Name & Contact Number</td>
<td>
<textarea id="txtPLM" class="writefrmtxt_tutorial" name="comment" rows="8" style="width: 200px; height: 20px;"></textarea>
</td>
</tr>
<tr>
<td>Desired Date For Feedback</td>
<td>
<textarea id="txtPLM" class="writefrmtxt_tutorial" name="comment" rows="8" style="width: 200px; height: 20px;"></textarea>
</td>
</tr>
<tr>
<td></td>
<td valign="bottom" align="right">
<button class="button blue small" onclick="return fnSubmit();">Submit</button>
&nbsp;
<!-- <button class="button blue small" onclick="sendDocument();">Save draft</button>-->
<INPUT type="button" value="save As Draft" onclick="addDRAFT(''dataTable'')" />
</td>

</tr>
</table>
<!-- </fieldset> -->
</td>
<td>&nbsp;</td>
</tr>

</form>
</table>
<TABLE id="dataTable" width="350px" border="1">
<TR>
<TD><INPUT type="checkbox" name="chk"/></TD>
<TD> 1 </TD>
<TD> <INPUT type="text" /> </TD>
</TR>
</TABLE>


</body>
</html>


这篇关于我想将数据值写入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆