function getcalendardata() {
$('#calendar').fullcalendar({
weekmode: {fixed: 5},
header: {left: '', center: 'title', right: 'prev,today,next'},
titleformat: "yyyy年mm月",
handlewindowresize: false,
eventlimit: true, // allow "more" link when too many events monthnames: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
monthnamesshort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
daynamesshort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
firstday: 1,
buttontext: {
today: '今天',
prev: '上一月',
next: '下一月' },
firstday: 1,
editable: false,
events: function (start, end, timezone, callback) {
$.ajax({
type: "get",
url: '/routine/myschedules',
datatype: 'json',
data: {start: "" start, end: "" end, filter: $("#hid").val()},
success: function (doc) { var events = []; for (var i = 0; i < doc.meeting.length; i ) { var m = doc.meeting[i];
events.push({
key: "meeting",
id: m.id,
typeid: m.meetingtype.typeid,
title: m.title,
content: "时间:" ameutils.converttime(m.meetingdate, "yyyy-mm-dd hh:mm:ss") " 类型:" m.meetingtype.typename,
start: ameutils.converttime(m.meetingdate, "yyyy-mm-dd"),
time: ameutils.converttime(m.meetingdate, "yyyy-mm-dd hh:mm:ss"),
backgroundcolor: '#e0ffff',
textcolor: '#000000',
bordercolor: '#e0ffff',
});
} for (var i = 0; i < doc.outgoing.length; i ) { var o = doc.outgoing[i];
events.push({
key: "outgoing",
id: o.id,
typeid: o.outgoingtype.type,
title: o.title,
content: "时间:" ameutils.converttime(o.starttime, "yyyy-mm-dd") " 类型:" o.outgoingtype.typename,
start: ameutils.converttime(o.starttime, "yyyy-mm-dd"),
time: ameutils.converttime(o.starttime, "yyyy-mm-dd"),
backgroundcolor: '#e0ffff',
textcolor: '#000000',
bordercolor: '#e0ffff',
constraint: 'availableformeeting' }); if (o.outgoingtype.type == 10)
outgoingnum2 = outgoingnum2 1; else outgoingnum1 = outgoingnum1 1;
} var neihtml = ""; for (var i = 0; i < doc.bulletins.length; i ) { var b = doc.bulletins[i];
neihtml = '- ';
neihtml = '
- ';
neihtml = '
' b.title '
'; neihtml = '2015-05-18 07:13 ';
neihtml = ' - ';
neihtml = '
' b.content '
'; neihtml = ' ';
neihtml = '
- ';
waihtml = '
- ';
waihtml = '
' a.title '
'; waihtml = '2015-05-18 07:13 ';
waihtml = ' - ';
waihtml = '
' a.type '
'; waihtml = ' ';
waihtml = '