Skip to content

Commit e0cc350

Browse files
committed
add old codes into this project
1 parent 9f9e188 commit e0cc350

38 files changed

Lines changed: 3054 additions & 59 deletions

.idea/misc.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 159 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/EndDate.java

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import java.text.ParseException;
2+
import java.text.SimpleDateFormat;
3+
import java.util.Date;
4+
5+
/**
6+
* Created by Guanfu on 13-8-29.
7+
*/
8+
public class EndDate {
9+
//检查日期合法性
10+
Date beginDate() {
11+
12+
13+
return null;
14+
}
15+
16+
//计算过期日期及过期前两周日期
17+
18+
Date twoWeeksAgo() {
19+
20+
21+
return null;
22+
}
23+
24+
25+
//判定两周前是否为星期五
26+
// 是:输出日期;
27+
// 否:求出之前最近的星期五。
28+
29+
Date isFriday() {
30+
31+
32+
return null;
33+
}
34+
35+
36+
public static String getWeekday(String date) {//必须yyyy-MM-dd
37+
38+
SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd");
39+
40+
SimpleDateFormat sdw = new SimpleDateFormat("E");
41+
42+
Date d = null;
43+
44+
try {
45+
46+
d = sd.parse(date);
47+
48+
} catch (ParseException e) {
49+
50+
e.printStackTrace();
51+
52+
}
53+
54+
return sdw.format(d);
55+
56+
}
57+
58+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<title></title>
6+
</head>
7+
<body>
8+
<table>
9+
<tr>
10+
<td>出账月份编码:
11+
</td>
12+
<td><input type="text" name="ent.salaryMonth"/><span>*</span></td>
13+
14+
15+
</tr>
16+
<tr>
17+
<td>状态:
18+
</td>
19+
<td><input type="text" name="ent.salaryMonthStatus"/><span>*</span></td>
20+
21+
22+
</tr>
23+
<tr>
24+
25+
<td colspan="2" class="tdButton">
26+
<input type="button" value="提交"/>
27+
28+
<input type="button" value="重置"/>
29+
30+
<input type="button" value="取消"/>
31+
</td>
32+
</tr>
33+
</table>
34+
35+
</body>
36+
</html>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<title></title>
6+
</head>
7+
<body>
8+
<input type="hidden" name="ent.ID"/>
9+
<table>
10+
<tr>
11+
<td>出账月份编码:</td>
12+
<td><select name="ent.salaryMonthId">
13+
<option>请选择</option>
14+
</select></td>
15+
</tr>
16+
<tr>
17+
<td>款项:</td>
18+
<td><input type="text" name="ent.fee"></td>
19+
</tr>
20+
<tr>
21+
<td>报销类型:</td>
22+
<td><select name="ent.chargeOffsType">
23+
<option>请选择</option>
24+
</select></td>
25+
</tr>
26+
<tr>
27+
28+
<td colspan="2" class="tdButton">
29+
<input type="button" value="提交"/>
30+
31+
<input type="button" value="重置"/>
32+
33+
<input type="button" value="取消"/>
34+
</td>
35+
</tr>
36+
37+
</table>
38+
39+
40+
</body>
41+
</html>
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<title></title>
6+
</head>
7+
<body>
8+
9+
<input type="hidden" name="ent.ID"/>
10+
11+
<table class="twoColFormTable">
12+
<tr>
13+
<td>出账月份编码:</td>
14+
<td><select name="ent.salaryMonthId">
15+
<option>请选择</option>
16+
</select></td>
17+
<td>人员合同编码:</td>
18+
<td><input type="text" name="ent.postWage"/></td>
19+
</tr>
20+
<tr>
21+
<td>应付工资:</td>
22+
<td><input type="text" name="ent.dealPay"/></td>
23+
<td>实付工资:</td>
24+
<td><input type="text" name="ent.realPay"/></td>
25+
</tr>
26+
<tr>
27+
<td>基本工资:</td>
28+
<td><input type="text" name="ent.baseWage"/></td>
29+
<td>岗位工资:</td>
30+
<td><input type="text" name="ent.postWage"/></td>
31+
</tr>
32+
<tr>
33+
<td>绩效工资:</td>
34+
<td><input type="text" name="ent.performanceWage"/></td>
35+
<td>通讯费:</td>
36+
<td><input type="text" name="ent.telFee"/></td>
37+
</tr>
38+
<tr>
39+
<td>交通费:</td>
40+
<td><input type="text" name="ent.trafficFee"/></td>
41+
<td>住房费:</td>
42+
<td><input type="text" name="ent.houseFee"/></td>
43+
</tr>
44+
<tr>
45+
<td>个人缴纳公积金:</td>
46+
<td><input type="text" name="ent.personHouseFund"/></td>
47+
<td>个人缴纳保险金:</td>
48+
<td><input type="text" name="ent.personInsurance"/></td>
49+
</tr>
50+
<tr>
51+
<td>公司缴纳公积金:</td>
52+
<td><input type="text" name="ent.companyHouseFund"/></td>
53+
<td>公司缴纳保险金:</td>
54+
<td><input type="text" name="ent.companyInsurance"/></td>
55+
</tr>
56+
<tr>
57+
<td>个人所得税:</td>
58+
<td><input type="text" name="ent.incomeTax"/></td>
59+
<td>公司管理费:</td>
60+
<td><input type="text" name="ent.managementFee"/></td>
61+
</tr>
62+
<tr>
63+
<td>公司税金:</td>
64+
<td><input type="text" name="ent.companyTax"/></td>
65+
<td>报销费:</td>
66+
<td><input type="text" name="ent.chargeOffsFee"/></td>
67+
</tr>
68+
<tr>
69+
<td>合计:</td>
70+
<td><input type="text" name="ent.totalFee"/></td>
71+
</tr>
72+
<tr>
73+
74+
<td colspan="4" class="tdButton">
75+
<input type="button" value="提交"/>
76+
77+
<input type="button" value="重置"/>
78+
79+
<input type="button" value="取消"/>
80+
</td>
81+
</tr>
82+
</table>
83+
84+
</body>
85+
</html>

src/Htmls/example.html

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
2+
<!--
3+
所有的隐藏字段必须放table标签之前,当前只画table
4+
name属性的命名必须和后台Action类能接收的命名方式一致,即"ent."+"属性字段"的形式
5+
-->
6+
<input type="hidden" name="ent.id"/>
7+
<input type="hidden" name="ent.staff.id"/>
8+
<input type="hidden" name="ent.oldStaff.id"/>
9+
<input type="hidden" name="ent.computer.id"/>
10+
<!--每行两个字段的table的css类名为twoColFormTable-->
11+
<table class="twoColFormTable">
12+
<tr>
13+
<!--字段中文名称的td-->
14+
<td>电脑</td>
15+
<!--如果需要实现合并单元格,使用colspan或rowspan方式实现-->
16+
<td colspan="3">
17+
<!--
18+
仅仅对没有name属性的字段加id属性,减少id的使用,避免因为id重名造成冲突
19+
仅对不是普通长度的控件加 class="long"或 class="short",正常长度的不用加
20+
-->
21+
<input type="text" class="long" id="ent_computer_name"/>
22+
<input type="button" value="选择电脑"/>
23+
</td>
24+
</tr>
25+
<tr>
26+
<td>
27+
当前使用员工:
28+
</td>
29+
<td>
30+
<input type="text" id="ent_staff_name"/>
31+
<input type="button" value="选择员工"/>
32+
</td>
33+
<td>
34+
原来使用员工:
35+
</td>
36+
<td>
37+
<input type="text" id="ent_oldStaff_name"/>
38+
<input type="button" value="选择员工"/>
39+
</td>
40+
</tr>
41+
<tr>
42+
<td>
43+
开始使用日期:
44+
</td>
45+
<td>
46+
<input type="text" name="ent.startDate"/>
47+
</td>
48+
<td>
49+
结束使用日期:
50+
</td>
51+
<td>
52+
<input type="text" name="ent.endDate"/>
53+
</td>
54+
</tr>
55+
<tr>
56+
<!--按钮td要加 class="tdButton"来标识出这是一个按钮td-->
57+
<td colspan="4" class="tdButton">
58+
<input type="button" value="提交"/>
59+
&nbsp;&nbsp;&nbsp;&nbsp;
60+
<input type="button" value="重置"/>
61+
&nbsp;&nbsp;&nbsp;&nbsp;
62+
<input type="button" value="取消"/>
63+
</td>
64+
</tr>
65+
</table>

0 commit comments

Comments
 (0)