Open GoogleCodeExporter opened 9 years ago
使用DWZ主从表结构,从表读取数据集显示,用于表单修�� �功能 <table class="list nowrap itemDetail" addButton="增加明细"> <thead> <tr> <th type="text" width="100" name="ID[#index#]" defaultVal="#index#" size="12" fieldClass="digits">ID</th> <th type="lookup" width="160" name="prof.ProjTypeName[#index#]" lookupGroup="prof" lookupUrl="?action=projbrow&do=orgLookup3" suggestUrl="?action=projbrow&do=orgLookup3" suggestFields="ProjTypeName" postField="keywords" size="20">所属专业</th> <th type="lookup" width="160" name="workitem.ItemName[#index#]" lookupGroup="workitem" lookupUrl="?action=projbrow&do=orgLookup4" suggestUrl="?action=projbrow&do=orgLookup4" suggestFields="ItemName" postField="keywords" size="20">工作量项目</th> <th type="text" width="160" name="UnitName[#index#]" defaultVal="" size="20" fieldClass="required">单位</th> <th type="text" width="160" name="Quantity[#index#]" defaultVal="" size="20" fieldClass="digits">数量</th> <th type="del" width="160">操作</th> </tr> </thead> <tbody> <!--{foreach name=outer from=$detail item=row}--> <tr> <td> <input type="text" name="ID[#index#]" value="<!--{$smarty.foreach.outer.iteration}-->" size="12" class="digits"/> </td> <td> <input name="prof.ProjTypeName[<!--{$smarty.foreach.outer.iteration}-->]" value="<!--{$row.ProjTypeName}-->" lookupGroup="prof" autocomplete="off" suffix="[<!--{$smarty.foreach.outer.iteration}-->]" suggestUrl="?action=projbrow&do=orgLookup3" suggestFields="ProjTypeName" postField="keywords" lookuppk="id" size="20" class="textInput valid" type="text"> <a class="btnLook" href="?action=projbrow&do=orgLookup3" lookupGroup="prof" autocomplete="off" suffix="[<!--{$smarty.foreach.outer.iteration}-->]" suggestUrl="?action=projbrow&do=orgLookup3" suggestFields="ProjTypeName" postField="keywords" lookuppk="id" title="查找带回">查找带回</a> </td> <td> <input name="workitem.ItemName[<!--{$smarty.foreach.outer.iteration}-->]" value="<!--{$row.ItemName}-->" lookupGroup="workitem" autocomplete="off" suffix="[<!--{$smarty.foreach.outer.iteration}-->]" suggestUrl="?action=projbrow&do=orgLookup4" suggestFields="ProjTypeName" postField="keywords" lookuppk="id" size="20" class="textInput valid" type="text"> <a class="btnLook" href="?action=projbrow&do=orgLookup4" lookupGroup="workitem" autocomplete="off" suffix="[<!--{$smarty.foreach.outer.iteration}-->]" suggestUrl="?action=projbrow&do=orgLookup4" suggestFields="ItemName" postField="keywords" lookuppk="id" title="查找带回">查找带回</a> </td> <td> <input name="UnitName[<!--{$smarty.foreach.outer.iteration}-->]" value="<!--{$row.UnitName}-->" size="20" class="required textInput" type="text"> </td> <td> <input name="Quantity[<!--{$smarty.foreach.outer.iteration}-->]" value="<!--{$row.Quantity}-->" size="20" class="digits textInput" type="text"> </td> <td> <a href="javascript:void(0)" class="btnDel" >删除</a> </td> </tr> <!--{/foreach}--> </tbody> </table> 通过增加明细按钮,可以增加表格行,表格行最后的删除按�� �,可以删除新增的表格行; 而通过刷新表格显示出来的数据行,最后的删除按钮,点击�� �现错误! Http status: 0 [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "http://localhost:81/EPM/js/jquery-1.7.1.js Line: 8102"] ajaxOptions: error thrownError: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "http://localhost:81/EPM/js/jquery-1.7.1.js Line: 8102"] undefined 弄不明白为什么?请各位高人指点一下!
Original issue reported on code.google.com by yifeng...@gmail.com on 21 Aug 2012 at 12:19
yifeng...@gmail.com
Original issue reported on code.google.com by
yifeng...@gmail.com
on 21 Aug 2012 at 12:19