62,025
社区成员
发帖
与我相关
我的任务
分享
<dxwschs:ASPxScheduler id="ASPxScheduler1" runat="server" Width="100%"
ResourceDataSourceID="resourceDataSource"
AppointmentDataSourceID="appointmentDataSource"
OnAppointmentRowInserting="ASPxScheduler1_AppointmentRowInserting"
OnAppointmentRowInserted="ASPxScheduler1_AppointmentRowInserted"
OnAppointmentsInserted="ASPxScheduler1_OnAppointmentsInserted" >
<Storage EnableReminders="false">
<Appointments>
<Mappings AppointmentId="ID" End="EndTime" Start="StartTime" Subject="Subject"
Description="Description" Location="Location" AllDay="AllDay"
Type="EventType" RecurrenceInfo="RecurrenceInfo" ReminderInfo="ReminderInfo"
Label="Label" Status="Status" ResourceId="CarId" />
</Appointments>
<Resources>
<Mappings ResourceId="ID" Caption="Model" />
</Resources>
</Storage>
<Views>
<DayView DisplayName="当天日历" ShortDisplayName="日">
<TimeRulers><cc1:TimeRuler /></TimeRulers>
</DayView>
<WorkWeekView ShortDisplayName="工作周">
<TimeRulers><cc1:TimeRuler /></TimeRulers>
</WorkWeekView>
<WeekView ShortDisplayName="周">
</WeekView>
<MonthView ShortDisplayName="月">
</MonthView>
<TimelineView ShortDisplayName="时间线">
</TimelineView>
</Views>
</dxwschs:ASPxScheduler>
protected void Page_Load(object sender, EventArgs e)
{
DevExpress.Web.ASPxScheduler.Localization.ASPxSchedulerLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressWebASPxSchedulerLocalizationCHS();
DevExpress.Web.ASPxScheduler.Localization.ASPxSchedulerResLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressWebASPxSchedulerLocalizationCHS();
AppointmentDataSource.InsertParameters.Add("id", Guid.NewGuid().ToString());
AppointmentDataSource.InsertParameters.Add("emp_id", this.GetUser.Id.ToString());
AppointmentDataSource.InsertParameters.Add("user_id", this.GetUser.UserId.ToString());
AppointmentDataSource.SelectParameters.Add("emp_id", this.GetUser.Id.ToString());
AppointmentDataSource.SelectParameters.Add("user_id", this.GetUser.UserId.ToString());
}
<globalization culture="auto" uiCulture="auto"/>