- 博客(1)
- 资源 (3)
- 收藏
- 关注
原创 纯Java编写的商品管理系统 List集合模仿数据库
TestProductInfo.java package com.zpark.b3.renjh; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import java.util.Scanner;
2015-11-08 13:48:49
8653
3
人事信息管理系统
jsf和jpa 期末大作业
<%@ page language="java" import="java.util.*,dao.*,entitybean.*" pageEncoding="utf-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<f:view>
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type="text/css">
</style>
</head>
<body >
<div style="position:absolute; width:100%; height:100%; z-index:-1;background-color:#2894FF;background-repeat : no-repeat;background-size:90% 90%;opacity:1">
<img src="image/re2.jpg">
<h3>人事信息管理</h3>
<p style="text-align:center"> <h:outputLink value="/faces/add.jsp">添加一条</h:outputLink>
<h:form>
<h:dataTable
value="#{loginBean.persons}" var="person"
border="5" cellpadding="5" cellspacing="2">
<h:column>
<f:facet name="header">
<h:outputText id="headerText1" value="职工号"/>
</f:facet>
<h:outputText value="#{person.id}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText id="headerText2" value="姓名"/>
</f:facet>
<h:outputText value="#{person.name}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText id="headerText3" value="性别"/>
</f:facet>
<h:outputText value="#{person.gender}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText id="headerText4" value="年龄"/>
</f:facet>
<h:outputText value="#{person.age}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText id="headerText5" value="国籍"/>
</f:facet>
<h:outputText value="#{person.address_country}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText id="headerText6" value="详细地址"/>
</f:facet>
<h:outputText value="#{person.address_detail}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText id="headerText7" value="邮编"/>
</f:facet>
<h:outputText value="#{person.address_zip}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText id="headerText8" value="入职时间"/>
</f:facet>
<h:outputText value="#{person.entry_time}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText id="headerText9" value="所属部门"/>
</f:facet>
<h:outputText value="#{person.depertment}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText id="headerText10" value="职位"/>
</f:facet>
<h:outputText value="#{person.position}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText id="headerText11" value="工资"/>
</f:facet>
<h:outputText value="#{person.salary}"/>
</h:column>
<h:column>
<h:outputLink value="faces/edit.jsp" >
<h:outputText value="编辑"></h:outputText>
<f:param name="p_id" value="#{person.id}"/>
</h:outputLink>
</h:column>
<h:column>
<h:outputLink value="delete.jsp" >
<h:outputText value="删除"></h:outputText>
<f:param name="p_id" value="#{person.id}"/>
</h:outputLink>
</h:column>
</h:dataTable>
</h:form>
</p>
<img src="image/re.jpg">
</div>
</body>
</html>
</f:view>
2015-12-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人