|
<%@ page language="java" contentType="textfile:///C:\Users\ZHANGD~1\AppData\Local\Temp\@IR3P(8S$C$Z$TY~5I{QEPC.gifml; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script>
$(function() {
// 国家 省 市 区县 级联
$('#countryid').combobox({
valueField : 'countryId',
textField : 'countryName',
onSelect : function(rec) {
var url = 'tSPlaceController.do?getProvince&countryid=' + rec.countryId;
$('#provinceid').combobox('reload', url);
}
});
$('#provinceid').combobox({
valueField : 'provinceId',
textField : 'provinceName',
onSelect : function(rec) {
var url = 'tSPlaceController.do?getCity&provinceid=' + rec.provinceId;
$('#cityid').combobox('reload', url);
}
});
$('#cityid').combobox({
valueField : 'cityId',
textField : 'cityName',
onSelect : function(rec) {
var url = 'tSPlaceController.do?getCounty&cityid=' + rec.cityId;
$('#countyid').combobox('reload', url);
}
});
$('#countyid').combobox({
valueField : 'countyId',
textField : 'countyName',
});
});
</script>
<div class="easyui-layout" fit="true">
<div region="center" style="padding: 1px;">
<t:datagrid name="tSPlaceList" fitColumns="true" title="地点管理" autoLoadData="false" actionUrl="tSPlaceController.do?datagrid" idField="id" fit="true" queryMode="group"
sortName="placecode">
<t:dgCol title="主键" field="id" hidden="false"></t:dgCol>
<t:dgCol title="版本号" field="version" hidden="false"></t:dgCol>
<t:dgCol title="地点编码" field="placecode" hidden="true" query="true" queryMatchMode="before" width="80"></t:dgCol>
<t:dgCol title="中文名称" field="placezhname" hidden="true" query="true" queryMatchMode="like" width="160"></t:dgCol>
<t:dgCol title="英文名称" field="placeenname" hidden="true" query="true" queryMatchMode="like" width="160"></t:dgCol>
<t:dgCol title="简称" field="placeshortname" hidden="true" query="true" queryMatchMode="like" width="60"></t:dgCol>
<t:dgCol title="国家" field="countryid" query="true" replace="${countryReplace}" width="50"></t:dgCol>
<t:dgCol title="省" field="provinceid" query="true" replace="${provinceReplace}" width="40"></t:dgCol>
<t:dgCol title="市" field="cityid" query="true" replace="${cityReplace}" width="40"></t:dgCol>
<%-- replace="${cityReplace}" --%>
<t:dgCol title="县" field="countyid" query="true" replace="${countyReplace}" width="40"></t:dgCol>
<t:dgCol title="地址" field="address" hidden="true" queryMatchMode="like" query="true" width="200"></t:dgCol>
<t:dgCol title="状态" field="status" hidden="true" queryMatchMode="like" query="true" replace="启用_1,禁用_0" width="30"></t:dgCol>
<t:dgCol title="操作" field="opt" width="24"></t:dgCol>
<t:dgDelOpt title="删除" url="tSPlaceController.do?doDel&id={id}" operationCode="del" />
<t:dgToolBar title="新建" icon="icon-add" onclick="add('地点新建','tSPlaceController.do?goAdd','tSPlaceList')" operationCode="add"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" onclick="update('地点编辑','tSPlaceController.do?goUpdate','tSPlaceList')" operationCode="edit"></t:dgToolBar>
<t:dgToolBar title="查看" icon="icon-search" url="tSPlaceController.do?goUpdate" funname="detail" operationCode="detail"></t:dgToolBar>
<t:dgToolBar title="启用" icon="icon-unlock" url="tSPlaceController.do?changeStatus" funname="unlock" operationCode="unlock"></t:dgToolBar>
<t:dgToolBar title="禁用" icon="icon-lock" url="tSPlaceController.do?changeStatus" funname="lock" operationCode="lock"></t:dgToolBar>
</t:datagrid>
</div>
</div>
<script src="webpage/com/sinouvnos/mm/mm13/tsplace/tSPlaceList.js"></script>
|
|