or
<
telerik:RadTreeView
ID
=
"RadTreeViewCustSupportReports"
runat
=
"server"
OnNodeClick
=
"RadTreeViewCustSupportReports_NodeClick"
Skin
=
"Vista"
Width
=
"100%"
>
<
Nodes
>
<
telerik:RadTreeNode
runat
=
"server"
Expanded
=
"false"
ForeColor
=
"Blue"
Height
=
"300"
Text
=
"Customer Support Management"
>
<
Nodes
>
<
telerik:RadTreeNode
runat
=
"server"
ImageUrl
=
"~/Images/chart_pie.png"
Text
=
"Avg Response Time"
Value
=
"~/Internal/Dashboard/Reports/CSMD_Average_Response_Time.ascx"
>
protected void imbPesquisarEvento_Click(object sender, ImageClickEventArgs e)
{
try
{
BpAgendaFamilia bpAgendaFamilia = new BpAgendaFamilia();
DateTime periodo = (DateTime)RdDataPeriodo.SelectedDate;
EcoArrayList listaHorarios = bpAgendaFamilia.RetornarAgenda(IdProfissional, periodo.Month, periodo.Year);
if (listaHorarios.Count != 0)
{
ListaHorarios = listaHorarios.Cast<
BeAgendaFamilia
>().ToList();
List<
AppointmentInfo
> listaAppointment = new List<
AppointmentInfo
>();
foreach (BeAgendaFamilia horario in listaHorarios)
{
BeFamilia familia = (BeFamilia)new Processador().Load(typeof(BeFamilia), horario.IdFamilia);
Appointment appointment = new Appointment();
appointment.ID = horario.agd_familia_sequencial.ToString();
appointment.Start = horario.agd_familia_tempo_inicio;
if (familia != null)
appointment.Subject = familia.Exibicao;
else
appointment.Subject = "Horário Livre";
appointment.End = horario.agd_familia_tempo_fim;
Appointments.Add(appointment);
}
RadScheduler1.DataSource = Appointments;
}
else
RadAjaxManager1.Alert("O Profissional não possue agenda criada no periodo informado. Crie a agenda do profissional em Ambulatorio/Agenda/Gerar Agenda.");
}
catch (Exception ex)
{
RadAjaxManager1.Alert(ex.Message);
}
}
<
telerik:RadScheduler
runat
=
"server"
ID
=
"RadScheduler1"
Skin
=
"Windows7"
Height
=
"551px"
ShowFooter
=
"False"
SelectedDate
=
"2011-04-01"
TimeZoneOffset
=
"03:00:00"
DayEndTime
=
"21:00:00"
FirstDayOfWeek
=
"Monday"
LastDayOfWeek
=
"Friday"
EnableDescriptionField
=
"True"
StartEditingInAdvancedForm
=
"true"
StartInsertingInAdvancedForm
=
"true"
AppointmentStyleMode
=
"Default"
OnNavigationComplete
=
"RadScheduler1_NavigationComplete"
OnAppointmentCreated
=
"RadScheduler1_AppointmentCreated"
OnAppointmentDataBound
=
"RadScheduler1_AppointmentDataBound"
OnAppointmentDelete
=
"RadScheduler1_AppointmentDelete"
OnAppointmentUpdate
=
"RadScheduler1_AppointmentUpdate"
OnAppointmentInsert
=
"RadScheduler1_AppointmentInsert"
Culture
=
"Portuguese (Brazil)"
OnFormCreated
=
"RadScheduler1_FormCreated1"
SelectedView
=
"MonthView"
OnAppointmentCommand
=
"RadScheduler1_AppointmentCommand"
AllowEdit
=
"true"
>
<
AdvancedForm
Modal
=
"true"
/>
<
TimelineView
UserSelectable
=
"false"
/>
<
AppointmentTemplate
>
<
div
class
=
"rsAptSubject"
>
<%# Eval("Subject") %>
</
div
>
<%# Eval("Description") %>
</
AppointmentTemplate
>
<
AdvancedEditTemplate
>
<
div
class
=
"rsAdvancedEdit rsAdvancedModal"
style
=
"position: relative"
>
<
div
class
=
"rsModalBgTopLeft"
>
</
div
>
<
div
class
=
"rsModalBgTopRight"
>
</
div
>
<
div
class
=
"rsModalBgBottomLeft"
>
</
div
>
<
div
class
=
"rsModalBgBottomRight"
>
</
div
>
<
asp:LinkButton
runat
=
"server"
ID
=
"LinkButton1"
CssClass
=
"rsAdvEditClose"
CommandName
=
"Cancel"
CausesValidation
=
"false"
ToolTip='<%# Container.Appointment.Owner.Localization.AdvancedClose %>'>
<%# Container.Appointment.Owner.Localization.AdvancedClose%>
</
asp:LinkButton
>
</
div
>
<
div
class
=
"rsAdvContentWrapper"
>
<
asp:Label
ID
=
"lblFamilia"
runat
=
"server"
Text
=
"Familia"
Label='<%# Container.Appointment.Owner.Localization.AdvancedSubject%>'></
asp:Label
>
<
asp:DropDownList
ID
=
"ddlFamilia"
runat
=
"server"
Label='<%# Container.Appointment.Owner.Localization.AdvancedSubject%>'>
</
asp:DropDownList
>
<
p
>
<%-- Custom content here...--%>
</
p
>
<
asp:Panel
runat
=
"server"
ID
=
"Panel1"
CssClass
=
"rsAdvancedSubmitArea"
>
<
div
class
=
"rsAdvButtonWrapper"
>
<
asp:LinkButton
CommandName
=
"Update"
runat
=
"server"
ID
=
"LinkButton2"
CssClass
=
"rsAdvEditSave"
>
<
span
><%# Container.Appointment.Owner.Localization.Save%></
span
>
</
asp:LinkButton
>
<
asp:LinkButton
runat
=
"server"
ID
=
"LinkButton3"
CssClass
=
"rsAdvEditCancel"
CommandName
=
"Cancel"
CausesValidation
=
"false"
>
<
span
><%# Container.Appointment.Owner.Localization.Cancel%></
span
>
</
asp:LinkButton
>
</
div
>
</
asp:Panel
>
</
div
>
</
div
>
</
AdvancedEditTemplate
>
protected void RadScheduler
1
_FormCreated
1
(object sender, SchedulerFormCreatedEventArgs e)
{
try
{
if (e.Container.Mode == SchedulerFormMode.AdvancedInsert)
{
CarregarComboFamilia(e.Container);
}
if (e.Container.Mode == SchedulerFormMode.AdvancedEdit)
{
CarregarComboFamilia(e.Container);
DropDownList ddlFamilia = (DropDownList)e.Container.FindControl(
"ddlFamilia"
);
if (ddlFamilia.Items.FindByText(e.Appointment.Subject) != null)
ddlFamilia.Items.FindByText(e.Appointment.Subject).Selected = true;
else
ddlFamilia.Items[
0
].Selected = true;
}
}
catch (Exception ex)
{
RadAjaxManager
1
.Alert(ex.Message);
}
}
protected void RadScheduler
1
_AppointmentCommand(object sender, AppointmentCommandEventArgs e)
{
if (e.CommandName ==
"Insert"
)
{
DropDownList ddlFamilia = (DropDownList)e.Container.FindControl(
"ddlFamilia"
);
e.Container.Appointment.Subject = ddlFamilia.Items.FindByValue(ddlFamilia.SelectedValue).Text;
Appointments.Add(e.Container.Appointment);
}
if (e.CommandName ==
"Update"
)
{
DropDownList ddlFamilia = (DropDownList)e.Container.FindControl(
"ddlFamilia"
);
e.Container.Appointment.Subject = ddlFamilia.Items.FindByValue(ddlFamilia.SelectedValue).Text;
}
}
protected void CarregarComboFamilia(SchedulerFormContainer container)
{
DropDownList ddlFamilia = (DropDownList)container.FindControl(
"ddlFamilia"
);
ParameterClassCollection parametros = new ParameterClassCollection();
parametros.Add(new ParameterClass(
"IdMicroArea"
, UCEstruturaRegionalFichaA
1
.MicroareaSelectedValue));
EcoArrayList listaFamilia = new Processador().List(typeof(BeFamilia), parametros);
ddlFamilia.DataSource = listaFamilia.Cast<BeFamilia>().ToList();
ddlFamilia.DataValueField =
"Id"
;
ddlFamilia.DataTextField =
"Exibicao"
;
ddlFamilia.DataBind();
}
protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)
{
if (e.Appointment.Visible)
{
//string id = e.Appointment.ID.ToString();
//A alterao de aprazamento permitida somente para ENFERMEIRO e MEDICOS
e.Appointment.AllowEdit =
true;
e.Appointment.AllowDelete =
true;
}
}
<
telerik:RadEditor
ID
=
"ctrlRadEditorFeature"
runat
=
"server"
DialogHandlerUrl
=
"~/Telerik.Web.UI.DialogHandler.axd"
Skin
=
"Default"
AllowScripts
=
"true"
EditModes
=
"All"
AutoResizeHeight
=
"true"
EnableResize
=
"true"
>
<
Content
>
</
Content
>
<
ImageManager
ViewPaths
=
"~/Content/pages/uploads/images"
UploadPaths
=
"~/Content/pages/uploads/images"
DeletePaths
=
"~/Content/pages/uploads/images"
/>
<
MediaManager
ViewPaths
=
"~/Content/pages/uploads/media"
UploadPaths
=
"~/Content/pages/uploads/media"
DeletePaths
=
"~/Content/pages/uploads/media"
/>
<
FlashManager
ViewPaths
=
"~/Content/pages/uploads/flash"
UploadPaths
=
"~/Content/pages/uploads/flash"
DeletePaths
=
"~/Content/pages/uploads/flash"
/>
<
TemplateManager
ViewPaths
=
"~/Content/pages/uploads/templates"
UploadPaths
=
"~/Content/pages/uploads/templates"
DeletePaths
=
"~/Content/pages/uploads/templates"
/>
<
DocumentManager
ViewPaths
=
"~/Content/pages/uploads/documents"
UploadPaths
=
"~/Content/pages/uploads/documents"
DeletePaths
=
"~/Content/pages/uploads/documents"
/>
<
SilverlightManager
ViewPaths
=
"~/Content/pages/uploads/silverlight"
UploadPaths
=
"~/Content/pages/uploads/silverlight"
DeletePaths
=
"~/Content/pages/uploads/silverlight"
/>
<
CssFiles
>
<
telerik:EditorCssFile
Value
=
"~/Content/css/RadEditorContentArea.css"
/>
</
CssFiles
>
</
telerik:RadEditor
>
<
td
align
=
"center"
style
=
"width: 98%;"
><
img
alt
=
""
style
=
"border: 0px solid;"
src
=
"/Images/1fc47641-aa90-466b-bcab-1df6b0a0bf5d.gif"
/> <
span
style
=
"font-family: arial black; font-size: 18px;"
><
br
/>
<
br
/>
Company Name </
span
></
td
>