Commit 13c79014 authored by AlanGao's avatar AlanGao
Browse files

format jsp

parent 07259995
<%@page import="com.jsh.util.Tools"%> <%@page import="com.jsh.util.Tools" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8" %>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
String clientIp = Tools.getLocalIp(request); String clientIp = Tools.getLocalIp(request);
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>ERP系统</title> <title>ERP系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!-- 指定以IE8的方式来渲染 --> <!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon"/>
<link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css" /> <link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css"/>
<script type="text/javascript" src="<%=path %>/js/jquery-1.8.0.min.js"></script> <script type="text/javascript" src="<%=path %>/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/common/common.js"></script> <script type="text/javascript" src="<%=path %>/js/common/common.js"></script>
</head> </head>
<body id="login_body"> <body id="login_body">
<form action="admin.html"> <form action="admin.html">
<div id="login_main"> <div id="login_main">
<div id="login"> <div id="login">
<p id="login_signal"><img src="<%=path%>/images/login_tip.jpg" width="108" height="29" alt="login" /></p> <p id="login_signal"><img src="<%=path%>/images/login_tip.jpg" width="108" height="29" alt="login"/></p>
<p id="txt_username"> <p id="txt_username">
<label for="user_name">用户名:</label> <label for="user_name">用户名:</label>
</p> </p>
<p id="txt_userpwd"> <p id="txt_userpwd">
<label for="user_vcode" id="user_vcodepwd">&nbsp;&nbsp;&nbsp;&nbsp;码:</label> <label for="user_vcode" id="user_vcodepwd">&nbsp;&nbsp;&nbsp;&nbsp;码:</label>
</p> </p>
<input type="text" id="user_name" /> <input type="text" id="user_name"/>
<input type="password" id="user_pwd" /> <input type="password" id="user_pwd"/>
<p id="tip_username" style="display: none"><span class="error_input">用户名不正确</span></p> <p id="tip_username" style="display: none"><span class="error_input">用户名不正确</span></p>
<p id="tip_userpwd" style="display: none">密码不能为空</p> <p id="tip_userpwd" style="display: none">密码不能为空</p>
<input type="button" value=" " id="btn_login" /> <input type="button" value=" " id="btn_login"/>
</div> </div>
<p id="copyright">Copyright © 2017-2020 季圣华(jishenghua) <a style="color:#00458a;" href="https://gitee.com/jishenghua/JSH_ERP" target="_blank">华夏ERP_v1.0</a></p> <p id="copyright">Copyright © 2017-2020 季圣华(jishenghua) <a style="color:#00458a;"
href="https://gitee.com/jishenghua/JSH_ERP"
target="_blank">华夏ERP_v1.0</a></p>
</div> </div>
</form> </form>
<script type="text/javascript"> <script type="text/javascript">
//初始化界面 //初始化界面
$(function() $(function () {
{
//进入页面聚焦在username输入框,方便 用户输入 //进入页面聚焦在username输入框,方便 用户输入
$("#user_name").focus(); $("#user_name").focus();
browserFit(); browserFit();
}); });
//浏览器适配 //浏览器适配
function browserFit() function browserFit() {
{ if (getOs() == 'MSIE')
if(getOs()=='MSIE')
$("#user_vcodepwd").empty().append("密&nbsp;&nbsp;&nbsp;&nbsp;码:"); $("#user_vcodepwd").empty().append("密&nbsp;&nbsp;&nbsp;&nbsp;码:");
else else
$("#user_vcodepwd").empty().append("密&nbsp;&nbsp;&nbsp;&nbsp;码:"); $("#user_vcodepwd").empty().append("密&nbsp;&nbsp;&nbsp;&nbsp;码:");
} }
//初始化键盘enter事件 //初始化键盘enter事件
$(document).keydown(function(event) $(document).keydown(function (event) {
{
//兼容 IE和firefox 事件 //兼容 IE和firefox 事件
var e = window.event || event; var e = window.event || event;
var k = e.keyCode||e.which||e.charCode; var k = e.keyCode || e.which || e.charCode;
//兼容 IE,firefox 兼容 //兼容 IE,firefox 兼容
var obj = e.srcElement ? e.srcElement : e.target; var obj = e.srcElement ? e.srcElement : e.target;
//绑定键盘事件为 id是usename 和password的输入框才可以触发键盘事件 13键盘事件 //绑定键盘事件为 id是usename 和password的输入框才可以触发键盘事件 13键盘事件
if(k == "13"&&(obj.id=="user_name"||obj.id=="user_pwd")) if (k == "13" && (obj.id == "user_name" || obj.id == "user_pwd"))
checkUserInput(); checkUserInput();
}); });
//登录按钮绑定处理事件 //登录按钮绑定处理事件
$('#btn_login').bind({ $('#btn_login').bind({
click:checkUserInput click: checkUserInput
}); });
//检测用户输入数据 //检测用户输入数据
function checkUserInput () function checkUserInput() {
{
var username = $.trim($('#user_name').val()); var username = $.trim($('#user_name').val());
var password = $.trim($('#user_pwd').val()); var password = $.trim($('#user_pwd').val());
if(null == username ||0 == username.length) if (null == username || 0 == username.length) {
{
$("#user_name").val("").focus(); $("#user_name").val("").focus();
$("#tip_userpwd").hide(); $("#tip_userpwd").hide();
$("#tip_username").empty().append('<span class="error_input">用户名不能为空</span>').show(); $("#tip_username").empty().append('<span class="error_input">用户名不能为空</span>').show();
...@@ -88,62 +85,55 @@ ...@@ -88,62 +85,55 @@
else else
$("#tip_username").hide(); $("#tip_username").hide();
if(null == password || 0 == password.length) if (null == password || 0 == password.length) {
{
$("#user_pwd").val("").focus(); $("#user_pwd").val("").focus();
$("#tip_userpwd").empty().append('<span class="error_input">密码不能为空</span>').show(); $("#tip_userpwd").empty().append('<span class="error_input">密码不能为空</span>').show();
return; return;
} }
else else
$("#tip_userpwd").hide(); $("#tip_userpwd").hide();
if(username != null&& username.length != 0 if (username != null && username.length != 0
&&password != null&&password.length != 0) && password != null && password.length != 0) {
{
$("#user_name").focus(); $("#user_name").focus();
$("#tip_username").hide(); $("#tip_username").hide();
$("#tip_userpwd").hide(); $("#tip_userpwd").hide();
$.ajax({ $.ajax({
type:"post", type: "post",
url: "<%=path%>/user/login.action", url: "<%=path%>/user/login.action",
dataType: "json", dataType: "json",
data: ({ data: ({
loginame : username, loginame: username,
password : password, password: password,
clientIp:"<%=clientIp%>" clientIp: "<%=clientIp%>"
}), }),
success: function (loginInfo){ success: function (loginInfo) {
var loginInfoTip = loginInfo.showModel.msgTip; var loginInfoTip = loginInfo.showModel.msgTip;
//用户名不存在,清空输入框并定位到用户名输入框 //用户名不存在,清空输入框并定位到用户名输入框
if(loginInfoTip.indexOf("user is not exist") != -1) if (loginInfoTip.indexOf("user is not exist") != -1) {
{
$("#user_pwd").val(""); $("#user_pwd").val("");
$("#user_name").val("").focus(); $("#user_name").val("").focus();
$("#tip_userpwd").hide(); $("#tip_userpwd").hide();
$("#tip_username").empty().append('<span class="error_input">用户名不存在</span>').show(); $("#tip_username").empty().append('<span class="error_input">用户名不存在</span>').show();
return; return;
} }
else if(loginInfoTip.indexOf("user password error") != -1) else if (loginInfoTip.indexOf("user password error") != -1) {
{
$("#user_pwd").val("").focus(); $("#user_pwd").val("").focus();
$("#tip_userpwd").empty().append('<span class="error_input">用户密码错误</span>').show(); $("#tip_userpwd").empty().append('<span class="error_input">用户密码错误</span>').show();
return; return;
} }
else if(loginInfoTip.indexOf("access service error") != -1) else if (loginInfoTip.indexOf("access service error") != -1) {
{
//$("#user_name").val("").focus(); //$("#user_name").val("").focus();
$("#tip_userpwd").hide(); $("#tip_userpwd").hide();
$("#tip_username").empty().append('<span class="error_input">后台访问错误</span>').show(); $("#tip_username").empty().append('<span class="error_input">后台访问错误</span>').show();
return; return;
} }
//跳转到用户管理界面 //跳转到用户管理界面
else if(loginInfoTip.indexOf("user can login") != -1||loginInfoTip == "user already login") else if (loginInfoTip.indexOf("user can login") != -1 || loginInfoTip == "user already login") {
{ window.location.href = "<%=path%>/login.action";
window.location.href="<%=path%>/login.action";
} }
}, },
//此处添加错误处理 //此处添加错误处理
error:function() error: function () {
{
alert("后台访问错误,请联系管理员!"); alert("后台访问错误,请联系管理员!");
} }
}); });
...@@ -154,47 +144,41 @@ ...@@ -154,47 +144,41 @@
//定义变量控制密码提示显示 //定义变量控制密码提示显示
var temp_value = ""; var temp_value = "";
$("#user_name").add("#user_pwd").unbind().bind({ $("#user_name").add("#user_pwd").unbind().bind({
'click keyup':function() 'click keyup': function () {
{
var value = $.trim($(this).val()); var value = $.trim($(this).val());
if(value.length >0) if (value.length > 0) {
{
$("#tip_username").hide(); $("#tip_username").hide();
$("#tip_userpwd").hide(); $("#tip_userpwd").hide();
} }
}, },
blur:function() blur: function () {
{
//兼容 IE和firefox 事件 //兼容 IE和firefox 事件
var e = window.event || event; var e = window.event || event;
//兼容 IE,firefox 兼容 //兼容 IE,firefox 兼容
var obj = e.srcElement ? e.srcElement : e.target; var obj = e.srcElement ? e.srcElement : e.target;
var value = $.trim($(this).val()); var value = $.trim($(this).val());
if(obj.id=="user_name") if (obj.id == "user_name")
temp_value = value; temp_value = value;
if(value.length ==0) if (value.length == 0) {
{ if (obj.id == "user_name")
if(obj.id=="user_name")
$("#tip_username").empty().append('<span class="error_input">用户名不能为空</span>').show(); $("#tip_username").empty().append('<span class="error_input">用户名不能为空</span>').show();
if(obj.id=="user_pwd" &&temp_value.length>0) if (obj.id == "user_pwd" && temp_value.length > 0)
$("#tip_userpwd").empty().append('<span class="error_input">密码不能为空</span>').show();; $("#tip_userpwd").empty().append('<span class="error_input">密码不能为空</span>').show();
;
} }
else else {
{ if (obj.id == "user_pwd" && value.length > 0 && temp_value.length == 0) {
if(obj.id=="user_pwd"&&value.length>0&&temp_value.length ==0)
{
$("#tip_username").show(); $("#tip_username").show();
$("#tip_userpwd").hide(); $("#tip_userpwd").hide();
} }
else else {
{
$("#tip_username").hide(); $("#tip_username").hide();
$("#tip_userpwd").hide(); $("#tip_userpwd").hide();
} }
} }
} }
}); });
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
<%@ page language="java" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8" %>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <html>
<head> <head>
<base href="<%=basePath%>"> <base href="<%=basePath%>">
<title>+</title> <title>+</title>
<meta http-equiv="pragma" content="no-cache"> <meta http-equiv="pragma" content="no-cache">
...@@ -17,10 +17,10 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request. ...@@ -17,10 +17,10 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<!-- <!--
<link rel="stylesheet" type="text/css" href="styles.css"> <link rel="stylesheet" type="text/css" href="styles.css">
--> -->
</head> </head>
<body> <body>
<script type="text/javascript"> <script type="text/javascript">
top.location.href="<%=basePath%>"; top.location.href = "<%=basePath%>";
</script> </script>
<br></body> <br></body>
</html> </html>
This diff is collapsed.
<%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html> <html>
<head> <head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Type content="text/html; charset=utf-8">
<!-- 指定以IE8的方式来渲染 --> <!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon"/>
<link href="css/admin.css" type="text/css" rel="stylesheet"> <link href="css/admin.css" type="text/css" rel="stylesheet">
<title>首页说明</title> <title>首页说明</title>
<style type="text/css"> <style type="text/css">
...@@ -21,7 +21,11 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request. ...@@ -21,7 +21,11 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
margin-bottom: 0px; margin-bottom: 0px;
background-color: #EAF2FD; background-color: #EAF2FD;
} }
.STYLE1 {font-size: 12px}
.STYLE1 {
font-size: 12px
}
.STYLE4 { .STYLE4 {
font-size: 12px; font-size: 12px;
color: #1F4A65; color: #1F4A65;
...@@ -34,31 +38,38 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request. ...@@ -34,31 +38,38 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
text-decoration: none; text-decoration: none;
} }
a:visited { a:visited {
font-size: 12px; font-size: 12px;
color: #06482a; color: #06482a;
text-decoration: none; text-decoration: none;
} }
a:hover { a:hover {
font-size: 12px; font-size: 12px;
color: #FF0000; color: #FF0000;
text-decoration: underline; text-decoration: underline;
} }
a:active { a:active {
font-size: 12px; font-size: 12px;
color: #FF0000; color: #FF0000;
text-decoration: none; text-decoration: none;
} }
.STYLE7 {font-size: 12}
.STYLE7 {
font-size: 12
}
--> -->
</style> </style>
</head> </head>
<body> <body>
<table cellSpacing=0 cellPadding=0 width="100%" align=center border=0> <table cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<tr height=28> <tr height=28>
<td width="1101" class="STYLE4"> <td width="1101" class="STYLE4">
&nbsp;&nbsp;<img src="<%=path%>/images/computer.png" width="16" height="16" /> &nbsp;&nbsp;<img src="<%=path%>/images/computer.png" width="16" height="16"/>
<span >资产管理</span> <span>资产管理</span>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -67,10 +78,10 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request. ...@@ -67,10 +78,10 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<tr height="5px"> <tr height="5px">
<td background=images/shadow_bg.jpg></td> <td background=images/shadow_bg.jpg></td>
</tr> </tr>
</table> </table>
<p style="font-size: 12px;color: #1F4A65;padding: 10px"> <p style="font-size: 12px;color: #1F4A65;padding: 10px">
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
资产管理是记录资产明细,包括资产名称、资产类型、供应商、使用用户等信息,通过资产管理,可以记录平时资产明细,管理资产信息。资产管理包括增加,修改,删除、搜索消费信息等功能点。报表图表最多显示十条报表记录。 资产管理是记录资产明细,包括资产名称、资产类型、供应商、使用用户等信息,通过资产管理,可以记录平时资产明细,管理资产信息。资产管理包括增加,修改,删除、搜索消费信息等功能点。报表图表最多显示十条报表记录。
</p> </p>
</body> </body>
</html> </html>
\ No newline at end of file
This diff is collapsed.
<%@page import="com.jsh.util.Tools"%> <%@page import="com.jsh.util.Tools" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8" %>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
String clientIp = Tools.getLocalIp(request); String clientIp = Tools.getLocalIp(request);
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>ERP系统</title> <title>ERP系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!-- 指定以IE8的方式来渲染 --> <!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon"/>
<link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css" /> <link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css"/>
</head> </head>
<frameset frameborder="no" border="0" framespacing="0" id="framesetList"> <frameset frameborder="no" border="0" framespacing="0" id="framesetList">
<frame src="<%=path %>/pages/common/main.jsp" name="mainFrame" id="mainFrame" title="mainFrame" /> <frame src="<%=path %>/pages/common/main.jsp" name="mainFrame" id="mainFrame" title="mainFrame"/>
</frameset> </frameset>
<body> <body>
</body> </body>
</noframes> </noframes>
</html> </html>
\ No newline at end of file
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8" %>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>资产管理</title> <title>资产管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!-- 指定以IE8的方式来渲染 --> <!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon"/>
<link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css" /> <link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css"/>
</head> </head>
<body> <body>
<div id="foot">Copyright © 2015 季圣华 版权所有 版本号 V1.0</div> <div id="foot">Copyright © 2015 季圣华 版权所有 版本号 V1.0</div>
</body> </body>
</html> </html>
\ No newline at end of file
<%@page import="com.jsh.util.Tools"%> <%@page import="com.jsh.util.Tools" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8" %>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
String clientIp = Tools.getLocalIp(request); String clientIp = Tools.getLocalIp(request);
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>资产管理</title> <title>资产管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!-- 指定以IE8的方式来渲染 --> <!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon"/>
<link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css" /> <link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css"/>
<script type="text/javascript" src="<%=path %>/js/jquery-1.8.0.min.js"></script> <script type="text/javascript" src="<%=path %>/js/jquery-1.8.0.min.js"></script>
</head> </head>
<body> <body>
<div id="header"> <div id="header">
<div id="logo"><img src="<%=path%>/images/windvane.png" height="50" alt="资产管理" title="资产管理"/></div> <div id="logo"><img src="<%=path%>/images/windvane.png" height="50" alt="资产管理" title="资产管理"/></div>
<!-- <div id="logo"><img src="<%=path%>/images/suma_logo.png" height="45" alt="资产管理系统" title="资产管理系统"/></div> --> <!-- <div id="logo"><img src="<%=path%>/images/suma_logo.png" height="45" alt="资产管理系统" title="资产管理系统"/></div> -->
<div id="nav_top"> <div id="nav_top">
<ul> <ul>
<li><a href="<%=path%>/pages/other/clock.jsp" style="background:url(<%=path %>/images/clock.png) 0 1px no-repeat;color:#333;text-decoration:none;" target="mainFrame"><span id="showNowTime"></span></a></li> <li><a href="<%=path%>/pages/other/clock.jsp"
style="background:url(<%=path %>/images/clock.png) 0 1px no-repeat;color:#333;text-decoration:none;"
target="mainFrame"><span id="showNowTime"></span></a></li>
<li>|</li> <li>|</li>
<li><a href="javascript:void(0)" style="background:url(<%=path %>/images/user_business_boss.png) 0 1px no-repeat;color:#333;text-decoration:none;">用户名:${sessionScope.user.loginame}</a></li> <li><a href="javascript:void(0)"
style="background:url(<%=path %>/images/user_business_boss.png) 0 1px no-repeat;color:#333;text-decoration:none;">用户名:${sessionScope.user.loginame}</a>
</li>
<li>|</li> <li>|</li>
<li id="1"><a href="<%=path %>/pages/common/home.jsp" id="navtop_home" target="mainFrame" style="color:#333;text-decoration:none;">首页</a></li> <li id="1"><a href="<%=path %>/pages/common/home.jsp" id="navtop_home" target="mainFrame"
style="color:#333;text-decoration:none;">首页</a></li>
<li id="2">|</li> <li id="2">|</li>
<li id="3"><a href="<%=path %>/pages/user/userinfo.jsp" id="person_file" target="mainFrame" style="background:url(<%=path %>/images/comment.png) 0 1px no-repeat;color:#333;text-decoration:none;">个人资料</a></li> <li id="3"><a href="<%=path %>/pages/user/userinfo.jsp" id="person_file" target="mainFrame"
style="background:url(<%=path %>/images/comment.png) 0 1px no-repeat;color:#333;text-decoration:none;">个人资料</a>
</li>
<li id="4">|</li> <li id="4">|</li>
<li id="5"><a href="<%=path %>/pages/user/password.jsp" target="mainFrame" id="navtop_editpwd" style="background:url(<%=path %>/images/lock_unlock.png) 0 1px no-repeat;color:#333;text-decoration:none;">修改密码</a></li> <li id="5"><a href="<%=path %>/pages/user/password.jsp" target="mainFrame" id="navtop_editpwd"
style="background:url(<%=path %>/images/lock_unlock.png) 0 1px no-repeat;color:#333;text-decoration:none;">修改密码</a>
</li>
<!--<li>|</li> <!--<li>|</li>
<li><a href="javascript:void(0)" id="navtop_help">帮助</a></li> <li><a href="javascript:void(0)" id="navtop_help">帮助</a></li>
--> -->
...@@ -38,130 +47,115 @@ ...@@ -38,130 +47,115 @@
<li><a href="javascript:void(0)" id="navtop_logout">注销</a></li> <li><a href="javascript:void(0)" id="navtop_logout">注销</a></li>
</ul> </ul>
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
$(init); $(init);
//页面初始化 //页面初始化
function init() function init() {
{
//初始化时间 //初始化时间
showTime(); showTime();
if('${sessionScope.user.loginame}'!= 'guest') if ('${sessionScope.user.loginame}' != 'guest')
$("#1").add("#2").add("#3").add("#4").add("#5").add("#6").show(); $("#1").add("#2").add("#3").add("#4").add("#5").add("#6").show();
else else
$("#1").add("#2").add("#3").add("#4").add("#5").add("#6").hide(); $("#1").add("#2").add("#3").add("#4").add("#5").add("#6").hide();
} }
function showDate() function showDate() {
{
var calendar = new Date(); var calendar = new Date();
var day = calendar.getDay(); var day = calendar.getDay();
var month = calendar.getMonth(); var month = calendar.getMonth();
var date = calendar.getDate(); var date = calendar.getDate();
var year = calendar.getYear(); var year = calendar.getYear();
if (year< 1900) if (year < 1900) {
{
year = 1900 + year; year = 1900 + year;
} }
var cent = parseInt(year/100); var cent = parseInt(year / 100);
var g = year % 19; var g = year % 19;
var k = parseInt((cent - 17)/25); var k = parseInt((cent - 17) / 25);
var i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30; var i = (cent - parseInt(cent / 4) - parseInt((cent - k) / 3) + 19 * g + 15) % 30;
i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11)); i = i - parseInt(i / 28) * (1 - parseInt(i / 28) * parseInt(29 / (i + 1)) * parseInt((21 - g) / 11));
var j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7; var j = (year + parseInt(year / 4) + i + 2 - cent + parseInt(cent / 4)) % 7;
var l = i - j; var l = i - j;
var emonth = 3 + parseInt((l + 40)/44); var emonth = 3 + parseInt((l + 40) / 44);
var edate = l + 28 - 31*parseInt((emonth/4)); var edate = l + 28 - 31 * parseInt((emonth / 4));
emonth--; emonth--;
var dayname = new Array ("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); var dayname = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
var monthname =new Array ("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月" ); var monthname = new Array("1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月");
var message = ""; var message = "";
if(getOs().indexOf("MSIE")!= -1) if (getOs().indexOf("MSIE") != -1) {
{
//控制时间和图片之间的距离 //控制时间和图片之间的距离
$("#blankSpace").empty().append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); $("#blankSpace").empty().append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
message = year + "" + monthname[month]+ date + "日&nbsp;&nbsp;" + dayname[day]+"&nbsp;&nbsp;"; message = year + "" + monthname[month] + date + "日&nbsp;&nbsp;" + dayname[day] + "&nbsp;&nbsp;";
} }
else if(getOs().indexOf("Firefox") != -1) else if (getOs().indexOf("Firefox") != -1) {
{
$("#blankSpace").empty().append("&nbsp;&nbsp;&nbsp;"); $("#blankSpace").empty().append("&nbsp;&nbsp;&nbsp;");
message = year + "" + monthname[month]+ date + "日&nbsp;&nbsp;" + dayname[day]+"&nbsp;&nbsp;"; message = year + "" + monthname[month] + date + "日&nbsp;&nbsp;" + dayname[day] + "&nbsp;&nbsp;";
} }
else else {
{
$("#blankSpace").empty().append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); $("#blankSpace").empty().append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
message = year + "" + monthname[month]+ date + "日&nbsp;&nbsp; " + dayname[day] + "&nbsp;&nbsp;"; message = year + "" + monthname[month] + date + "日&nbsp;&nbsp; " + dayname[day] + "&nbsp;&nbsp;";
} }
return message; return message;
} }
function showTime()
{ function showTime() {
var Digital=new Date(); var Digital = new Date();
var hours=Digital.getHours(); var hours = Digital.getHours();
var minutes=Digital.getMinutes(); var minutes = Digital.getMinutes();
var seconds=Digital.getSeconds(); var seconds = Digital.getSeconds();
if(hours==0) if (hours == 0) {
{ hours = "00";
hours="00"; }
} if (hours <= 9 && hours > 0) {
if(hours <= 9 && hours > 0) hours = "0" + hours;
{ }
hours="0"+hours; if (minutes <= 9)
} minutes = "0" + minutes;
if(minutes<=9) if (seconds <= 9)
minutes="0"+minutes; seconds = "0" + seconds;
if(seconds<=9) var myclock = hours + ":" + minutes + ":" + seconds;
seconds="0"+seconds;
var myclock=hours+":"+minutes+":"+seconds;
//定时器 //定时器
setTimeout("showTime()",1000); setTimeout("showTime()", 1000);
var message = showDate()+" "+myclock; var message = showDate() + " " + myclock;
$("#showNowTime").empty().append(message); $("#showNowTime").empty().append(message);
} }
//判断浏览器的类型 //判断浏览器的类型
function getOs() function getOs() {
{
var OsObject = ""; var OsObject = "";
if(navigator.userAgent.indexOf("MSIE")>0) if (navigator.userAgent.indexOf("MSIE") > 0) {
{
return "MSIE"; return "MSIE";
} }
else if(navigator.userAgent.indexOf("Firefox")>0) else if (navigator.userAgent.indexOf("Firefox") > 0) {
{
return "Firefox"; return "Firefox";
} }
else if(navigator.userAgent.indexOf("Safari")>0) else if (navigator.userAgent.indexOf("Safari") > 0) {
{
return "Safari"; return "Safari";
} }
else if(navigator.userAgent.indexOf("Camino")>0) else if (navigator.userAgent.indexOf("Camino") > 0) {
{
return "Camino"; return "Camino";
} }
else if(navigator.userAgent.indexOf("Gecko/")>0) else if (navigator.userAgent.indexOf("Gecko/") > 0) {
{
return "Gecko"; return "Gecko";
} }
else if(navigator.userAgent.indexOf("Opera/")>0) else if (navigator.userAgent.indexOf("Opera/") > 0) {
{
return "Opera"; return "Opera";
} }
else else {
{
return "unknown"; return "unknown";
} }
} }
//退出系统 //退出系统
$("#navtop_logout").bind({ $("#navtop_logout").bind({
click:function() click: function () {
{ if (confirm("确认要退出系统吗?")) {
if(confirm("确认要退出系统吗?")) window.location.href = "<%=path%>/user/logout.action?clientIp=<%=clientIp%>";
{
window.location.href ="<%=path%>/user/logout.action?clientIp=<%=clientIp%>" ;
} }
} }
}); });
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
This diff is collapsed.
<%@page import="com.jsh.util.Tools"%> <%@page import="com.jsh.util.Tools" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8" %>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
String clientIp = Tools.getLocalIp(request); String clientIp = Tools.getLocalIp(request);
%> %>
<!DOCTYPE html> <!DOCTYPE html>
...@@ -10,31 +10,38 @@ ...@@ -10,31 +10,38 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>ERP系统</title> <title>ERP系统</title>
<link href="<%=path%>/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.css" rel="stylesheet" /> <link href="<%=path%>/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.css" rel="stylesheet"/>
<link href="<%=path%>/js/HoorayOS_mini/img/ui/index.css" rel="stylesheet" /> <link href="<%=path%>/js/HoorayOS_mini/img/ui/index.css" rel="stylesheet"/>
</head> </head>
<body> <body>
<div class="loading"></div> <div class="loading"></div>
<!-- 浏览器升级提示 --> <!-- 浏览器升级提示 -->
<div class="update_browser_box"> <div class="update_browser_box">
<div class="update_browser"> <div class="update_browser">
<div class="subtitle">您正在使用的IE浏览器版本过低,<br>我们建议您升级或者更换浏览器,以便体验顺畅、兼容、安全的互联网。</div> <div class="subtitle">您正在使用的IE浏览器版本过低,<br>我们建议您升级或者更换浏览器,以便体验顺畅、兼容、安全的互联网。</div>
<div class="title">选择一款<span></span>浏览器吧</div> <div class="title">选择一款<span></span>浏览器吧</div>
<div class="browser"> <div class="browser">
<a href="http://windows.microsoft.com/zh-CN/internet-explorer/downloads/ie" class="ie" target="_blank" title="ie浏览器">ie浏览器</a> <a href="http://windows.microsoft.com/zh-CN/internet-explorer/downloads/ie" class="ie" target="_blank"
title="ie浏览器">ie浏览器</a>
<a href="http://www.google.cn/chrome/" class="chrome" target="_blank" title="谷歌浏览器">谷歌浏览器</a> <a href="http://www.google.cn/chrome/" class="chrome" target="_blank" title="谷歌浏览器">谷歌浏览器</a>
<a href="http://www.firefox.com.cn" class="firefox" target="_blank" title="火狐浏览器">火狐浏览器</a> <a href="http://www.firefox.com.cn" class="firefox" target="_blank" title="火狐浏览器">火狐浏览器</a>
<a href="http://www.opera.com" class="opera" target="_blank" title="opera浏览器">opera浏览器</a> <a href="http://www.opera.com" class="opera" target="_blank" title="opera浏览器">opera浏览器</a>
<a href="http://www.apple.com.cn/safari" class="safari" target="_blank" title="safari浏览器">safari浏览器</a> <a href="http://www.apple.com.cn/safari" class="safari" target="_blank" title="safari浏览器">safari浏览器</a>
</div> </div>
<div class="bottomtitle">[&nbsp;<a href="http://www.baidu.com/search/theie6countdown.html" target="_blank">对IE6说再见</a>&nbsp;]</div> <div class="bottomtitle">[&nbsp;<a href="http://www.baidu.com/search/theie6countdown.html" target="_blank">对IE6说再见</a>&nbsp;]
</div> </div>
</div> </div>
<!-- 桌面 --> </div>
<div id="desktop"> <!-- 桌面 -->
<div id="zoom-tip"><div><i></i><span></span></div><a href="javascript:;" class="close" onclick="HROS.zoom.close();">×</a></div> <div id="desktop">
<div id="zoom-tip">
<div><i></i><span></span></div>
<a href="javascript:;" class="close" onclick="HROS.zoom.close();">×</a></div>
<div id="desk"> <div id="desk">
<div id="desk-1" class="desktop-container"><div class="scrollbar scrollbar-x"></div><div class="scrollbar scrollbar-y"></div></div> <div id="desk-1" class="desktop-container">
<div class="scrollbar scrollbar-x"></div>
<div class="scrollbar scrollbar-y"></div>
</div>
<div id="dock-bar"> <div id="dock-bar">
<div id="dock-container"> <div id="dock-container">
<div class="dock-middle"> <div class="dock-middle">
...@@ -60,35 +67,37 @@ ...@@ -60,35 +67,37 @@
</div> </div>
<div id="task-pre"><a href="javascript:;" id="task-pre-btn" hidefocus="true"></a></div> <div id="task-pre"><a href="javascript:;" id="task-pre-btn" hidefocus="true"></a></div>
</div> </div>
</div> </div>
<script src="<%=path%>/js/HoorayOS_mini/js/jquery-1.8.3.min.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/jquery-1.8.3.min.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/templates.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/templates.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/core.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/core.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.app.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/hros.app.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.base.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/hros.base.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.desktop.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/hros.desktop.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.dock.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/hros.dock.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.grid.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/hros.grid.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.maskBox.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/hros.maskBox.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.taskbar.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/hros.taskbar.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.popupMenu.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/hros.popupMenu.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.wallpaper.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/hros.wallpaper.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.widget.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/hros.widget.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.window.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/hros.window.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.zoom.js"></script> <script src="<%=path%>/js/HoorayOS_mini/js/hros.zoom.js"></script>
<script type="text/javascript" src="<%=path%>/js/easyui-1.3.5/jquery.easyui.min.js"></script> <script type="text/javascript" src="<%=path%>/js/easyui-1.3.5/jquery.easyui.min.js"></script>
<link href="<%=path%>/js/easyui-1.3.5/themes/default/easyui.css" rel="stylesheet" type="text/css" /> <link href="<%=path%>/js/easyui-1.3.5/themes/default/easyui.css" rel="stylesheet" type="text/css"/>
<script> <script>
$(function () { $(function () {
$('#loginOut').click(function () { $('#loginOut').click(function () {
if (confirm("确认要退出系统吗?")) if (confirm("确认要退出系统吗?"))
location.href = '<%=path%>/user/logout.action?clientIp=<%=clientIp%>'; location.href = '<%=path%>/user/logout.action?clientIp=<%=clientIp%>';
}) })
//IE下禁止选中 //IE下禁止选中
document.body.onselectstart = document.body.ondrag = function () { return false; } document.body.onselectstart = document.body.ondrag = function () {
return false;
}
//隐藏加载遮罩层 //隐藏加载遮罩层
$('.loading').hide(); $('.loading').hide();
//IE6升级提示 //IE6升级提示
...@@ -105,16 +114,18 @@ ...@@ -105,16 +114,18 @@
//加载桌面 //加载桌面
HROS.base.init(); HROS.base.init();
} }
//判断是否存在session,如果不存在就跳到登录界面 //判断是否存在session,如果不存在就跳到登录界面
function UserOut() { function UserOut() {
var kid = ${sessionScope.user.id}; var kid = ${sessionScope.user.id};
if (!kid){ if (!kid) {
top.location.href = '../../'; top.location.href = '../../';
} }
} }
setInterval(UserOut, 5000); //每5秒检测一次 setInterval(UserOut, 5000); //每5秒检测一次
}); });
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8" %>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%> %>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
<meta charset="utf-8"> <meta charset="utf-8">
<!-- 指定以IE8的方式来渲染 --> <!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/default/easyui.css"/> <link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/default/easyui.css"/>
<link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/icon.css"/> <link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/icon.css"/>
<link type="text/css" rel="stylesheet" href="<%=path %>/css/common.css" /> <link type="text/css" rel="stylesheet" href="<%=path %>/css/common.css"/>
<script type="text/javascript" src="<%=path %>/js/jquery-1.8.0.min.js"></script> <script type="text/javascript" src="<%=path %>/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/easyui-1.3.5/jquery.easyui.min.js"></script> <script type="text/javascript" src="<%=path %>/js/easyui-1.3.5/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script> <script type="text/javascript" src="<%=path %>/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script>
...@@ -28,200 +28,183 @@ ...@@ -28,200 +28,183 @@
</head> </head>
<body class="easyui-layout" style="overflow-y: hidden" scroll="no"> <body class="easyui-layout" style="overflow-y: hidden" scroll="no">
<script> <script>
var pageid = getUrlParam('id'); //获取传值id var pageid = getUrlParam('id'); //获取传值id
var id=${sessionScope.user.id}; var id =${sessionScope.user.id};
//alert(pageid); //alert(pageid);
var userBusinessList = null; var userBusinessList = null;
var userBusinessID = null; var userBusinessID = null;
var type=null; var type = null;
var options = ""; var options = "";
var kid=null; var kid = null;
var lei=null; var lei = null;
var last=""; var last = "";
var functions=""; var functions = "";
var btnStrList = []; //按钮权限列表 var btnStrList = []; //按钮权限列表
//初始化界面 //初始化界面
$(function() $(function () {
{
//初始化系统基础信息 //初始化系统基础信息
initSystemData(id,'UserRole'); initSystemData(id, 'UserRole');
initSelectInfo(0); initSelectInfo(0);
initSelect(); initSelect();
//ceshi(); //ceshi();
}); });
//初始化系统基础信息 //初始化系统基础信息
function initSystemData(kid,type) function initSystemData(kid, type) {
{
$.ajax({ $.ajax({
type:"post", type: "post",
url: "<%=path%>/userBusiness/getBasicData.action", url: "<%=path%>/userBusiness/getBasicData.action",
data: ({ data: ({
KeyId:kid, KeyId: kid,
Type:type Type: type
}), }),
//设置为同步 //设置为同步
async:false, async: false,
dataType: "json", dataType: "json",
success: function (systemInfo) success: function (systemInfo) {
{ if (systemInfo) {
if(systemInfo)
{
userBusinessList = systemInfo.showModel.map.userBusinessList; userBusinessList = systemInfo.showModel.map.userBusinessList;
var msgTip = systemInfo.showModel.msgTip; var msgTip = systemInfo.showModel.msgTip;
if(msgTip == "exceptoin") if (msgTip == "exceptoin") {
{ $.messager.alert('提示', '查找UserBusiness异常,请与管理员联系!', 'error');
$.messager.alert('提示','查找UserBusiness异常,请与管理员联系!','error');
return; return;
} }
} }
else else {
{ userBusinessList = null;
userBusinessList=null;
} }
} }
}); });
} }
//初始化页面选项卡
function initSelectInfo(lei) { //初始化页面选项卡
if(userBusinessList !=null) { function initSelectInfo(lei) {
if(userBusinessList.length>0) { if (userBusinessList != null) {
options =userBusinessList[0].value; if (userBusinessList.length > 0) {
if(options!="") { options = userBusinessList[0].value;
options=options.substring(1,options.length-1); if (options != "") {
options = options.substring(1, options.length - 1);
} }
//app内列表赋值 //app内列表赋值
if(lei==1) { if (lei == 1) {
last+=options+']['; last += options + '][';
} }
//功能菜单列表 //功能菜单列表
else if(lei==2) { else if (lei == 2) {
functions+=options+']['; functions += options + '][';
} }
//按钮权限列表 //按钮权限列表
else if(lei==3) { else if (lei == 3) {
var btnStr =userBusinessList[0].btnStr; var btnStr = userBusinessList[0].btnStr;
if(btnStr!=null){ if (btnStr != null) {
btnStr = JSON.parse(btnStr); btnStr = JSON.parse(btnStr);
for(var j=0; j<btnStr.length; j++){ for (var j = 0; j < btnStr.length; j++) {
btnStrList.push(btnStr[j]); btnStrList.push(btnStr[j]);
} }
} }
} }
} }
} }
} }
//初始化页面 //初始化页面
function initSelect() function initSelect() {
{
var arr = options.split(']['); var arr = options.split('][');
for(var i in arr){ for (var i in arr) {
initSystemData(arr[i],'RoleAPP'); //根据角色找app initSystemData(arr[i], 'RoleAPP'); //根据角色找app
initSelectInfo(1);//app内列表赋值 initSelectInfo(1);//app内列表赋值
initSystemData(arr[i],'RoleFunctions'); //根据角色找functions initSystemData(arr[i], 'RoleFunctions'); //根据角色找functions
initSelectInfo(2); //功能菜单列表 initSelectInfo(2); //功能菜单列表
initSelectInfo(3); //查询角色对应的按钮权限 initSelectInfo(3); //查询角色对应的按钮权限
} }
if(last!="") if (last != "") {
{ last = "[" + last.substring(0, last.length - 1);
last="["+last.substring(0,last.length-1);
//alert(last); //alert(last);
if(last.indexOf("["+pageid+"]")!=-1) if (last.indexOf("[" + pageid + "]") != -1) {
{
//alert("存在"); //alert("存在");
$("#west").show(); $("#west").show();
$("#mainPanle").show(); $("#mainPanle").show();
$("#mm").show(); $("#mm").show();
} }
else else {
{
//alert("不存在"); //alert("不存在");
$("div").remove(); $("div").remove();
$("<div style='width:100%;text-align:center;padding-top:20px'><b>抱歉,您没有该权限!</b></div>").appendTo("body"); $("<div style='width:100%;text-align:center;padding-top:20px'><b>抱歉,您没有该权限!</b></div>").appendTo("body");
} }
} }
if(functions!="") if (functions != "") {
{ functions = "[" + functions.substring(0, functions.length - 1);
functions="["+functions.substring(0,functions.length-1);
//alert(functions); //alert(functions);
} }
if(btnStrList.length>0){ if (btnStrList.length > 0) {
window.winBtnStrList = JSON.stringify(btnStrList); //将按钮功能列表存为全局变量 window.winBtnStrList = JSON.stringify(btnStrList); //将按钮功能列表存为全局变量
} }
} }
//测试自定义hql //测试自定义hql
function ceshi() function ceshi() {
{
$.ajax({ $.ajax({
type:"post", type: "post",
url: "<%=path%>/userBusiness/getceshi.action", url: "<%=path%>/userBusiness/getceshi.action",
data: ({ data: ({
Type:"UserRole" Type: "UserRole"
}), }),
//设置为同步 //设置为同步
async:false, async: false,
dataType: "json", dataType: "json",
success: function (systemInfo) success: function (systemInfo) {
{ if (systemInfo) {
if(systemInfo)
{
userBusinessList = systemInfo.showModel.map.userBusinessList; userBusinessList = systemInfo.showModel.map.userBusinessList;
var msgTip = systemInfo.showModel.msgTip; var msgTip = systemInfo.showModel.msgTip;
if(msgTip == "exceptoin") if (msgTip == "exceptoin") {
{ $.messager.alert('提示', '查找UserBusiness异常,请与管理员联系!', 'error');
$.messager.alert('提示','查找UserBusiness异常,请与管理员联系!','error');
return; return;
} }
} }
else else {
{ userBusinessList = null;
userBusinessList=null;
} }
} }
}); });
if(userBusinessList !=null) if (userBusinessList != null) {
{ if (userBusinessList.length > 0) {
if(userBusinessList.length>0)
{
alert(userBusinessList[0][0]); alert(userBusinessList[0][0]);
alert(userBusinessList[0][1]); alert(userBusinessList[0][1]);
} }
} }
} }
</script> </script>
<div region="west" hide="true" split="true" title="导航菜单" style="width:125px;" id="west"> <div region="west" hide="true" split="true" title="导航菜单" style="width:125px;" id="west">
<div id="nav" fit="true" border="false"> <div id="nav" fit="true" border="false">
<!-- 导航内容 --> <!-- 导航内容 -->
<div> <div>
<ul id="tt"></ul> <ul id="tt"></ul>
<script> <script>
var PNumber = getUrlParam('appID'); //获取传值appid var PNumber = getUrlParam('appID'); //获取传值appid
$(function(){ $(function () {
$('#tt').tree({ $('#tt').tree({
url:'<%=path%>/functions/findMenu.action?PNumber='+PNumber+'&hasFunctions='+functions, url: '<%=path%>/functions/findMenu.action?PNumber=' + PNumber + '&hasFunctions=' + functions,
animate:true animate: true
}); });
}); });
</script> </script>
</div> </div>
</div> </div>
</div> </div>
<div id="mainPanle" region="center" style="background: #eee; overflow-y: hidden"> <div id="mainPanle" region="center" style="background: #eee; overflow-y: hidden">
<div id="tabs" class="easyui-tabs" fit="true" border="false"></div> <div id="tabs" class="easyui-tabs" fit="true" border="false"></div>
</div> </div>
<div id="mm" class="easyui-menu" style="width: 120px;"> <div id="mm" class="easyui-menu" style="width: 120px;">
<div id="mm-tabupdate"> <div id="mm-tabupdate">
刷新 刷新
</div> </div>
...@@ -249,6 +232,6 @@ function ceshi() ...@@ -249,6 +232,6 @@ function ceshi()
<div id="mm-version"> <div id="mm-version">
华夏ERP官网 华夏ERP官网
</div> </div>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
<%@page import="com.jsh.util.Tools"%> <%@page import="com.jsh.util.Tools" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8" %>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
String clientIp = Tools.getLocalIp(request); String clientIp = Tools.getLocalIp(request);
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>资产管理</title> <title>资产管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!-- 指定以IE8的方式来渲染 --> <!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon"/>
<link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css" /> <link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css"/>
<script type="text/javascript" src="<%=path %>/js/jquery-1.8.0.min.js"></script> <script type="text/javascript" src="<%=path %>/js/jquery-1.8.0.min.js"></script>
</head> </head>
<body> <body>
<script type="text/javascript"> <script type="text/javascript">
//初始化界面 //初始化界面
$(function() $(function () {
{
init(); init();
}); });
function init() function init() {
{
} }
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
<%@page import="com.jsh.util.Tools"%> <%@page import="com.jsh.util.Tools" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8" %>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String clientIp = Tools.getLocalIp(request); String clientIp = Tools.getLocalIp(request);
%> %>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>收预付款</title> <title>收预付款</title>
<meta charset="utf-8"> <meta charset="utf-8">
<!-- 指定以IE8的方式来渲染 --> <!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/default/easyui.css"/> <link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/default/easyui.css"/>
<link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/icon.css"/> <link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/icon.css"/>
<link type="text/css" rel="stylesheet" href="<%=path %>/css/common.css" /> <link type="text/css" rel="stylesheet" href="<%=path %>/css/common.css"/>
<script src="<%=path %>/js/jquery-1.8.0.min.js"></script> <script src="<%=path %>/js/jquery-1.8.0.min.js"></script>
<script src="<%=path %>/js/easyui-1.3.5/jquery.easyui.min.js"></script> <script src="<%=path %>/js/easyui-1.3.5/jquery.easyui.min.js"></script>
<script src="<%=path %>/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script> <script src="<%=path %>/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script>
...@@ -26,10 +26,11 @@ ...@@ -26,10 +26,11 @@
var path = "<%=path%>"; var path = "<%=path%>";
var clientIp = "<%=clientIp%>"; var clientIp = "<%=clientIp%>";
</script> </script>
</head> </head>
<body> <body>
<!-- 查询 --> <!-- 查询 -->
<div id = "searchPanel" class="easyui-panel" style="padding:3px;" title="查询窗口" iconCls="icon-search" collapsible="true" closable="false"> <div id="searchPanel" class="easyui-panel" style="padding:3px;" title="查询窗口" iconCls="icon-search" collapsible="true"
closable="false">
<table id="searchTable"> <table id="searchTable">
<tr> <tr>
<td>单据编号:</td> <td>单据编号:</td>
...@@ -38,11 +39,13 @@ ...@@ -38,11 +39,13 @@
</td> </td>
<td>单据日期:</td> <td>单据日期:</td>
<td> <td>
<input type="text" name="searchBeginTime" id="searchBeginTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="txt Wdate" style="width:100px;"/> <input type="text" name="searchBeginTime" id="searchBeginTime"
onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="txt Wdate" style="width:100px;"/>
</td> </td>
<td>-</td> <td>-</td>
<td> <td>
<input type="text" name="searchEndTime" id="searchEndTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="txt Wdate" style="width:100px;"/> <input type="text" name="searchEndTime" id="searchEndTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"
class="txt Wdate" style="width:100px;"/>
</td> </td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td> <td>
...@@ -51,14 +54,15 @@ ...@@ -51,14 +54,15 @@
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
<!-- 数据显示table --> <!-- 数据显示table -->
<div id = "tablePanel" class="easyui-panel" style="padding:1px;top:300px;" title="收预付款列表" iconCls="icon-list" collapsible="true" closable="false"> <div id="tablePanel" class="easyui-panel" style="padding:1px;top:300px;" title="收预付款列表" iconCls="icon-list"
collapsible="true" closable="false">
<table id="tableData" style="top:300px;border-bottom-color:#FFFFFF"></table> <table id="tableData" style="top:300px;border-bottom-color:#FFFFFF"></table>
</div> </div>
<div id="accountHeadDlg" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px" <div id="accountHeadDlg" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px"
closed="true" buttons="#dlg-buttons" modal="true" cache="false" collapsible="false" closable="true"> closed="true" buttons="#dlg-buttons" modal="true" cache="false" collapsible="false" closable="true">
<form id="accountHeadFM" method="post" novalidate> <form id="accountHeadFM" method="post" novalidate>
<table> <table>
...@@ -73,11 +77,14 @@ ...@@ -73,11 +77,14 @@
</td> </td>
<td style="width:70px;">单据日期:</td> <td style="width:70px;">单据日期:</td>
<td style="padding:5px;width:170px;"> <td style="padding:5px;width:170px;">
<input type="text" name="BillTime" id="BillTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="txt Wdate" style="width:140px;"/> <input type="text" name="BillTime" id="BillTime"
onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="txt Wdate"
style="width:140px;"/>
</td> </td>
<td style="width:80px;">单据编号:</td> <td style="width:80px;">单据编号:</td>
<td style="padding:5px;width:170px;"> <td style="padding:5px;width:170px;">
<input name="BillNo" id="BillNo" class="easyui-validatebox" data-options="required:true,validType:'length[2,30]'" style="width: 140px;"/> <input name="BillNo" id="BillNo" class="easyui-validatebox"
data-options="required:true,validType:'length[2,30]'" style="width: 140px;"/>
</td> </td>
<td style="width:100px;"></td> <td style="width:100px;"></td>
</tr> </tr>
...@@ -89,24 +96,27 @@ ...@@ -89,24 +96,27 @@
</tr> </tr>
<tr> <tr>
<td colspan="9"> <td colspan="9">
<textarea name="Remark" id="Remark" rows="2" cols="2" placeholder="暂无备注信息" style="width: 1130px; height:35px;"></textarea> <textarea name="Remark" id="Remark" rows="2" cols="2" placeholder="暂无备注信息"
style="width: 1130px; height:35px;"></textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>优惠金额:</td> <td>优惠金额:</td>
<td style="padding:5px"> <td style="padding:5px">
<input type="text" name="ChangeAmount" id="ChangeAmount" class="easyui-numberbox" data-options="min:0,precision:2" style="width: 110px;" /> <input type="text" name="ChangeAmount" id="ChangeAmount" class="easyui-numberbox"
data-options="min:0,precision:2" style="width: 110px;"/>
</td> </td>
</tr> </tr>
</table> </table>
<input type="hidden" name="clientIp" id="clientIp" value="<%=clientIp %>"/> <input type="hidden" name="clientIp" id="clientIp" value="<%=clientIp %>"/>
</form> </form>
</div> </div>
<div id="dlg-buttons"> <div id="dlg-buttons">
<a href="javascript:void(0)" id="saveAccountHead" class="easyui-linkbutton" iconCls="icon-ok">保存</a> <a href="javascript:void(0)" id="saveAccountHead" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
<a href="javascript:void(0)" id="cancelAccountHead" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#accountHeadDlg').dialog('close')">取消</a> <a href="javascript:void(0)" id="cancelAccountHead" class="easyui-linkbutton" iconCls="icon-cancel"
</div> onclick="javascript:$('#accountHeadDlg').dialog('close')">取消</a>
<div id="accountHeadDlgShow" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px" </div>
<div id="accountHeadDlgShow" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px"
closed="true" modal="true" cache="false" collapsible="false" closable="true"> closed="true" modal="true" cache="false" collapsible="false" closable="true">
<table> <table>
<tr> <tr>
...@@ -147,6 +157,6 @@ ...@@ -147,6 +157,6 @@
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</body> </body>
</html> </html>
<%@page import="com.jsh.util.Tools"%> <%@page import="com.jsh.util.Tools" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8" %>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String clientIp = Tools.getLocalIp(request); String clientIp = Tools.getLocalIp(request);
%> %>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>转账单</title> <title>转账单</title>
<meta charset="utf-8"> <meta charset="utf-8">
<!-- 指定以IE8的方式来渲染 --> <!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/default/easyui.css"/> <link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/default/easyui.css"/>
<link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/icon.css"/> <link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/icon.css"/>
<link type="text/css" rel="stylesheet" href="<%=path %>/css/common.css" /> <link type="text/css" rel="stylesheet" href="<%=path %>/css/common.css"/>
<script src="<%=path %>/js/jquery-1.8.0.min.js"></script> <script src="<%=path %>/js/jquery-1.8.0.min.js"></script>
<script src="<%=path %>/js/easyui-1.3.5/jquery.easyui.min.js"></script> <script src="<%=path %>/js/easyui-1.3.5/jquery.easyui.min.js"></script>
<script src="<%=path %>/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script> <script src="<%=path %>/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script>
...@@ -26,10 +26,11 @@ ...@@ -26,10 +26,11 @@
var path = "<%=path%>"; var path = "<%=path%>";
var clientIp = "<%=clientIp%>"; var clientIp = "<%=clientIp%>";
</script> </script>
</head> </head>
<body> <body>
<!-- 查询 --> <!-- 查询 -->
<div id = "searchPanel" class="easyui-panel" style="padding:3px;" title="查询窗口" iconCls="icon-search" collapsible="true" closable="false"> <div id="searchPanel" class="easyui-panel" style="padding:3px;" title="查询窗口" iconCls="icon-search" collapsible="true"
closable="false">
<table id="searchTable"> <table id="searchTable">
<tr> <tr>
<td>单据编号:</td> <td>单据编号:</td>
...@@ -38,11 +39,13 @@ ...@@ -38,11 +39,13 @@
</td> </td>
<td>单据日期:</td> <td>单据日期:</td>
<td> <td>
<input type="text" name="searchBeginTime" id="searchBeginTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="txt Wdate" style="width:100px;"/> <input type="text" name="searchBeginTime" id="searchBeginTime"
onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="txt Wdate" style="width:100px;"/>
</td> </td>
<td>-</td> <td>-</td>
<td> <td>
<input type="text" name="searchEndTime" id="searchEndTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="txt Wdate" style="width:100px;"/> <input type="text" name="searchEndTime" id="searchEndTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"
class="txt Wdate" style="width:100px;"/>
</td> </td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td> <td>
...@@ -51,14 +54,15 @@ ...@@ -51,14 +54,15 @@
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
<!-- 数据显示table --> <!-- 数据显示table -->
<div id = "tablePanel" class="easyui-panel" style="padding:1px;top:300px;" title="转账单列表" iconCls="icon-list" collapsible="true" closable="false"> <div id="tablePanel" class="easyui-panel" style="padding:1px;top:300px;" title="转账单列表" iconCls="icon-list"
collapsible="true" closable="false">
<table id="tableData" style="top:300px;border-bottom-color:#FFFFFF"></table> <table id="tableData" style="top:300px;border-bottom-color:#FFFFFF"></table>
</div> </div>
<div id="accountHeadDlg" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px" <div id="accountHeadDlg" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px"
closed="true" buttons="#dlg-buttons" modal="true" cache="false" collapsible="false" closable="true"> closed="true" buttons="#dlg-buttons" modal="true" cache="false" collapsible="false" closable="true">
<form id="accountHeadFM" method="post" novalidate> <form id="accountHeadFM" method="post" novalidate>
<table> <table>
...@@ -69,11 +73,14 @@ ...@@ -69,11 +73,14 @@
</td> </td>
<td style="width:70px;">单据日期:</td> <td style="width:70px;">单据日期:</td>
<td style="padding:5px;width:170px;"> <td style="padding:5px;width:170px;">
<input type="text" name="BillTime" id="BillTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="txt Wdate" style="width:140px;"/> <input type="text" name="BillTime" id="BillTime"
onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="txt Wdate"
style="width:140px;"/>
</td> </td>
<td style="width:80px;">单据编号:</td> <td style="width:80px;">单据编号:</td>
<td style="padding:5px;width:170px;"> <td style="padding:5px;width:170px;">
<input name="BillNo" id="BillNo" class="easyui-validatebox" data-options="required:true,validType:'length[2,30]'" style="width: 140px;"/> <input name="BillNo" id="BillNo" class="easyui-validatebox"
data-options="required:true,validType:'length[2,30]'" style="width: 140px;"/>
</td> </td>
<td style="width:70px;"></td> <td style="width:70px;"></td>
<td style="padding:5px"> <td style="padding:5px">
...@@ -88,7 +95,8 @@ ...@@ -88,7 +95,8 @@
</tr> </tr>
<tr> <tr>
<td colspan="9"> <td colspan="9">
<textarea name="Remark" id="Remark" rows="2" cols="2" placeholder="暂无备注信息" style="width: 1130px; height:35px;"></textarea> <textarea name="Remark" id="Remark" rows="2" cols="2" placeholder="暂无备注信息"
style="width: 1130px; height:35px;"></textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -98,18 +106,20 @@ ...@@ -98,18 +106,20 @@
</td> </td>
<td>实付金额:</td> <td>实付金额:</td>
<td style="padding:5px"> <td style="padding:5px">
<input type="text" name="ChangeAmount" id="ChangeAmount" class="easyui-numberbox" data-options="min:0,precision:2" style="width: 110px;"></input> <input type="text" name="ChangeAmount" id="ChangeAmount" class="easyui-numberbox"
data-options="min:0,precision:2" style="width: 110px;"></input>
</td> </td>
</tr> </tr>
</table> </table>
<input type="hidden" name="clientIp" id="clientIp" value="<%=clientIp %>"/> <input type="hidden" name="clientIp" id="clientIp" value="<%=clientIp %>"/>
</form> </form>
</div> </div>
<div id="dlg-buttons"> <div id="dlg-buttons">
<a href="javascript:void(0)" id="saveAccountHead" class="easyui-linkbutton" iconCls="icon-ok">保存</a> <a href="javascript:void(0)" id="saveAccountHead" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
<a href="javascript:void(0)" id="cancelAccountHead" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#accountHeadDlg').dialog('close')">取消</a> <a href="javascript:void(0)" id="cancelAccountHead" class="easyui-linkbutton" iconCls="icon-cancel"
</div> onclick="javascript:$('#accountHeadDlg').dialog('close')">取消</a>
<div id="accountHeadDlgShow" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px" </div>
<div id="accountHeadDlgShow" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px"
closed="true" modal="true" cache="false" collapsible="false" closable="true"> closed="true" modal="true" cache="false" collapsible="false" closable="true">
<table> <table>
<tr> <tr>
...@@ -152,6 +162,6 @@ ...@@ -152,6 +162,6 @@
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</body> </body>
</html> </html>
<%@page import="com.jsh.util.Tools"%> <%@page import="com.jsh.util.Tools" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8" %>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String clientIp = Tools.getLocalIp(request); String clientIp = Tools.getLocalIp(request);
%> %>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>收入单</title> <title>收入单</title>
<meta charset="utf-8"> <meta charset="utf-8">
<!-- 指定以IE8的方式来渲染 --> <!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/default/easyui.css"/> <link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/default/easyui.css"/>
<link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/icon.css"/> <link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/icon.css"/>
<link type="text/css" rel="stylesheet" href="<%=path %>/css/common.css" /> <link type="text/css" rel="stylesheet" href="<%=path %>/css/common.css"/>
<script src="<%=path %>/js/jquery-1.8.0.min.js"></script> <script src="<%=path %>/js/jquery-1.8.0.min.js"></script>
<script src="<%=path %>/js/easyui-1.3.5/jquery.easyui.min.js"></script> <script src="<%=path %>/js/easyui-1.3.5/jquery.easyui.min.js"></script>
<script src="<%=path %>/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script> <script src="<%=path %>/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script>
...@@ -26,10 +26,11 @@ ...@@ -26,10 +26,11 @@
var path = "<%=path%>"; var path = "<%=path%>";
var clientIp = "<%=clientIp%>"; var clientIp = "<%=clientIp%>";
</script> </script>
</head> </head>
<body> <body>
<!-- 查询 --> <!-- 查询 -->
<div id = "searchPanel" class="easyui-panel" style="padding:3px;" title="查询窗口" iconCls="icon-search" collapsible="true" closable="false"> <div id="searchPanel" class="easyui-panel" style="padding:3px;" title="查询窗口" iconCls="icon-search" collapsible="true"
closable="false">
<table id="searchTable"> <table id="searchTable">
<tr> <tr>
<td>单据编号:</td> <td>单据编号:</td>
...@@ -38,11 +39,13 @@ ...@@ -38,11 +39,13 @@
</td> </td>
<td>单据日期:</td> <td>单据日期:</td>
<td> <td>
<input type="text" name="searchBeginTime" id="searchBeginTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="txt Wdate" style="width:100px;"/> <input type="text" name="searchBeginTime" id="searchBeginTime"
onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="txt Wdate" style="width:100px;"/>
</td> </td>
<td>-</td> <td>-</td>
<td> <td>
<input type="text" name="searchEndTime" id="searchEndTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="txt Wdate" style="width:100px;"/> <input type="text" name="searchEndTime" id="searchEndTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"
class="txt Wdate" style="width:100px;"/>
</td> </td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td> <td>
...@@ -51,14 +54,15 @@ ...@@ -51,14 +54,15 @@
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
<!-- 数据显示table --> <!-- 数据显示table -->
<div id = "tablePanel" class="easyui-panel" style="padding:1px;top:300px;" title="收入单列表" iconCls="icon-list" collapsible="true" closable="false"> <div id="tablePanel" class="easyui-panel" style="padding:1px;top:300px;" title="收入单列表" iconCls="icon-list"
collapsible="true" closable="false">
<table id="tableData" style="top:300px;border-bottom-color:#FFFFFF"></table> <table id="tableData" style="top:300px;border-bottom-color:#FFFFFF"></table>
</div> </div>
<div id="accountHeadDlg" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px" <div id="accountHeadDlg" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px"
closed="true" buttons="#dlg-buttons" modal="true" cache="false" collapsible="false" closable="true"> closed="true" buttons="#dlg-buttons" modal="true" cache="false" collapsible="false" closable="true">
<form id="accountHeadFM" method="post" novalidate> <form id="accountHeadFM" method="post" novalidate>
<table> <table>
...@@ -73,11 +77,14 @@ ...@@ -73,11 +77,14 @@
</td> </td>
<td style="width:70px;">单据日期:</td> <td style="width:70px;">单据日期:</td>
<td style="padding:5px;width:170px;"> <td style="padding:5px;width:170px;">
<input type="text" name="BillTime" id="BillTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="txt Wdate" style="width:140px;"/> <input type="text" name="BillTime" id="BillTime"
onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="txt Wdate"
style="width:140px;"/>
</td> </td>
<td style="width:70px;">单据编号:</td> <td style="width:70px;">单据编号:</td>
<td style="padding:5px;width:170px;"> <td style="padding:5px;width:170px;">
<input name="BillNo" id="BillNo" class="easyui-validatebox" data-options="required:true,validType:'length[2,30]'" style="width: 140px;"/> <input name="BillNo" id="BillNo" class="easyui-validatebox"
data-options="required:true,validType:'length[2,30]'" style="width: 140px;"/>
</td> </td>
<td style="width:100px;"></td> <td style="width:100px;"></td>
</tr> </tr>
...@@ -89,7 +96,8 @@ ...@@ -89,7 +96,8 @@
</tr> </tr>
<tr> <tr>
<td colspan="9"> <td colspan="9">
<textarea name="Remark" id="Remark" rows="2" cols="2" placeholder="暂无备注信息" style="width: 1130px; height:35px;"></textarea> <textarea name="Remark" id="Remark" rows="2" cols="2" placeholder="暂无备注信息"
style="width: 1130px; height:35px;"></textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -99,18 +107,20 @@ ...@@ -99,18 +107,20 @@
</td> </td>
<td>收款金额:</td> <td>收款金额:</td>
<td> <td>
<input type="text" name="ChangeAmount" id="ChangeAmount" class="easyui-numberbox" data-options="min:0,precision:2" style="width: 120px;" /> <input type="text" name="ChangeAmount" id="ChangeAmount" class="easyui-numberbox"
data-options="min:0,precision:2" style="width: 120px;"/>
</td> </td>
</tr> </tr>
</table> </table>
<input type="hidden" name="clientIp" id="clientIp" value="<%=clientIp %>"/> <input type="hidden" name="clientIp" id="clientIp" value="<%=clientIp %>"/>
</form> </form>
</div> </div>
<div id="dlg-buttons"> <div id="dlg-buttons">
<a href="javascript:void(0)" id="saveAccountHead" class="easyui-linkbutton" iconCls="icon-ok">保存</a> <a href="javascript:void(0)" id="saveAccountHead" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
<a href="javascript:void(0)" id="cancelAccountHead" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#accountHeadDlg').dialog('close')">取消</a> <a href="javascript:void(0)" id="cancelAccountHead" class="easyui-linkbutton" iconCls="icon-cancel"
</div> onclick="javascript:$('#accountHeadDlg').dialog('close')">取消</a>
<div id="accountHeadDlgShow" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px" </div>
<div id="accountHeadDlgShow" class="easyui-dialog" style="width:1200px;padding:10px 20px;top:20px"
closed="true" modal="true" cache="false" collapsible="false" closable="true"> closed="true" modal="true" cache="false" collapsible="false" closable="true">
<table> <table>
<tr> <tr>
...@@ -155,6 +165,6 @@ ...@@ -155,6 +165,6 @@
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</body> </body>
</html> </html>
This diff is collapsed.
This diff is collapsed.
Supports Markdown
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