| |||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
---|---|---|---|---|---|---|---|---|---|
25 | 26 | 27 | 28 | 29 | 30 | 31 | |||
1 | 2 | 3 | 4 | 5 | 6 | 7 | |||
8 | 9 | 10 | 11 | 12 | 13 | 14 | |||
15 | 16 | 17 | 18 | 19 | 20 | 21 | |||
22 | 23 | 24 | 25 | 26 | 27 | 28 | |||
29 | 30 | 1 | 2 | 3 | 4 | 5 |
注意writer的參數(shù)有多個,特別是有一個boolean的參數(shù)決定刷新或在附加文本
????????????log?
=
??
new
?PrintWriter(
new
?FileOutputStream(fl,
true
),
true
);
????????????SimpleDateFormat?df?
=
?
new
?SimpleDateFormat(
"
yyyy.MM.dd?'at'?hh:mm:ss\n
"
);
????????????Date?now?
=
?
new
?Date();
????????????String?dateformat?
=
?df.format(now)
????????????BufferedWriter?bf??
=
?
new
?BufferedWriter(
new
?FileWriter(fl,?
true
));
????????????bf.append(dateformat);
????????????bf.close();
????????????log.println(
"
start?connection?databse:
"
);
????????????log.println(
"
driver?name:
"
.concat(driveName);
ProcessInstance.hbm.xml:
<sqlMap namespace="PersonnelRegist">
? <typeAlias alias="ID" type="com.xindeco.core.pojo.IDEntity"/>
? </select>
?? <select id="GraAppInfo.searchUpApply" parameterClass="com.xindeco.business.dto.GraAppInfoDTO"????resultClass="ID" cacheModel="userCache">
?? select distinct a.ID AS id
?? from TGraAppInfo a? left join TEMPLOYUNITBASEINFO b on a.unit=b.MEMBERID
?? where appstatus = '1'
?? <dynamic>
?? <isNotEmpty prepend="AND" property="name">(a.name like '%' + #name# + '%')</isNotEmpty>
?? <isNotEmpty prepend="AND" property="unit">(b.UNITNAME like '%' + #unit# + '%')</isNotEmpty>
?? </dynamic>
? </select>
</sqlMap>
注意sqlmapGraAppInfoDTO的name,unit只能是基本數(shù)據(jù)類型,不能是復(fù)雜數(shù)據(jù)類型.
2、<script>的位置
<script>
form1.srchEdit.value='<%=srchEdit%>';
form1.srchType.value='<%=srchType%>';????
</script>
<form>
<input type="text" name="srchEdit"/>
<input type="text" name="srchType"/></form>
與<form>
<input type="text" name="srchEdit"/>
<input type="text" name="srchType"/>
</form>
<script>
form1.srchEdit.value='<%=srchEdit%>';
form1.srchType.value='<%=srchType%>';????
</script>
的差別,必須在form加載完對它賦值,否則srchEdit又重新加載,為null
3、hibernate屬性設(shè)置出現(xiàn)錯誤:
????? 如果pojo類取fSUnit屬性名,系統(tǒng)將無法識別。get和set將取不到值。