在
在奔跑中积极思考
Unregistered / Unconfirmed
GUEST, unregistred user!
如下是动态加表的记录方法,我现在想用struts标签代替jsp标签,那位高手帮帮我,好急!!!!!!
functiondo
AddRow(flag)
{
var myrow=document.all("goodContent".insertRow(flag);
mycell=myrow.insertCell();
//<html:text style="input_table"
size="13"
property="InvoiceNo"
styleId="InvoiceNo"
onkeydown="next_focus(this)"
value=""/>
mycell.innerHTML="<input name=many"+flag+"
type=checkbox id=many"+flag+"
value=checkbox onkeydown=next_focus(this)><img src=<%=baseURL%>/images/public/del.gif alt=点击删除此商品 style=cursor:hand onClick=DelRowGood('"+flag+"')>";
mycell=myrow.insertCell();
mycell.innerHTML="<input name=Cmdt_NO"+flag+"
type=text class=un-line id=Cmdt_NO"+flag+"
size=12 onkeydown=next_focus(this) onChange=getCmdtID('"+flag+"') onDblClick=showGood('"+flag+"') style=cursor:hand title=双击打开商品选择窗口 onFocus=getFocus() onBlur=lostFocus()>";
mycell=myrow.insertCell();
mycell.innerHTML="<input name=id"+flag+"
type=hidden id=id"+flag+"
value=-1><div id=Cmdt_Name"+flag+">&nbsp;</div>";
mycell=myrow.insertCell();
mycell.innerHTML="<div id=InvOut_SeqNO"+flag+">&nbsp;</div>";
mycell=myrow.insertCell();
mycell.innerHTML="<div id=Cmdt_Unit"+flag+">&nbsp;</div>";
mycell=myrow.insertCell();
mycell.innerHTML="<input onChange=computerSum('"+flag+"') name=InvOut_Price"+flag+"
type=text class=un-line id=InvOut_Price"+flag+"
size=10 onkeydown=next_focus(this) onFocus=getFocus() onBlur=lostFocus()>";
mycell=myrow.insertCell();
mycell.innerHTML="<input onChange=computerSum('"+flag+"') name=InvOut_Mete"+flag+"
type=text class=un-line id=InvOut_Mete"+flag+"
size=10 onkeydown=next_focus(this) onFocus=getFocus() onBlur=lostFocus()>";
mycell=myrow.insertCell();
mycell.innerHTML="<div align=right><input name=InvOut_Amt"+flag+"
type=hidden id=InvOut_Amt"+flag+"></div><div align=right><div id=InvOut_AmtShow"+flag+"
>&nbsp;</div></div>";
mycell=myrow.insertCell();
mycell.innerHTML="<div align=center><font onclick=javascriptpenWriteInvOutRemark('"+flag+"') style=cursor:hand>点击填写<input name=InvOut_Remark"+flag+"
type=hidden id=InvOut_Remark"+flag+"></font></div>";
}
functiondo
AddRow(flag)
{
var myrow=document.all("goodContent".insertRow(flag);
mycell=myrow.insertCell();
//<html:text style="input_table"
size="13"
property="InvoiceNo"
styleId="InvoiceNo"
onkeydown="next_focus(this)"
value=""/>
mycell.innerHTML="<input name=many"+flag+"
type=checkbox id=many"+flag+"
value=checkbox onkeydown=next_focus(this)><img src=<%=baseURL%>/images/public/del.gif alt=点击删除此商品 style=cursor:hand onClick=DelRowGood('"+flag+"')>";
mycell=myrow.insertCell();
mycell.innerHTML="<input name=Cmdt_NO"+flag+"
type=text class=un-line id=Cmdt_NO"+flag+"
size=12 onkeydown=next_focus(this) onChange=getCmdtID('"+flag+"') onDblClick=showGood('"+flag+"') style=cursor:hand title=双击打开商品选择窗口 onFocus=getFocus() onBlur=lostFocus()>";
mycell=myrow.insertCell();
mycell.innerHTML="<input name=id"+flag+"
type=hidden id=id"+flag+"
value=-1><div id=Cmdt_Name"+flag+">&nbsp;</div>";
mycell=myrow.insertCell();
mycell.innerHTML="<div id=InvOut_SeqNO"+flag+">&nbsp;</div>";
mycell=myrow.insertCell();
mycell.innerHTML="<div id=Cmdt_Unit"+flag+">&nbsp;</div>";
mycell=myrow.insertCell();
mycell.innerHTML="<input onChange=computerSum('"+flag+"') name=InvOut_Price"+flag+"
type=text class=un-line id=InvOut_Price"+flag+"
size=10 onkeydown=next_focus(this) onFocus=getFocus() onBlur=lostFocus()>";
mycell=myrow.insertCell();
mycell.innerHTML="<input onChange=computerSum('"+flag+"') name=InvOut_Mete"+flag+"
type=text class=un-line id=InvOut_Mete"+flag+"
size=10 onkeydown=next_focus(this) onFocus=getFocus() onBlur=lostFocus()>";
mycell=myrow.insertCell();
mycell.innerHTML="<div align=right><input name=InvOut_Amt"+flag+"
type=hidden id=InvOut_Amt"+flag+"></div><div align=right><div id=InvOut_AmtShow"+flag+"
>&nbsp;</div></div>";
mycell=myrow.insertCell();
mycell.innerHTML="<div align=center><font onclick=javascriptpenWriteInvOutRemark('"+flag+"') style=cursor:hand>点击填写<input name=InvOut_Remark"+flag+"
type=hidden id=InvOut_Remark"+flag+"></font></div>";
}