<%
string styletype =(string)session.getattribute("styletype");
if(styletype==null || styletype.equals(""))
bdroomservice bdroomservice = null;
roombookingservice roombookingservice= null;
if(roombookingservice==null)
if(bdroomservice==null)
collection cols = bdroomservice.search();
request.setattribute("cols",cols);
date date = new date();
******dateformat format = new ******dateformat("yyyy-mm-dd");
calendar c = new gregoriancalendar();
c.set((date.getyear()+1900), date.getmonth(), date.getdate());
date d = c.gettime();
%>
/style/<%=styletype%>.css"/>
教室<%
string w1,w2,w3,w4,w5,w6,w7;
collection cols1,cols2,cols3,cols4,cols5,cols6,cols7;
w1 = format.format(weekutil.getfirstdayofweek(d));
w2 = format.format(weekutil.getfirstdayofweek(d).gettime()+ 1*24*60*60*1000);
w3 = format.format(weekutil.getfirstdayofweek(d).gettime()+ 2*24*60*60*1000);
w4 = format.format(weekutil.getfirstdayofweek(d).gettime()+ 3*24*60*60*1000);
w5 = format.format(weekutil.getfirstdayofweek(d).gettime()+ 4*24*60*60*1000);
w6 = format.format(weekutil.getfirstdayofweek(d).gettime()+ 5*24*60*60*1000);
w7 = format.format(weekutil.getlastdayofweek(d));
cols1 = roombookingservice.search(w1);
cols2 = roombookingservice.search(w2);
cols3 = roombookingservice.search(w3);
cols4 = roombookingservice.search(w4);
cols5 = roombookingservice.search(w5);
cols6 = roombookingservice.search(w6);
cols7 = roombookingservice.search(w7);
request.setattribute("cols1",cols1);
request.setattribute("cols2",cols2);
request.setattribute("cols3",cols3);
request.setattribute("cols4",cols4);
request.setattribute("cols5",cols5);
request.setattribute("cols6",cols6);
request.setattribute("cols7",cols7);
%>
">
:--:
">
">
:--:
">
">
:--:
">
">
:--:
">
">
:--:
">
">
:--:
">
">
:--:
">
Mysql按年按月按日按周統計查詢
select date format created date,y m d as time,sum money money from o finance detail where org id 1000 group by time select date format created date,y ...
sqlserver 按日 周 月統計方法
create table t 日期時間 datetime,數量 int insert t select 2007 1 1 19 31 25 56 union allselect 2007 1 1 21 31 25 35 union allselect 2007 1 1 15 31 25 43 uni...
sqlserver 按日 周 月統計方法
摘自於網路網路 create table t 日期時間 datetime,數量 int insert t select 2007 1 1 19 31 25 56 union all select 2007 1 1 21 31 25 35 union all select 2007 1 1 15 31...