?? modelconlist.jsp
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.*"%>
<%@ page import="com.saas.biz.conTractMgr.ConTractInfo"%>
<%
HttpSession logsession = request.getSession();
String iStart = "0";
String meun_idx = "";
String cust_id = "";
if (request.getParameter("iStart") != null) {
iStart = request.getParameter("iStart");
}
if (logsession.getAttribute("SESSION_CUST_ID") != null) {
cust_id = logsession.getAttribute("SESSION_CUST_ID").toString();
}
if (request.getParameter("menu_id") != null) {
meun_idx = request.getParameter("menu_id");
logsession.setAttribute("menu_id", meun_idx);
}
ConTractInfo conInfo = new ConTractInfo();
ArrayList autoList = conInfo.getConTractList(Integer
.parseInt(iStart), cust_id, "7");
int counter = conInfo.getConTractList(cust_id, "7");
int pages = counter / 20 + 1;
int pageUp = 0, pageDown = 0;
int currenPage = Integer.valueOf(iStart).intValue();
if (pages > currenPage) {
if (currenPage > 0) {
pageUp = currenPage - 1;
}
pageDown = currenPage + 1;
} else if (pages == currenPage) {
pageUp = currenPage - 1;
pageDown = currenPage;
}
%>
<html>
<head>
<title>XSaaS-合同管理</title>
<link href="/style/layout.css" rel="stylesheet" type="text/css">
<script src="/www/fuction/calendar.js" type="text/javascript"></script>
<script language="JavaScript" src="/www/fuction/public.js"></script>
<link href="/style/layout.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="../ext/resources/css/ext-all.css" />
<script type="text/javascript" src="../ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../ext/ext-all.js"></script>
<script type="text/javascript" src="../ext/build/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="/js/prototype.js"></script>
<script language="javascript" src="/js/Calendar_Ly.js"></script>
<SCRIPT>WinLIKEerrorpage='/winlike/winman/hlp-error.html';</SCRIPT>
<SCRIPT SRC="/winlike/winman/wininit.js"></SCRIPT>
<SCRIPT SRC="/winlike/winman/winman.js"></SCRIPT>
<SCRIPT>
WinLIKE.definewindows=mydefss;
function mydefss() {
var j=new WinLIKE.window('', 100, 100, '90%', 'WinLIKE.browsersize().Height -Top-30', 2);
j.Vis=false;
j.Nam='appwin';
WinLIKE.addwindow(j);
};
</SCRIPT>
<script type="text/javascript">
function delet(){
if(window.confirm('確定要?jiǎng)h除本條記錄?')){
return true;
}else{
return false;
}
}
</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="2"></td>
</tr>
<tr>
<td valign="top">
<table width=100% border=0 cellpadding=5 cellspacing=1 align=center bgcolor="#dddddd">
<tr>
<td class="line1" style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="20%">
合同名稱
</td>
<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="20%">
合同編碼
</td>
<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="15%">
簽定日期
</td>
<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="15%">
合同標(biāo)的
</td>
<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="10%">
狀態(tài)
</td>
<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="10%">
查看
</td>
<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="10%">
刪除
</td>
</tr>
<%
if (autoList != null && autoList.size() > 0) {
for (int i = 0; i < autoList.size(); i++) {
HashMap map = (HashMap) autoList.get(i);
String con_id = "", con_no = "", con_name = "", sign_date = "", con_object = "", state_code = "";
if (map.get("con_id") != null) {
con_id = map.get("con_id").toString();
}
if (map.get("con_no") != null) {
con_no = map.get("con_no").toString();
}
if (map.get("con_name") != null) {
con_name = map.get("con_name").toString();
}
if (map.get("sign_date") != null) {
sign_date = map.get("sign_date").toString();
}
if (sign_date.length() > 10) {
sign_date = sign_date.substring(0, 10);
}
if (map.get("con_object") != null) {
con_object = map.get("con_object").toString();
}
if (map.get("state_code") != null) {
state_code = map.get("state_code").toString();
}
if (state_code.equals("0") || state_code == "0") {
state_code = "已執(zhí)行!";
} else if (state_code.equals("1") || state_code == "1") {
state_code = "終止!";
} else if (state_code.equals("2") || state_code == "2") {
state_code = "中止!";
} else if (state_code.equals("3") || state_code == "3") {
state_code = "作廢!";
} else if (state_code.equals("4") || state_code == "4") {
state_code = "變更!";
} else if (state_code.equals("5") || state_code == "5") {
state_code = "重新執(zhí)行!";
} else if (state_code.equals("6") || state_code == "6") {
state_code = "未執(zhí)行!";
} else if (state_code.equals("7") || state_code == "7") {
state_code = "已歸檔!";
}
%>
<tr style="background-color: #f9f9f9;">
<td style="color: #000000;" align="left"><%=con_name%></td>
<td style="color: #000000;" align="left"><%=con_no%></td>
<td style="color: #000000;" align="left"><%=sign_date%></td>
<td style="color: #000000;" align="center"><%=con_object%></td>
<td style="color: #000000;" align="center"><%=state_code%></td>
<td style="color: #000000;" align="center">
<a href="modify.jsp?menu_id=<%=meun_idx%>&con_id=<%=con_id%>" TARGET=appwin onclick="mydefss()"><img src=/img/views.png width=16 height=16 border=0 style="cursor: hand" alt="查看詳細(xì)資料"> </a>
</td>
<td style="color: #000000;" align="center">
<a href="/doTradeReg.do?trade_type_code=1263&con_id=<%=con_id%>" target="_self" onclick="return delet();"><img src=/img/delete.png width=16 height=16 border=0 style="cursor: hand" alt="刪除"> </a>
</td>
</tr>
<%
}
}
%>
<tr>
<td align="left" colspan="3">
共<%=counter%>條 第<%=Integer.parseInt(iStart) + 1%>頁(yè) 共<%=pages%>頁(yè)
</td>
<td align="right" colspan="3">
<a href="modelconInfo.jsp?iStart=0">首頁(yè) </a>
<%
if (Integer.parseInt(iStart) > 0) {
%>
<a href="modelconInfo.jsp?iStart=<%=pageUp%>">上一頁(yè)</a>
<%
}
if (Integer.parseInt(iStart) < pages - 1) {
%>
<a href="modelconInfo.jsp?iStart=<%=pageDown%>">下一頁(yè) </a>
<%
}
%>
<a href="modelconInfo.jsp?iStart=<%=pages - 1%>">尾頁(yè)</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -