当前位置: 代码迷 >> JavaScript >> js动态增多行
  详细解决方案

js动态增多行

热度:484   发布时间:2012-08-26 16:48:06.0
js动态增加行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">

<script type="text/javascript">

function Reset() {
var f = document.forms[0];
alert(f.id);
f.reset();
}
function getTD() {
var newtd = document.createElement("td");
newtd.setAttribute("align", "left");
newtd.style.backgroundColor = "#ffffff";
newtd.setAttribute("valign", "top");

newtd.style.BORDERRIGHT="windowtext 1pt solid";
newtd.style.PADDINGRIGHT="5.4pt";
newtd.style.BORDERTOP="medium none";
newtd.style.PADDINGLEFT="5.4pt";

  //PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:45.8pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'
return newtd;
}

function getGoosList() {

  var table = document.getElementById("Table1");
     
      var trs = table.getElementsByTagName("tr");
      var tds = trs[3].getElementsByTagName("td");
   
   
    
      var str1="";
  for ( var i = 0; i < tds.length-1; i++) {
 
  for(var j=3;j<trs.length-1;j++){
             if(table.rows[j].cells[i].children(0)){
            
                str1 +=","+table.rows[j].cells[i].children(0).value;
              
             }
       
        table.rows[j].cells[i].children(0).value="";

         }
 
                table.rows[3].cells[i].children(0).value=str1.substr(1,str1.length);
                str1="";
               
       }


}
function getValue(){
var  table = document.getElementById("Table1");
var trs = table.getElementsByTagName('tr');

var str=table.rows[3].cells[0].children(0).value;

  if(str!=""){

      var s = str.split(",");
  
      
       var len=trs.length-4;
     
      for(var i=0;i<s.length-len;i++){
    
         getGoods();    
    }
var trs = table.getElementsByTagName('tr');
   var tds = trs[3].getElementsByTagName("td");
for ( var i = 0; i < tds.length-1; i++) {
       var str= table.rows[3].cells[i].children(0).value;
       str = str.split(",");
  for(var j=3;j<trs.length-1;j++){
             if(table.rows[j].cells[i].children(0)){
              
                
                  if(str!=""&&str[j-3]!=undefined){
                   
                    table.rows[j].cells[i].children(0).value=str[j-3];
                  }
                   
             }
         }
       }
}


}


function getGoods() {

var table1 = document.getElementById('Table1');
var trs = table1.getElementsByTagName('tr');
var idx = trs.length - 1;
var newtr = table1.insertRow(idx);
        var temp =newtr.rowIndex;
      
newtd = getTD();
newtd.innerHTML = ' <input type="text" name="txtMC'+temp+'" size="15">';

newtr.appendChild(newtd);


newtd = getTD();
newtd.innerHTML = '<input type="text" name="txtGGXH'+temp+'" size="20">';
newtr.appendChild(newtd);

newtd = getTD();
newtd.innerHTML = '<input type="text" name="txtJLDW'+temp+'" size="5">';
newtr.appendChild(newtd);

newtd = getTD();
newtd.innerHTML = ' <input type="text" name="txtSL'+temp+'" size="5">';
newtr.appendChild(newtd);

newtd = getTD();
newtd.innerHTML = '<input type="text" name="txtDJ'+temp+'" size="5">';
newtr.appendChild(newtd);



newtd = getTD();
newtd.innerHTML = ' <input type="text" name="txtYSJE'+temp+'" size="5">';
newtr.appendChild(newtd);

newtd = getTD();
newtd.innerHTML = ' <input type="text" name="txtLZKM'+temp+'" size="5">';
newtr.appendChild(newtd);

newtd = getTD();
newtd.innerHTML = ' <input type="text" name="txtGZLY'+temp+'" size="15">';
newtr.appendChild(newtd);

newtd = getTD();
newtd.innerHTML = '<a href="javascript:void(0)" onclick="CancelTr(this)" >取消</a>  ';
newtr.appendChild(newtd);


}

function CancelTr(_this) {
var dtr = _this.parentNode.parentNode;
dtr.parentNode.removeChild(dtr);



}
</script>
</head>
<body>
<table>
<tr>
<td align="center"><b style='mso-bidi-font-weight:normal'><u style='text-underline:double'><span style="FONT-SIZE:18pt;FONT-FAMILY:方正小标宋_GBK;mso-bidi-font-size:10.0pt;mso-hansi-font-family:方正小标宋_GBK;mso-bidi-font-family:'Times New Roman';mso-font-kerning:1.0pt;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA">
固定资产购置申请单</span></u></b></td>
</tr>
<tr>
<td>
<table class="MsoNormalTable"   border="1" cellspacing="0" cellpadding="0" style='BORDER-RIGHT:medium none; BORDER-TOP:medium none; MARGIN-LEFT:-3.6pt; BORDER-LEFT:medium none; BORDER-BOTTOM:medium none; BORDER-COLLAPSE:collapse; mso-table-layout-alt:fixed; mso-border-alt:solid windowtext .5pt; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-border-insideh:.5pt solid windowtext; mso-border-insidev:.5pt solid windowtext'
ID="Table1">
<tr style='HEIGHT:31.1pt;mso-yfti-irow:0;mso-yfti-firstrow:yes'>
<td width="98" style='BORDER-LEFT:windowtext 1pt solid;BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:windowtext 1pt solid; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; WIDTH:73.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:31.1pt; mso-border-alt:solid windowtext .5pt'>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'>
<span style="FONT-SIZE:15pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">编</span><span lang="EN-US" style='FONT-SIZE:15pt;mso-bidi-font-size:10.0pt'><span style='mso-spacerun:yes'>
</span></span><span style="FONT-SIZE:15pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">号</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
</td>
<td width="159" colspan="2" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:windowtext 1pt solid; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:119.4pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:31.1pt; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt'>
<input type="text" name="txtID" size="45">
</td>
<td width="122" colspan="2" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:windowtext 1pt solid; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:91.7pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:31.1pt; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt'>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:15pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">申请日期</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
</td>
<td width="285" colspan="4" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:windowtext 1pt solid; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:213.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:31.1pt; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt'>
<input type="text" name="txtDate" size="45">
</td>
</tr>
<tr style='HEIGHT:31.1pt;mso-yfti-irow:1'>
<td width="98" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:windowtext 1pt solid; WIDTH:73.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:31.1pt; mso-border-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:15pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">购置进度</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
</td>
<td width="566" colspan="8" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:424.7pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:31.1pt; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<input type="text" name="txtJD" size="45">
</td>
</tr>
<tr style='mso-yfti-irow:2'>
<td width="98" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:windowtext 1pt solid; WIDTH:73.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; mso-border-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:14pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">资产名称</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
</td>
<td width="98" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:73.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:14pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">规格型号</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
</td>
<td width="61" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:45.8pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:14pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">计量</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:14pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">单位</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
</td>
<td width="61" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:45.8pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:14pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">数量</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
</td>
<td width="61" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:45.9pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:14pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">单价</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
</td>
<td width="71" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:53.4pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:14pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">预算</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:14pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">金额</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
</td>
<td width="71" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:53.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:14pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">列支</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:14pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">科目</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
</td>
<td width="142" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:106.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:14pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">购置理由</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
</td>
<td width="142" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:106.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<p class="MsoNormal" align="center" style='LAYOUT-GRID-MODE:char;TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:14pt;
  FONT-FAMILY:方正黑体_GBK;
  mso-bidi-font-size:10.0pt;
  mso-ascii-font-family:'Times New Roman'">编辑</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
</td>
</tr>
<tr style='HEIGHT:23.95pt;mso-yfti-irow:3;page-break-inside:avoid'>
<td width="98" valign="top" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:windowtext 1pt solid; WIDTH:73.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:23.95pt; mso-border-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<input type="text" name="txtMC1" size="15">
</td>
<td width="98" valign="top" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:73.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:23.95pt; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<input type="text" name="txtGGXH1" size="20">
</td>
<td width="61" valign="top" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:45.8pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:23.95pt; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<input type="text" name="txtJLDW1" size="5">
</td>
<td width="61" valign="top" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:45.8pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:23.95pt; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<input type="text" name="txtSL1" size="5">
</td>
<td width="61" valign="top" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:45.9pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:23.95pt; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<input type="text" name="txtDJ1" size="5">
</td>
<td width="71" valign="top" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:53.4pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:23.95pt; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<input type="text" name="txtYSJE1" size="5">
</td>
<td width="71" valign="top" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:53.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:23.95pt; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<input type="text" name="txtLZKM1" size="5">
</td>
<td width="142" valign="top" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:106.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:23.95pt; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<input type="text" name="txtGZLY1" size="15">
</td>

<td width="142" valign="top" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:106.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:23.95pt; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
  <a href="javascript:void(0)"  >取消</a>
</td>

</tr>

<tr style='HEIGHT:47.95pt;mso-yfti-irow:8;page-break-inside:avoid'>
<td width="98" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:windowtext 1pt solid; WIDTH:73.6pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:47.95pt; mso-border-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<p class="MsoNormal" align="center" style='TEXT-INDENT:0cm;TEXT-ALIGN:center;mso-char-indent-count:0'><span style="FONT-SIZE:14pt;FONT-FAMILY:方正黑体_GBK;mso-bidi-font-size:10.0pt;mso-ascii-font-family:'Times New Roman'">说明</span><span lang="EN-US" style='FONT-SIZE:14pt;mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>
</td>
<td width="566" colspan="8" style='BORDER-RIGHT:windowtext 1pt solid; PADDING-RIGHT:5.4pt; BORDER-TOP:medium none; PADDING-LEFT:5.4pt; PADDING-BOTTOM:0cm; BORDER-LEFT:medium none; WIDTH:424.7pt; PADDING-TOP:0cm; BORDER-BOTTOM:windowtext 1pt solid; HEIGHT:47.95pt; mso-border-alt:solid windowtext .5pt; mso-border-left-alt:solid windowtext .5pt; mso-border-top-alt:solid windowtext .5pt'>
<input type="text" name="txtSM" size="100" ID="Text33">
</td>
</tr>

</table>
<input type="button" value="增加" onclick="getGoods()">
<input type="button" value="提交" onclick="getGoosList()">

<input type="button" value="赋值" onclick="getValue()">
</td>
</tr>
</table>

</body>
</html>
  相关解决方案