Commit 6784675e authored by 马超's avatar 马超

线路资源

parent 4284d603
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
<div class="navbar navbar-fixed-top"> <div class="navbar navbar-fixed-top">
<div class="container-fluid cl"> <div class="container-fluid cl">
<a class="logo navbar-logo f-l mr-10 hidden-xs" style="font-size:15px;"> <a class="logo navbar-logo f-l mr-10 hidden-xs" style="font-size:15px;">
<%--<i class="Hui-iconfont">&#xe625;</i>--%>&nbsp;号码资源管理系统 <%--<i class="Hui-iconfont">&#xe625;</i>--%>&nbsp;线路资源管理系统
</a> </a>
<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs"> <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
<ul class="cl"> <ul class="cl">
......
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2020/9/11
Time: 12:54
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.censoft.common.base.Pub" %>
<%@ page import="com.censoft.common.db.ConnectionFactory" %>
<%@ page import="com.censoft.db.Logger" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="com.censoft.db.DBUtil" %>
<%@ page import="java.sql.SQLException" %>
<%@ page import="java.util.*" %>
<%
ConnectionFactory cf = new ConnectionFactory();
Pub pub = new Pub();
Connection conn = null;
Vector v_list;
String action = pub.trimNull(request.getParameter("action"));
String info_name = pub.trimNull(request.getParameter("info_name"));
String build_number = pub.trimNull(request.getParameter("build_number"));
String bianhao = pub.trimNull(request.getParameter("bianhao"));
String floor = pub.trimNull(request.getParameter("floor"));
String room_number = pub.trimNull(request.getParameter("room_number"));
String address = pub.trimNull(request.getParameter("address"));
String delete_id = pub.trimNull(request.getParameter("delete_id"));
String update_id = pub.trimNull(request.getParameter("update_id"));
String id = DBUtil.getUUID();
String info_type=pub.trimNull(request.getParameter("info_type"));
String add_user = (String) session.getAttribute("session_login_id");
String add_time = pub.getCurrentServerTime();
try {
conn = com.censoft.db.DBUtil.getConnection();
conn.setAutoCommit(false);
if ("add".equals(action)) {
boolean is_up = cf.executeUpdate(conn, "insert into basic_info_data (id,info_name,bianhao,floor,address,build_number,room_number,add_time,add_user,info_type) values (?,?,?,?,?,?,?,?,?,?)"
, new Object[]{id,info_name,bianhao,floor,address,build_number,room_number,add_time,add_user,info_type});
if (!is_up) {
out.println("基础信息数据新增报错" + cf.getMsg());
conn.rollback();
return;
}
Logger.log(conn,"基础信息数据", "添加", id, "", request);
out.println("success");
conn.commit();
conn.setAutoCommit(true);
return;
}if ("update".equals(action)) {
boolean is_up = cf.executeUpdate(conn, "update basic_info_data set info_name=?,bianhao=?,floor=?,address=?,build_number=?,room_number=?,update_time=?,update_user=? where id=? "
, new Object[]{info_name,bianhao,floor,address,build_number,room_number,add_time,add_user,update_id});
if (!is_up) {
out.println("基础信息数据" + cf.getMsg());
conn.rollback();
return;
}
Logger.log(conn,"基础信息数据", "修改", id, "", request);
out.println("success");
conn.commit();
conn.setAutoCommit(true);
return;
}else if("delete".equals(action)){
boolean is_up = cf.executeUpdate(conn, "delete from basic_info_data where id=?"
, new Object[]{delete_id});
if (!is_up) {
out.println("基础信息数据删除报错" + cf.getMsg());
conn.rollback();
return;
}
Logger.log(conn,"基础信息数据", "删除", delete_id, "", request);
out.println("success");
conn.commit();
conn.setAutoCommit(true);
return;
}
} catch (Exception e) {
try {
if(conn != null){
conn.rollback();
}
} catch (SQLException e1) {
e1.printStackTrace();
}
return;
} finally {
if (conn != null) {
try {
conn.close();
} catch (Exception e) {
}
}
}
%>
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2020/9/11
Time: 12:54
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.censoft.common.base.Pub" %>
<%@ page import="com.censoft.common.db.ConnectionFactory" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.sql.SQLException" %>
<%@ page import="java.util.*" %>
<%
Connection conn = null;
Vector v_list;
Hashtable ht = new Hashtable();
Pub pub = new Pub();
ConnectionFactory cf = new ConnectionFactory();
String update_id = pub.trimNull(request.getParameter("update_id"));
String info_type = pub.trimNull(request.getParameter("info_type"));
String action="add";
if(!"".equals(update_id)){
action="update";
}
try {
conn = com.censoft.db.DBUtil.getConnection();
v_list=cf.doQuery(conn,"select * from basic_info_data where id=? ",null,new Object[]{update_id});
if (v_list == null) {
out.println("查询用户出错");
return;
}
if (v_list.size() > 0) {
ht = (Hashtable) v_list.get(0);
}
} catch (Exception e) {
try {
if(conn != null){
conn.rollback();
}
} catch (SQLException e1) {
e1.printStackTrace();
}
return;
} finally {
if (conn != null) {
try {
conn.close();
} catch (Exception e) {
}
}
}
%>
<article class="page-container" style="overflow: hidden;">
<form class="form form-horizontal" id="form-admin-add">
<input type="hidden" name="action" value="<%=action%>">
<input type="hidden" name="update_id" value="<%=update_id%>">
<input type="hidden" name="info_type" value="<%=info_type%>">
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2">信息名称:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" class="input-text" name="info_name" id="info_name" value="<%=pub.trimNull((String) ht.get("info_name"))%>"
placeholder="" >
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2">编号:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" class="input-text" name="bianhao" id="bianhao" value="<%=pub.trimNull((String) ht.get("bianhao"))%>"
placeholder="" >
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2">楼号:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" class="input-text" name="build_number" id="build_number" value="<%=pub.trimNull((String) ht.get("build_number"))%>"
placeholder="" >
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2">楼层:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" class="input-text" name="floor" id="floor" value="<%=pub.trimNull((String) ht.get("floor"))%>"
placeholder="" >
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2">房间号:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" class="input-text" name="room_number" id="room_number" value="<%=pub.trimNull((String) ht.get("room_number"))%>"
placeholder="" >
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2">地址:</label>
<div class="formControls col-xs-8 col-sm-9">
<textarea type="text" class="input-text" name="address" id="address"
style="height:120px;" ><%=pub.trimNull((String) ht.get("address"))%></textarea>
</div>
</div>
<div class="row cl">
<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
<input class="btn btn-primary radius" type="button" onclick="javascript:saveForm();"
value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
</div>
</div>
</form>
</article>
<script>
function saveForm() {
var seg=$("#info_name").val();
if(seg === ""){
layer.msg('输入的名称为空', {
icon: 5,
time: 2000 //2秒关闭(如果不配置,默认是3秒)
}, function () {
});
return false;
}
saveSeg();
}
function saveSeg(){
$.ajax({
type: "POST",
url: "./action.jsp",
data: $('#form-admin-add').serialize(),
success: function (msg) {
if (msg.indexOf("success") >= 0) {
layer.msg('操作成功!', {icon: 1, time: 1000},
function () {
parent.searchModel();
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
});
} else {
layer.msg('操作失败', {
icon: 5,
time: 2000 //2秒关闭(如果不配置,默认是3秒)
}, function () {
});
}
}
});
}
</script>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/pagination.css">
<div class="page-container">
<div class="content" >
<div class="search-form">
<form method="post" id="data_form_search" name="data_form_search">
<input type="hidden" name="page_number" id="page_number" value="1"/>
<input type="hidden" name="info_type" id="info_type" value="hexin"/>
<input type="hidden" name="page_size" id="page_size" value="10"/>
<%--<div class="text-l">
<table class="search-table " style="margin-left: 10%;">
<tr class="">
<td class="search-label" >
名称:
</td>
<td class="search-input" >
<input type="text" placeholder="输入信息名称" class="input-text" name="info_name" id="info_name" value=""
placeholder="" >
</td>
<td class="search-label" >
楼号:
</td>
<td class="search-input" >
<input type="text" placeholder="输入楼号" class="input-text" name="build_number" id="build_number" value=""
placeholder="" >
</td>
<td class="search-label" >
房间号:
</td>
<td class="search-input" >
<input type="text" placeholder="输入房间号" class="input-text" name="room_number" id="room_number" value=""
placeholder="" >
</td>
<td colspan="2">
<a class="btn btn-primary radius" id="searchA" onclick="searchUserModel();" style="margin-left:19%;">
查询
</a>
<a class="btn btn-info radius" onclick="chongzhi();" style="margin-left:5px;">
重置
</a>
</td>
</tr>
</table>
</div>--%>
</form>
</div>
<div>
<a class="btn btn-primary radius" onclick="change_list('hexin');" >
核心机房
</a>
<a class="btn btn-primary radius" onclick="change_list('huiju');" >
汇聚机房
</a>
<a class="btn btn-primary radius" onclick="change_list('jieru');" >
接入机房
</a>
<a class="btn btn-primary radius" onclick="change_list('ruodianjian');" >
弱电间
</a>
<a class="btn btn-primary radius" onclick="change_list('dianwei');" >
点位
</a>
<a class="btn btn-primary radius" onclick="change_list('liantong');" >
联通
</a>
</div>
<div style="height:10px;background-color: #d9e4f6">
</div>
<div class="datalist " id="datalist">
</div>
</div>
</div>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.pagination.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript">
function searchModel() {
$.ajax({
type: "post",
url: "jf_list_ajax.jsp",
data: $('#data_form_search').serialize(),
success: function (msg) {
//data_form_search.reset();
$("#datalist").html(msg);
}
});
}
function change_list(type) {
$("#info_type").val(type);
searchModel();
}
function select_jf(id,name) {
parent.document.getElementById("jf_id").value=id;
parent.document.getElementById("jf_name").value=name;
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
}
function searchUserModel() {
$("#page_number").val("1");
searchModel();
}
$(function(){
searchModel();
});
function chongzhi(){
$("#page_size").val("10");
data_form_search.reset();
searchUserModel();
}
</script>
\ No newline at end of file
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2020/9/11
Time: 12:54
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.util.*" %>
<%@ page import="com.censoft.common.db.ConnectionFactory" %>
<%@ page import="com.censoft.common.base.Pub" %>
<%
ConnectionFactory cf = new ConnectionFactory();
Pub pub = new Pub();
Connection conn = null;
Vector v_list = null;
String page_number = pub.trimNull(request.getParameter("page_number"));
if ("".equals(page_number)) page_number = "1";
String page_size = pub.trimNull(request.getParameter("page_size"));
if ("".equals(page_size)) page_size = "10";
String info_name = pub.trimNull(request.getParameter("info_name"));
String info_type = pub.trimNull(request.getParameter("info_type"));
String build_number = pub.trimNull(request.getParameter("build_number"));
String room_number = pub.trimNull(request.getParameter("room_number"));
List list_s = new ArrayList();
try {
StringBuffer sb = new StringBuffer();
sb.append("select * from basic_info_data where info_type=? ");
list_s.add(info_type);
sb.append(" order by add_time desc");
conn = com.censoft.db.DBUtil.getConnection();
v_list = cf.doPageQueryWithCount(conn, sb.toString(), page_number, page_size, null, list_s.toArray());
if (v_list == null) {
out.println("查询基础信息出错" + cf.getMsg());
return;
}
} catch (Exception e) {
out.println("查询基础信息异常" + e);
return;
} finally {
if (conn != null) {
try {
conn.close();
} catch (Exception e) {
}
}
}
Hashtable ht_row = (Hashtable) v_list.get(0);
String rowCnt = pub.trimNull((String) ht_row.get("ROWCOUNT"));
String pageCnt = pub.trimNull((String) ht_row.get("PAGECOUNT"));
%>
<div class="table-list">
<table class="table table-hover table-bg">
<thead>
<tr class="text-c">
<th width="30px">序号</th>
<th width="150px">名称</th>
<th width="150px">编号</th>
<th width="150px">楼号</th>
<th width="150px">楼层</th>
<th width="150px">房间号</th>
</tr>
</thead>
<tbody>
<%
if (v_list != null && v_list.size() > 0) {
for (int i = 1; i < v_list.size(); i++) {
Hashtable ht = (Hashtable) v_list.get(i);
String id = pub.trimNull((String) ht.get("id"));
String info_name_view = pub.trimNull((String) ht.get("info_name"));
String bianhao_view = pub.trimNull((String) ht.get("bianhao"));
String floor_view = pub.trimNull((String) ht.get("floor"));
String build_number_view = pub.trimNull((String) ht.get("build_number"));
String room_number_view = pub.trimNull((String) ht.get("room_number"));
%>
<tr <%if(i%2==0){%>id="tr_doub"<%}else{%>id="tr_single"<%}%> class="text-c">
<td><%=i%>
</td>
<td>
<a style="color:blue;" onclick="select_jf('<%=id%>','<%=info_name_view%>')" href="javascript:void(0)"><%=info_name_view%></a>
</td>
<td><%=bianhao_view%>
</td>
<td><%=build_number_view%>
</td>
<td><%=floor_view%>
</td>
<td><%=room_number_view%>
</td>
</tr>
<%
}
}
%>
</tbody>
</table>
</div>
<jsp:include page="/common/page_ajax.jsp" >
<jsp:param name="page_number" value="<%=page_number%>" />
<jsp:param name="rowCnt" value="<%=rowCnt%>" />
<jsp:param name="page_size" value="<%=page_size%>" />
</jsp:include>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%
String info_type = request.getParameter("info_type");
String tiaozhuan_url="";
if("peixianjia".equals(info_type)||"yuyin".equals(info_type)){
tiaozhuan_url="other";
}
%>
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/pagination.css">
<div class="page-container">
<div class="content" >
<div class="search-form">
<form method="post" id="data_form_search" name="data_form_search">
<input type="hidden" name="page_number" id="page_number" value="1"/>
<input type="hidden" name="info_type" id="info_type" value="<%=info_type%>"/>
<input type="hidden" name="page_size" id="page_size" value="10"/>
<div class="text-l">
<table class="search-table " style="margin-left: 10%;">
<tr class="">
<td class="search-label" >
名称:
</td>
<td class="search-input" >
<input type="text" placeholder="输入信息名称" class="input-text" name="info_name" id="info_name" value=""
placeholder="" >
</td>
<td class="search-label" >
楼号:
</td>
<td class="search-input" >
<input type="text" placeholder="输入楼号" class="input-text" name="build_number" id="build_number" value=""
placeholder="" >
</td>
<td class="search-label" >
房间号:
</td>
<td class="search-input" >
<input type="text" placeholder="输入房间号" class="input-text" name="room_number" id="room_number" value=""
placeholder="" >
</td>
<td colspan="2">
<a class="btn btn-primary radius" id="searchA" onclick="searchUserModel();" style="margin-left:19%;">
查询
</a>
<a class="btn btn-info radius" onclick="chongzhi();" style="margin-left:5px;">
重置
</a>
</td>
</tr>
</table>
</div>
</form>
</div>
<div style="height:10px;background-color: #d9e4f6">
</div>
<div class="datalist " id="datalist">
</div>
</div>
</div>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.pagination.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript">
function searchModel() {
var url_1='<%=tiaozhuan_url%>';
if(url_1=='other'){
url_1="pxj_list_ajax.jsp";
}else{
url_1="list_ajax.jsp";
}
$.ajax({
type: "post",
url: url_1,
data: $('#data_form_search').serialize(),
success: function (msg) {
//data_form_search.reset();
$("#datalist").html(msg);
}
});
}
function searchUserModel() {
$("#page_number").val("1");
searchModel();
}
$(function(){
searchModel();
});
function chongzhi(){
$("#page_size").val("10");
data_form_search.reset();
searchUserModel();
}
/*用户-编辑*/
function addRules(title, url) {
var abc = layer.open({
title: title,
type: 2,
content: url,
area: ['100%', '100%'],
maxmin: true
});
}
function updateById(url,id){
var abc = layer.open({
title: "编辑",
type: 2,
content: url,
area: ['100%', '100%'],
maxmin: true
});
}
function deleteById(id) {
layer.confirm('确认要删除吗?', function (index) {
$.ajax({
type: "POST",
url: "./action.jsp",
data: {"action":"delete","delete_id":id},
success: function (msg) {
if (msg.indexOf("success") >= 0) {
layer.msg('操作成功!', {icon: 1, time: 1000},
function () {
searchModel();
});
} else {
layer.msg('操作失败', {
icon: 5,
time: 2000 //2秒关闭(如果不配置,默认是3秒)
}, function () {
});
}
}
});
})
}
</script>
\ No newline at end of file
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2020/9/11
Time: 12:54
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.util.*" %>
<%@ page import="com.censoft.common.db.ConnectionFactory" %>
<%@ page import="com.censoft.common.base.Pub" %>
<%
ConnectionFactory cf = new ConnectionFactory();
Pub pub = new Pub();
Connection conn = null;
Vector v_list = null;
String page_number = pub.trimNull(request.getParameter("page_number"));
if ("".equals(page_number)) page_number = "1";
String page_size = pub.trimNull(request.getParameter("page_size"));
if ("".equals(page_size)) page_size = "10";
String info_name = pub.trimNull(request.getParameter("info_name"));
String info_type = pub.trimNull(request.getParameter("info_type"));
String build_number = pub.trimNull(request.getParameter("build_number"));
String room_number = pub.trimNull(request.getParameter("room_number"));
List list_s = new ArrayList();
try {
StringBuffer sb = new StringBuffer();
sb.append("select * from basic_info_data where info_type=? ");
list_s.add(info_type);
if(!"".equals(info_name)){
sb.append(" and info_name like ?");
list_s.add("%"+info_name+"%");
}
if(!"".equals(build_number)){
sb.append(" and build_number = ?");
list_s.add(build_number);
}
if(!"".equals(room_number)){
sb.append(" and room_number = ?");
list_s.add(room_number);
}
sb.append(" order by add_time desc");
conn = com.censoft.db.DBUtil.getConnection();
v_list = cf.doPageQueryWithCount(conn, sb.toString(), page_number, page_size, null, list_s.toArray());
if (v_list == null) {
out.println("查询基础信息出错" + cf.getMsg());
return;
}
} catch (Exception e) {
out.println("查询基础信息异常" + e);
return;
} finally {
if (conn != null) {
try {
conn.close();
} catch (Exception e) {
}
}
}
Hashtable ht_row = (Hashtable) v_list.get(0);
String rowCnt = pub.trimNull((String) ht_row.get("ROWCOUNT"));
String pageCnt = pub.trimNull((String) ht_row.get("PAGECOUNT"));
String telSegmentUrl="./add-t.jsp?info_type="+info_type;
%>
<div>
<a class="btn btn-primary radius" onclick="addRules('新增信息','<%=telSegmentUrl%>');" >
新增
</a>
</div>
<div class="table-list">
<table class="table table-hover table-bg">
<thead>
<tr class="text-c">
<th width="30px">序号</th>
<th width="150px">名称</th>
<th width="150px">编号</th>
<th width="150px">楼号</th>
<th width="150px">楼层</th>
<th width="150px">房间号</th>
<th width="150px">操作</th>
</tr>
</thead>
<tbody>
<%
if (v_list != null && v_list.size() > 0) {
for (int i = 1; i < v_list.size(); i++) {
Hashtable ht = (Hashtable) v_list.get(i);
String id = pub.trimNull((String) ht.get("id"));
String info_name_view = pub.trimNull((String) ht.get("info_name"));
String bianhao_view = pub.trimNull((String) ht.get("bianhao"));
String floor_view = pub.trimNull((String) ht.get("floor"));
String build_number_view = pub.trimNull((String) ht.get("build_number"));
String room_number_view = pub.trimNull((String) ht.get("room_number"));
%>
<tr <%if(i%2==0){%>id="tr_doub"<%}else{%>id="tr_single"<%}%> class="text-c">
<td><%=i%>
</td>
<td><%=info_name_view%>
</td>
<td><%=bianhao_view%>
</td>
<td><%=build_number_view%>
</td>
<td><%=floor_view%>
</td>
<td><%=room_number_view%>
</td>
<td>
<a title="修改" href="javascript:void(0);" onclick="updateById('./add-t.jsp?update_id=<%=id%>','<%=id%>')" class="ml-5" >
<i class="Hui-iconfont">修改</i>
</a>
<a title="删除" href="javascript:void(0);" onclick="deleteById('<%=id%>');" class="ml-5" >
<i class="Hui-iconfont">删除</i>
</a>
</td>
</tr>
<%
}
}
%>
</tbody>
</table>
</div>
<jsp:include page="/common/page_ajax.jsp" >
<jsp:param name="page_number" value="<%=page_number%>" />
<jsp:param name="rowCnt" value="<%=rowCnt%>" />
<jsp:param name="page_size" value="<%=page_size%>" />
</jsp:include>
\ No newline at end of file
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2020/9/11
Time: 12:54
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.censoft.common.base.Pub" %>
<%@ page import="com.censoft.common.db.ConnectionFactory" %>
<%@ page import="com.censoft.db.Logger" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="com.censoft.db.DBUtil" %>
<%@ page import="java.sql.SQLException" %>
<%@ page import="java.util.*" %>
<%
ConnectionFactory cf = new ConnectionFactory();
Pub pub = new Pub();
Connection conn = null;
Vector v_list;
String action = pub.trimNull(request.getParameter("action"));
String info_name = pub.trimNull(request.getParameter("info_name"));
String shebei_type = pub.trimNull(request.getParameter("shebei_type"));
String jf_id = pub.trimNull(request.getParameter("jf_id"));
String bianhao = pub.trimNull(request.getParameter("bianhao"));
String lushu = pub.trimNull(request.getParameter("lushu"));
String use_lushu = pub.trimNull(request.getParameter("use_lushu"));
String describes = pub.trimNull(request.getParameter("describes"));
String delete_id = pub.trimNull(request.getParameter("delete_id"));
String update_id = pub.trimNull(request.getParameter("update_id"));
String id = DBUtil.getUUID();
String info_type=pub.trimNull(request.getParameter("info_type"));
String add_user = (String) session.getAttribute("session_login_id");
String add_time = pub.getCurrentServerTime();
try {
conn = com.censoft.db.DBUtil.getConnection();
conn.setAutoCommit(false);
if ("add".equals(action)) {
boolean is_up = cf.executeUpdate(conn, "insert into basic_info_data (id,info_name,shebei_type,bianhao,jf_id,lushu,use_lushu,describes,add_time,add_user,info_type) values (?,?,?,?,?,?,?,?,?,?,?)"
, new Object[]{id,info_name,shebei_type,bianhao,jf_id,lushu,use_lushu,describes,add_time,add_user,info_type});
if (!is_up) {
out.println("基础信息配线架新增报错" + cf.getMsg());
conn.rollback();
return;
}
Logger.log(conn,"基础信息配线架", "添加", id, "", request);
out.println("success");
conn.commit();
conn.setAutoCommit(true);
return;
}if ("update".equals(action)) {
boolean is_up = cf.executeUpdate(conn, "update basic_info_data set info_name=?,shebei_type=?,bianhao=?,jf_id=?,lushu=?,use_lushu=?,describes=?,update_time=?,update_user=? where id=? "
, new Object[]{info_name,shebei_type,bianhao,jf_id,lushu,use_lushu,describes,add_time,add_user,update_id});
if (!is_up) {
out.println("基础信息配线架" + cf.getMsg());
conn.rollback();
return;
}
Logger.log(conn,"基础信息配线架", "修改", id, "", request);
out.println("success");
conn.commit();
conn.setAutoCommit(true);
return;
}else if("delete".equals(action)){
boolean is_up = cf.executeUpdate(conn, "delete from basic_info_data where id=?"
, new Object[]{delete_id});
if (!is_up) {
out.println("基础信息配线架删除报错" + cf.getMsg());
conn.rollback();
return;
}
Logger.log(conn,"基础信息配线架", "删除", delete_id, "", request);
out.println("success");
conn.commit();
conn.setAutoCommit(true);
return;
}
} catch (Exception e) {
try {
if(conn != null){
conn.rollback();
}
} catch (SQLException e1) {
e1.printStackTrace();
}
return;
} finally {
if (conn != null) {
try {
conn.close();
} catch (Exception e) {
}
}
}
%>
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2020/9/11
Time: 12:54
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.censoft.common.base.Pub" %>
<%@ page import="com.censoft.common.db.ConnectionFactory" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.sql.SQLException" %>
<%@ page import="java.util.*" %>
<%
Connection conn = null;
Vector v_list;
Hashtable ht = new Hashtable();
Pub pub = new Pub();
ConnectionFactory cf = new ConnectionFactory();
String update_id = pub.trimNull(request.getParameter("update_id"));
String info_type = pub.trimNull(request.getParameter("info_type"));
String action="add";
if(!"".equals(update_id)){
action="update";
}
try {
conn = com.censoft.db.DBUtil.getConnection();
v_list=cf.doQuery(conn,"select t1.*,t2.info_name as jf_name from basic_info_data t1 join basic_info_data t2 on t1.jf_id=t2.id where t1.id=? ",null,new Object[]{update_id});
if (v_list == null) {
out.println("查询用户出错");
return;
}
if (v_list.size() > 0) {
ht = (Hashtable) v_list.get(0);
}
} catch (Exception e) {
try {
if(conn != null){
conn.rollback();
}
} catch (SQLException e1) {
e1.printStackTrace();
}
return;
} finally {
if (conn != null) {
try {
conn.close();
} catch (Exception e) {
}
}
}
%>
<article class="page-container" style="overflow: hidden;">
<form class="form form-horizontal" id="form-admin-add">
<input type="hidden" name="action" value="<%=action%>">
<input type="hidden" name="update_id" value="<%=update_id%>">
<input type="hidden" name="info_type" value="<%=info_type%>">
<input type="hidden" name="jf_id" id="jf_id" value="<%=pub.trimNull((String) ht.get("jf_id"))%>">
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2">名称:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" class="input-text" name="info_name" id="info_name" value="<%=pub.trimNull((String) ht.get("info_name"))%>"
placeholder="" >
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2">类型:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" class="input-text" name="shebei_type" id="shebei_type" value="<%=pub.trimNull((String) ht.get("shebei_type"))%>"
placeholder="" >
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2">编号:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" class="input-text" name="bianhao" id="bianhao" value="<%=pub.trimNull((String) ht.get("bianhao"))%>"
placeholder="" >
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2">所属机房:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" class="input-text"
name="jf_name" id="jf_name" value="<%=pub.trimNull((String) ht.get("jf_name"))%>"
onclick="select_jf();" >
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2">路数:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" class="input-text" name="lushu" id="lushu" value="<%=pub.trimNull((String) ht.get("lushu"))%>"
placeholder="" >
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2">已用路数:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" class="input-text" name="use_lushu" id="use_lushu" value="<%=pub.trimNull((String) ht.get("use_lushu"))%>"
placeholder="" >
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2">备注:</label>
<div class="formControls col-xs-8 col-sm-9">
<textarea type="text" class="input-text" name="describes" id="describes"
style="height:120px;" ><%=pub.trimNull((String) ht.get("describes"))%></textarea>
</div>
</div>
<div class="row cl">
<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
<input class="btn btn-primary radius" type="button" onclick="javascript:saveForm();"
value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
</div>
</div>
</form>
</article>
<script>
function saveForm() {
var seg=$("#info_name").val();
if(seg === ""){
layer.msg('输入的名称为空', {
icon: 5,
time: 2000 //2秒关闭(如果不配置,默认是3秒)
}, function () {
});
return false;
}
saveSeg();
}
function saveSeg(){
$.ajax({
type: "POST",
url: "./pxj_action.jsp",
data: $('#form-admin-add').serialize(),
success: function (msg) {
if (msg.indexOf("success") >= 0) {
layer.msg('操作成功!', {icon: 1, time: 1000},
function () {
parent.searchModel();
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
});
} else {
layer.msg('操作失败', {
icon: 5,
time: 2000 //2秒关闭(如果不配置,默认是3秒)
}, function () {
});
}
}
});
}
function select_jf() {
var abc = layer.open({
title: "选择机房",
type: 2,
content: "jf_list-t.jsp",
area: ['100%', '100%'],
maxmin: true
});
}
</script>
\ No newline at end of file
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2020/9/11
Time: 12:54
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.util.*" %>
<%@ page import="com.censoft.common.db.ConnectionFactory" %>
<%@ page import="com.censoft.common.base.Pub" %>
<%
ConnectionFactory cf = new ConnectionFactory();
Pub pub = new Pub();
Connection conn = null;
Vector v_list = null;
String page_number = pub.trimNull(request.getParameter("page_number"));
if ("".equals(page_number)) page_number = "1";
String page_size = pub.trimNull(request.getParameter("page_size"));
if ("".equals(page_size)) page_size = "10";
String info_name = pub.trimNull(request.getParameter("info_name"));
String info_type = pub.trimNull(request.getParameter("info_type"));
System.out.println("info_type="+info_type);
String menu_name="";
if("peixianjia".equals(info_type)){
menu_name="配线架";
}else if("yuyin".equals(info_type)){
menu_name="语音交换设备";
}
List list_s = new ArrayList();
try {
StringBuffer sb = new StringBuffer();
sb.append("select t1.*,t2.info_name as jf_name from basic_info_data t1 join basic_info_data t2 on t1.jf_id=t2.id where t1.info_type=? ");
list_s.add(info_type);
if(!"".equals(info_name)){
sb.append(" and t1.info_name like ?");
list_s.add("%"+info_name+"%");
}
sb.append(" order by add_time desc");
conn = com.censoft.db.DBUtil.getConnection();
v_list = cf.doPageQueryWithCount(conn, sb.toString(), page_number, page_size, null, list_s.toArray());
if (v_list == null) {
out.println("查询基础信息出错" + cf.getMsg());
return;
}
} catch (Exception e) {
out.println("查询基础信息异常" + e);
return;
} finally {
if (conn != null) {
try {
conn.close();
} catch (Exception e) {
}
}
}
Hashtable ht_row = (Hashtable) v_list.get(0);
String rowCnt = pub.trimNull((String) ht_row.get("ROWCOUNT"));
String pageCnt = pub.trimNull((String) ht_row.get("PAGECOUNT"));
String telSegmentUrl="./pxj_add-t.jsp?info_type="+info_type;
%>
<div>
<a class="btn btn-primary radius" onclick="addRules('新增信息','<%=telSegmentUrl%>');" >
新增
</a>
</div>
<div class="table-list">
<table class="table table-hover table-bg">
<thead>
<tr class="text-c">
<th width="30px">序号</th>
<th width="150px"><%=menu_name%>名称</th>
<th width="150px"><%=menu_name%>类型</th>
<th width="150px"><%=menu_name%>编号</th>
<th width="150px">所属机房</th>
<th width="150px">路数</th>
<th width="150px">已用路数</th>
<th width="150px">操作</th>
</tr>
</thead>
<tbody>
<%
if (v_list != null && v_list.size() > 0) {
for (int i = 1; i < v_list.size(); i++) {
Hashtable ht = (Hashtable) v_list.get(i);
String id = pub.trimNull((String) ht.get("id"));
String info_name_view = pub.trimNull((String) ht.get("info_name"));
String shebei_type_view = pub.trimNull((String) ht.get("shebei_type"));
String bianhao_view = pub.trimNull((String) ht.get("bianhao"));
String jf_name = pub.trimNull((String) ht.get("jf_name"));
String lushu = pub.trimNull((String) ht.get("lushu"));
String use_lushu = pub.trimNull((String) ht.get("use_lushu"));
%>
<tr <%if(i%2==0){%>id="tr_doub"<%}else{%>id="tr_single"<%}%> class="text-c">
<td><%=i%>
</td>
<td><%=info_name_view%>
</td>
<td><%=shebei_type_view%>
</td>
<td><%=bianhao_view%>
</td>
<td><%=jf_name%>
</td>
<td><%=lushu%>
</td>
<td><%=use_lushu%>
</td>
<td>
<a title="修改" href="javascript:void(0);" onclick="updateById('./pxj_add-t.jsp?update_id=<%=id%>','<%=id%>');" class="ml-5" >
<i class="Hui-iconfont">修改</i>
</a>
<a title="删除" href="javascript:void(0);" onclick="deleteById('<%=id%>');" class="ml-5" >
<i class="Hui-iconfont">删除</i>
</a>
</td>
</tr>
<%
}
}
%>
</tbody>
</table>
</div>
<jsp:include page="/common/page_ajax.jsp" >
<jsp:param name="page_number" value="<%=page_number%>" />
<jsp:param name="rowCnt" value="<%=rowCnt%>" />
<jsp:param name="page_size" value="<%=page_size%>" />
</jsp:include>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
<%@ page contentType="text/html;charset=UTF-8" %>
<%
String type = request.getParameter("type");
String div_id = request.getParameter("div_id");
String type_value="hexin";
if("jf".equals(type)){
type_value="hexin";
}else if("pxj".equals(type)){
type_value="peixianjia";
}else if("dw".equals(type)){
type_value="dianwei";
}
%>
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/pagination.css">
<div class="page-container">
<div class="content" >
<div class="search-form">
<form method="post" id="data_form_search" name="data_form_search">
<input type="hidden" name="page_number" id="page_number" value="1"/>
<input type="hidden" name="info_type" id="info_type" value="<%=type_value%>"/>
<input type="hidden" name="div_id" id="div_id" value="<%=div_id%>"/>
<input type="hidden" name="page_size" id="page_size" value="10"/>
<%--<div class="text-l">
<table class="search-table " style="margin-left: 10%;">
<tr class="">
<td class="search-label" >
名称:
</td>
<td class="search-input" >
<input type="text" placeholder="输入信息名称" class="input-text" name="info_name" id="info_name" value=""
placeholder="" >
</td>
<td class="search-label" >
楼号:
</td>
<td class="search-input" >
<input type="text" placeholder="输入楼号" class="input-text" name="build_number" id="build_number" value=""
placeholder="" >
</td>
<td class="search-label" >
房间号:
</td>
<td class="search-input" >
<input type="text" placeholder="输入房间号" class="input-text" name="room_number" id="room_number" value=""
placeholder="" >
</td>
<td colspan="2">
<a class="btn btn-primary radius" id="searchA" onclick="searchUserModel();" style="margin-left:19%;">
查询
</a>
<a class="btn btn-info radius" onclick="chongzhi();" style="margin-left:5px;">
重置
</a>
</td>
</tr>
</table>
</div>--%>
</form>
</div>
<div id="jf" <%if(!"jf".equals(type)){%>style="display: none" <%}%>>
<a class="btn btn-primary radius" onclick="change_list('hexin');" >
核心机房
</a>
<a class="btn btn-primary radius" onclick="change_list('huiju');" >
汇聚机房
</a>
<a class="btn btn-primary radius" onclick="change_list('jieru');" >
接入机房
</a>
<a class="btn btn-primary radius" onclick="change_list('ruodianjian');" >
弱电间
</a>
<a class="btn btn-primary radius" onclick="change_list('liantong');" >
联通
</a>
</div>
<div id="pxj" <%if(!"pxj".equals(type)){%>style="display: none" <%}%>>
<a class="btn btn-primary radius" onclick="change_list('peixianjia');" >
配线架
</a>
<a class="btn btn-primary radius" onclick="change_list('yuyin');" >
语音交换设备
</a>
</div>
<div id="dw" <%if(!"dw".equals(type)){%>style="display: none" <%}%>>
<a class="btn btn-primary radius" onclick="change_list('dianwei');" >
点位
</a>
</div>
<div style="height:10px;background-color: #d9e4f6">
</div>
<div class="datalist " id="datalist">
</div>
</div>
</div>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.pagination.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript">
function searchModel() {
$.ajax({
type: "post",
url: "jf_list_ajax.jsp",
data: $('#data_form_search').serialize(),
success: function (msg) {
//data_form_search.reset();
$("#datalist").html(msg);
}
});
}
function change_list(type) {
$("#info_type").val(type);
searchModel();
}
function select_jf(div_id,id,name) {
parent.document.getElementById(div_id+"_id").value=id;
parent.document.getElementById(div_id).value=name;
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
}
function searchUserModel() {
$("#page_number").val("1");
searchModel();
}
$(function(){
searchModel();
});
function chongzhi(){
$("#page_size").val("10");
data_form_search.reset();
searchUserModel();
}
</script>
\ No newline at end of file
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2020/9/11
Time: 12:54
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.util.*" %>
<%@ page import="com.censoft.common.db.ConnectionFactory" %>
<%@ page import="com.censoft.common.base.Pub" %>
<%
ConnectionFactory cf = new ConnectionFactory();
Pub pub = new Pub();
Connection conn = null;
Vector v_list = null;
String page_number = pub.trimNull(request.getParameter("page_number"));
if ("".equals(page_number)) page_number = "1";
String page_size = pub.trimNull(request.getParameter("page_size"));
if ("".equals(page_size)) page_size = "10";
String div_id = pub.trimNull(request.getParameter("div_id"));
String info_type = pub.trimNull(request.getParameter("info_type"));
List list_s = new ArrayList();
try {
StringBuffer sb = new StringBuffer();
sb.append("select * from basic_info_data where info_type=? ");
list_s.add(info_type);
sb.append(" order by add_time desc");
conn = com.censoft.db.DBUtil.getConnection();
v_list = cf.doPageQueryWithCount(conn, sb.toString(), page_number, page_size, null, list_s.toArray());
if (v_list == null) {
out.println("查询基础信息出错" + cf.getMsg());
return;
}
} catch (Exception e) {
out.println("查询基础信息异常" + e);
return;
} finally {
if (conn != null) {
try {
conn.close();
} catch (Exception e) {
}
}
}
Hashtable ht_row = (Hashtable) v_list.get(0);
String rowCnt = pub.trimNull((String) ht_row.get("ROWCOUNT"));
String pageCnt = pub.trimNull((String) ht_row.get("PAGECOUNT"));
%>
<div class="table-list">
<table class="table table-hover table-bg">
<thead>
<tr class="text-c">
<th width="30px">序号</th>
<th width="150px">名称</th>
<th width="150px">编号</th>
<th width="150px">楼号</th>
<th width="150px">楼层</th>
<th width="150px">房间号</th>
</tr>
</thead>
<tbody>
<%
if (v_list != null && v_list.size() > 0) {
for (int i = 1; i < v_list.size(); i++) {
Hashtable ht = (Hashtable) v_list.get(i);
String id = pub.trimNull((String) ht.get("id"));
String info_name_view = pub.trimNull((String) ht.get("info_name"));
String bianhao_view = pub.trimNull((String) ht.get("bianhao"));
String floor_view = pub.trimNull((String) ht.get("floor"));
String build_number_view = pub.trimNull((String) ht.get("build_number"));
String room_number_view = pub.trimNull((String) ht.get("room_number"));
%>
<tr <%if(i%2==0){%>id="tr_doub"<%}else{%>id="tr_single"<%}%> class="text-c">
<td><%=i%>
</td>
<td>
<a style="color:blue;" onclick="select_jf('<%=div_id%>','<%=id%>','<%=info_name_view%>')" href="javascript:void(0)"><%=info_name_view%></a>
</td>
<td><%=bianhao_view%>
</td>
<td><%=build_number_view%>
</td>
<td><%=floor_view%>
</td>
<td><%=room_number_view%>
</td>
</tr>
<%
}
}
%>
</tbody>
</table>
</div>
<jsp:include page="/common/page_ajax.jsp" >
<jsp:param name="page_number" value="<%=page_number%>" />
<jsp:param name="rowCnt" value="<%=rowCnt%>" />
<jsp:param name="page_size" value="<%=page_size%>" />
</jsp:include>
\ No newline at end of file
...@@ -19,6 +19,17 @@ ...@@ -19,6 +19,17 @@
<div class="text-l"> <div class="text-l">
<table class="search-table " style="margin-left: 10%;"> <table class="search-table " style="margin-left: 10%;">
<tr class=""> <tr class="">
<td class="search-label" >
线缆类型:
</td>
<td class="search-input" id="property" name="property" >
<script>
$.post("../zd/zd_view_list.jsp?name_id=property&zd_e_name=xl_type&math="+Math.random(),function(data){
document.getElementById("property").innerHTML=data;
}
);
</script>
</td>
<td class="search-label" > <td class="search-label" >
起点位置: 起点位置:
</td> </td>
...@@ -30,7 +41,7 @@ ...@@ -30,7 +41,7 @@
终点位置: 终点位置:
</td> </td>
<td class="search-input" > <td class="search-input" >
<input type="text" placeholder="终点位置" class="input-text" name="end_jf" id="end_jf" value="" <input type="text" placeholder="型号" class="input-text" name="end_if" id="end_if" value=""
placeholder="" > placeholder="" >
</td> </td>
<td colspan="2"> <td colspan="2">
......
...@@ -36,17 +36,25 @@ ...@@ -36,17 +36,25 @@
if ("".equals(page_size)) page_size = "10"; if ("".equals(page_size)) page_size = "10";
String begin_jf = pub.trimNull(request.getParameter("begin_jf")); String begin_jf = pub.trimNull(request.getParameter("begin_jf"));
String end_jf = pub.trimNull(request.getParameter("end_jf")); String end_jf = pub.trimNull(request.getParameter("end_jf"));
String property_form= pub.trimNull(request.getParameter("property"));
List list_s = new ArrayList(); List list_s = new ArrayList();
try { try {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
sb.append("select * from xlzy_info where 1=1 "); sb.append("select * from xlzy_info where 1=1 ");
if(!"".equals(begin_jf)){ if(!"".equals(begin_jf) ){
sb.append(" and info_name like ?"); sb.append(" and (begin_jf_name like ? or begin_rdj_name like ?)");
list_s.add("%"+begin_jf+"%");
list_s.add("%"+begin_jf+"%"); list_s.add("%"+begin_jf+"%");
} }
if(!"".equals(end_jf)){ if(!"".equals(end_jf)){
sb.append(" and build_number = ?"); sb.append(" and (end_jf_name like ? or end_rdj_name like ? or dianwei like ?)");
list_s.add(end_jf); list_s.add("%"+end_jf+"%");
list_s.add("%"+end_jf+"%");
list_s.add("%"+end_jf+"%");
}
if(!"".equals(property_form) ){
sb.append(" and property=? ");
list_s.add(property_form);
} }
sb.append(" order by add_time desc"); sb.append(" order by add_time desc");
conn = com.censoft.db.DBUtil.getConnection(); conn = com.censoft.db.DBUtil.getConnection();
...@@ -73,8 +81,9 @@ ...@@ -73,8 +81,9 @@
<th width="30px">序号</th> <th width="30px">序号</th>
<th width="80px">线缆类型</th> <th width="80px">线缆类型</th>
<th width="100px">线缆编号</th> <th width="100px">线缆编号</th>
<th width="150px">起点位置</th> <th width="100px">线缆型号</th>
<th width="150px">终点位置</th> <%--<th width="150px">起点位置</th>
<th width="150px">终点位置</th>--%>
<th width="80px">线缆芯数</th> <th width="80px">线缆芯数</th>
<th width="80px">已用芯数</th> <th width="80px">已用芯数</th>
<th width="150px">线缆生产厂商</th> <th width="150px">线缆生产厂商</th>
...@@ -91,14 +100,26 @@ ...@@ -91,14 +100,26 @@
String property_view = pub.trimNull((String) ht.get("property")); String property_view = pub.trimNull((String) ht.get("property"));
String bianhao_view = pub.trimNull((String) ht.get("bianhao")); String bianhao_view = pub.trimNull((String) ht.get("bianhao"));
String xinghao_view = pub.trimNull((String) ht.get("xinghao")); String xinghao_view = pub.trimNull((String) ht.get("xinghao"));
String begin_jf_view = pub.trimNull((String) ht.get("begin_jf")); String begin_jf_view = pub.trimNull((String) ht.get("begin_jf_name"));
begin_jf_view=getName(cf,conn,begin_jf_view); String begin_rdj_view = pub.trimNull((String) ht.get("begin_rdj_name"));
String begin_rdj_view = pub.trimNull((String) ht.get("begin_rdj")); String qd_address="";
begin_rdj_view=getName(cf,conn,begin_rdj_view); if("".equals(begin_rdj_view)){
String end_jf_view = pub.trimNull((String) ht.get("end_jf")); qd_address=begin_jf_view;
String end_rdj_view = pub.trimNull((String) ht.get("end_rdj")); }else{
end_jf_view=getName(cf,conn,end_jf_view); qd_address=begin_jf_view+"-"+begin_rdj_view;
end_rdj_view=getName(cf,conn,end_rdj_view); }
String zd_address="";
String end_jf_view = pub.trimNull((String) ht.get("end_jf_name"));
String end_rdj_view = pub.trimNull((String) ht.get("end_rdj_name"));
if("".equals(end_rdj_view)){
zd_address=end_jf_view;
}else{
zd_address=end_jf_view+"-"+end_rdj_view;
}
String dianwei_view = pub.trimNull((String) ht.get("dianwei_name"));
if(!"".equals(dianwei_view)){
zd_address=dianwei_view;
}
String xin_number_view = pub.trimNull((String) ht.get("xin_number")); String xin_number_view = pub.trimNull((String) ht.get("xin_number"));
String use_xin_number_view = pub.trimNull((String) ht.get("use_xin_number")); String use_xin_number_view = pub.trimNull((String) ht.get("use_xin_number"));
String shengchanshang = pub.trimNull((String) ht.get("shengchanshang")); String shengchanshang = pub.trimNull((String) ht.get("shengchanshang"));
...@@ -111,10 +132,12 @@ ...@@ -111,10 +132,12 @@
</td> </td>
<td><%=bianhao_view%> <td><%=bianhao_view%>
</td> </td>
<td><%=begin_jf_view%>--<%=begin_rdj_view%> <td><%=xinghao_view%>
</td> </td>
<td><%=end_jf_view%>--<%=end_rdj_view%> <%--<td><%=qd_address%>
</td> </td>
<td><%=zd_address%>
</td>--%>
<td><%=xin_number_view%> <td><%=xin_number_view%>
</td> </td>
<td><%=use_xin_number_view%> <td><%=use_xin_number_view%>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
v_list = cf.doQuery(conn, sb.toString(), null, new Object[]{s_id}); v_list = cf.doQuery(conn, sb.toString(), null, new Object[]{s_id});
System.out.println(sb.toString()); System.out.println(sb.toString());
if("admin1".equals(s_id)){ if("admin".equals(s_id)){
sb = new StringBuffer("select * from t_book_menu menu where (menu.p_id ='' or menu.p_id is null) order by menu_order asc"); sb = new StringBuffer("select * from t_book_menu menu where (menu.p_id ='' or menu.p_id is null) order by menu_order asc");
v_list = cf.doQuery(conn, sb.toString(), null, new Object[]{}); v_list = cf.doQuery(conn, sb.toString(), null, new Object[]{});
} }
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<input type="hidden" name="s_id" value="<%=session.getId()%>"/> <input type="hidden" name="s_id" value="<%=session.getId()%>"/>
<input type="hidden" name="action" value="login"/> <input type="hidden" name="action" value="login"/>
<div class="row cl"> <div class="row cl">
<label class="form-label col-xs-10" style="font-size:30px;">号码资源管理系统</label> <label class="form-label col-xs-10" style="font-size:30px;">线路资源管理系统</label>
</div> </div>
<div class="row cl"> <div class="row cl">
<label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i></label> <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i></label>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>号码资源管理系统</title> <title>线路资源管理系统</title>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" /> <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment