<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>管理定区/调度排班</title>
<!-- 导入jquery核心类库 -->
<script type="text/javascript" src="../../js/jquery-1.8.3.js"></script>
<!-- 导入easyui类库 -->
<link rel="stylesheet" type="text/css" href="../../js/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../js/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="../../js/easyui/ext/portal.css">
<link rel="stylesheet" type="text/css" href="../../css/default.css">
<script type="text/javascript" src="../../js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../js/easyui/ext/jquery.portal.js"></script>
<script type="text/javascript" src="../../js/easyui/ext/jquery.cookie.js"></script>
<script src="../../js/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script type="text/javascript">
function doAdd(){
$('#addWindow').window("open");
}
function doEdit(){
alert("修改...");
}
function doDelete(){
alert("删除...");
}
function doSearch(){
$('#searchWindow').window("open");
}
function doAssociations(){
$('#customerWindow').window('open');
}
//工具栏
var toolbar = [ {
id : 'button-search',
text : '查询',
iconCls : 'icon-search',
handler : doSearch
}, {
id : 'button-add',
text : '增加',
iconCls : 'icon-add',
handler : doAdd
}, {
id : 'button-edit',
text : '修改',
iconCls : 'icon-edit',
handler : doEdit
},{
id : 'button-delete',
text : '删除',
iconCls : 'icon-cancel',
handler : doDelete
},{
id : 'button-association',
text : '关联客户',
iconCls : 'icon-sum',
handler : doAssociations
},{
id : 'button-association-courier',
text : '关联快递员',
iconCls : 'icon-sum',
handler : function(){
// 判断是否已经选中了一个定区,弹出关联快递员窗口
var rows = $("#grid").datagrid('getSelections');
if(rows.length==1){
// 只选择了一个定区
// 弹出定区关联快递员 窗口
$("#courierWindow").window('open');
}else{
// 没有选中定区,或者选择 了多个定区
$.messager.alert("警告","关联快递员,只能(必须)选择一个定区","warning");
}
}
}];
// 定义列
var columns = [ [ {
field : 'id',
title : '编号',
width : 80,
align : 'center',
checkbox:true
},{
field : 'fixedAreaNum',
title : '定区编号',
width : 120,
align : 'center',
formatter : function(value,row,index){
return row.id ;
}
},{
field : 'fixedAreaName',
title : '定区名称',
width : 120,
align : 'center'
}, {
field : 'fixedAreaLeader',
title : '负责人',
width : 120,
align : 'center'
}, {
field : 'telephone',
title : '联系电话',
width : 120,
align : 'center'
}, {
field : 'company',
title : '所属公司',
width : 120,
align : 'center'
} ] ];
$(function(){
// 先将body隐藏,再显示,不会出现页面刷新效果
$("body").css({visibility:"visible"});
// 定区数据表格
$('#grid').datagrid( {
iconCls : 'icon-forward',
fit : true,
border : true,
rownumbers : true,
striped : true,
pageList: [30,50,100],
pagination : true,
toolbar : toolbar,
url : "../../data/fixed_area.json",
idField : 'id',
columns : columns,
onDblClickRow : doDblClickRow
});
// 添加、修改定区
$('#addWindow').window({
title: '添加修改定区',
width: 600,
modal: true,
shadow: true,
closed: true,
height: 400,
resizable:false
});
// 查询定区
$('#searchWindow').window({
title: '查询定区',
width: 400,
modal: true,
shadow: true,
closed: true,
height: 400,
resizable:false
});
$("#btn").click(function(){
alert("执行查询...");
});
});
function doDblClickRow(){
alert("双击表格数据...");
$('#association_subarea').datagrid( {
fit : true,
border : true,
rownumbers : true,
striped : true,
url : "../../data/sub_area.json",
columns : [ [{
field : 'id',
title : '分拣编号',
width : 120,
align : 'center'
},{
field : 'province',
title : '省',
width : 120,
align : 'center',
formatter : function(data,row ,index){
if(row.area!=null){
return row.area.province;
}
return "";
}
}, {
field : 'city',
title : '市',
width : 120,
align : 'center',
formatter : function(data,row ,index){
if(row.area!=null){
return row.area.city;
}
return "";
}
}, {
field : 'district',
title : '区',
width : 120,
align : 'center',
formatter : function(data,row ,index){
if(row.area!=null){
return row.area.district;
}
return "";
}
}, {
field : 'keyWords',
title : '关键字',
width : 120,
align : 'center'
}, {
field : 'startnum',
title : '起始号',
width : 100,
align : 'center'
}, {
field : 'endnum',
title : '终止号',
width : 100,
align : 'center'
} , {
field : 'single',
title : '单双号',
width : 100,
align : 'center'
} , {
field : 'assistKeyWords',
title : '辅助关键字',
width : 100,
align : 'center'
} ] ]
});
$('#association_customer').datagrid( {
fit : true,
border : true,
rownumbers : true,
striped : true,
url : "../../data/association_customer.json",
columns : [[{
field : 'id',
title : '客户编号',
width : 120,
align : 'center'
},{
field : 'name',
title : '客户名称',
width : 120,
align : 'center'
}, {
field : 'company',
title : '所属单位',
width : 120,
align : 'center'
}]]
});
$('#association_courier').datagrid({
fit : true,
border : true,
rownumbers : true,
striped : true,
url : "../../data/courier.json",
columns : [[{
field : 'id',
title : '编号',
width : 120,
align : 'center'
},{
field : 'courierNum',
title : '快递员工号',
width : 120,
align : 'center'
},{
field : 'name',
title : '快递员姓名',
width : 120,
align : 'center'
}, {
field : 'standard.name',
title : '收派标准',
width : 120,
align : 'center',
formatter : function(value,row,index){
if(row.standard != null){
return row.standard.name;
}
return null ;
}
}, {
field : 'taketime.name',
title : '收派时间',
width : 120,
align : 'center',
formatter : function(value,row,index){
if(row.taketime != null){
return row.taketime.name;
}
return null ;
}
}, {
field : 'company',
title : '所属单位',
width : 120,
align : 'center'
}]]
});
}
</script>
</head>
<body class="easyui-layout" style="visibility:hidden;">
<div region="center" border="false">
<table id="grid"></table>
</div>
<div region="south" border="false" style="height:150px">
<div id="tabs" fit="true" class="easyui-tabs">
<div title="关联快递员" id="courier" style="width:100%;height:100%;overflow:hidden">
<table id="association_courier"></table>
</div>
<div title="关联分区" id="subArea" style="width:100%
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
bos物流系统.zip (378个子文件)
.classpath 1KB
org.eclipse.wst.common.component 672B
org.eclipse.wst.jsdt.ui.superType.container 49B
bootstrap.css 143KB
easyui.css 44KB
easyui.css 44KB
easyui.css 43KB
easyui.css 43KB
easyui.css 40KB
style.css 23KB
tabs.css 8KB
tabs.css 8KB
tabs.css 8KB
tabs.css 8KB
style_grey.css 7KB
zTreeStyle.css 6KB
tabs.css 6KB
datagrid.css 5KB
datagrid.css 5KB
datagrid.css 5KB
datagrid.css 5KB
datagrid.css 4KB
calendar.css 3KB
calendar.css 3KB
calendar.css 3KB
calendar.css 3KB
calendar.css 3KB
tree.css 3KB
tree.css 3KB
tree.css 3KB
tree.css 3KB
tree.css 3KB
default.css 3KB
linkbutton.css 3KB
linkbutton.css 3KB
linkbutton.css 3KB
panel.css 3KB
panel.css 3KB
panel.css 2KB
panel.css 2KB
linkbutton.css 2KB
linkbutton.css 2KB
panel.css 2KB
menu.css 2KB
menu.css 2KB
menu.css 2KB
menu.css 2KB
menu.css 2KB
window.css 2KB
window.css 2KB
window.css 2KB
window.css 2KB
layout.css 2KB
layout.css 2KB
layout.css 2KB
layout.css 2KB
layout.css 2KB
icon.css 2KB
window.css 2KB
slider.css 2KB
slider.css 2KB
slider.css 2KB
slider.css 2KB
slider.css 2KB
searchbox.css 1KB
searchbox.css 1KB
searchbox.css 1KB
searchbox.css 1KB
searchbox.css 1KB
pagination.css 1KB
pagination.css 1KB
pagination.css 1KB
pagination.css 1KB
pagination.css 1KB
login.css 1KB
validatebox.css 1KB
validatebox.css 1KB
validatebox.css 1KB
validatebox.css 1KB
validatebox.css 1KB
spinner.css 1KB
spinner.css 1KB
spinner.css 1KB
spinner.css 1KB
spinner.css 1KB
combo.css 1017B
combo.css 1017B
combo.css 1017B
combo.css 1008B
combo.css 1005B
splitbutton.css 962B
splitbutton.css 959B
splitbutton.css 956B
splitbutton.css 956B
splitbutton.css 953B
accordion.css 838B
accordion.css 835B
accordion.css 835B
accordion.css 829B
accordion.css 829B
共 378 条
- 1
- 2
- 3
- 4
资源评论
博士僧小星
- 粉丝: 1921
- 资源: 5884
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功