<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
xmlns:c="http://java.sun.com/jsp/jstl/core"
|
xmlns:h="http://java.sun.com/jsf/html"
|
xmlns:f="http://java.sun.com/jsf/core"
|
xmlns:ui="http://java.sun.com/jsf/facelets">
|
<ui:composition template="/template/nit/tmp_brief.xhtml">
|
<ui:define name="acss">
|
<style>
|
#searchBtn {
|
height: 34px;
|
}
|
p.error {
|
color: #D9534F
|
}
|
input.error {
|
border: 1px solid #D9534F;
|
}
|
#simple-table th,#simple-table td{
|
text-align: center;
|
padding: 2px 8px;
|
}
|
.bigger-95{
|
font-size: 95% !important;
|
}
|
.btn-xs, .btn-group-xs > .btn{
|
padding-top: 0px;
|
padding-bottom: 0px;
|
}
|
#form .control-label {
|
margin-right: -14px
|
}
|
.t-error{
|
color: red;
|
position: relative;
|
right: 2px;
|
top: 3px;
|
}
|
</style>
|
</ui:define>
|
<ui:define name="acontent">
|
<input type="hidden" value="#{param.page}" id="p" />
|
<input type="hidden" value="#{param.keyword}" id="k" />
|
<div class="row">
|
<div class="col-xs-5">
|
<div class="input-group">
|
<input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
|
<span class="input-group-btn">
|
<button class="btn btn-sm btn-default" type="button" id="searchBtn">
|
<i class="ace-icon fa fa-search bigger-110"></i>
|
搜索
|
</button>
|
</span>
|
</div>
|
</div>
|
<div class="col-xs-7" style="text-align: right;">
|
<!--<button class="btn btn-sm btn-info" type="button" id="newObj">
|
<i class="ace-icon fa fa-plus bigger-110"></i>
|
新编号配置
|
</button>-->
|
</div>
|
<div class="col-xs-12" style="margin-top: 8px;">
|
<table id="simple-table" class="table table-bordered table-hover">
|
<thead>
|
<tr>
|
<th class="detail-col">序号</th>
|
<th style="min-width: 70px; width: 70px">操作</th>
|
<th>名称</th>
|
<th>前缀</th>
|
<th>后缀</th>
|
<th>位数</th>
|
<th>级别</th>
|
<th>当前号</th>
|
<th>备注</th>
|
</tr>
|
</thead>
|
|
<tbody data-bind="foreach: list">
|
<tr>
|
<td class="center" data-bind="text: $index() + 1"></td>
|
<td>
|
<div class="btn-group">
|
<button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
|
<!--<i class="ace-icon fa fa-pencil bigger-95"></i>-->
|
编辑
|
</button>
|
|
<!--<button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
|
<i class="ace-icon fa fa-trash-o bigger-95"></i>
|
</button>-->
|
</div>
|
</td>
|
<td data-bind="text: name"></td>
|
<td data-bind="text: prefix"></td>
|
<td data-bind="text: surfix"></td>
|
<td data-bind="text: bitnum"></td>
|
<td data-bind="text: leveling"></td>
|
<td data-bind="text: currents"></td>
|
<td data-bind="text: note"></td>
|
</tr>
|
</tbody>
|
</table>
|
<div id="pagdiv"></div>
|
</div>
|
</div>
|
<div class="modal fade" id="modal">
|
<div class="modal-dialog">
|
<div class="modal-content">
|
<div class="modal-header">
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
<h4 class="modal-title">编辑编号</h4>
|
</div>
|
<div class="modal-body">
|
<form class="form-horizontal" id="form">
|
<div class="form-body">
|
<div class="form-group">
|
<label class="col-md-3 control-label"><span class="t-error">*</span>名称</label>
|
<div class="col-md-6">
|
<input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/>
|
</div>
|
<div class="col-md-3">
|
<p class="form-control-static text-error"></p>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label">业务类型</label>
|
<div class="col-md-6">
|
<select name="" id="" class="form-control" data-bind="value: o().title, options: tList, optionsText: 'name', optionsValue: 'value', enable: false"></select>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label">级别</label>
|
<div class="col-md-6">
|
<select name="" id="" class="form-control" data-bind="value: o().leveling">
|
<option value="0">不分级别</option>
|
<option value="1">1</option>
|
<option value="2">2</option>
|
<option value="3">3</option>
|
<option value="4">4</option>
|
<option value="5">5</option>
|
</select>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label">启用日期</label>
|
<div class="col-md-6" style="padding-top: 7px">
|
<input id="objDatestr" type="checkbox" data-bind="checked: o().datestr()" class="ace ace-switch ace-switch-4" />
|
<span class="lbl middle"></span>
|
</div>
|
<div class="col-md-3">
|
<p class="form-control-static text-error"></p>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label">启用层级</label>
|
<div class="col-md-6" style="padding-top: 7px">
|
<input id="objLvl" type="checkbox" data-bind="checked: o().lvl()" class="ace ace-switch ace-switch-4" />
|
<span class="lbl middle"></span>
|
</div>
|
<div class="col-md-3">
|
<p class="form-control-static text-error"></p>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label">接上级编码</label>
|
<div class="col-md-6" style="padding-top: 7px">
|
<input id="objConcatupper" type="checkbox" data-bind="checked: o().concatupper()" class="ace ace-switch ace-switch-4" />
|
<span class="lbl middle"></span>
|
</div>
|
<div class="col-md-3">
|
<p class="form-control-static text-error"></p>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label">前缀</label>
|
<div class="col-md-6">
|
<input type="text" class="form-control" name="prefix" placeholder="" data-bind="value: o().prefix"/>
|
</div>
|
<div class="col-md-3">
|
<p class="form-control-static text-error"></p>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label">后缀</label>
|
<div class="col-md-6">
|
<input type="text" class="form-control" name="surfix" placeholder="" data-bind="value: o().surfix"/>
|
</div>
|
<div class="col-md-3">
|
<p class="form-control-static text-error"></p>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label"><span class="t-error">*</span>位数</label>
|
<div class="col-md-6">
|
<input type="text" class="form-control" name="bitnum" placeholder="" data-bind="value: o().bitnum"/>
|
</div>
|
<div class="col-md-3">
|
<p class="form-control-static text-error"></p>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label">当前编号</label>
|
<div class="col-md-6">
|
<span style="line-height: 34px" data-bind="text: o().currents"></span>
|
</div>
|
<div class="col-md-3">
|
<p class="form-control-static text-error"></p>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label">备注</label>
|
<div class="col-md-6">
|
<input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
|
</div>
|
</div>
|
</div>
|
</form>
|
</div>
|
<div class="modal-footer">
|
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
|
<button type="button" class="btn btn-primary" id="save">保存</button>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div id="dialog-confirm" class="hide">
|
<div class="alert alert-info bigger-110" id="modalContent">
|
</div>
|
</div>
|
</ui:define>
|
<ui:define name="myscript">
|
<script src="js/prefix.js"></script>
|
</ui:define>
|
</ui:composition>
|
</html>
|