147 lines
10 KiB
Text
147 lines
10 KiB
Text
<%@ Page Title="" Language="C#" MasterPageFile="~/Siten.master" AutoEventWireup="true" CodeBehind="IMS_BuildingResponsable.aspx.cs" Inherits="safety.GebVW.IMS_BuildingResponsable" MaintainScrollPositionOnPostback="true" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
|
|
|
<%-- <telerik:RadAjaxManager runat="server">
|
|
<AjaxSettings>
|
|
<telerik:AjaxSetting AjaxControlID="ddIDPBW">
|
|
<UpdatedControls>
|
|
<telerik:AjaxUpdatedControl ControlID="ddFuncties" UpdatePanelCssClass="" />
|
|
<telerik:AjaxUpdatedControl ControlID="RadGrid1" UpdatePanelCssClass="" />
|
|
</UpdatedControls>
|
|
</telerik:AjaxSetting>
|
|
|
|
<telerik:AjaxSetting AjaxControlID="ddFuncties">
|
|
<UpdatedControls>
|
|
<telerik:AjaxUpdatedControl ControlID="RadGrid1" UpdatePanelCssClass="" />
|
|
</UpdatedControls>
|
|
</telerik:AjaxSetting>
|
|
|
|
<telerik:AjaxSetting AjaxControlID="ddBuildings">
|
|
<UpdatedControls>
|
|
<telerik:AjaxUpdatedControl ControlID="RadGrid1" UpdatePanelCssClass="" />
|
|
</UpdatedControls>
|
|
</telerik:AjaxSetting>
|
|
</AjaxSettings>
|
|
</telerik:RadAjaxManager>--%>
|
|
|
|
<div style="width: 100%;">
|
|
<telerik:RadDropDownList ID="ddFuncties" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDSGebouwFuncties" DataTextField="ims_gebFunctieNaam" DataValueField="ims_gebFunctieID" AutoPostBack="true">
|
|
<Items>
|
|
<telerik:DropDownListItem runat="server" Text="Alle" Value="0" />
|
|
</Items>
|
|
</telerik:RadDropDownList>
|
|
<telerik:RadDropDownList ID="ddBuildings" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDSBuildings" DataTextField="Ims_BuildingCluster" DataValueField="IMS_BuildingClusterID" AutoPostBack="true">
|
|
<Items>
|
|
<telerik:DropDownListItem runat="server" Text="Alle" Value="0" />
|
|
</Items>
|
|
</telerik:RadDropDownList>
|
|
</div>
|
|
|
|
|
|
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="dsBResponsables" AllowSorting="True" AutoPostBack="true" CellSpacing="-1" GridLines="Both" OnPreRender="RadGrid1_PreRender">
|
|
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="False"></GroupingSettings>
|
|
<ExportSettings ExportOnlyData="True" FileName="GebouwVerantwoordelijken" OpenInNewWindow="True">
|
|
<Pdf PageWidth="">
|
|
</Pdf>
|
|
<Excel Format="Xlsx" />
|
|
</ExportSettings>
|
|
<MasterTableView DataKeyNames="IMS_BFRespID" DataSourceID="dsBResponsables" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" CommandItemDisplay="Top">
|
|
<CommandItemSettings ShowExportToExcelButton="True" />
|
|
<Columns>
|
|
<telerik:GridBoundColumn DataField="IMS_BFRespID" UniqueName="IMS_BFRespID" ReadOnly="true" Visible="false" />
|
|
<telerik:GridDropDownColumn DataField="ims_GebFunctieID" HeaderText="Functie" ListValueField="ims_GebFunctieID" UniqueName="ims_GebFunctieID" DataSourceID="SqlDSGebouwFuncties" ListTextField="ims_GebFunctieNaam" ListTextFormatString="{0}" ReadOnly="false">
|
|
<ColumnValidationSettings>
|
|
<ModelErrorMessage Text="" />
|
|
</ColumnValidationSettings>
|
|
</telerik:GridDropDownColumn>
|
|
|
|
<telerik:GridDropDownColumn DataField="IMS_BuildingClusterID" HeaderText="Cluster" ListValueField="IMS_BuildingClusterID" UniqueName="IMS_BuildingClusterID" DataSourceID="SqlDSBuildings" ListTextField="IMS_BuildingCluster" ListTextFormatString="{0}" ReadOnly="false">
|
|
<ColumnValidationSettings>
|
|
<ModelErrorMessage Text="" />
|
|
</ColumnValidationSettings>
|
|
</telerik:GridDropDownColumn>
|
|
|
|
<telerik:GridTemplateColumn DataField="persid1" FilterControlAltText="Filter column column" HeaderText="Coordinator1" UniqueName="persid1">
|
|
<EditItemTemplate>
|
|
<telerik:RadComboBox ID="persidRadComboBox1" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("persid1") %>'>
|
|
</telerik:RadComboBox>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("http://intern.sckcen.be/phonebook/fiche.asp?id={0}",Eval("persid1")) %>' Text='<%# Eval("name1") %>' />
|
|
</ItemTemplate>
|
|
</telerik:GridTemplateColumn>
|
|
|
|
<telerik:GridTemplateColumn DataField="persid2" FilterControlAltText="Filter column column" HeaderText="Coordinator 2" UniqueName="persid2">
|
|
<EditItemTemplate>
|
|
<telerik:RadComboBox ID="persidRadComboBox2" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("persid2") %>'>
|
|
</telerik:RadComboBox>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("http://intern.sckcen.be/phonebook/fiche.asp?id={0}",Eval("persid2")) %>' Text='<%# Eval("name2") %>' />
|
|
</ItemTemplate>
|
|
</telerik:GridTemplateColumn>
|
|
|
|
<telerik:GridTemplateColumn DataField="persidsec1" FilterControlAltText="Filter column column" HeaderText="Delegate 1" UniqueName="persidsec1">
|
|
<EditItemTemplate>
|
|
<telerik:RadComboBox ID="persidRadComboBox3" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("persidsec1") %>'>
|
|
</telerik:RadComboBox>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("http://intern.sckcen.be/phonebook/fiche.asp?id={0}",Eval("persidsec1")) %>' Text='<%# Eval("name3") %>' />
|
|
</ItemTemplate>
|
|
</telerik:GridTemplateColumn>
|
|
|
|
<telerik:GridTemplateColumn DataField="persidsec2" FilterControlAltText="Filter column column" HeaderText="Delegate 2" UniqueName="persidsec2">
|
|
<EditItemTemplate>
|
|
<telerik:RadComboBox ID="persidRadComboBox4" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("persidsec2") %>'>
|
|
</telerik:RadComboBox>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("http://intern.sckcen.be/phonebook/fiche.asp?id={0}",Eval("persidsec2")) %>' Text='<%# Eval("name4") %>' />
|
|
</ItemTemplate>
|
|
</telerik:GridTemplateColumn>
|
|
|
|
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
|
<HeaderStyle Width="30px"></HeaderStyle>
|
|
</telerik:GridButtonColumn>
|
|
|
|
<telerik:GridButtonColumn CommandName="Delete" Text="Del" ButtonCssClass="rgDel" UniqueName="DeleteColumn" HeaderStyle-Width="30px" ConfirmText="Wil je dit wissen?" ConfirmDialogType="RadWindow" ConfirmTitle="Wissen">
|
|
<HeaderStyle Width="30px"></HeaderStyle>
|
|
</telerik:GridButtonColumn>
|
|
</Columns>
|
|
</MasterTableView>
|
|
</telerik:RadGrid>
|
|
<asp:SqlDataSource ID="dsBResponsables" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" DeleteCommand="IMS_ClusterResponsablesDelete" DeleteCommandType="StoredProcedure" InsertCommand="IMS_ClusterResponsablesInsert" InsertCommandType="StoredProcedure" SelectCommand="IMS_ClusterResponsablesSelect" SelectCommandType="StoredProcedure" UpdateCommand="IMS_ClusterResponsablesUpdate" UpdateCommandType="StoredProcedure" CancelSelectOnNullParameter="False">
|
|
<DeleteParameters>
|
|
<asp:Parameter Name="IMS_BFRespID" Type="Int32" />
|
|
</DeleteParameters>
|
|
<InsertParameters>
|
|
<asp:Parameter Name="IMS_BuildingClusterID" Type="Int32" />
|
|
<asp:Parameter Name="ims_GebFunctieID" Type="Int32" />
|
|
<asp:Parameter Name="persid1" Type="Int32" />
|
|
<asp:Parameter Name="persid2" Type="Int32" />
|
|
<asp:Parameter Name="persidSec1" Type="Int32" />
|
|
<asp:Parameter Name="persidSec2" Type="Int32" />
|
|
</InsertParameters>
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="ddBuildings" Name="IMS_BuildingClusterID" PropertyName="SelectedValue" Type="Int32" />
|
|
<asp:ControlParameter ControlID="ddFuncties" Name="ims_GebFunctieID" PropertyName="SelectedValue" Type="Int32" />
|
|
</SelectParameters>
|
|
<UpdateParameters>
|
|
<asp:Parameter Name="IMS_BFRespID" Type="Int32" />
|
|
<asp:Parameter Name="IMS_BuildingClusterID" Type="Int32" />
|
|
<asp:Parameter Name="ims_GebFunctieID" Type="Int32" />
|
|
<asp:Parameter Name="persid1" Type="Int32" />
|
|
<asp:Parameter Name="persid2" Type="Int32" />
|
|
<asp:Parameter Name="persidSec1" Type="Int32" />
|
|
<asp:Parameter Name="persidSec2" Type="Int32" />
|
|
</UpdateParameters>
|
|
</asp:SqlDataSource>
|
|
<asp:SqlDataSource ID="SqlDSBuildings" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>"
|
|
SelectCommand="ims_BuildingClustersList" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
|
<asp:SqlDataSource ID="SqlDSGebouwFuncties" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>"
|
|
SelectCommand="Ims_GebFunctiesList" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
|
<asp:SqlDataSource ID="SqlDSNamen" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>"
|
|
SelectCommand="getLijstNamen" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
|
</asp:Content>
|