| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <script type="text/javascript">
- jQuery('#addCgreportConfigItemBtn').linkbutton({
- iconCls: 'icon-add'
- });
- jQuery('#delCgreportConfigItemBtn').linkbutton({
- iconCls: 'icon-remove'
- });
- jQuery('#addCgreportConfigItemBtn').bind('click', function(){
- var tr = jQuery("#add_cgreportConfigItem_table_template tr").clone();
- jQuery("#add_cgreportConfigItem_table").append(tr);
- resetTrNum('add_cgreportConfigItem_table');
- });
- jQuery('#delCgreportConfigItemBtn').bind('click', function(){
- jQuery("#add_cgreportConfigItem_table").find("input:checked").parent().parent().remove();
- resetTrNum('add_cgreportConfigItem_table');
- });
- jQuery(document).ready(function(){
- jQuery(".datagrid-toolbar").parent().css("width","auto");
- if(location.href.indexOf("load=detail")!=-1){
- jQuery(":input").attr("disabled","true");
- jQuery(".datagrid-toolbar").hide();
- }
- });
- </script>
- <div style="padding: 3px; height: 25px; width: auto;" class="datagrid-toolbar">
- <a id="addCgreportConfigItemBtn" href="javascript:void(0);">添加</a>
- <a id="delCgreportConfigItemBtn" href="javascript:void(0);">删除</a>
- </div>
- <div style="width: auto; height: 300px; overflow-y: auto; overflow-x: scroll;">
- <table border="0" cellpadding="2" cellspacing="0" id="cgreportConfigItem_table">
- <tr bgcolor="#E6E6E6">
- <td align="center" bgcolor="#EEEEEE"><label class="Validform_label">编码</label></td>
- <td align="left" bgcolor="#EEEEEE"><label class="Validform_label">名称</label></td>
- <td align="left" bgcolor="#EEEEEE"><label class="Validform_label">排序</label></td>
- <td align="left" bgcolor="#EEEEEE"><label class="Validform_label">文本框</label></td>
- <td align="left" bgcolor="#EEEEEE"><label class="Validform_label">类型</label></td>
- <td align="left" bgcolor="#EEEEEE"><label class="Validform_label">是否显示</label></td>
- <td align="left" bgcolor="#EEEEEE"><label class="Validform_label">字段Href</label></td>
- <td align="left" bgcolor="#EEEEEE"><label class="Validform_label">查询模式</label></td>
- <td align="left" bgcolor="#EEEEEE"><label class="Validform_label">类型</label></td>
- <td align="left" bgcolor="#EEEEEE"><label class="Validform_label">字典Code</label></td>
- <td align="left" bgcolor="#EEEEEE"><label class="Validform_label">是否查询</label></td>
- </tr>
- <tbody id="add_cgreportConfigItem_table">
- #if($!{cgreportConfigItemList})
- #set($count=0)
- #foreach($!{info} in $!{cgreportConfigItemList})
- <tr>
- <td align="center"><input style="width: 20px;" type="checkbox" name="ck" /></td>
- <input name="cgreportConfigItemList[$count].id" type="hidden" value="$!{info.id}" />
- <input name="cgreportConfigItemList[$count].cgrheadId" type="hidden" value="$!{info.cgrheadId}" />
- <td align="left"><input name="cgreportConfigItemList[$count].fieldName" maxlength="36" type="text" class="inputxt" style="width: 120px;" value="$!{info.fieldName}"></td>
- <td align="left"><input name="cgreportConfigItemList[$count].orderNum" maxlength="10" type="text" class="inputxt" style="width: 30px;" value="$!{info.orderNum}"></td>
- <td align="left"><input name="cgreportConfigItemList[$count].fieldTxt" maxlength="1000" type="text" class="inputxt" style="width: 120px;" value="$!{info.fieldTxt}"></td>
- <td align="left">#selectDictTag("fieldtype","cgreportConfigItemList[$count].fieldType",$!{info.fieldType})</td>
- <td align="left">
- <select id="isShow" name="cgreportConfigItemList[$count].isShow" style="width: 60px;">
- #if(${info.isShow} == 'N')
- <option value="Y">显示</option>
- <option value="N" selected="selected">隐藏</option>
- #else
- <option value="Y" selected="selected">显示</option>
- <option value="N">隐藏</option>
- #end
- </select>
- </td>
- <td align="left"><input name="cgreportConfigItemList[$count].fieldHref" maxlength="120" type="text" class="inputxt" style="width: 120px;" value="$!{info.fieldHref}"></td>
- <td align="left">#selectDictTag("searchmode", "cgreportConfigItemList[$count].SMode",$!{info.SMode})</td>
- <td align="left"><input name="cgreportConfigItemList[$count].replaceVa" maxlength="36" type="text" class="inputxt" style="width: 120px;" value="$!{info.replaceVa}"></td>
- <td align="left"><input name="cgreportConfigItemList[$count].dictCode" maxlength="36" type="text" class="inputxt" style="width: 120px;" value="$!{info.dictCode}"></td>
- <td align="left">#selectDictTag("yesorno", "cgreportConfigItemList[$count].SFlag", $!{info.SFlag})</td>
- </tr>
- #set($count=$count+1)
- #end
- #end
- </tbody>
- </table>
- </div>
|