通过符号左右移动数据easyui
来源:互联网 发布:wiffi转网络接口 编辑:程序博客网 时间:2024/06/06 02:29
<!-- 关联客户窗口 -->
<div modal="true" class="easyui-window"title="关联客户窗口" id="customerWindow"collapsible="false" closed="true"minimizable="false" maximizable="false"style="top:20px;left:200px;width:400px;height:300px;">
<divstyle="overflow:auto;padding:5px;"border="false">
<formid="customerForm" action="../../fixedAreaAction_assignCustomers2FixedArea.action"method="post">
<tableclass="table-edit" width="80%"align="center">
<trclass="title">
<tdcolspan="3">关联客户</td>
</tr>
<tr>
<td>
<inputtype="hidden" name="id"id="customerFixedAreaId" />
<selectid="noassociationSelect" multiple="multiple"size="10">
</select>
</td>
<td>
<inputtype="button" value="》》"id="toRight">
<br/>
<inputtype="button" value="《《"id="toLeft">
<scripttype="text/javascript">
$(function(){
//为上面两个按钮绑定事件,实现左右移动客户数据效果
$("#toRight").click(function(){
$("#associationSelect").append($("#noassociationSelectoption:selected"));
});
$("#toLeft").click(function(){
$("#noassociationSelect").append($("#associationSelectoption:selected"));
});
$("#associationBtn").click(function(){
//获取当前选中的定区id
//获得数据表格所有选中的行
varrows =$("#grid").datagrid("getSelections");
varid = rows[0].id;
$("#customerFixedAreaId").val(id);
//提交表单之前需要选中所有的关联客户option
$("#associationSelectoption").attr("selected","selected");
$("#customerForm").submit();
});
});
</script>
</td>
<td>
<selectid="associationSelect" name="customerIds"multiple="multiple" size="10"></select>
</td>
</tr>
<tr>
<tdcolspan="3"><aid="associationBtn" href="#"class="easyui-linkbutton" data-options="iconCls:'icon-save'">关联客户</a> </td>
</tr>
</table>
</form>
</div>
</div>
阅读全文
0 0
- 通过符号左右移动数据easyui
- 左右列表选择数据移动
- ext 左右表格数据互相移动
- dhtmlxgrid实现左右列表数据移动
- js中前台数据左右切换移动
- 利用ECharts实现数据的左右移动
- 左右移动
- Select列表框交换数据(左右移动交换数据)
- 【easyUI】datagrid 通过formatter读取嵌套数据
- 键盘按键左右上下移动+保存cookie数据
- easyUI左右栏动态刷新
- 左右移动的图片
- 左右移动进行选取
- select 左右移动
- js 实现左右移动
- jQuery 左右移动
- 【js】左右上下移动
- 窗体特效,,左右移动
- 关于面向对象的一些理解(1)
- Cpp_链表
- 网页的性能优化的小知识
- TCP握手与挥手
- Xutils请求网络数据
- 通过符号左右移动数据easyui
- shell学习(一)
- 基于Docker的TensorFlow机器学习框架搭建和实例源码解读
- SPOJ DQUERY(树状数组离线处理 or 主席树 区间不同数个数)
- Ubuntu使用mysql添加数据异常解决办法
- 4428: [Nwerc2015]Debugging调试
- C++ wofstream类
- C#中哈希表(HashTable)的用法详解
- 关于python中extend()函数返回值