Add project files.
This commit is contained in:
parent
7ce543e905
commit
a6edc1800d
373 changed files with 38051 additions and 0 deletions
64
Bitmap/Bitmap.csproj
Normal file
64
Bitmap/Bitmap.csproj
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{8FEA7C86-2680-40AB-BF06-78E6324D1594}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Bitmap</RootNamespace>
|
||||
<AssemblyName>Bitmap</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'TestServer|AnyCPU'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\TestServer\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
<Reference Include="ReachFramework" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Presentation" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="WindowsBase" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="XpsBitmapHelper.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
36
Bitmap/Properties/AssemblyInfo.cs
Normal file
36
Bitmap/Properties/AssemblyInfo.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Bitmap")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Bitmap")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("8fea7c86-2680-40ab-bf06-78e6324d1594")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
117
Bitmap/XpsBitmapHelper.cs
Normal file
117
Bitmap/XpsBitmapHelper.cs
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
using System.IO;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Xps.Packaging;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Drawing;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Bitmapper
|
||||
{
|
||||
static public class XpsBitmapHelper
|
||||
{
|
||||
static public bool SaveXpsPageToPng(string xpsFileName)
|
||||
{
|
||||
bool rv = false;
|
||||
var tcs = new TaskCompletionSource<bool>();
|
||||
Thread thread = new Thread(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
tcs.SetResult(SaveXpsPageToBitmap(xpsFileName));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
tcs.SetException(e);
|
||||
}
|
||||
});
|
||||
thread.SetApartmentState(ApartmentState.STA);
|
||||
thread.Start();
|
||||
|
||||
tcs.Task.Wait();
|
||||
if (tcs.Task.IsCompleted)
|
||||
rv = tcs.Task.Result;
|
||||
return rv;
|
||||
}
|
||||
static bool SaveXpsPageToBitmap(string para1)
|
||||
{
|
||||
bool rv = false;
|
||||
string xpsFileName = para1 as string;
|
||||
XpsDocument xpsDoc = new XpsDocument(xpsFileName, System.IO.FileAccess.Read);
|
||||
var t = xpsDoc.FixedDocumentSequenceReader.FixedDocuments[0].FixedPages[0];
|
||||
BitmapEncoder encoder = null;
|
||||
|
||||
string ext = ".png";
|
||||
var th = xpsDoc.Thumbnail;
|
||||
if (false)
|
||||
{ //th != null ) {
|
||||
//ext = System.IO.Path.GetExtension(th.Uri.OriginalString);// ".jpeg" string
|
||||
var x = th.GetStream();
|
||||
var bf = BitmapFrame.Create(x);
|
||||
encoder = new PngBitmapEncoder();
|
||||
encoder.Frames.Add(bf);
|
||||
using (FileStream pageOutStream = new FileStream(System.IO.Path.Combine(System.IO.Path.GetDirectoryName(xpsFileName), System.IO.Path.GetFileNameWithoutExtension(xpsFileName)) + ext, FileMode.Create, FileAccess.Write))
|
||||
{
|
||||
encoder.Save(pageOutStream);
|
||||
pageOutStream.Close();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string outfilename = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(xpsFileName), System.IO.Path.GetFileNameWithoutExtension(xpsFileName)) + ext;
|
||||
FixedDocumentSequence docSeq = xpsDoc.GetFixedDocumentSequence();
|
||||
if (docSeq.DocumentPaginator.PageCount > 0)
|
||||
{
|
||||
RenderTargetBitmap renderTarget;
|
||||
using (DocumentPage docPage = docSeq.DocumentPaginator.GetPage(0))
|
||||
{
|
||||
renderTarget =
|
||||
new RenderTargetBitmap((int)docPage.Size.Width,
|
||||
(int)docPage.Size.Height,
|
||||
96, // WPF (Avalon) units are 96dpi based
|
||||
96,
|
||||
System.Windows.Media.PixelFormats.Default);
|
||||
|
||||
renderTarget.Render(docPage.Visual);
|
||||
|
||||
}
|
||||
System.Drawing.Image bitmap1 = null;
|
||||
encoder = new PngBitmapEncoder(); // Choose type here ie: JpegBitmapEncoder, etc
|
||||
var bm = BitmapFrame.Create(renderTarget);
|
||||
encoder.Frames.Add(BitmapFrame.Create(renderTarget));
|
||||
var h = bm.Height;
|
||||
using (MemoryStream ms = new MemoryStream())
|
||||
{
|
||||
encoder.Save(ms);
|
||||
bitmap1 = System.Drawing.Bitmap.FromStream(ms);
|
||||
}
|
||||
int newHeight = 128;
|
||||
int newWidth = (int)(bitmap1.Width * 128.0 / bitmap1.Height);
|
||||
Bitmap bm2 = new Bitmap(bitmap1, newWidth, newHeight);
|
||||
bm2.Save(outfilename, System.Drawing.Imaging.ImageFormat.Png);
|
||||
rv = true;
|
||||
}
|
||||
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
public static bool BitmapToThumbnail(string bitmapFileName, out string outfilename)
|
||||
{
|
||||
outfilename = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(bitmapFileName), System.IO.Path.GetFileNameWithoutExtension(bitmapFileName) + "_th.png");
|
||||
bool ok = false;
|
||||
Image i = Image.FromFile(bitmapFileName);
|
||||
int newHeight = 128;
|
||||
int newWidth = (int)(i.Width * 128.0 / i.Height);
|
||||
Bitmap bm2 = new Bitmap(i, newWidth, newHeight);
|
||||
bm2.Save(outfilename, System.Drawing.Imaging.ImageFormat.Png);
|
||||
ok = true;
|
||||
return ok;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
36
Safety.sln
Normal file
36
Safety.sln
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.32413.119
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Safety", "Safety\Safety.csproj", "{5099A83B-4C18-45E6-8548-B59036CB28CC}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bitmap", "Bitmap\Bitmap.csproj", "{8FEA7C86-2680-40AB-BF06-78E6324D1594}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
TestServer|Any CPU = TestServer|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{5099A83B-4C18-45E6-8548-B59036CB28CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5099A83B-4C18-45E6-8548-B59036CB28CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5099A83B-4C18-45E6-8548-B59036CB28CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5099A83B-4C18-45E6-8548-B59036CB28CC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{5099A83B-4C18-45E6-8548-B59036CB28CC}.TestServer|Any CPU.ActiveCfg = TestServer|Any CPU
|
||||
{5099A83B-4C18-45E6-8548-B59036CB28CC}.TestServer|Any CPU.Build.0 = TestServer|Any CPU
|
||||
{8FEA7C86-2680-40AB-BF06-78E6324D1594}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8FEA7C86-2680-40AB-BF06-78E6324D1594}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8FEA7C86-2680-40AB-BF06-78E6324D1594}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8FEA7C86-2680-40AB-BF06-78E6324D1594}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8FEA7C86-2680-40AB-BF06-78E6324D1594}.TestServer|Any CPU.ActiveCfg = TestServer|Any CPU
|
||||
{8FEA7C86-2680-40AB-BF06-78E6324D1594}.TestServer|Any CPU.Build.0 = TestServer|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {6EEB5F46-4010-4BBB-A52C-7FD61FC1D394}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
71
Safety/AdminPages/AppRolesHPH.aspx
Normal file
71
Safety/AdminPages/AppRolesHPH.aspx
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
<%@ Page Title="Rollen HPH" Language="C#" MasterPageFile="~/Masters/Site.master" AutoEventWireup="true" CodeBehind="AppRolesHPH.aspx.cs" Inherits="safety.Admin.AppRolesHPH" MaintainScrollPositionOnPostback="true" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
|
||||
<telerik:RadGrid ID="RadGrid2" runat="server" CellSpacing="-1" DataSourceID="SqlDataSource2" GridLines="Both" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateColumns="False" AllowFilteringByColumn="True" AllowSorting="True" OnPreRender="RadGrid2_PreRender">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false"></GroupingSettings>
|
||||
<MasterTableView DataKeyNames="persid" DataSourceID="SqlDataSource2" Caption="Applicatie rollen HPH" CommandItemDisplay="Top" AllowAutomaticDeletes="True">
|
||||
<Columns>
|
||||
<telerik:GridButtonColumn CommandName="Delete" Text="Del" UniqueName="DeleteColumn" ButtonCssClass="rgDel" ConfirmText="Are you sure to delete this?" HeaderStyle-Width="30px" />
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px" />
|
||||
<telerik:GridTemplateColumn DataField="PersID" HeaderText="PersID" UniqueName="PersID" HeaderStyle-Width="60px" ItemStyle-Width="40px" FilterControlWidth="40px">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox1" runat="server" DataSourceID="SqlDSNamen" DataTextField="fullname" DataValueField="persID" SelectedValue='<%# Bind("PersID") %>' MarkFirstMatch="true" AllowCustomText="true" Width="250px" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("https://toegang.intern.sck.be/fwd/Fiche/{0}",Eval("PersID")) %>' Text='<%# Eval("PersID") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
<telerik:GridBoundColumn DataField="fullName" HeaderText="Name" ReadOnly="True" SortExpression="fullName" UniqueName="fullName" AllowFiltering="true" />
|
||||
<telerik:GridCheckBoxColumn DataField="isAdmin" DataType="System.Boolean" HeaderText="HPH Core" SortExpression="isAdmin" UniqueName="isAdmin" />
|
||||
<telerik:GridCheckBoxColumn DataField="isVPN" DataType="System.Boolean" HeaderText="VPN" SortExpression="isVPN" UniqueName="isVPN" AllowFiltering="true" />
|
||||
<telerik:GridCheckBoxColumn DataField="isToestelVerantwoordelijke" DataType="System.Boolean" HeaderText="ToestelResp" SortExpression="isToestelVerantwoordelijke" UniqueName="isToestelVerantwoordelijke" />
|
||||
<telerik:GridCheckBoxColumn DataField="isAgent" DataType="System.Boolean" HeaderText="Agent" SortExpression="isAgent" UniqueName="isAgent" />
|
||||
<telerik:GridCheckBoxColumn DataField="eDosAgent" DataType="System.Boolean" HeaderText="eDos Ag" SortExpression="eDosAgent" UniqueName="eDosAgent" />
|
||||
<telerik:GridCheckBoxColumn DataField="isToestelVerantwoordelijkeRead" DataType="System.Boolean" HeaderText="ToestelRespRO" SortExpression="isToestelVerantwoordelijkeRead" UniqueName="isToestelVerantwoordelijkeRead" />
|
||||
<telerik:GridCheckBoxColumn DataField="ManageSuspendExceptions" DataType="System.Boolean" HeaderText="Man. Suspend" SortExpression="ManageSuspendExceptions" UniqueName="ManageSuspendExceptions" HeaderTooltip="Allow managing Suspended" />
|
||||
<telerik:GridCheckBoxColumn DataField="ManageMedicExceptions" DataType="System.Boolean" HeaderText="Man. Medic" SortExpression="ManageMedicExceptions" UniqueName="ManageMedicExceptions" HeaderTooltip="Allow managing Medical code exceptions"/>
|
||||
</Columns>
|
||||
<EditFormSettings>
|
||||
<EditColumn ButtonType="ImageButton" />
|
||||
</EditFormSettings>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_VerimetConnectionString %>"
|
||||
SelectCommand="[md].[personHPHSelect]" SelectCommandType="StoredProcedure"
|
||||
UpdateCommand="[md].[personHPHUpdate]" UpdateCommandType="StoredProcedure"
|
||||
InsertCommand="[md].[personHPHInsert]" InsertCommandType="StoredProcedure"
|
||||
DeleteCommand="[md].[personHPHDelete]" DeleteCommandType="StoredProcedure"
|
||||
CancelSelectOnNullParameter="False">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="PersID" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="PersID" Type="Int32" />
|
||||
<asp:Parameter Name="isAdmin" Type="Boolean" />
|
||||
<asp:Parameter Name="isVPN" Type="Boolean" />
|
||||
<asp:Parameter Name="isToestelVerantwoordelijke" Type="Boolean" />
|
||||
<asp:Parameter Name="isAgent" Type="Boolean" />
|
||||
<asp:Parameter Name="isToestelVerantwoordelijkeRead" Type="Boolean" />
|
||||
<asp:Parameter Name="ManageSuspendExceptions" Type="Boolean" />
|
||||
<asp:Parameter Name="ManageMedicExceptions" Type="Boolean" />
|
||||
<asp:Parameter Name="eDosAgent" Type="Boolean" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="PersID" Type="Int32" />
|
||||
<asp:Parameter Name="isAdmin" Type="Boolean" />
|
||||
<asp:Parameter Name="isVPN" Type="Boolean" />
|
||||
<asp:Parameter Name="isToestelVerantwoordelijke" Type="Boolean" />
|
||||
<asp:Parameter Name="isAgent" Type="Boolean" />
|
||||
<asp:Parameter Name="isToestelVerantwoordelijkeRead" Type="Boolean" />
|
||||
<asp:Parameter Name="ManageSuspendExceptions" Type="Boolean" />
|
||||
<asp:Parameter Name="ManageMedicExceptions" Type="Boolean" />
|
||||
<asp:Parameter Name="eDosAgent" Type="Boolean" />
|
||||
</UpdateParameters>
|
||||
|
||||
</asp:SqlDataSource>
|
||||
|
||||
<asp:SqlDataSource ID="SqlDSNamen" runat="server"
|
||||
ConnectionString="<%$ ConnectionStrings:HPH_VerimetConnectionString %>"
|
||||
SelectCommand="NamesList" SelectCommandType="StoredProcedure" />
|
||||
</asp:Content>
|
||||
24
Safety/AdminPages/AppRolesHPH.aspx.cs
Normal file
24
Safety/AdminPages/AppRolesHPH.aspx.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
|
||||
namespace safety.Admin
|
||||
{
|
||||
public partial class AppRolesHPH : System.Web.UI.Page
|
||||
{
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Rollen HPH");
|
||||
}
|
||||
|
||||
protected void RadGrid2_PreRender(object sender, EventArgs e)
|
||||
{
|
||||
//if (!General.IDPBWHasPerms(SqlDataSource2.UpdateCommand, "EXECUTE"))
|
||||
//{
|
||||
// var c = RadGrid2.MasterTableView.Columns.FindByUniqueName("EditColumn");
|
||||
// if (c != null) c.Display = false;
|
||||
// c = RadGrid2.MasterTableView.Columns.FindByUniqueName("DeleteColumn");
|
||||
// if (c != null) c.Display = false;
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
44
Safety/AdminPages/AppRolesHPH.aspx.designer.cs
generated
Normal file
44
Safety/AdminPages/AppRolesHPH.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.Admin
|
||||
{
|
||||
|
||||
|
||||
public partial class AppRolesHPH
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid2;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource2;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSNamen control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSNamen;
|
||||
}
|
||||
}
|
||||
72
Safety/AdminPages/AppRolesHPHIns.aspx
Normal file
72
Safety/AdminPages/AppRolesHPHIns.aspx
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
<%@ Page Title="Rollen HPH installatie" Language="C#" MasterPageFile="~/Masters/Site.master" AutoEventWireup="true" CodeBehind="AppRolesHPHIns.aspx.cs" Inherits="safety.Admin.AppRolesHPHIns" MaintainScrollPositionOnPostback="true" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid ID="RadGrid2" runat="server" CellSpacing="-1" DataSourceID="SqlDataSource2" GridLines="Both" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateColumns="False" AllowFilteringByColumn="True" AllowSorting="True" OnPreRender="RadGrid2_PreRender" OnItemCommand="RadGrid2_ItemCommand" OnItemDataBound="RadGrid2_ItemDataBound">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false" />
|
||||
<MasterTableView DataKeyNames="account,installationID" DataSourceID="SqlDataSource2" Caption="Applicatie rol HPH Installatie" CommandItemDisplay="Top" AllowAutomaticDeletes="True">
|
||||
<CommandItemSettings AddNewRecordText="Nieuwe gebruiker" />
|
||||
<RowIndicatorColumn ShowNoSortIcon="False"></RowIndicatorColumn>
|
||||
|
||||
<ExpandCollapseColumn ShowNoSortIcon="False"></ExpandCollapseColumn>
|
||||
<Columns>
|
||||
<telerik:GridButtonColumn CommandName="Delete" Text="Del" UniqueName="DeleteColumn" ButtonCssClass="rgDel" ConfirmText="Are you sure to delete this?" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
<telerik:GridBoundColumn DataField="persID" DataType="System.Int32" HeaderText="persID" SortExpression="persID" UniqueName="persID1" ReadOnly="true" ItemStyle-Width="70px" FilterControlWidth="50px" HeaderStyle-Width="70px">
|
||||
<HeaderStyle Width="70px"></HeaderStyle>
|
||||
<ItemStyle Width="70px"></ItemStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridTemplateColumn DataField="account" DataType="System.String" HeaderText="Account" SortExpression="account" UniqueName="account" AllowFiltering="false" HeaderStyle-Width="200px" ItemStyle-Width="200px" FilterControlWidth="170px" >
|
||||
<ItemTemplate>
|
||||
<telerik:RadLabel runat="server" ID="taccount" Text='<%# Eval("account") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="accountBox" runat="server" DataSourceID="dsAccounts"
|
||||
DataTextField="LongName" DataValueField="account"
|
||||
MarkFirstMatch="true" AllowCustomText="true" Width="250px" />
|
||||
</EditItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
<telerik:GridBoundColumn DataField="fullname" DataType="System.String" HeaderText="Name" SortExpression="fullname" UniqueName="fullname" AllowFiltering="true" ReadOnly="true" />
|
||||
<telerik:GridDropDownColumn DataField="new_installationID" DataSourceID="dsIns" ListTextField="InstallationName" ListValueField="InstallationID" UniqueName="installationID" />
|
||||
<telerik:GridCheckBoxColumn DataField="isRadVision" DataType="System.Boolean" HeaderText="RadVision" SortExpression="isRadVision" UniqueName="isRadVision" />
|
||||
<telerik:GridBoundColumn DataField="reason" DataType="System.String" HeaderText="Opmerking" SortExpression="reason" UniqueName="reason" />
|
||||
</Columns>
|
||||
<EditFormSettings>
|
||||
<EditColumn ShowNoSortIcon="False" ButtonType="ImageButton"></EditColumn>
|
||||
</EditFormSettings>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_VerimetConnectionString %>"
|
||||
SelectCommand="[md].[personHPHInsSelect]" SelectCommandType="StoredProcedure"
|
||||
UpdateCommand="[md].[personHPHInsUpdate]" UpdateCommandType="StoredProcedure"
|
||||
InsertCommand="[md].[personHPHInsInsert]" InsertCommandType="StoredProcedure"
|
||||
DeleteCommand="[md].[personHPHInsDelete]" DeleteCommandType="StoredProcedure"
|
||||
CancelSelectOnNullParameter="False" OnUpdating="SqlDataSource2_Updating">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="account" Type="String" />
|
||||
<asp:Parameter Name="installationID" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="account" Type="String" />
|
||||
<asp:Parameter Name="isRadVision" Type="Boolean" />
|
||||
<asp:Parameter Name="reason" Type="String" />
|
||||
<asp:Parameter Name="new_installationID" Type="Int32" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="account" Type="String" />
|
||||
<asp:Parameter Name="installationID" Type="Int32" />
|
||||
<asp:Parameter Name="isRadVision" Type="Boolean" />
|
||||
<asp:Parameter Name="reason" Type="String" />
|
||||
<asp:Parameter Name="new_installationID" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="dsIns" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_VerimetConnectionString %>"
|
||||
SelectCommand="[md].[InstallationsList]" SelectCommandType="StoredProcedure" />
|
||||
|
||||
<asp:SqlDataSource ID="dsAccounts" runat="server" ConnectionString="<%$ ConnectionStrings:HPH_VerimetConnectionString %>"
|
||||
SelectCommand="[dbo].[personList]" SelectCommandType="StoredProcedure" />
|
||||
|
||||
</asp:Content>
|
||||
92
Safety/AdminPages/AppRolesHPHIns.aspx.cs
Normal file
92
Safety/AdminPages/AppRolesHPHIns.aspx.cs
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Telerik.Web.UI;
|
||||
|
||||
namespace safety.Admin
|
||||
{
|
||||
public partial class AppRolesHPHIns : System.Web.UI.Page
|
||||
{
|
||||
|
||||
static object or_installationID;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Rollen HPH Installatie");
|
||||
}
|
||||
|
||||
protected void RadGrid2_PreRender(object sender, EventArgs e)
|
||||
{
|
||||
//if (!General.IDPBWHasPerms(SqlDataSource2.UpdateCommand, "EXECUTE") )
|
||||
//{
|
||||
// var c = RadGrid2.MasterTableView.Columns.FindByUniqueName("EditColumn");
|
||||
// if (c != null) c.Display = false;
|
||||
// c = RadGrid2.MasterTableView.Columns.FindByUniqueName("DeleteColumn");
|
||||
// if (c != null) c.Display = false;
|
||||
//}
|
||||
}
|
||||
|
||||
protected void RadGrid2_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
|
||||
{
|
||||
if (e.CommandName == RadGrid.UpdateCommandName)
|
||||
{
|
||||
if (e.Item is GridEditableItem)
|
||||
{
|
||||
GridEditableItem editedItem = e.Item as GridEditableItem;
|
||||
or_installationID = editedItem.SavedOldValues["installationID"] ;
|
||||
//Hashtable newValues = new Hashtable(); e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void SqlDataSource2_Updating(object sender, System.Web.UI.WebControls.SqlDataSourceCommandEventArgs e)
|
||||
{
|
||||
|
||||
if (or_installationID is string && int.TryParse((string)or_installationID, out int _o)) {
|
||||
e.Command.Parameters["@or_installationID"].Value = _o;
|
||||
}
|
||||
}
|
||||
|
||||
protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e)
|
||||
{
|
||||
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
|
||||
{
|
||||
GridEditableItem editItem = (GridEditableItem)e.Item;
|
||||
RadComboBox combo = (RadComboBox)editItem.FindControl("accountBox");
|
||||
|
||||
if (combo != null)
|
||||
{
|
||||
// Haal de waarde uit de data-item (bijv. uit je database)
|
||||
string accountValue = DataBinder.Eval(editItem.DataItem, "account").ToString();
|
||||
|
||||
// Check of het item bestaat in de lijst
|
||||
if (combo.Items.FindItemByValue(accountValue) != null)
|
||||
{
|
||||
combo.SelectedValue = accountValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Optioneel: Voeg de missende waarde toe als 'Custom Text'
|
||||
// of selecteer een default waarde om de crash te voorkomen
|
||||
combo.Text = accountValue;
|
||||
}
|
||||
}
|
||||
|
||||
GridDropDownListColumnEditor editor = (GridDropDownListColumnEditor)editItem.EditManager.GetColumnEditor("installationID");
|
||||
|
||||
if (editor != null)
|
||||
{
|
||||
string val = DataBinder.Eval(editItem.DataItem, "new_installationID").ToString();
|
||||
var itemToSelect = editor.ComboBoxControl.Items.FindItemByValue(val);
|
||||
|
||||
if (itemToSelect == null)
|
||||
{
|
||||
// Voorkom crash door de waarde tijdelijk toe te voegen of leeg te laten
|
||||
editor.ComboBoxControl.Items.Add(new RadComboBoxItem("Onbekend (" + val + ")", val));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
53
Safety/AdminPages/AppRolesHPHIns.aspx.designer.cs
generated
Normal file
53
Safety/AdminPages/AppRolesHPHIns.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.Admin
|
||||
{
|
||||
|
||||
|
||||
public partial class AppRolesHPHIns
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid2;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource2;
|
||||
|
||||
/// <summary>
|
||||
/// dsIns control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource dsIns;
|
||||
|
||||
/// <summary>
|
||||
/// dsAccounts control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource dsAccounts;
|
||||
}
|
||||
}
|
||||
1
Safety/App_Code/TelerikLicense.cs
Normal file
1
Safety/App_Code/TelerikLicense.cs
Normal file
|
|
@ -0,0 +1 @@
|
|||
[assembly: global::Telerik.Licensing.EvidenceAttribute("eyJhbGciOiJSUzI1NiIsInR5cCI6IlRlbGVyaWsgTGljZW5zZSBFdmlkZW5jZSJ9.eyJjb2RlIjoiUkNBSkFYIiwidHlwZSI6InBlcnBldHVhbCIsImV4cGlyYXRpb24iOjE3ODM0ODY4MDAsInVzZXJJZCI6IjEzZjYwZjk0LTVlYjctNDA4OC05ZjE0LTRkODk0ZDg3ZjMwZCIsImxpY2Vuc2VJZCI6IjFlYzUxMWM4LWJmYjgtNDY3ZS05NzNkLTE3YzU5MjM5MTI0NCJ9.gtHO3CSreGEUHOKIjE4HxSE4zh5brlxDbueYyzuJVr-GG1NCVD89kP6spEJzaXl1r2foSOjbY82-lEwoVg1QvWTDN10TinUBoV8aUn3aSCT7RyLZw7KAja92YEfXjfyq808LFewg4y7EF2a4aEAXqBpPVGjoXlhRxttVzCvgTAE7qlpoVG0o4o9hzaCBUDV076UOuhNdc1rSJOk221_pqe3KcYd4Hv14lpsdg3_dL87a3oS7yxFLZf1NgA7nBrQvfwradLXnyAGZo0aqPfyR9BCSmLLimgE55u36xqJKdVcLmnyggWIgT53F1U1aab69kIFsH2IabyAmUiLQAcApRw")]
|
||||
0
Safety/App_Data/RadUploadTemp/RadUploadTestFile
Normal file
0
Safety/App_Data/RadUploadTemp/RadUploadTestFile
Normal file
1
Safety/App_Data/Telerik/TelerikLicense.cs
Normal file
1
Safety/App_Data/Telerik/TelerikLicense.cs
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
72
Safety/App_GlobalResources/FicheStrings.Designer.cs
generated
Normal file
72
Safety/App_GlobalResources/FicheStrings.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Resources {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option or rebuild the Visual Studio project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Web.Application.StronglyTypedResourceProxyBuilder", "16.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class FicheStrings {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal FicheStrings() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Resources.FicheStrings", global::System.Reflection.Assembly.Load("App_GlobalResources"));
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to 3.0.1.
|
||||
/// </summary>
|
||||
internal static string LSWVersion {
|
||||
get {
|
||||
return ResourceManager.GetString("LSWVersion", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
124
Safety/App_GlobalResources/FicheStrings.resx
Normal file
124
Safety/App_GlobalResources/FicheStrings.resx
Normal file
|
|
@ -0,0 +1,124 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="LSWVersion" xml:space="preserve">
|
||||
<value>3.0.1</value>
|
||||
<comment>2020-09-14</comment>
|
||||
</data>
|
||||
</root>
|
||||
112
Safety/ApproveNoInternalCheckOld.aspx
Normal file
112
Safety/ApproveNoInternalCheckOld.aspx
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
<%@ Page Title="Old" Language="C#" MasterPageFile="~/Site2n.master" AutoEventWireup="true" CodeBehind="ApproveNoInternalCheckOld.aspx.cs" Inherits="safety.ApproveNoInternalCheckOld" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<h1>Approval for no internal examination</h1>
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" DataSourceID="SqlDataSource1" GridLines="None" AutoGenerateColumns="False">
|
||||
<MasterTableView DataKeyNames="toelatingid" DataSourceID="SqlDataSource1">
|
||||
<ColumnGroups>
|
||||
<telerik:GridColumnGroup Name="Freq" HeaderText="Frequentie"></telerik:GridColumnGroup>
|
||||
<telerik:GridColumnGroup Name="Grid" HeaderText="Grid"></telerik:GridColumnGroup>
|
||||
<telerik:GridColumnGroup Name="Mentor" HeaderText="Mentor/Chef"></telerik:GridColumnGroup>
|
||||
</ColumnGroups>
|
||||
<Columns>
|
||||
<telerik:GridHyperLinkColumn AllowSorting="False" DataNavigateUrlFields="toelatingid" DataNavigateUrlFormatString="http://intern/idpbw2/RequestAllowance.aspx?tlid={0}" DataTextField="toelatingid" DataTextFormatString="{0}" FilterControlAltText="Filter toelatingid column" HeaderText="DocA1" Target="_blank" UniqueName="toelatingid">
|
||||
</telerik:GridHyperLinkColumn>
|
||||
<telerik:GridHyperLinkColumn AllowSorting="False" DataNavigateUrlFields="persid" DataNavigateUrlFormatString="http://intern.sckcen.be/idpbw2/PersFiche.aspx?persID={0}" DataTextField="persid" DataTextFormatString="{0}" FilterControlAltText="Filter persid column" HeaderText="PersID" Target="_blank" UniqueName="persid">
|
||||
</telerik:GridHyperLinkColumn>
|
||||
<telerik:GridBoundColumn DataField="name" FilterControlAltText="Filter name column" HeaderText="name" ReadOnly="True" SortExpression="name" UniqueName="name">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="companyname" FilterControlAltText="Filter companyname column" HeaderText="companyname" ReadOnly="True" SortExpression="companyname" UniqueName="companyname">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="redengeencontrole" FilterControlAltText="Filter redengeencontrole column" HeaderText="redengeencontrole" SortExpression="redengeencontrole" UniqueName="redengeencontrole">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridButtonColumn CommandName="Approve" FilterControlAltText="Filter column column" Text="Approve" UniqueName="column">
|
||||
</telerik:GridButtonColumn>
|
||||
<telerik:GridBoundColumn DataField="wbc" DataType="System.Byte" FilterControlAltText="Filter wbc column" HeaderText="WBC" SortExpression="wbc" UniqueName="wbc" ColumnGroupName="Freq">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="lung" DataType="System.Byte" FilterControlAltText="Filter lung column" HeaderText="Lung" SortExpression="lung" UniqueName="lung" ColumnGroupName="Freq">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="pu" DataType="System.Byte" FilterControlAltText="Filter pu column" HeaderText="Pu" SortExpression="pu" UniqueName="pu" ColumnGroupName="Freq">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Am" DataType="System.Byte" FilterControlAltText="Filter Am column" HeaderText="Am" SortExpression="Am" UniqueName="Am" ColumnGroupName="Freq">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="wbcGr" DataType="System.Byte" FilterControlAltText="Filter wbcGr column" HeaderText="WBC" ReadOnly="True" SortExpression="wbcGr" UniqueName="wbcGr" ColumnGroupName="Grid">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="LungGr" DataType="System.Byte" FilterControlAltText="Filter LungGr column" HeaderText="Lung" ReadOnly="True" SortExpression="LungGr" UniqueName="LungGr" ColumnGroupName="Grid">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="PuGr" DataType="System.Byte" FilterControlAltText="Filter PuGr column" HeaderText="Pu" ReadOnly="True" SortExpression="PuGr" UniqueName="PuGr" ColumnGroupName="Grid">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="AmGr" DataType="System.Byte" FilterControlAltText="Filter AmGr column" HeaderText="Am" ReadOnly="True" SortExpression="AmGr" UniqueName="AmGr" ColumnGroupName="Grid">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="jobbeschrijving" FilterControlAltText="Filter jobbeschrijving column" HeaderText="jobbeschrijving" SortExpression="jobbeschrijving" UniqueName="jobbeschrijving">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="start" DataType="System.DateTime" FilterControlAltText="Filter start column" HeaderText="Start" SortExpression="start" UniqueName="start" DataFormatString="{0:yyyy-MM-dd}">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="einde" DataType="System.DateTime" FilterControlAltText="Filter einde column" HeaderText="Einde" SortExpression="einde" UniqueName="einde" DataFormatString="{0:yyyy-MM-dd}">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="building" FilterControlAltText="Filter building column" HeaderText="building" SortExpression="building" UniqueName="building">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="mentor1" DataType="System.Int32" FilterControlAltText="Filter mentor1 column" HeaderText="MentorID" SortExpression="mentor1" UniqueName="mentor1" ColumnGroupName="Mentor">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="mentor" FilterControlAltText="Filter mentor column" HeaderText="Mentor" ReadOnly="True" SortExpression="mentor" UniqueName="mentor" ColumnGroupName="Mentor">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="frm.RequestNoInternal" SelectCommandType="StoredProcedure">
|
||||
<SelectParameters>
|
||||
<asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:SqlDataSource>
|
||||
</asp:Content>
|
||||
17
Safety/ApproveNoInternalCheckOld.aspx.cs
Normal file
17
Safety/ApproveNoInternalCheckOld.aspx.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety
|
||||
{
|
||||
public partial class ApproveNoInternalCheckOld : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "old");
|
||||
}
|
||||
}
|
||||
}
|
||||
33
Safety/ApproveNoInternalCheckOld.aspx.designer.cs
generated
Normal file
33
Safety/ApproveNoInternalCheckOld.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety {
|
||||
|
||||
|
||||
public partial class ApproveNoInternalCheckOld {
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource1;
|
||||
}
|
||||
}
|
||||
67
Safety/BR3Access.aspx
Normal file
67
Safety/BR3Access.aspx
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/Master.master" AutoEventWireup="true" CodeBehind="BR3Access.aspx.cs" Inherits="safety.BR3Access" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDS23" AutoGenerateColumns="False">
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
</Pdf>
|
||||
</ExportSettings>
|
||||
<MasterTableView DataKeyNames="persid" DataSourceID="SqlDS23" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" ClientDataKeyNames="persid" CommandItemDisplay="Top" AllowAutomaticDeletes="True" >
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="persid" DataType="System.Int32" FilterControlAltText="Filter persid column" HeaderText="persid" SortExpression="persid" UniqueName="persid" InsertVisiblityMode="AlwaysVisible">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridDateTimeColumn DataField="startdate" DataFormatString="{0:yyyy-MM-dd}" FilterControlAltText="Filter startdate column" HeaderText="Start" UniqueName="startdate" HeaderStyle-Width="80px">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="80px"></HeaderStyle>
|
||||
</telerik:GridDateTimeColumn>
|
||||
<telerik:GridDateTimeColumn DataField="enddate" DataFormatString="{0:yyyy-MM-dd}" FilterControlAltText="Filter enddate column" HeaderText="Einde" UniqueName="enddate" HeaderStyle-Width="80px">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="80px"></HeaderStyle>
|
||||
</telerik:GridDateTimeColumn>
|
||||
<telerik:GridBoundColumn DataField="badge" FilterControlAltText="Filter badge column" HeaderText="badge" SortExpression="badge" UniqueName="badge">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="name" FilterControlAltText="Filter name column" HeaderText="name" SortExpression="name" UniqueName="name">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridButtonColumn CommandName="Delete" Text="Del" UniqueName="DeleteColumn" ButtonCssClass="rgDel" ConfirmText="Are you sure to delete this?" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="SqlDS23" runat="server" ConnectionString="<%$ ConnectionStrings:AccessControlConnectionString %>" InsertCommand="AllowInsert" InsertCommandType="StoredProcedure" SelectCommand="AllowSelect" SelectCommandType="StoredProcedure" UpdateCommand="AllowUpdate" UpdateCommandType="StoredProcedure" DeleteCommand="AllowDelete" DeleteCommandType="StoredProcedure" CancelSelectOnNullParameter="False">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="persid" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="persid" Type="Int32" />
|
||||
<asp:Parameter DbType="Date" Name="startdate" />
|
||||
<asp:Parameter DbType="Date" Name="enddate" />
|
||||
<asp:Parameter Name="badge" Type="String" />
|
||||
<asp:Parameter Name="name" Type="String" />
|
||||
<asp:Parameter Name="code" Type="Byte" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="persid" Type="Int32" />
|
||||
<asp:Parameter DbType="Date" Name="startdate" />
|
||||
<asp:Parameter DbType="Date" Name="enddate" />
|
||||
<asp:Parameter Name="badge" Type="String" />
|
||||
<asp:Parameter Name="name" Type="String" />
|
||||
<asp:Parameter Name="code" Type="Byte" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
</asp:Content>
|
||||
17
Safety/BR3Access.aspx.cs
Normal file
17
Safety/BR3Access.aspx.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety
|
||||
{
|
||||
public partial class BR3Access : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(this.Master,"BR3 Access");
|
||||
}
|
||||
}
|
||||
}
|
||||
33
Safety/BR3Access.aspx.designer.cs
generated
Normal file
33
Safety/BR3Access.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety {
|
||||
|
||||
|
||||
public partial class BR3Access {
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDS23 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDS23;
|
||||
}
|
||||
}
|
||||
94
Safety/Bericht.aspx
Normal file
94
Safety/Bericht.aspx
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
<%@ Page Title="Old" Language="C#" MasterPageFile="~/Site2n.master" AutoEventWireup="true" CodeBehind="Bericht.aspx.cs" Inherits="safety.Bericht" MaintainScrollPositionOnPostback="true" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="False" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowAutomaticDeletes="True" CellSpacing="-1" GridLines="Both" OnItemCommand="RadGrid1_ItemCommand">
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
</Pdf>
|
||||
</ExportSettings>
|
||||
<MasterTableView DataKeyNames="MessageID,lang" DataSourceID="SqlDataSource1" CommandItemDisplay="Top">
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="MessageID" DataType="System.Int32" FilterControlAltText="Filter MessageID column" HeaderText="MessageID" SortExpression="MessageID" UniqueName="MessageID" InsertVisiblityMode="AlwaysVisible">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text=""></ModelErrorMessage>
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="lang" FilterControlAltText="Filter lang column" HeaderText="lang" SortExpression="lang" UniqueName="lang" InsertVisiblityMode="AlwaysVisible">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text=""></ModelErrorMessage>
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="fileType" FilterControlAltText="Filter fileType column" HeaderText="fileType" SortExpression="fileType" UniqueName="fileType" ReadOnly="true">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text=""></ModelErrorMessage>
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="fileName" FilterControlAltText="Filter fileName column" HeaderText="fileName" SortExpression="fileName" UniqueName="fileName" ReadOnly="true">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text=""></ModelErrorMessage>
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="Enabled" DataType="System.Boolean" FilterControlAltText="Filter column column" HeaderText="Enabled" UniqueName="column">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridDateTimeColumn DataField="ActiveFrom" DataType="System.DateTime" DataFormatString="{0:yyyy-MM-dd}" UniqueName="ActiveFrom" HeaderText="From" MaxDate="2200-12-31" EditDataFormatString="yyyy-MM-dd"/>
|
||||
<telerik:GridDateTimeColumn DataField="ActiveTill" DataType="System.DateTime" DataFormatString="{0:yyyy-MM-dd}" UniqueName="ActiveTill" HeaderText="Till" MaxDate="2200-12-31" EditDataFormatString="yyyy-MM-dd" />
|
||||
<telerik:GridBoundColumn DataField="created" DataType="System.DateTime" FilterControlAltText="Filter created column" HeaderText="created" SortExpression="created" UniqueName="created" ReadOnly="True">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text=""></ModelErrorMessage>
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="creator" FilterControlAltText="Filter creator column" HeaderText="creator" SortExpression="creator" UniqueName="creator" ReadOnly="True">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text=""></ModelErrorMessage>
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="changed" DataType="System.DateTime" FilterControlAltText="Filter changed column" HeaderText="changed" SortExpression="changed" UniqueName="changed" ReadOnly="True">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text=""></ModelErrorMessage>
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="changer" FilterControlAltText="Filter changer column" HeaderText="changer" SortExpression="changer" UniqueName="changer" ReadOnly="True">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text=""></ModelErrorMessage>
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridTemplateColumn HeaderText="Image" UniqueName="Thumbnail" >
|
||||
<ItemTemplate>
|
||||
<telerik:RadBinaryImage runat="server" DataValue='<%# Image(Eval("Thumbnail")) %>' Width="200px" AutoAdjustImageControlSize="False" />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" OnFileUploaded="AsyncUpload1_FileUploaded1"
|
||||
HideFileInput="true" AllowedFileExtensions=".jpeg,.jpg,.png,.doc,.docx,.xls,.xlsx,.xps" />
|
||||
</EditItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
|
||||
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
|
||||
ConnectionString="<%$ ConnectionStrings:BerichtConnectionString %>"
|
||||
SelectCommand="MessagesSelect" DeleteCommand="MessagesDelete" InsertCommand="MessagesInsert" UpdateCommand="MessagesUpdate"
|
||||
DeleteCommandType="StoredProcedure" InsertCommandType="StoredProcedure"
|
||||
SelectCommandType="StoredProcedure" UpdateCommandType="StoredProcedure">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="MessageID" Type="Int32" />
|
||||
<asp:Parameter Name="lang" Type="String" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="MessageID" Type="Int32" />
|
||||
<asp:Parameter Name="lang" Type="String" />
|
||||
<asp:Parameter Name="Enabled" Type="Boolean" />
|
||||
<asp:Parameter DbType="Date" Name="ActiveFrom" />
|
||||
<asp:Parameter DbType="Date" Name="ActiveTill" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="MessageID" Type="Int32" />
|
||||
<asp:Parameter Name="lang" Type="String" />
|
||||
<asp:Parameter Name="Enabled" Type="Boolean" />
|
||||
<asp:Parameter DbType="Date" Name="ActiveFrom" />
|
||||
<asp:Parameter DbType="Date" Name="ActiveTill" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
</asp:Content>
|
||||
250
Safety/Bericht.aspx.cs
Normal file
250
Safety/Bericht.aspx.cs
Normal file
|
|
@ -0,0 +1,250 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Telerik.Web.UI;
|
||||
|
||||
namespace safety
|
||||
{
|
||||
public partial class Bericht : System.Web.UI.Page
|
||||
{
|
||||
const int MaxTotalBytes = 1048576; // 1 MB
|
||||
Int64 totalBytes;
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Bericht (old)");
|
||||
}
|
||||
|
||||
|
||||
public byte[] Image(object x)
|
||||
{
|
||||
byte[] rv = new byte[0];
|
||||
if (x is DBNull)
|
||||
{
|
||||
return rv;
|
||||
}
|
||||
else return (byte[])x;
|
||||
}
|
||||
public bool? IsRadAsyncValid
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Session["IsRadAsyncValid"] == null)
|
||||
{
|
||||
Session["IsRadAsyncValid"] = true;
|
||||
}
|
||||
return Convert.ToBoolean(Session["IsRadAsyncValid"].ToString());
|
||||
}
|
||||
set
|
||||
{
|
||||
Session["IsRadAsyncValid"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
IsRadAsyncValid = null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
|
||||
{
|
||||
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
|
||||
{
|
||||
RadAsyncUpload upload = ((GridEditableItem)e.Item)["Upload"].FindControl("AsyncUpload1") as RadAsyncUpload;
|
||||
TableCell cell = (TableCell)upload.Parent;
|
||||
|
||||
CustomValidator validator = new CustomValidator();
|
||||
validator.ErrorMessage = "Please select file to be uploaded";
|
||||
validator.ClientValidationFunction = "validateRadUpload";
|
||||
validator.Display = ValidatorDisplay.Dynamic;
|
||||
cell.Controls.Add(validator);
|
||||
}
|
||||
}
|
||||
|
||||
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
|
||||
{
|
||||
|
||||
if (e.CommandName == RadGrid.EditCommandName)
|
||||
{
|
||||
RadScriptManager.RegisterStartupScript(Page, Page.GetType(), "SetEditMode", "isEditMode = true;", true);
|
||||
}
|
||||
else if (e.CommandName == "DownloadMyFile")
|
||||
{
|
||||
GridDataItem item = e.Item as GridDataItem;
|
||||
int MessageID = (int) item.GetDataKeyValue("MessageID");
|
||||
string lang = (string) item.GetDataKeyValue("lang");
|
||||
|
||||
//object im = item.GetDataKeyValue("Message");
|
||||
//string strID = item.GetDataKeyValue("ID").ToString();
|
||||
//string strName = item["Name"].Text;
|
||||
//// Download File
|
||||
//string path = Server.MapPath("~/images/" + e.CommandArgument);
|
||||
//string attachment = "attachment; filename=" + e.CommandArgument;
|
||||
//Response.Clear();
|
||||
//Response.AddHeader("content-disposition", attachment);
|
||||
//Response.ContentType = "image/jpeg";
|
||||
//Response.WriteFile(path);
|
||||
//Response.End();
|
||||
System.Data.SqlClient.SqlConnection cn = new System.Data.SqlClient.SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["BerichtConnectionString"].ConnectionString);
|
||||
System.Data.SqlClient.SqlCommand cm = new System.Data.SqlClient.SqlCommand("getImage", cn);
|
||||
cm.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
cm.Parameters.AddWithValue("@id", MessageID);
|
||||
cm.Parameters.AddWithValue("@lang", lang);
|
||||
cn.Open();
|
||||
Response.Clear();
|
||||
string attachment = "attachment; filename=";
|
||||
try
|
||||
{
|
||||
System.Data.SqlClient.SqlDataReader r = cm.ExecuteReader(System.Data.CommandBehavior.CloseConnection | System.Data.CommandBehavior.SingleResult | System.Data.CommandBehavior.SingleRow);
|
||||
if (r != null && r.Read())
|
||||
{
|
||||
Byte[] bytChunk = (byte[])r["Message"];
|
||||
string fn = "filename";
|
||||
if (!r.IsDBNull(1)) fn = r[1].ToString().ToLower();
|
||||
string ft = "jpeg";
|
||||
if (!r.IsDBNull(2)) ft=r[2].ToString().ToLower().Trim();
|
||||
|
||||
Response.ContentType = "image/jpeg";
|
||||
|
||||
if (!string.IsNullOrEmpty(ft)) switch(ft)
|
||||
{
|
||||
case "jpeg":
|
||||
case "jpg": Response.ContentType = "image/jpeg"; break;
|
||||
case "gif":
|
||||
Response.ContentType = "image/gif"; break;
|
||||
case "xps":
|
||||
Response.ContentType = "application/vnd.ms-xpsdocument"; break;
|
||||
default:
|
||||
Response.ContentType = "image/jpeg"; break;
|
||||
}
|
||||
if (!fn.EndsWith(ft)) fn += "." + ft;
|
||||
attachment += fn;
|
||||
Response.AddHeader("content-disposition", attachment);
|
||||
//Response.ContentType = "image/jpeg";
|
||||
|
||||
Response.BinaryWrite(bytChunk);
|
||||
}
|
||||
else
|
||||
Response.Redirect("images/no-photo.gif");
|
||||
}
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
throw (ex);
|
||||
}
|
||||
finally
|
||||
{
|
||||
cn.Close();
|
||||
Response.End();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected string TrimDescription(string description)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(description) && description.Length > 200)
|
||||
{
|
||||
return string.Concat(description.Substring(0, 200), "...");
|
||||
}
|
||||
return description;
|
||||
}
|
||||
|
||||
protected void AsyncUpload1_FileUploaded(object sender, FileUploadedEventArgs e)
|
||||
{
|
||||
if ((totalBytes < MaxTotalBytes) && (e.File.ContentLength < MaxTotalBytes))
|
||||
{
|
||||
e.IsValid = true;
|
||||
totalBytes += e.File.ContentLength;
|
||||
IsRadAsyncValid = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
e.IsValid = false;
|
||||
IsRadAsyncValid = false;
|
||||
}
|
||||
}
|
||||
|
||||
protected void AsyncUpload1_FileUploaded1(object sender, FileUploadedEventArgs e)
|
||||
{
|
||||
if (RadGrid1.EditItems.Count > 0)
|
||||
{
|
||||
var di = RadGrid1.EditItems[0] as GridDataItem;
|
||||
var MessageID = 0;
|
||||
if (!int.TryParse(di["MessageID"].Text, out MessageID)) MessageID=0;
|
||||
var Lang = di["lang"].Text;
|
||||
|
||||
string fn1 = string.Empty, fn2 = string.Empty, fn0=string.Empty;
|
||||
System.Data.SqlClient.SqlParameter pa;
|
||||
using (var co = new System.Data.SqlClient.SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["BerichtConnectionString"].ConnectionString))
|
||||
{
|
||||
using (var cm = new System.Data.SqlClient.SqlCommand("dbo.[PutMessage]", co))
|
||||
{
|
||||
cm.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
pa = new System.Data.SqlClient.SqlParameter("ID",System.Data.SqlDbType.Int); pa.Value = MessageID; cm.Parameters.Add(pa);
|
||||
pa = new System.Data.SqlClient.SqlParameter("lang", System.Data.SqlDbType.Char,1); pa.Value = Lang; cm.Parameters.Add(pa);
|
||||
pa = new System.Data.SqlClient.SqlParameter("fileType", System.Data.SqlDbType.VarChar, 10); pa.Value = e.File.GetExtension().Substring(1); cm.Parameters.Add(pa);
|
||||
pa = new System.Data.SqlClient.SqlParameter("fileName", System.Data.SqlDbType.VarChar, 50); pa.Value = e.File.FileName; cm.Parameters.Add(pa);
|
||||
pa = new System.Data.SqlClient.SqlParameter("message", System.Data.SqlDbType.VarBinary, -1); cm.Parameters.Add(pa);
|
||||
pa.Value = new byte[e.File.ContentLength];
|
||||
e.File.InputStream.Read((byte[])pa.Value, 0, (int)e.File.ContentLength);
|
||||
//var f = e.File as Telerik.Web.UI.Asy
|
||||
//((Telerik.Web.UI.AsyncUploadedFile)f).TempFilePath;
|
||||
try
|
||||
{
|
||||
var s = sender as RadAsyncUpload;
|
||||
var t = s.TemporaryFolder; //.Replace("~/","");
|
||||
//t = "~/RadUploadTemp/";
|
||||
var x = Server.MapPath(t);
|
||||
fn0 = System.IO.Path.GetFileNameWithoutExtension(System.IO.Path.GetTempFileName());
|
||||
fn1 = System.IO.Path.Combine(x, fn0);
|
||||
fn2 = System.IO.Path.Combine(x, System.IO.Path.GetFileNameWithoutExtension(fn0)) + ".png";
|
||||
using (var w = System.IO.File.OpenWrite(fn1))
|
||||
{
|
||||
w.Write((byte[])pa.Value, 0, ((byte[])pa.Value).Length);
|
||||
w.Flush();
|
||||
w.Close();
|
||||
}
|
||||
//System.IO.File.WriteAllBytes(fn1, (byte[])pa.Value);
|
||||
|
||||
Bitmapper.XpsBitmapHelper.SaveXpsPageToPng(fn1);
|
||||
pa = new System.Data.SqlClient.SqlParameter("Thumbnail", System.Data.SqlDbType.VarBinary, -1); cm.Parameters.Add(pa);
|
||||
byte[] th = System.IO.File.ReadAllBytes(fn2);
|
||||
pa.Value = th;
|
||||
|
||||
} catch (System.Exception ex)
|
||||
{
|
||||
|
||||
throw (ex);
|
||||
}
|
||||
|
||||
|
||||
co.Open();
|
||||
cm.ExecuteNonQuery();
|
||||
co.Close();
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
if (!string.IsNullOrEmpty(fn1) && System.IO.File.Exists(fn1)) System.IO.File.Delete(fn1);
|
||||
if (!string.IsNullOrEmpty(fn2) && System.IO.File.Exists(fn2)) System.IO.File.Delete(fn2);
|
||||
|
||||
|
||||
}
|
||||
catch
|
||||
{
|
||||
//throw(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
Safety/Bericht.aspx.designer.cs
generated
Normal file
33
Safety/Bericht.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety {
|
||||
|
||||
|
||||
public partial class Bericht {
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource1;
|
||||
}
|
||||
}
|
||||
1
Safety/BerichtImg.ashx
Normal file
1
Safety/BerichtImg.ashx
Normal file
|
|
@ -0,0 +1 @@
|
|||
<%@ WebHandler Language="C#" CodeBehind="BerichtImg.ashx.cs" Class="safety.BerichtImg" %>
|
||||
56
Safety/BerichtImg.ashx.cs
Normal file
56
Safety/BerichtImg.ashx.cs
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace safety
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for photo
|
||||
/// </summary>
|
||||
public class BerichtImg : IHttpHandler
|
||||
{
|
||||
|
||||
public void ProcessRequest(HttpContext context)
|
||||
{
|
||||
int MessageID = 0;
|
||||
if (context.Request.Params["MessageID"] != null && int.TryParse(context.Request.Params["MessageID"].ToString(), out MessageID) && MessageID > 0)
|
||||
{
|
||||
System.Data.SqlClient.SqlConnection cn = new System.Data.SqlClient.SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["BerichtConnectionString"].ConnectionString);
|
||||
System.Data.SqlClient.SqlCommand cm = new System.Data.SqlClient.SqlCommand("GetImage", cn);
|
||||
cm.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
cm.Parameters.AddWithValue("@id", MessageID);
|
||||
cm.Parameters.AddWithValue("@lang", "nl");
|
||||
|
||||
cn.Open();
|
||||
try
|
||||
{
|
||||
System.Data.SqlClient.SqlDataReader r = cm.ExecuteReader(System.Data.CommandBehavior.CloseConnection | System.Data.CommandBehavior.SingleResult | System.Data.CommandBehavior.SingleRow);
|
||||
if (r != null && r.Read())
|
||||
{
|
||||
Byte[] bytChunk = (byte[])r["Message"];
|
||||
context.Response.ContentType = "image/jpeg";
|
||||
context.Response.BinaryWrite(bytChunk);
|
||||
}
|
||||
else
|
||||
context.Response.Redirect("images/no-photo.gif");
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
cn.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsReusable
|
||||
{
|
||||
get
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
4
Safety/BuildingResponsable.aspx
Normal file
4
Safety/BuildingResponsable.aspx
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site2n.master" AutoEventWireup="true" CodeBehind="BuildingResponsable.aspx.cs" Inherits="safety.BuildingResponsable" MaintainScrollPositionOnPostback="true" %>
|
||||
<asp:Content ID="Contenth" ContentPlaceHolderID="head" runat="server" />
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
</asp:Content>
|
||||
25
Safety/BuildingResponsable.aspx.cs
Normal file
25
Safety/BuildingResponsable.aspx.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Telerik.Web.UI;
|
||||
|
||||
namespace safety
|
||||
{
|
||||
public partial class BuildingResponsable : System.Web.UI.Page
|
||||
{
|
||||
bool mayUpdate = false;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("https://cts.intern.sckcen.be/Gebouw/ClusterResponsable.aspx", true);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
15
Safety/BuildingResponsable.aspx.designer.cs
generated
Normal file
15
Safety/BuildingResponsable.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety {
|
||||
|
||||
|
||||
public partial class BuildingResponsable {
|
||||
}
|
||||
}
|
||||
170
Safety/BuildingResponsableOld.aspx
Normal file
170
Safety/BuildingResponsableOld.aspx
Normal file
|
|
@ -0,0 +1,170 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site2n.master" AutoEventWireup="true" CodeBehind="BuildingResponsableOld.aspx.cs" Inherits="safety.BuildingResponsableOld" MaintainScrollPositionOnPostback="true" %>
|
||||
|
||||
|
||||
<asp:Content ID="Contenth" ContentPlaceHolderID="head" runat="server" />
|
||||
|
||||
<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="ddIDPBW" runat="server" AppendDataBoundItems="True" SelectedText="Beheerd IDPBW" SelectedValue="True" AutoPostBack="True">
|
||||
<Items>
|
||||
<telerik:DropDownListItem runat="server" Text="Beheerd IDPBW" Value="True" Selected="True" />
|
||||
<telerik:DropDownListItem runat="server" Text="Andere" Value="False" />
|
||||
</Items>
|
||||
</telerik:RadDropDownList>
|
||||
|
||||
<telerik:RadDropDownList ID="ddFuncties" runat="server" DataSourceID="SqlDSGebouwFuncties" DataTextField="naam" DataValueField="functie" AutoPostBack="true">
|
||||
</telerik:RadDropDownList>
|
||||
<telerik:RadDropDownList ID="ddBuildings" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDSBuildings" DataTextField="name" DataValueField="building" AutoPostBack="true">
|
||||
<Items>
|
||||
<telerik:DropDownListItem runat="server" Text="Alle" Value="*" />
|
||||
</Items>
|
||||
</telerik:RadDropDownList>
|
||||
</div>
|
||||
|
||||
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="dsBResponsables" AllowSorting="True" AutoPostBack="true" CellSpacing="-1" GridLines="Both" GroupPanelPosition="Top" 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="building,functie" DataSourceID="dsBResponsables" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" CommandItemDisplay="Top">
|
||||
<CommandItemSettings ShowExportToExcelButton="True" ShowAddNewRecordButton="False" />
|
||||
<Columns>
|
||||
<telerik:GridDropDownColumn DataField="functie" FilterControlAltText="Filter functie" HeaderText="functie" ListValueField="functie" UniqueName="functie" DataSourceID="SqlDSGebouwFuncties" ListTextField="naam" ListTextFormatString="{0}" ReadOnly="true">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridDropDownColumn>
|
||||
<telerik:GridDropDownColumn DataField="building" FilterControlAltText="Filter building" HeaderText="Gebouw" ListValueField="building" UniqueName="building" DataSourceID="SqlDSBuildings" ListTextField="name" ListTextFormatString="{0}" ReadOnly="true">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridDropDownColumn>
|
||||
|
||||
<telerik:GridTemplateColumn DataField="persid" FilterControlAltText="Filter column column" HeaderText="Coordinator1" UniqueName="persid">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBoxp1" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("persid") %>'>
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("http://intern.sckcen.be/phonebook/fiche.asp?id={0}",Eval("persid")) %>' Text='<%# Eval("name1") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
<telerik:GridTemplateColumn DataField="persid2" FilterControlAltText="Filter column column" HeaderText="Coordinator 2" UniqueName="persid2">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBoxp2" 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:GridDropDownColumn DataField="persid2" FilterControlAltText="Filter column column" HeaderText="Coordinator2" ListValueField="persid" UniqueName="persid2" DataSourceID="SqlDSNamen" ListTextField="naam" ListTextFormatString="{0}">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridDropDownColumn>--%>
|
||||
|
||||
<telerik:GridTemplateColumn DataField="persidsec" FilterControlAltText="Filter column column" HeaderText="Delegate 1" UniqueName="persidsec">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBoxs1" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("persidsec") %>'>
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("http://intern.sckcen.be/phonebook/fiche.asp?id={0}",Eval("persidsec")) %>' Text='<%# Eval("name3") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
<telerik:GridTemplateColumn DataField="persidsec2" FilterControlAltText="Filter column column" HeaderText="Delegate 2" UniqueName="persidsec2">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBoxs2" 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>
|
||||
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="dsBResponsables" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" DeleteCommand="GebouwVerantwoo rdelijkenDelete" DeleteCommandType="StoredProcedure" InsertCommand="GebouwVerantwoordelijkenInsert" InsertCommandType="StoredProcedure" SelectCommand="GebouwVerantwoordelijkenSelect" SelectCommandType="StoredProcedure" UpdateCommand="GebouwVerantwoordelijkenUpdate" UpdateCommandType="StoredProcedure" CancelSelectOnNullParameter="false">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="building" Type="String" />
|
||||
<asp:Parameter Name="functie" Type="String" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:ControlParameter ControlID="ddBuildings" Name="building" PropertyName="SelectedValue" Type="String" />
|
||||
<asp:ControlParameter ControlID="ddFuncties" Name="functie" PropertyName="SelectedValue" Type="String" />
|
||||
<asp:Parameter Name="persid" Type="Int32" />
|
||||
<asp:Parameter Name="persid2" Type="Int32" />
|
||||
<asp:Parameter Name="persidSec" Type="Int32" />
|
||||
<asp:Parameter Name="persidSec2" Type="Int32" />
|
||||
</InsertParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ddIDPBW" DefaultValue="" Name="vis" PropertyName="SelectedValue" Type="Boolean" />
|
||||
<asp:ControlParameter ControlID="ddBuildings" DefaultValue="" Name="building" PropertyName="SelectedValue" Type="String" />
|
||||
<asp:ControlParameter ControlID="ddFuncties" Name="functie" PropertyName="SelectedValue" Type="String" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="building" Type="String" />
|
||||
<asp:Parameter Name="functie" Type="String" />
|
||||
<asp:Parameter Name="persid" Type="Int32" />
|
||||
<asp:Parameter Name="persid2" Type="Int32" />
|
||||
<asp:Parameter Name="persidSec" Type="Int32" />
|
||||
<asp:Parameter Name="persidSec2" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSBuildings" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>"
|
||||
SelectCommand="SELECT [building], [name] FROM [gebouwen] where deleted=0 ORDER BY [name] "></asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSGebouwFuncties" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>"
|
||||
SelectCommand="select [functie]='*', [naam] =' Alles'
|
||||
union
|
||||
SELECT [functie], [naam] FROM [gebouwFuncties] where visible= @vis ORDER BY [naam]">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ddIDPBW" DefaultValue="" Name="vis" PropertyName="SelectedValue" />
|
||||
</SelectParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSNamen" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>"
|
||||
SelectCommand="getLijstNamen" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
</asp:Content>
|
||||
56
Safety/BuildingResponsableOld.aspx.cs
Normal file
56
Safety/BuildingResponsableOld.aspx.cs
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Telerik.Web.UI;
|
||||
|
||||
namespace safety
|
||||
{
|
||||
public partial class BuildingResponsableOld : System.Web.UI.Page
|
||||
{
|
||||
bool mayUpdate = false;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("https://cts.intern.sckcen.be/Gebouw/ClusterResponsable.aspx",true);
|
||||
|
||||
|
||||
//General.setTitle(Master, "Gebouw coördinatoren");
|
||||
|
||||
// using (System.Data.SqlClient.SqlConnection cn = new System.Data.SqlClient.SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["idpbwConnectionString"].ConnectionString))
|
||||
// {
|
||||
// System.Data.SqlClient.SqlCommand cm = new System.Data.SqlClient.SqlCommand("select execperm=convert(bit,HAS_PERMS_BY_NAME('dbo.GebouwVerantwoordelijkenUpdate', 'OBJECT', 'EXECUTE'))", cn);
|
||||
// cm.CommandType = System.Data.CommandType.Text;
|
||||
// cn.Open();
|
||||
// mayUpdate = (bool)cm.ExecuteScalar();
|
||||
// cn.Close();
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
protected void ddFuncties_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void RadGrid1_PreRender(object sender, EventArgs e)
|
||||
{
|
||||
if (!mayUpdate)
|
||||
{
|
||||
|
||||
RadGrid1.MasterTableView.GetColumn("EditColumn").Display = false;
|
||||
|
||||
//foreach (GridDataItem dataItem in RadGrid1.MasterTableView.Items)
|
||||
// {
|
||||
// ((LinkButton)dataItem["EditColumn"].Controls[0]).Enabled = false;
|
||||
// ((LinkButton)dataItem["EditColumn"].Controls[0]).Visible = false;
|
||||
// GridCommandItem cmdItem = (GridCommandItem)RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)[0];
|
||||
// //((LinkButton)cmdItem.FindControl("InitInsertButton")).Visible = false;
|
||||
// //((Button)cmdItem.FindControl("AddNewRecordButton")).Visible = false;
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
87
Safety/BuildingResponsableOld.aspx.designer.cs
generated
Normal file
87
Safety/BuildingResponsableOld.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety {
|
||||
|
||||
|
||||
public partial class BuildingResponsableOld {
|
||||
|
||||
/// <summary>
|
||||
/// ddIDPBW control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadDropDownList ddIDPBW;
|
||||
|
||||
/// <summary>
|
||||
/// ddFuncties control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadDropDownList ddFuncties;
|
||||
|
||||
/// <summary>
|
||||
/// ddBuildings control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadDropDownList ddBuildings;
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// dsBResponsables control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource dsBResponsables;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSBuildings control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSBuildings;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSGebouwFuncties control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSGebouwFuncties;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSNamen control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSNamen;
|
||||
}
|
||||
}
|
||||
196
Safety/ClusterResponsable.aspx
Normal file
196
Safety/ClusterResponsable.aspx
Normal file
|
|
@ -0,0 +1,196 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Siten.master" AutoEventWireup="true" CodeBehind="ClusterResponsable.aspx.cs" Inherits="safety.GebVW.ClusterResponsable" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" 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="ddBuildings" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDSClusters" DataTextField="ClusterText" DataValueField="BuildingClusterID" AutoPostBack="true" Width="250px">
|
||||
<Items>
|
||||
<telerik:DropDownListItem runat="server" Text="Alle clusters" Value="" />
|
||||
</Items>
|
||||
</telerik:RadDropDownList>
|
||||
|
||||
<telerik:RadDropDownList ID="ddFuncties" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDSGebouwFuncties" DataTextField="RoleName" DataValueField="RoleID" AutoPostBack="true" OnSelectedIndexChanged="ddFuncties_SelectedIndexChanged">
|
||||
<Items>
|
||||
<telerik:DropDownListItem runat="server" Text="Alle rollen" Value="" />
|
||||
</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="GebouwclusterVerantwoordelijken" OpenInNewWindow="True">
|
||||
<Pdf PageWidth="">
|
||||
</Pdf>
|
||||
<Excel Format="Xlsx" />
|
||||
</ExportSettings>
|
||||
<MasterTableView DataKeyNames="CRespID,BuildingClusterID" DataSourceID="dsBResponsables" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" CommandItemDisplay="Top">
|
||||
<DetailTables>
|
||||
<telerik:GridTableView runat="server" DataSourceID="dsClusterBuildings" ClientDataKeyNames="BuildingClusterID">
|
||||
<ParentTableRelation>
|
||||
<telerik:GridRelationFields DetailKeyField="BuildingClusterID" MasterKeyField="BuildingClusterID" />
|
||||
</ParentTableRelation>
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="BuildingCode" HeaderText="Gebouw Code" UniqueName="BuildingCode" />
|
||||
<telerik:GridBoundColumn DataField="BuildingName" HeaderText="Gebouw Naam" UniqueName="BuildingName" />
|
||||
</Columns>
|
||||
</telerik:GridTableView>
|
||||
</DetailTables>
|
||||
<CommandItemSettings ShowExportToExcelButton="True" />
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="CRespID" UniqueName="CRespID" ReadOnly="true" Visible="false" />
|
||||
|
||||
<%-- <telerik:GridDropDownColumn DataField="BuildingID" HeaderText="Gebouw" ListValueField="BuildingID" UniqueName="BuildingID" DataSourceID="SqlDSBuildings" ListTextField="BuildingText" ListTextFormatString="{0}" ReadOnly="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridDropDownColumn>--%>
|
||||
|
||||
|
||||
|
||||
<telerik:GridTemplateColumn DataField="BuildingClusterID" HeaderText="Cluster" UniqueName="BuildingClusterID" meta:resourcekey="Cluster">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="gebCB" runat="server" DataSourceID="SqlDSClusters" DataTextField="ClusterText" DataValueField="BuildingClusterID" SelectedValue='<%# Bind("BuildingClusterID") %>' MarkFirstMatch="true" Width="250px">
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("BuildingCluster") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
|
||||
<%-- <telerik:GridDropDownColumn DataField="RoleID" HeaderText="Rol" ListValueField="RoleID" UniqueName="RoleID" DataSourceID="SqlDSGebouwFuncties" ListTextField="RoleName" ListTextFormatString="{0}" ReadOnly="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridDropDownColumn>--%>
|
||||
|
||||
<telerik:GridTemplateColumn DataField="RoleID" HeaderText="Rol" UniqueName="RoleID" meta:resourcekey="Rol">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="roleComobox" runat="server" DataSourceID="SqlDSGebouwFuncties" DataTextField="RoleName" DataValueField="RoleID" SelectedValue='<%# Bind("RoleID") %>' MarkFirstMatch="true" AllowCustomText="true" Width="250px">
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Hyperlink runat="server" NavigateUrl='<%# Eval("URLLink") %>' Text='<%# Eval("RoleName") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
|
||||
|
||||
<telerik:GridTemplateColumn DataField="PersID1" HeaderText="" UniqueName="PersID1" >
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox1" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("PersID1") %>' MarkFirstMatch="true" AllowCustomText="true" Width="250px">
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("https://toegang.intern.sck.be/pub/Fiche/{0}",Eval("PersID1")) %>' Text='<%# Eval("pName1") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
<telerik:GridTemplateColumn DataField="PersID2" HeaderText="Coordinator 2" UniqueName="PersID2" meta:resourcekey="C2">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox2" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("PersID2") %>' MarkFirstMatch="true" AllowCustomText="true" Width="250px">
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("https://toegang.intern.sck.be/pub/Fiche/{0}",Eval("PersID2")) %>' Text='<%# Eval("pName2") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
<telerik:GridTemplateColumn DataField="PersID3" HeaderText="Coordinator 3" UniqueName="PersID3" meta:resourcekey="C3">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox4" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("PersID3") %>' MarkFirstMatch="true" AllowCustomText="true">
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("https://toegang.intern.sck.be/pub/Fiche/{0}",Eval("PersID3")) %>' Text='<%# Eval("pName3") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
|
||||
<telerik:GridTemplateColumn DataField="PersID4" HeaderText="Vervanger" UniqueName="PersID4" meta:resourcekey="D1">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox3" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("PersID4") %>' MarkFirstMatch="true" AllowCustomText="true" Width="250px">
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("https://toegang.intern.sck.be/pub/Fiche/{0}",Eval("PersID4")) %>' Text='<%# Eval("sName1") %>' Width="250px" />
|
||||
</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:IESConnectionString %>" DeleteCommand="cts.ClusterResponsablesDelete" DeleteCommandType="StoredProcedure" InsertCommand="[cts].[ClusterResponsablesInsert]" InsertCommandType="StoredProcedure" SelectCommand="[cts].[ClusterResponsablesSelect]" SelectCommandType="StoredProcedure" UpdateCommand="[cts].[ClusterResponsablesUpdate]" UpdateCommandType="StoredProcedure" CancelSelectOnNullParameter="False">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="CRespID" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="BuildingClusterID" Type="Int32" />
|
||||
<asp:Parameter Name="RoleID" Type="Int32" />
|
||||
<asp:Parameter Name="PersID1" Type="Int32" />
|
||||
<asp:Parameter Name="PersID2" Type="Int32" />
|
||||
<asp:Parameter Name="PersID3" Type="Int32" />
|
||||
<asp:Parameter Name="PersID4" Type="Int32" />
|
||||
</InsertParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ddBuildings" Name="BuildingClusterID" PropertyName="SelectedValue" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="ddFuncties" Name="RoleID" PropertyName="SelectedValue" Type="Int32" />
|
||||
<asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="CRespID" Type="Int32" />
|
||||
<asp:Parameter Name="BuildingClusterID" Type="Int32" />
|
||||
<asp:Parameter Name="RoleID" Type="Int32" />
|
||||
<asp:Parameter Name="PersID1" Type="Int32" />
|
||||
<asp:Parameter Name="PersID2" Type="Int32" />
|
||||
<asp:Parameter Name="PersID3" Type="Int32" />
|
||||
<asp:Parameter Name="PersID4" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSClusters" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>"
|
||||
SelectCommand="[cts].[ClusterList]" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSGebouwFuncties" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>"
|
||||
SelectCommand="[cts].[ClusterRolesList]" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSNamen" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>"
|
||||
SelectCommand="cts.getLijstNamen" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="dsClusterBuildings" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>"
|
||||
SelectCommand="cts.ClusterBuildingsSelect" SelectCommandType="StoredProcedure" >
|
||||
<SelectParameters>
|
||||
<asp:Parameter Name="BuildingClusterID" Type="Int32" DefaultValue="1" />
|
||||
</SelectParameters>
|
||||
</asp:SqlDataSource>
|
||||
|
||||
</asp:Content>
|
||||
102
Safety/ClusterResponsable.aspx.cs
Normal file
102
Safety/ClusterResponsable.aspx.cs
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Telerik.Web.UI;
|
||||
|
||||
namespace safety.GebVW
|
||||
{
|
||||
public partial class ClusterResponsable : System.Web.UI.Page
|
||||
{
|
||||
bool mayUpdate = false;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, GetLocalResourceObject("Titel").ToString());
|
||||
|
||||
|
||||
bool canWrite = General.IESCanWrite("cts.ClusterResponsablesUpdate");
|
||||
RadGrid1.MasterTableView.GetColumn("EditColumn").Visible = canWrite;
|
||||
RadGrid1.MasterTableView.GetColumn("DeleteColumn").Visible = canWrite;
|
||||
RadGrid1.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = canWrite;
|
||||
|
||||
|
||||
//using (System.Data.SqlClient.SqlConnection cn = new System.Data.SqlClient.SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["idpbwConnectionString"].ConnectionString))
|
||||
//{
|
||||
// System.Data.SqlClient.SqlCommand cm = new System.Data.SqlClient.SqlCommand("select execperm=convert(bit,HAS_PERMS_BY_NAME('dbo.IMS_ClusterResponsablesUpdate', 'OBJECT', 'EXECUTE'))", cn);
|
||||
// cm.CommandType = System.Data.CommandType.Text;
|
||||
// cn.Open();
|
||||
// mayUpdate = (bool)cm.ExecuteScalar();
|
||||
// cn.Close();
|
||||
//}
|
||||
}
|
||||
|
||||
protected void ddFuncties_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void RadGrid1_PreRender(object sender, EventArgs e)
|
||||
{
|
||||
if (!mayUpdate)
|
||||
{
|
||||
|
||||
|
||||
//RadGrid1.MasterTableView.GetColumn("EditColumn").Display = false;
|
||||
|
||||
//foreach (GridDataItem dataItem in RadGrid1.MasterTableView.Items)
|
||||
// {
|
||||
// ((LinkButton)dataItem["EditColumn"].Controls[0]).Enabled = false;
|
||||
// ((LinkButton)dataItem["EditColumn"].Controls[0]).Visible = false;
|
||||
// GridCommandItem cmdItem = (GridCommandItem)RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)[0];
|
||||
// //((LinkButton)cmdItem.FindControl("InitInsertButton")).Visible = false;
|
||||
// //((Button)cmdItem.FindControl("AddNewRecordButton")).Visible = false;
|
||||
// }
|
||||
}
|
||||
|
||||
string c1 = string.Empty, c2 = string.Empty, c3 = string.Empty, c4 = string.Empty;
|
||||
int rid = 0;
|
||||
DataTable tb = null;
|
||||
if (!string.IsNullOrEmpty(ddFuncties.SelectedValue) && int.TryParse(ddFuncties.SelectedValue, out rid))
|
||||
{
|
||||
using (System.Data.SqlClient.SqlConnection co = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["IESConnectionString"].ConnectionString))
|
||||
{
|
||||
using (System.Data.SqlClient.SqlCommand cm = new System.Data.SqlClient.SqlCommand("cts.roleNames", co))
|
||||
{
|
||||
cm.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
cm.Parameters.AddWithValue("roleid", rid);
|
||||
co.Open();
|
||||
tb = new DataTable();
|
||||
{
|
||||
var dr = cm.ExecuteReader(System.Data.CommandBehavior.CloseConnection | System.Data.CommandBehavior.SingleRow);
|
||||
tb.Load(dr);
|
||||
co.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (tb != null && tb.Rows.Count > 0)
|
||||
{
|
||||
if (!tb.Rows[0].IsNull("Title1")) c1 = (string)tb.Rows[0]["Title1"];
|
||||
if (!tb.Rows[0].IsNull("Title2")) c2 = (string)tb.Rows[0]["Title2"];
|
||||
if (!tb.Rows[0].IsNull("Title3")) c3 = (string)tb.Rows[0]["Title3"];
|
||||
if (!tb.Rows[0].IsNull("Title4")) c4 = (string)tb.Rows[0]["Title4"];
|
||||
}
|
||||
RadGrid1.MasterTableView.GetHeaderCellByColumnUniqueName("PersID1").Text = c1;
|
||||
RadGrid1.MasterTableView.GetHeaderCellByColumnUniqueName("PersID2").Text = c2;
|
||||
RadGrid1.MasterTableView.GetHeaderCellByColumnUniqueName("PersID3").Text = c3;
|
||||
RadGrid1.MasterTableView.GetHeaderCellByColumnUniqueName("PersID4").Text = c4;
|
||||
}
|
||||
|
||||
protected void ddFuncties_SelectedIndexChanged(object sender, DropDownListEventArgs e)
|
||||
{
|
||||
//e.Value
|
||||
RadGrid1.DataBind();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
236
Safety/Common/Colors.cs
Normal file
236
Safety/Common/Colors.cs
Normal file
|
|
@ -0,0 +1,236 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
|
||||
namespace safety.Toestellen.Common
|
||||
{
|
||||
static public class Colors
|
||||
{
|
||||
[Flags]
|
||||
public enum colorType : byte { none, status, badge };
|
||||
static public (Color f, Color b) BadgeColor(byte? co)
|
||||
{
|
||||
Color rv = Color.Black;
|
||||
Color rb = Color.White;
|
||||
if (co.HasValue)
|
||||
switch (co)
|
||||
{
|
||||
case 1: rv = (Color.Blue); break;
|
||||
case 2: rv = (Color.Green); break;
|
||||
case 3: rv = (Color.DarkViolet); break;
|
||||
case 4: rv = (Color.DarkRed); break;
|
||||
}
|
||||
return (rv,rb);
|
||||
}
|
||||
static public (Color f,Color b ) StatusColor(byte? co)
|
||||
{
|
||||
Color rv = Color.Black;
|
||||
Color rb = Color.White;
|
||||
if (co.HasValue)
|
||||
switch (co)
|
||||
{
|
||||
case 1: rv = (Color.Green); break;
|
||||
case 2: rv = (Color.Orange); break;
|
||||
case 3: rv = (Color.Red); break;
|
||||
case 4: rv = (Color.Blue); break;
|
||||
case 5: rv = (Color.HotPink); break;
|
||||
}
|
||||
return (rv,rb);
|
||||
}
|
||||
static public (Color f, Color b) StatusBackColor(byte? co)
|
||||
{
|
||||
Color rv = Color.Black;
|
||||
Color rb = Color.White;
|
||||
if (co.HasValue)
|
||||
switch (co)
|
||||
{
|
||||
case 1: rv = (Color.Green); break;
|
||||
case 2: rv = (Color.Orange); break;
|
||||
case 3: rv = (Color.Red); break;
|
||||
case 4: rv = (Color.Blue); break;
|
||||
case 5: rv = (Color.HotPink); break;
|
||||
}
|
||||
return (rv, rb);
|
||||
}
|
||||
static public byte? GridDataItemColor(object oBadgeColor, System.Web.UI.WebControls.TableCell ditem, colorType coltype, bool onlycolor=false )
|
||||
{
|
||||
byte? color = null;
|
||||
if (oBadgeColor is byte) color = (byte)oBadgeColor;
|
||||
else if (oBadgeColor is int) color = (byte)((int)oBadgeColor);
|
||||
Color nc = Color.White, fc = Color.Black;
|
||||
switch (coltype)
|
||||
{
|
||||
case colorType.badge:
|
||||
(fc,nc) = Common.Colors.BadgeColor(color); ; break;
|
||||
default:
|
||||
(fc,nc) = Common.Colors.StatusColor(color); ; break;
|
||||
}
|
||||
if (onlycolor) ditem.BackColor = fc;
|
||||
else if (nc != Color.White) ditem.BackColor = nc;
|
||||
if (fc != Color.Black) ditem.ForeColor = fc;
|
||||
|
||||
return color;
|
||||
}
|
||||
static public byte? GridDataItemBColor(object oBadgeColor, System.Web.UI.WebControls.TableCell ditem, colorType coltype, bool onlycolor = false)
|
||||
{
|
||||
byte? color = null;
|
||||
if (oBadgeColor is byte) color = (byte)oBadgeColor;
|
||||
else if (oBadgeColor is int) color = (byte)((int)oBadgeColor);
|
||||
Color nc = Color.White, fc = Color.Black;
|
||||
switch (coltype)
|
||||
{
|
||||
case colorType.badge:
|
||||
(fc, nc) = Common.Colors.BadgeColor(color); ; break;
|
||||
default:
|
||||
(fc, nc) = Common.Colors.StatusBackColor(color); ; break;
|
||||
}
|
||||
if (onlycolor) ditem.ForeColor = fc;
|
||||
else
|
||||
{
|
||||
ditem.ForeColor = nc;
|
||||
ditem.BackColor = fc;
|
||||
}
|
||||
|
||||
return color;
|
||||
}
|
||||
|
||||
static public byte? GridDataItemBadgeColor(object oBadgeColor, System.Web.UI.WebControls.TableCell ditem, bool onlyColor=false)
|
||||
{
|
||||
byte ? rv = GridDataItemColor(oBadgeColor, ditem, colorType.badge, onlyColor);
|
||||
return rv;
|
||||
}
|
||||
static public byte? GridDataItemStatusColor(object oBadgeColor, System.Web.UI.WebControls.TableCell ditem, bool onlyColor = false)
|
||||
{
|
||||
byte? rv = GridDataItemColor(oBadgeColor, ditem, colorType.status, onlyColor);
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
static public class ImageHelpers
|
||||
{
|
||||
public enum eLed { green, red, black, orange, blue, blink, OK, NotOK, Null, Tolerated, OkNotNecessary };
|
||||
|
||||
const string pStatusOk = "led-green.gif";
|
||||
const string pStatusNOk = "led-red.gif";
|
||||
const string pStatusNull = "led-black.gif";
|
||||
const string pStatusTolerated = "led-orange.gif";
|
||||
const string pStatusOkNotNecessary = "led-blue.gif";
|
||||
const string pStatusAlert = "led-blink.gif";
|
||||
|
||||
public static string StatusLed(System.Web.UI.Page p, eLed s)
|
||||
{
|
||||
StringBuilder rv = new StringBuilder();
|
||||
//rv.Append(p.Request.ApplicationPath);
|
||||
rv.Append("/Images/");
|
||||
switch (s)
|
||||
{
|
||||
case eLed.green:
|
||||
case eLed.OK:
|
||||
rv.Append(pStatusOk); break;
|
||||
case eLed.red:
|
||||
case eLed.NotOK:
|
||||
rv.Append(pStatusNOk); break;
|
||||
case eLed.black:
|
||||
case eLed.Null:
|
||||
rv.Append(pStatusNull); break;
|
||||
case eLed.orange:
|
||||
case eLed.Tolerated:
|
||||
rv.Append(pStatusTolerated); break;
|
||||
case eLed.blue:
|
||||
case eLed.OkNotNecessary:
|
||||
rv.Append(pStatusOkNotNecessary); break;
|
||||
case eLed.blink: rv.Append(pStatusAlert); break;
|
||||
default: rv.Append(pStatusNull); break;
|
||||
}
|
||||
//var s2 = p.ResolveUrl(rv.ToString());
|
||||
return rv.ToString();
|
||||
|
||||
}
|
||||
public static string StatusLed(System.Web.UI.Page p, int colorindex)
|
||||
{
|
||||
string rv;
|
||||
switch (colorindex)
|
||||
{
|
||||
case 1: rv = StatusLed(p, eLed.OK); break;
|
||||
case 2: rv = StatusLed(p, eLed.Tolerated); break;
|
||||
case 3: rv = StatusLed(p, eLed.NotOK); break;
|
||||
case 4: rv = StatusLed(p, eLed.OkNotNecessary); break;
|
||||
case 5: rv = StatusLed(p, eLed.blink); break;
|
||||
default: rv = StatusLed(p, eLed.Null); break;
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
public static string StatusLed(System.Web.UI.Page p, object colorindex)
|
||||
{
|
||||
int c;
|
||||
switch (colorindex)
|
||||
{
|
||||
case bool bo: c = bo ? 1 : 3; break;
|
||||
case byte b: c = (int)b; break;
|
||||
case Int16 s: c = (int)s; break;
|
||||
case Int32 i: c = i; break;
|
||||
case string st:
|
||||
switch (st.ToLower())
|
||||
{
|
||||
case "g":
|
||||
case "green": c = 1; break;
|
||||
case "t":
|
||||
case "y":
|
||||
case "yellow": c = 2; break;
|
||||
case "r":
|
||||
case "red": c = 3; break;
|
||||
case "b":
|
||||
case "blue": c = 4; break;
|
||||
default: c = 0; break;
|
||||
}; break;
|
||||
default: c = 0; break;
|
||||
}
|
||||
return StatusLed(p, c);
|
||||
}
|
||||
public static string PresentLed(System.Web.UI.Page p, object present)
|
||||
{
|
||||
int c;
|
||||
switch (present)
|
||||
{
|
||||
case bool bo : if (bo) c = 1; else c = 3; break;
|
||||
case byte b: c = (int)b; break;
|
||||
default: c = 0; break;
|
||||
}
|
||||
return StatusLed(p, c);
|
||||
}
|
||||
}
|
||||
static public class HtmlHelpers
|
||||
{
|
||||
static public bool Checked(object o)
|
||||
{
|
||||
return ((o is bool) && (bool)o);
|
||||
}
|
||||
|
||||
static public string Rood(object o)
|
||||
{
|
||||
System.Drawing.Color c;
|
||||
if (Checked(o)) c = System.Drawing.Color.White;
|
||||
else c = System.Drawing.Color.Crimson;
|
||||
return System.Drawing.ColorTranslator.ToHtml(c);
|
||||
}
|
||||
|
||||
static string RowVisible(object o)
|
||||
{
|
||||
string v;
|
||||
if (Checked(o)) v = "visibility:visible";
|
||||
else v = "visibility:collapse;";
|
||||
return v;
|
||||
}
|
||||
|
||||
static string RowGrayed(object o, object e)
|
||||
{
|
||||
string v;
|
||||
if (Checked(o)) v = "background:white;";
|
||||
else v = "background:gray;";
|
||||
v += RowVisible(e);
|
||||
return v;
|
||||
}
|
||||
}
|
||||
}
|
||||
226
Safety/Common/General.cs
Normal file
226
Safety/Common/General.cs
Normal file
|
|
@ -0,0 +1,226 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Routing;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace safety
|
||||
{
|
||||
public static class General
|
||||
{
|
||||
|
||||
|
||||
public static void setTitle(MasterPage Master, object s)
|
||||
{
|
||||
if (s is string)
|
||||
{
|
||||
string PageTitle = s as string;
|
||||
if (s != null)
|
||||
{
|
||||
var pt = Master.FindControl("PageTitle") as System.Web.UI.WebControls.Literal;
|
||||
if (pt != null && PageTitle.Length > 0) pt.Text = PageTitle;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
static string UrlWithoutLang(Page p, string url, bool addParLang = true)
|
||||
{
|
||||
|
||||
var x = url.Split('?');
|
||||
if (x.Length > 0)
|
||||
{
|
||||
string newUrl = x[0];
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
foreach (string d in p.Request.QueryString.AllKeys) if (!string.IsNullOrWhiteSpace(d) && !d.Equals("lang", StringComparison.InvariantCultureIgnoreCase)) sb.AppendFormat("{0}{1}={2}", sb.Length == 0 ? "?" : "&", d, p.Request.Params[d].ToString());
|
||||
if (addParLang) sb.AppendFormat("{0}{1}", sb.Length == 0 ? "?" : "&", "lang=");
|
||||
return string.Concat(newUrl, sb.ToString());
|
||||
}
|
||||
else
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
static string UrlWithoutLang(Page p, bool addParLang=true)
|
||||
{
|
||||
string url = p.Request.Url.LocalPath;
|
||||
return UrlWithoutLang(p, url, addParLang);
|
||||
}
|
||||
|
||||
public static void setLang(MasterPage Master, Page p , System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string, string>> para, string PageTitle="", string otherurl="" )
|
||||
{
|
||||
System.Web.UI.HtmlControls.HtmlAnchor hn = Master.FindControl("liNL") as System.Web.UI.HtmlControls.HtmlAnchor;
|
||||
System.Web.UI.HtmlControls.HtmlAnchor hf = Master.FindControl("liFR") as System.Web.UI.HtmlControls.HtmlAnchor;
|
||||
System.Web.UI.HtmlControls.HtmlAnchor he = Master.FindControl("liEN") as System.Web.UI.HtmlControls.HtmlAnchor;
|
||||
|
||||
string href = UrlWithoutLang(p,true);
|
||||
if (!string.IsNullOrWhiteSpace(otherurl))
|
||||
href = UrlWithoutLang(p, otherurl, true);
|
||||
|
||||
if (hn != null) {hn.HRef = href + "nl"; hn.Visible = true;}
|
||||
if (hf != null) {hf.HRef = href + "fr";hf.Visible = true;}
|
||||
if (he != null) { he.HRef = href + "en"; he.Visible = true; }
|
||||
|
||||
if (PageTitle.Length>0) setTitle(Master, PageTitle);
|
||||
}
|
||||
|
||||
public static string GetString(Page p, string nm, string def="W")
|
||||
{
|
||||
//int i;
|
||||
String rv = def;
|
||||
if (p.Request.Params[nm] != null)
|
||||
{
|
||||
rv = p.Request.Params[nm];
|
||||
}
|
||||
else if (p.RouteData.Values.ContainsKey(nm))
|
||||
{
|
||||
rv = p.RouteData.Values[nm].ToString();
|
||||
}
|
||||
else if (p.RouteData.DataTokens != null && p.RouteData.DataTokens.Count > 0 && p.RouteData.DataTokens.ContainsKey(nm))
|
||||
{
|
||||
rv = p.RouteData.DataTokens[nm].ToString();
|
||||
}
|
||||
return rv;
|
||||
|
||||
}
|
||||
public static int? GetDocIDParam(Page p, string nm)
|
||||
{
|
||||
int i;
|
||||
int ? rv = null;
|
||||
if (p.Request.Params["id"] != null )
|
||||
{
|
||||
if (int.TryParse(p.Request.Params["id"].ToString(), out i)) rv = i;
|
||||
}
|
||||
else if (p.RouteData.Values.ContainsKey("docaID") )
|
||||
{
|
||||
if (int.TryParse(p.RouteData.Values["docaID"].ToString(), out i)) rv = i;
|
||||
}
|
||||
else if (p.RouteData.DataTokens != null && p.RouteData.DataTokens.Count > 0 && p.RouteData.DataTokens.ContainsKey("docaID") )
|
||||
{
|
||||
if (int.TryParse(p.RouteData.DataTokens["docaID"].ToString(), out i)) rv = i;
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
public static string Getinterface(Page p)
|
||||
{
|
||||
string rv = string.Empty;
|
||||
if (p.RouteData!= null && p.RouteData.Values.ContainsKey("interface"))
|
||||
{
|
||||
rv = p.RouteData.Values["interface"].ToString();
|
||||
if (p.Session["interface"] == null || p.Session["interface"].ToString() != rv) p.Session["interface"] = rv;
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
//http://contrast-finder.tanaguru.com/result.html?foreground=%23228888&background=%23DFF0D8&isBackgroundTested=false&ratio=4.5&algo=HSV
|
||||
public static Color bgRed = Color.FromArgb(220, 92, 80), fgRed = Color.FromArgb(30, 30, 30);
|
||||
public static Color bgGreen = Color.FromArgb(180, 204, 74), fgGreen = Color.Black;
|
||||
public static Color bgOrange = Color.FromArgb(178, 140, 69), fgOrange = Color.FromArgb(69, 117, 178);
|
||||
public static Color bgBlue = Color.FromArgb(92, 92, 178), fgBlue = Color.FromArgb(255, 255, 255);
|
||||
|
||||
|
||||
public static void ColorCell(int vcolor, ref Color bc, ref Color fc)
|
||||
{
|
||||
switch (vcolor)
|
||||
{
|
||||
case 4: bc = bgBlue; fc = fgBlue; break;
|
||||
case 3: bc = bgRed; fc = fgRed; break;
|
||||
case 2: bc = bgOrange; fc = fgOrange; break;
|
||||
case 1: bc = bgGreen; fc = fgGreen; break;
|
||||
default: bc = Color.White; fc = Color.Black; break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static public void SetSessionIfDifferent(Page p, string name, bool? value, bool deleteIfMissing = false)
|
||||
{
|
||||
if (value.HasValue)
|
||||
{
|
||||
if ( p.Session[name] == null || (bool)p.Session[name] != value.Value) p.Session[name] = value.Value;
|
||||
}
|
||||
else
|
||||
if (deleteIfMissing && p.Session[name] != null) p.Session.Remove(name);
|
||||
|
||||
}
|
||||
static public void SetSessionIfDifferent(Page p, string name, int? value, bool deleteIfMissing=false)
|
||||
{
|
||||
if (value.HasValue)
|
||||
{
|
||||
if (p.Session[name] == null || (int)p.Session[name] != value.Value) p.Session[name] = value.Value;
|
||||
}
|
||||
else
|
||||
if (deleteIfMissing && p.Session[name] != null) p.Session.Remove(name);
|
||||
|
||||
}
|
||||
static public void SetSessionIfDifferent(Page p, string name, string value)
|
||||
{
|
||||
if ( !String.IsNullOrWhiteSpace(value) && (p.Session[name] == null || p.Session[name].ToString() != value)) p.Session[name] = value;
|
||||
}
|
||||
static public void PageBasicSettings(Page p, ref int? AanvragerID, ref bool? isIV, ref bool? isNV, ref bool? isIDPBW, ref string lang, ref string aanvragerFullname, ref int? mentorID, ref string mentorFullname, ref int? unit, ref string building, ref string ifa, ref string soort)
|
||||
{
|
||||
using (dsIDPBWTableAdapters.QueriesTableAdapter qta = new dsIDPBWTableAdapters.QueriesTableAdapter())
|
||||
qta.getUser2(ref AanvragerID, ref isIV, ref isNV, ref isIDPBW, ref lang, ref aanvragerFullname, ref mentorID, ref mentorFullname, ref unit, ref building);
|
||||
SetSessionIfDifferent(p, "Aanvrager", AanvragerID);
|
||||
SetSessionIfDifferent(p, "isIDPBW", isIDPBW);
|
||||
if (p.Request.Params["lang"] != null) lang = p.Request.Params["lang"].ToString();
|
||||
SetSessionIfDifferent(p, "lang", lang);
|
||||
ifa = Getinterface(p); SetSessionIfDifferent(p, "interface", ifa);
|
||||
soort = GetString(p, "soort", string.Empty);
|
||||
SetSessionIfDifferent(p, "soort", soort);
|
||||
p.UICulture = lang;
|
||||
}
|
||||
|
||||
static public void PageBasicSettings3(Page p, ref int? AanvragerID, ref bool? isIV, ref bool? isNV, ref bool? isIDPBW, ref string lang, ref string aanvragerFullname, ref int? mentorID, ref string mentorFullname, ref int? unit, ref string building, ref bool? isMedic, ref string ifa, ref string soort, ref string prefLang)
|
||||
{
|
||||
using (dsIDPBWTableAdapters.QueriesTableAdapter qta = new dsIDPBWTableAdapters.QueriesTableAdapter())
|
||||
qta.getUser3(ref AanvragerID, ref isIV, ref isNV, ref isIDPBW, ref lang, ref aanvragerFullname, ref mentorID, ref mentorFullname, ref unit, ref building, ref isMedic, ref prefLang);
|
||||
SetSessionIfDifferent(p, "Aanvrager", AanvragerID);
|
||||
SetSessionIfDifferent(p, "isIDPBW", isIDPBW);
|
||||
lang = prefLang;
|
||||
SetSessionIfDifferent(p, "lang", lang);
|
||||
ifa = Getinterface(p); SetSessionIfDifferent(p, "interface", ifa);
|
||||
soort = GetString(p, "soort", string.Empty);
|
||||
SetSessionIfDifferent(p, "soort", soort);
|
||||
p.UICulture = lang;
|
||||
}
|
||||
|
||||
|
||||
static public bool IDPBWHasPerms(string sql, string CheckPerms = "EXECUTE")
|
||||
{
|
||||
bool canWrite = false;
|
||||
using (System.Data.SqlClient.SqlConnection co = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["IDPBWConnectionString"].ConnectionString))
|
||||
using (System.Data.SqlClient.SqlCommand cm = new System.Data.SqlClient.SqlCommand(string.Format("select [write]=convert(bit,case when IS_ROLEMEMBER('dbo')=1 or exists (SELECT * FROM [sys].[fn_my_permissions]('{0}', 'object') where [permission_name]='{1}') then 1 else 0 end )", sql, CheckPerms), co))
|
||||
{
|
||||
co.Open();
|
||||
canWrite = (bool)cm.ExecuteScalar();
|
||||
co.Close();
|
||||
}
|
||||
return canWrite;
|
||||
}
|
||||
|
||||
static public bool IDPBWCanWrite(string sql, string CheckPerms="EXECUTE")
|
||||
{
|
||||
return IDPBWHasPerms(sql,"EXECUTE");
|
||||
}
|
||||
|
||||
static public bool IESCanWrite(string sql)
|
||||
{
|
||||
bool canWrite = false;
|
||||
//if (!String.IsNullOrEmpty(iface)) RadGrid1.MasterTableView.GetColumn("verantwoordelijke").Visible = iface.Equals("TC", StringComparison.InvariantCultureIgnoreCase);
|
||||
|
||||
System.Data.SqlClient.SqlConnection co = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["IESConnectionString"].ConnectionString);
|
||||
System.Data.SqlClient.SqlCommand cm = new System.Data.SqlClient.SqlCommand(string.Format("select write=convert(bit,case when exists (SELECT * FROM fn_my_permissions('{0}', 'object') where permission_name='EXECUTE') then 1 else 0 end )", sql), co);
|
||||
co.Open();
|
||||
canWrite = (bool)cm.ExecuteScalar();
|
||||
co.Close();
|
||||
return canWrite;
|
||||
}
|
||||
}
|
||||
}
|
||||
121
Safety/DocAGrid.aspx
Normal file
121
Safety/DocAGrid.aspx
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
<%@ Page Title="DocAGrid" Language="C#" MasterPageFile="~/Masters/Master.master" AutoEventWireup="true" CodeBehind="DocAGrid.aspx.cs" Inherits="safety.DocAGrid" MaintainScrollPositionOnPostback="true" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<fieldset class="rfdRoundedCorners">
|
||||
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="sqlDsDocAGrid" AllowSorting="True" CellSpacing="-1" GridLines="Both">
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
</Pdf>
|
||||
</ExportSettings>
|
||||
<MasterTableView AllowAutomaticInserts="True" AllowAutomaticUpdates="True" CommandItemDisplay="Top" DataKeyNames="roleID" DataSourceID="sqlDsDocAGrid" AllowAutomaticDeletes="True">
|
||||
<Columns>
|
||||
<telerik:GridDropDownColumn DataField="roleID" DataSourceID="SqlDSRoles" HeaderText="Role" ListTextField="name" ListValueField="roleID" UniqueName="column">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridDropDownColumn>
|
||||
<telerik:GridBoundColumn DataField="mCat" HeaderText="mCat" SortExpression="mCat" UniqueName="mCat" DefaultInsertValue="A">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="wbc" HeaderText="wbc" SortExpression="wbc" UniqueName="wbc" DataType="System.Int16" DefaultInsertValue="0">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="lung" DataType="System.Int16" HeaderText="lung" SortExpression="lung" UniqueName="lung" DefaultInsertValue="0">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="thyroid" DataType="System.Int16" HeaderText="thyroid" SortExpression="thyroid" UniqueName="thyroid" DefaultInsertValue="0">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Pu" DataType="System.Int16" HeaderText="Pu" SortExpression="Pu" UniqueName="Pu" DefaultInsertValue="0">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Am" DataType="System.Int16" HeaderText="Am" SortExpression="Am" UniqueName="Am" DefaultInsertValue="0">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="U" DataType="System.Int16" HeaderText="U" SortExpression="U" UniqueName="U" DefaultInsertValue="0">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Tr" DataType="System.Int16" HeaderText="Tr" SortExpression="Tr" UniqueName="Tr" DefaultInsertValue="0">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="Po" DataType="System.Int16" HeaderText="Po" SortExpression="Po" UniqueName="Po" DefaultInsertValue="0">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Th" DataType="System.Int16" HeaderText="Th" SortExpression="Th" UniqueName="Th" DefaultInsertValue="0">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Andere" DataType="System.Int16" HeaderText="Andere" SortExpression="Andere" UniqueName="Andere" DefaultInsertValue="0">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridCalculatedColumn DataFields="RoleId" Expression="{0}" HeaderText="ID" UniqueName="column1">
|
||||
</telerik:GridCalculatedColumn>
|
||||
<telerik:GridButtonColumn CommandName="Delete" Text="Del" UniqueName="DeleteColumn" ButtonCssClass="rgDel" ConfirmText="Are you sure to delete this?" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
</fieldset>
|
||||
<asp:SqlDataSource ID="sqlDsDocAGrid" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="DocAGridSelect" DeleteCommand="DocAGridDelete" DeleteCommandType="StoredProcedure" InsertCommand="DocAGridInsert" InsertCommandType="StoredProcedure" SelectCommandType="StoredProcedure" UpdateCommand="DocAGridUpdate" UpdateCommandType="StoredProcedure">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="roleID" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />
|
||||
<asp:Parameter Name="roleID" Type="Int32" />
|
||||
<asp:Parameter Name="mCat" Type="String" />
|
||||
<asp:Parameter Name="wbc" Type="Int16" />
|
||||
<asp:Parameter Name="lung" Type="Int16" />
|
||||
<asp:Parameter Name="thyroid" Type="Int16" />
|
||||
<asp:Parameter Name="Pu" Type="Int16" />
|
||||
<asp:Parameter Name="Am" Type="Int16" />
|
||||
<asp:Parameter Name="U" Type="Int16" />
|
||||
<asp:Parameter Name="Tr" Type="Int16" />
|
||||
<asp:Parameter Name="Andere" Type="Int16" />
|
||||
<asp:Parameter Name="Po" Type="Int16" />
|
||||
<asp:Parameter Name="Th" Type="Int16" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="roleID" Type="Int32" />
|
||||
<asp:Parameter Name="mCat" Type="String" />
|
||||
<asp:Parameter Name="wbc" Type="Int16" />
|
||||
<asp:Parameter Name="lung" Type="Int16" />
|
||||
<asp:Parameter Name="thyroid" Type="Int16" />
|
||||
<asp:Parameter Name="Pu" Type="Int16" />
|
||||
<asp:Parameter Name="Am" Type="Int16" />
|
||||
<asp:Parameter Name="U" Type="Int16" />
|
||||
<asp:Parameter Name="Tr" Type="Int16" />
|
||||
<asp:Parameter Name="Andere" Type="Int16" />
|
||||
<asp:Parameter Name="Po" Type="Int16" />
|
||||
<asp:Parameter Name="Th" Type="Int16" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSRoles" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="DocARolesCombo" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
</asp:Content>
|
||||
17
Safety/DocAGrid.aspx.cs
Normal file
17
Safety/DocAGrid.aspx.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety
|
||||
{
|
||||
public partial class DocAGrid : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(this.Master, "Grid frequenties WBC en LRM");
|
||||
}
|
||||
}
|
||||
}
|
||||
42
Safety/DocAGrid.aspx.designer.cs
generated
Normal file
42
Safety/DocAGrid.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety {
|
||||
|
||||
|
||||
public partial class DocAGrid {
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// sqlDsDocAGrid control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource sqlDsDocAGrid;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSRoles control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSRoles;
|
||||
}
|
||||
}
|
||||
154
Safety/DocALinkCekCertificates.aspx
Normal file
154
Safety/DocALinkCekCertificates.aspx
Normal file
|
|
@ -0,0 +1,154 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site2n.master" AutoEventWireup="true" CodeBehind="DocALinkCekCertificates.aspx.cs" Inherits="safety.DocALinkCekCertificates" MaintainScrollPositionOnPostback="true" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="sqlDSLinkCek" AllowSorting="True" GroupPanelPosition="Top">
|
||||
|
||||
<GroupingSettings CaseSensitive="false" />
|
||||
<ExportSettings FileName="CekLinks" HideStructureColumns="True" OpenInNewWindow="True" IgnorePaging="True">
|
||||
<Pdf PageWidth="" PaperSize="A4">
|
||||
</Pdf>
|
||||
<Excel Format="Biff" AutoFitImages="True" />
|
||||
</ExportSettings>
|
||||
<MasterTableView AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" CommandItemDisplay="Top" DataKeyNames="linkID" DataSourceID="sqlDSLinkCek">
|
||||
<CommandItemSettings ShowExportToExcelButton="True" ShowExportToWordButton="True" />
|
||||
<Columns>
|
||||
<%-- <telerik:GridBoundColumn DataField="subCat" FilterControlAltText="Filter subCat column" HeaderText="SubCat" MaxLength="20" SortExpression="subCat" UniqueName="subCat" ReadOnly="True">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="60px" />
|
||||
</telerik:GridBoundColumn>--%>
|
||||
<telerik:GridBoundColumn DataField="linkID" DataType="System.Int32" FilterControlAltText="Filter linkID column" HeaderText="ID" ReadOnly="True" UniqueName="linkID" Visible="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px" />
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridDropDownColumn DataField="roleID" DataSourceID="SqlDSRoles" FilterControlAltText="Filter column column" HeaderText="Role" ListTextField="name" ListValueField="roleID" UniqueName="column">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="150px" />
|
||||
</telerik:GridDropDownColumn>
|
||||
<telerik:GridBoundColumn DataField="part" DataType="System.Int32" FilterControlAltText="Filter part column" HeaderText="Part" ReadOnly="false" UniqueName="part" DefaultInsertValue="0">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px" />
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
|
||||
<telerik:GridDateTimeColumn DataField="validFrom" DataFormatString="{0:yyyy-MM-dd}" EditDataFormatString="yyyy-MM-dd" DataType="System.DateTime" DefaultInsertValue="1900-01-01" FilterControlAltText="Filter validFrom column" HeaderText="From" UniqueName="validFrom">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="80px" />
|
||||
</telerik:GridDateTimeColumn>
|
||||
<telerik:GridDateTimeColumn DataField="validTill" DataFormatString="{0:yyyy-MM-dd}" EditDataFormatString="yyyy-MM-dd" DefaultInsertValue="2099-12-31" FilterControlAltText="Filter validTill column" HeaderText="Till" UniqueName="validTill">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="80px" />
|
||||
</telerik:GridDateTimeColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="cid" DataType="System.Int32" HeaderText="CID" ReadOnly="True" UniqueName="cid" HeaderStyle-Width="50px" />
|
||||
|
||||
<telerik:GridDropDownColumn DataField="certIDBase" DataSourceID="SqlDSCert" FilterControlAltText="Filter certIDBase column" HeaderText="Certificate" ListTextField="name" ListValueField="certID" SortExpression="certIDBase" UniqueName="certIDBase">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="80px" />
|
||||
</telerik:GridDropDownColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="isDefault" DataType="System.Boolean" DefaultInsertValue="true" FilterControlAltText="Filter isDefault column" HeaderText="Default" UniqueName="isDefault" HeaderStyle-Width="50px">
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridBoundColumn DataField="validityM" DataType="System.Int32" FilterControlAltText="Filter validityM column" HeaderText="Validity months" SortExpression="validityM" UniqueName="validityM" HeaderTooltip="Validity in months">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="70px" />
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridDropDownColumn DataField="certIDRefresh" DataSourceID="SqlDSCert" EmptyListItemText="-" EnableEmptyListItem="True" FilterControlAltText="Filter certIDRefresh column" HeaderText="Refresh Certificate" ListTextField="name" ListValueField="certID" SortExpression="certIDRefresh" UniqueName="certIDRefresh" HeaderTooltip="CEK certificate to use, after Refresh monts">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="80px" />
|
||||
</telerik:GridDropDownColumn>
|
||||
<telerik:GridBoundColumn DataField="recurrenceM" DataType="System.Int32" FilterControlAltText="Filter recurrenceM column" HeaderText="Refresh each M" SortExpression="recurrenceM" UniqueName="recurrenceM" HeaderTooltip="Refresh this education with the Refresh certificate, after main certificate, each x months.">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="70px" />
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="description" FilterControlAltText="Filter column1 column" HeaderText="Description" MaxLength="255" SortExpression="description" UniqueName="description">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="250px" />
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="educationOnly" DataType="System.Boolean" FilterControlAltText="Filter educationOnly column" HeaderText="No Certificate" UniqueName="educationOnly">
|
||||
<HeaderStyle Width="60px" />
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="Active" DataType="System.Boolean" HeaderText="Active" UniqueName="Active">
|
||||
<HeaderStyle Width="40px" />
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="RoleActive" DataType="System.Boolean" HeaderText="Risc Active" UniqueName="RoleActive" ReadOnly="true">
|
||||
<HeaderStyle Width="40px" />
|
||||
</telerik:GridCheckBoxColumn>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<telerik:GridButtonColumn CommandName="Delete" Text="Del" UniqueName="DeleteColumn" ButtonCssClass="rgDel" ConfirmText="Are you sure to delete this?" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
|
||||
<asp:SqlDataSource ID="sqlDSLinkCek" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>"
|
||||
DeleteCommand="docALinkCekCertDelete" DeleteCommandType="StoredProcedure"
|
||||
InsertCommand="docALinkCekCertInsert" InsertCommandType="StoredProcedure"
|
||||
SelectCommand="docALinkCekCertSelect" SelectCommandType="StoredProcedure"
|
||||
UpdateCommand="docALinkCekCertUpdate" UpdateCommandType="StoredProcedure">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="linkID" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="roleID" Type="Int32" />
|
||||
<asp:Parameter DefaultValue="0" Name="part" Type="Int32" />
|
||||
<asp:Parameter DbType="Date" Name="validFrom" />
|
||||
<asp:Parameter DbType="Date" Name="validTill" />
|
||||
<asp:Parameter Name="certIDBase" Type="Int32" />
|
||||
<asp:Parameter Name="validityM" Type="Int32" />
|
||||
<asp:Parameter Name="certIDRefresh" Type="Int32" />
|
||||
<asp:Parameter Name="recurrenceM" Type="Int32" />
|
||||
<asp:Parameter Name="description" Type="String" />
|
||||
<asp:Parameter Name="educationOnly" Type="Boolean" />
|
||||
<asp:Parameter Name="isDefault" Type="Boolean" />
|
||||
<asp:Parameter Name="Active" Type="Boolean" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="linkID" Type="Int32" />
|
||||
<asp:Parameter Name="roleID" Type="Int32" />
|
||||
<asp:Parameter Name="part" Type="Int32" />
|
||||
<asp:Parameter Name="validFrom" DbType="Date" />
|
||||
<asp:Parameter Name="validTill" DbType="Date" />
|
||||
<asp:Parameter Name="certIDBase" Type="Int32" />
|
||||
<asp:Parameter Name="validityM" Type="Int32" />
|
||||
<asp:Parameter Name="certIDRefresh" Type="Int32" />
|
||||
<asp:Parameter Name="recurrenceM" Type="Int32" />
|
||||
<asp:Parameter Name="description" Type="String" />
|
||||
<asp:Parameter Name="educationOnly" Type="Boolean" />
|
||||
<asp:Parameter Name="isDefault" Type="Boolean" />
|
||||
<asp:Parameter Name="Active" Type="Boolean" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSRoles" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="DocARolesCombo" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSCert" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="DocACertCombo" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
</asp:Content>
|
||||
17
Safety/DocALinkCekCertificates.aspx.cs
Normal file
17
Safety/DocALinkCekCertificates.aspx.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety
|
||||
{
|
||||
public partial class DocALinkCekCertificates : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Link Risicofiches - CEK Certificaten (PL.IDPBW.0625)");
|
||||
}
|
||||
}
|
||||
}
|
||||
51
Safety/DocALinkCekCertificates.aspx.designer.cs
generated
Normal file
51
Safety/DocALinkCekCertificates.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety {
|
||||
|
||||
|
||||
public partial class DocALinkCekCertificates {
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// sqlDSLinkCek control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource sqlDSLinkCek;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSRoles control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSRoles;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSCert control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSCert;
|
||||
}
|
||||
}
|
||||
80
Safety/DocAQuiz.aspx
Normal file
80
Safety/DocAQuiz.aspx
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
<%@ Page Title="Link RF - Quiz" Language="C#" MasterPageFile="~/Masters/Site.master" AutoEventWireup="true" CodeBehind="DocAQuiz.aspx.cs" Inherits="safety.DocAQuiz" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<fieldset class="rfdRoundedCorners">
|
||||
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDSDocAQuiz">
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
</Pdf>
|
||||
</ExportSettings>
|
||||
<MasterTableView AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" CommandItemDisplay="Top" DataKeyNames="id" DataSourceID="SqlDSDocAQuiz">
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="id" DataType="System.Int32" FilterControlAltText="Filter id column" HeaderText="id" ReadOnly="True" SortExpression="id" UniqueName="id">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridDropDownColumn DataField="roleID" DataSourceID="SqlDSRoles" FilterControlAltText="Filter roleID column" HeaderText="Role" ListTextField="name" ListValueField="roleID" SortExpression="roleID" UniqueName="roleID">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridDropDownColumn>
|
||||
<telerik:GridDropDownColumn DataField="moduleID" DataSourceID="SqlDSModules" FilterControlAltText="Filter moduleID column" HeaderText="QuizModule" ListTextField="name" ListValueField="moduleID" SortExpression="moduleID" UniqueName="moduleID">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridDropDownColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="onlyEmployee" DataType="System.Boolean" FilterControlAltText="Filter onlyEmployee" HeaderText="Employee" UniqueName="onlyEmployee" DefaultInsertValue="True">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
|
||||
<telerik:GridCheckBoxColumn DataField="onlyExtern" DataType="System.Boolean" FilterControlAltText="Filter onlyExtern" HeaderText="Extern" UniqueName="onlyExtern" DefaultInsertValue="True">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
|
||||
<telerik:GridCheckBoxColumn DataField="onlyExternEuridice" DataType="System.Boolean" HeaderText="Ext. Euridice" UniqueName="onlyExternEuridice" DefaultInsertValue="True">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
|
||||
|
||||
<telerik:GridBoundColumn DataField="created" DataType="System.DateTime" FilterControlAltText="Filter created column" HeaderText="created" ReadOnly="True" SortExpression="created" UniqueName="created">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="creator" FilterControlAltText="Filter creator column" HeaderText="creator" ReadOnly="True" SortExpression="creator" UniqueName="creator">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridButtonColumn CommandName="Delete" Text="Del" UniqueName="DeleteColumn" ButtonCssClass="rgDel" ConfirmText="Are you sure to delete this?" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
</fieldset>
|
||||
<asp:SqlDataSource ID="SqlDSDocAQuiz" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" DeleteCommand="docALinkQuizDelete" DeleteCommandType="StoredProcedure" InsertCommand="docALinkQuizInsert" InsertCommandType="StoredProcedure" SelectCommand="docALinkQuizSelect" SelectCommandType="StoredProcedure" UpdateCommand="docALinkQuizUpdate" UpdateCommandType="StoredProcedure">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="id" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="roleID" Type="Int32" />
|
||||
<asp:Parameter Name="moduleID" Type="Int32" />
|
||||
<asp:Parameter Name="onlyExtern" Type="Boolean" />
|
||||
<asp:Parameter Name="onlyEmployee" Type="Boolean" />
|
||||
<asp:Parameter Name="onlyExternEuridice" Type="Boolean" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="roleID" Type="Int32" />
|
||||
<asp:Parameter Name="moduleID" Type="Int32" />
|
||||
<asp:Parameter Name="id" Type="Int32" />
|
||||
<asp:Parameter Name="onlyExtern" Type="Boolean" />
|
||||
<asp:Parameter Name="onlyEmployee" Type="Boolean" />
|
||||
<asp:Parameter Name="onlyExternEuridice" Type="Boolean" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSRoles" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="DocARolesCombo" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSModules" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="select moduleID,name=naamNL from modules order by moduleID"></asp:SqlDataSource>
|
||||
</asp:Content>
|
||||
17
Safety/DocAQuiz.aspx.cs
Normal file
17
Safety/DocAQuiz.aspx.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety
|
||||
{
|
||||
public partial class DocAQuiz : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Link Risico Fiche - QUIZ");
|
||||
}
|
||||
}
|
||||
}
|
||||
51
Safety/DocAQuiz.aspx.designer.cs
generated
Normal file
51
Safety/DocAQuiz.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety {
|
||||
|
||||
|
||||
public partial class DocAQuiz {
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSDocAQuiz control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSDocAQuiz;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSRoles control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSRoles;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSModules control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSModules;
|
||||
}
|
||||
}
|
||||
86
Safety/DocARoles.aspx
Normal file
86
Safety/DocARoles.aspx
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/Site.master" AutoEventWireup="true" CodeBehind="DocARoles.aspx.cs" Inherits="safety.DocARoles" MaintainScrollPositionOnPostback="true" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
|
||||
<fieldset class="rfdRoundedCorners">
|
||||
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="sqlDSDocARoles" ShowGroupPanel="True" CellSpacing="-1" GridLines="Both" GroupPanelPosition="Top">
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
</Pdf>
|
||||
</ExportSettings>
|
||||
<ClientSettings AllowDragToGroup="True">
|
||||
</ClientSettings>
|
||||
<MasterTableView AllowAutomaticInserts="True" AllowAutomaticUpdates="True" CommandItemDisplay="Top" DataKeyNames="roleID" DataSourceID="sqlDSDocARoles">
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="roleID" DataType="System.Int32" FilterControlAltText="Filter roleID column" HeaderText="roleID" ReadOnly="True" SortExpression="roleID" UniqueName="roleID">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="cat" FilterControlAltText="Filter cat column" HeaderText="cat" SortExpression="cat" UniqueName="cat">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<ItemStyle Width="40px" />
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="subcat" FilterControlAltText="Filter subcat column" HeaderText="subcat" SortExpression="subcat" UniqueName="subcat">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<ItemStyle Width="70px" />
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="nr" DataType="System.Int32" FilterControlAltText="Filter nr column" HeaderText="nr" SortExpression="nr" UniqueName="nr">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<ItemStyle Width="50px" />
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="name" FilterControlAltText="Filter name " HeaderText="Name" SortExpression="name" UniqueName="name">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="shortname" FilterControlAltText="Filter column column" HeaderText="Short" UniqueName="column">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="isGZ" DataType="System.Boolean" FilterControlAltText="Filter column2 column" HeaderText="GZ" UniqueName="column2">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="DesignOnly" DataType="System.Boolean" FilterControlAltText="Filter column1 column" HeaderText="Design" UniqueName="column1">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridBoundColumn DataField="NeedHPHApproval" DataType="System.Byte" FilterControlAltText="Filter NeedHPHApproval column" HeaderText="HPH Approve" SortExpression="nr" UniqueName="NeedHPHApproval" />
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
</telerik:GridButtonColumn>
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
</fieldset>
|
||||
<asp:SqlDataSource ID="sqlDSDocARoles" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="DocARolesSelect" DeleteCommand="DocARolesDelete" DeleteCommandType="StoredProcedure" InsertCommand="DocARolesInsert" InsertCommandType="StoredProcedure" SelectCommandType="StoredProcedure" UpdateCommand="DocARolesUpdate" UpdateCommandType="StoredProcedure">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="roleID" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="roleID" Type="Int32" />
|
||||
<asp:Parameter Name="cat" Type="String" />
|
||||
<asp:Parameter Name="subcat" Type="String" />
|
||||
<asp:Parameter Name="nr" Type="Int32" />
|
||||
<asp:Parameter Name="name" Type="String" />
|
||||
<asp:Parameter Name="shortname" Type="String" />
|
||||
<asp:Parameter Name="DesignOnly" Type="Boolean" />
|
||||
<asp:Parameter Name="isGZ" Type="Boolean" />
|
||||
<asp:Parameter Name="NeedHPHApproval" Type="Byte" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="roleID" Type="Int32" />
|
||||
<asp:Parameter Name="cat" Type="String" />
|
||||
<asp:Parameter Name="subcat" Type="String" />
|
||||
<asp:Parameter Name="nr" Type="Int32" />
|
||||
<asp:Parameter Name="name" Type="String" />
|
||||
<asp:Parameter Name="shortname" Type="String" />
|
||||
<asp:Parameter Name="DesignOnly" Type="Boolean" />
|
||||
<asp:Parameter Name="isGZ" Type="Boolean" />
|
||||
<asp:Parameter Name="NeedHPHApproval" Type="Byte" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
</asp:Content>
|
||||
17
Safety/DocARoles.aspx.cs
Normal file
17
Safety/DocARoles.aspx.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety
|
||||
{
|
||||
public partial class DocARoles : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Risicos masterdata");
|
||||
}
|
||||
}
|
||||
}
|
||||
33
Safety/DocARoles.aspx.designer.cs
generated
Normal file
33
Safety/DocARoles.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety {
|
||||
|
||||
|
||||
public partial class DocARoles {
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// sqlDSDocARoles control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource sqlDSDocARoles;
|
||||
}
|
||||
}
|
||||
48
Safety/Dosimetry/TLDCompare.aspx
Normal file
48
Safety/Dosimetry/TLDCompare.aspx
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site2n.master" AutoEventWireup="true" CodeBehind="TLDCompare.aspx.cs" Inherits="safety.Dosimetry.TLDCompare" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
|
||||
|
||||
|
||||
<telerik:RadGrid runat="server" ID="rgDose" DataSourceID="SqlDSDos" AllowSorting="True" DataKeyNames="TLDPeriod,persid" AutoGenerateColumns="False">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
|
||||
<ExportSettings FileName="TldCompare" OpenInNewWindow="True">
|
||||
<Pdf PageWidth="">
|
||||
</Pdf>
|
||||
<Excel FileExtension="xlsx" Format="Xlsx" />
|
||||
</ExportSettings>
|
||||
<MasterTableView DataSourceID="SqlDSDos" CommandItemDisplay="Top">
|
||||
<CommandItemSettings ShowExportToExcelButton="True" ShowAddNewRecordButton="False" />
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="persID" DataType="System.Int32" FilterControlAltText="Filter persid column" HeaderText="persid" ReadOnly="True" SortExpression="persid" UniqueName="persid">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="start" DataType="System.DateTime" FilterControlAltText="Filter einde column" HeaderText="Start" ReadOnly="True" SortExpression="start" UniqueName="start" DataFormatString="{0:yyyy-MM-dd}">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="einde" DataType="System.DateTime" FilterControlAltText="Filter einde column" HeaderText="Einde" ReadOnly="True" SortExpression="einde" UniqueName="einde" DataFormatString="{0:yyyy-MM-dd}">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="tld" DataType="System.Int32" FilterControlAltText="Filter tld column" HeaderText="TLD" ReadOnly="True" SortExpression="tld" UniqueName="tld">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="persGroup" FilterControlAltText="Filter persGroup column" HeaderText="Group" ReadOnly="True" SortExpression="persGroup" UniqueName="persGroup">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="name" FilterControlAltText="Filter name column" HeaderText="Name" ReadOnly="True" SortExpression="name" UniqueName="name">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="callingName" FilterControlAltText="Filter callingName column" HeaderText="Calling Name" ReadOnly="True" SortExpression="callingName" UniqueName="callingName">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="building" FilterControlAltText="Filter building column" HeaderText="Building" ReadOnly="True" SortExpression="building" UniqueName="building">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="LongTerm" DataType="System.Boolean" FilterControlAltText="Filter LongTerm column" HeaderText="LongTerm" ReadOnly="True" SortExpression="LongTerm" UniqueName="LongTerm">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridBoundColumn DataField="remark" FilterControlAltText="Filter remark column" HeaderText="Remark" ReadOnly="True" SortExpression="remark" UniqueName="remark">
|
||||
</telerik:GridBoundColumn>
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
|
||||
|
||||
|
||||
<asp:SqlDataSource ID="SqlDSDos" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="Rapport_Tld_todo" SelectCommandType="StoredProcedure">
|
||||
</asp:SqlDataSource>
|
||||
|
||||
</asp:Content>
|
||||
23
Safety/Dosimetry/TLDCompare.aspx.cs
Normal file
23
Safety/Dosimetry/TLDCompare.aspx.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety.Dosimetry
|
||||
{
|
||||
public partial class TLDCompare : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Page.Master, "Rapport vergelijk TLD");
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
|
||||
|
||||
rgDose.Rebind();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
Safety/Dosimetry/TLDCompare.aspx.designer.cs
generated
Normal file
33
Safety/Dosimetry/TLDCompare.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.Dosimetry {
|
||||
|
||||
|
||||
public partial class TLDCompare {
|
||||
|
||||
/// <summary>
|
||||
/// rgDose control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid rgDose;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSDos control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSDos;
|
||||
}
|
||||
}
|
||||
109
Safety/Dosimetry/VingerDosAssign.aspx
Normal file
109
Safety/Dosimetry/VingerDosAssign.aspx
Normal file
|
|
@ -0,0 +1,109 @@
|
|||
<%@ Page Language="C#" MasterPageFile="~/Site2n.master" AutoEventWireup="true" CodeBehind="VingerDosAssign.aspx.cs" Inherits="safety.Dosimetry.VingerDosAssign" EnableEventValidation="false" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
<style>
|
||||
.dl {
|
||||
float:left;
|
||||
display: inline;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<asp:HiddenField runat="server" Value="201702" ID="hPeriod" />
|
||||
<asp:HiddenField runat="server" Value="12321" ID="hPersID" />
|
||||
|
||||
<div>
|
||||
<fieldset>
|
||||
<telerik:RadDropDownList runat="server" ID="dGroup" AutoPostBack="true" DataSourceID="dsTLDGroup" DataTextField="displayName" DataValueField="TLDGroup" />
|
||||
<br />
|
||||
<telerik:RadLabel runat="server" Text="Jaar/maand" AssociatedControlID="pPeriod" CssClass="dl" />
|
||||
<telerik:RadMonthYearPicker runat="server" ID="pPeriod" Culture="nl-BE" AutoPostBack="true" CssClass="dl" >
|
||||
<DateInput DisplayDateFormat="MMMM yyyy" DateFormat="MMMM yyyy" AutoPostBack="True" LabelWidth="40%" >
|
||||
<EmptyMessageStyle Resize="None"></EmptyMessageStyle>
|
||||
<ReadOnlyStyle Resize="None"></ReadOnlyStyle>
|
||||
|
||||
<FocusedStyle Resize="None"></FocusedStyle>
|
||||
|
||||
<DisabledStyle Resize="None"></DisabledStyle>
|
||||
|
||||
<InvalidStyle Resize="None"></InvalidStyle>
|
||||
|
||||
<HoveredStyle Resize="None"></HoveredStyle>
|
||||
|
||||
<EnabledStyle Resize="None"></EnabledStyle>
|
||||
</DateInput>
|
||||
|
||||
<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
|
||||
|
||||
<MonthYearNavigationSettings DateIsOutOfRangeMessage="Cancel"></MonthYearNavigationSettings>
|
||||
</telerik:RadMonthYearPicker>
|
||||
<telerik:RadCheckBox ID="cShowAll" runat="server" AutoPostBack="true" Checked="false" CssClass="dl" />
|
||||
<telerik:RadLabel runat="server" Text=" + vaste TLD" AssociatedControlID="cShowAll" CssClass="dl" />
|
||||
</fieldset>
|
||||
</div>
|
||||
<telerik:RadGrid runat="server" ID="RG" DataSourceID="SqlDataSource1" GridLines="Both" AllowAutomaticDeletes="True" AllowAutomaticUpdates="True" AllowSorting="True" AutoGenerateColumns="False">
|
||||
<ExportSettings ExportOnlyData="True" FileName="VingerDosimeters" OpenInNewWindow="True">
|
||||
<Excel Format="Xlsx" />
|
||||
</ExportSettings>
|
||||
<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
|
||||
<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="800" SaveScrollPosition="true" />
|
||||
</ClientSettings>
|
||||
<MasterTableView DataKeyNames="TLDPeriod, TLDVingerID" DataSourceID="SqlDataSource1" CommandItemDisplay="Top" Width="95%">
|
||||
<CommandItemSettings ShowExportToExcelButton="True" />
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="TLDVingerID" HeaderText="TLD" UniqueName="TLDVingerID" HeaderStyle-Width="100px" ReadOnly="true" />
|
||||
<telerik:GridBoundColumn DataField="TLDPeriod" HeaderText="Period" SortExpression="TLDPeriod" UniqueName="TLDPeriod" HeaderStyle-Width="50px" ReadOnly="true" />
|
||||
<telerik:GridBoundColumn DataField="TLDGroup" FilterControlAltText="Filter TLDGroup column" HeaderText="Group" SortExpression="TLDGroup" UniqueName="TLDGroup" ReadOnly="true" HeaderStyle-Width="50px"/>
|
||||
<telerik:GridBoundColumn DataField="TLDCode" FilterControlAltText="Filter TLDCode column" HeaderText="Code" SortExpression="TLDCode" UniqueName="TLDCode" ReadOnly="true" HeaderStyle-Width="50px"/>
|
||||
<telerik:GridBoundColumn DataField="TLDNummer" FilterControlAltText="Filter TLDNummer column" HeaderText="Nummer" SortExpression="TLDNummer" UniqueName="TLDNummer" ReadOnly="true" HeaderStyle-Width="50px"/>
|
||||
<telerik:GridBoundColumn DataField="N_P" FilterControlAltText="Filter N_P column" HeaderText="N_P" SortExpression="N_P" UniqueName="N_P" HeaderStyle-Width="30px" ReadOnly="true" Visible="false" />
|
||||
<telerik:GridBoundColumn DataField="BlauwZwart" HeaderText="B/Z" SortExpression="BlauwZwart" UniqueName="BlauwZwart" HeaderStyle-Width="30px" ReadOnly="true" />
|
||||
|
||||
<telerik:GridTemplateColumn DataField="persid" HeaderText="Persoon" UniqueName="persid">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox1" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persID" SelectedValue='<%# Bind("persid") %>' MarkFirstMatch="true" AllowCustomText="true" Width="500px" ZIndex="100000" EnableLoadOnDemand="true" OnItemsRequested="persidRadComboBox1_ItemsRequested" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("https://toegang.intern.sckcen.be/pfiche/{0}",Eval("persid")) %>' Text='<%# Eval("fullname") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
|
||||
<telerik:GridBoundColumn DataField="dosis" HeaderText="Dosis" SortExpression="dosis" UniqueName="dosis" HeaderStyle-Width="100px" ReadOnly="true"/>
|
||||
<telerik:GridBoundColumn DataField="AssignDate" DataType="System.DateTime" FilterControlAltText="Filter AssignDate column" HeaderText="AssignDate" SortExpression="AssignDate" UniqueName="AssignDate" ReadOnly="true" />
|
||||
<telerik:GridBoundColumn DataField="AssignedBy" FilterControlAltText="Filter AssignedBy column" HeaderText="AssignedBy" SortExpression="AssignedBy" UniqueName="AssignedBy" ReadOnly="true"/>
|
||||
|
||||
<telerik:GridButtonColumn CommandName="Delete" Text="Edit" ButtonCssClass="rgDel" UniqueName="DeleteColumn" HeaderStyle-Width="30px" ConfirmText="Wil je deze lijn verwijderen ? ">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" DeleteCommand="tld_vinger_assign_delete" DeleteCommandType="StoredProcedure" SelectCommand="tld_vinger_assign_select" SelectCommandType="StoredProcedure" UpdateCommand="tld_vinger_assign_update" UpdateCommandType="StoredProcedure" CancelSelectOnNullParameter="False">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="TLDPeriod" Type="Int32" />
|
||||
<asp:Parameter Name="TLDVingerID" DbType="Int32" />
|
||||
</DeleteParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hPeriod" Name="TLDPeriod" PropertyName="Value" Type="Int32" DefaultValue="201611" />
|
||||
<asp:ControlParameter ControlID="dGroup" Name="TLD_Group" Type="String" DefaultValue="" PropertyName="SelectedValue" />
|
||||
<asp:ControlParameter ControlID="cShowAll" DefaultValue="false" Name="showAll" PropertyName="Checked" Type="Boolean" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="TLDPeriod" Type="Int32" />
|
||||
<asp:Parameter Name="TLDVingerID" Type="Int32" />
|
||||
<asp:Parameter Name="persid" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
|
||||
<%--<asp:SqlDataSource ID="SqlDSTLD" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="tld_vinger_list" SelectCommandType="StoredProcedure" />--%>
|
||||
<asp:SqlDataSource ID="SqlDSNamen" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="TLD_getLijstNamen" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="dsTLDGroup" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="select displayName = TLDGroup+' '+name,Name,TLDGroup from TLD_Group order by TLDGroup" SelectCommandType="Text" />
|
||||
|
||||
|
||||
|
||||
</asp:Content>
|
||||
65
Safety/Dosimetry/VingerDosAssign.aspx.cs
Normal file
65
Safety/Dosimetry/VingerDosAssign.aspx.cs
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using Telerik.Web.UI;
|
||||
|
||||
namespace safety.Dosimetry
|
||||
{
|
||||
public partial class VingerDosAssign : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Vinger dosimeters toewijzen");
|
||||
if (!IsPostBack)
|
||||
{
|
||||
DateTime now = DateTime.Now;
|
||||
pPeriod.SelectedDate = now;
|
||||
//pJaar.Value = now.Year;
|
||||
//pMaand.Value = now.Month;
|
||||
hPeriod.Value = (now.Year * 100 + now.Month).ToString();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
//hPeriod.Value = (pJaar.Value * 100 + pMaand.Value).ToString();
|
||||
var n = pPeriod.SelectedDate;
|
||||
if (n.HasValue)
|
||||
{
|
||||
hPeriod.Value = (n.Value.Year * 100 + n.Value.Month).ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected void persidRadComboBox1_ItemsRequested(object sender, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
|
||||
{
|
||||
RadComboBox combo = (RadComboBox) sender;
|
||||
var cn = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["idpbwConnectionString"].ConnectionString;
|
||||
string s = e.Text.Replace("'", "''") + "%";
|
||||
|
||||
System.Data.SqlClient.SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter();
|
||||
System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand("TLD_getLijstNamen");
|
||||
cmd.Connection = new System.Data.SqlClient.SqlConnection(cn);
|
||||
cmd.CommandType = CommandType.StoredProcedure;
|
||||
cmd.Parameters.AddWithValue("search", s);
|
||||
//cmd.Parameters.AddWithValue("fetch", 200);
|
||||
//cmd.Parameters.AddWithValue("skip", 0);
|
||||
da.SelectCommand = cmd;
|
||||
cmd.Connection.Open();
|
||||
using (SqlDataReader de = cmd.ExecuteReader())
|
||||
{
|
||||
DataTable dt = new DataTable();
|
||||
dt.Load(de);
|
||||
cmd.Connection.Close();
|
||||
foreach (DataRow row in dt.Rows)
|
||||
{
|
||||
RadComboBoxItem item = new RadComboBoxItem(row["naam"].ToString(), row["persid"].ToString());
|
||||
combo.Items.Add(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
96
Safety/Dosimetry/VingerDosAssign.aspx.designer.cs
generated
Normal file
96
Safety/Dosimetry/VingerDosAssign.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.Dosimetry {
|
||||
|
||||
|
||||
public partial class VingerDosAssign {
|
||||
|
||||
/// <summary>
|
||||
/// hPeriod control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hPeriod;
|
||||
|
||||
/// <summary>
|
||||
/// hPersID control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hPersID;
|
||||
|
||||
/// <summary>
|
||||
/// dGroup control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadDropDownList dGroup;
|
||||
|
||||
/// <summary>
|
||||
/// pPeriod control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadMonthYearPicker pPeriod;
|
||||
|
||||
/// <summary>
|
||||
/// cShowAll control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadCheckBox cShowAll;
|
||||
|
||||
/// <summary>
|
||||
/// RG control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RG;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSNamen control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSNamen;
|
||||
|
||||
/// <summary>
|
||||
/// dsTLDGroup control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource dsTLDGroup;
|
||||
}
|
||||
}
|
||||
92
Safety/Dosimetry/VingerDosis.aspx
Normal file
92
Safety/Dosimetry/VingerDosis.aspx
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site2n.master" AutoEventWireup="true" CodeBehind="VingerDosis.aspx.cs" Inherits="safety.Dosimetry.VingerDosis" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadNumericTextBox ID="pJaar" runat="server" Label="Jaar" DataType="System.Int32" AutoPostBack="True" MaxValue="2025" MinValue="2010" Height="22px" LabelWidth="100px" MaxLength="4" Width="201px">
|
||||
<NegativeStyle Resize="None"></NegativeStyle>
|
||||
<NumberFormat ZeroPattern="n" AllowRounding="False" DecimalDigits="0" GroupSeparator=""></NumberFormat>
|
||||
<EmptyMessageStyle Resize="None"></EmptyMessageStyle>
|
||||
<ReadOnlyStyle Resize="None"></ReadOnlyStyle>
|
||||
<FocusedStyle Resize="None"></FocusedStyle>
|
||||
<DisabledStyle Resize="None"></DisabledStyle>
|
||||
<InvalidStyle Resize="None"></InvalidStyle>
|
||||
<HoveredStyle Resize="None"></HoveredStyle>
|
||||
<EnabledStyle Resize="None"></EnabledStyle>
|
||||
</telerik:RadNumericTextBox>
|
||||
|
||||
|
||||
<telerik:RadNumericTextBox ID="pMaand" runat="server" Label="Maand" DataType="System.Int32" AutoPostBack="True" MaxValue="12" MinValue="1" Height="22px" LabelWidth="100px" MaxLength="2" Width="201px">
|
||||
<NegativeStyle Resize="None"></NegativeStyle>
|
||||
<NumberFormat ZeroPattern="n" AllowRounding="False" DecimalDigits="0" GroupSeparator=""></NumberFormat>
|
||||
<EmptyMessageStyle Resize="None"></EmptyMessageStyle>
|
||||
<ReadOnlyStyle Resize="None"></ReadOnlyStyle>
|
||||
<FocusedStyle Resize="None"></FocusedStyle>
|
||||
<DisabledStyle Resize="None"></DisabledStyle>
|
||||
<InvalidStyle Resize="None"></InvalidStyle>
|
||||
<HoveredStyle Resize="None"></HoveredStyle>
|
||||
<EnabledStyle Resize="None"></EnabledStyle>
|
||||
</telerik:RadNumericTextBox>
|
||||
|
||||
|
||||
<telerik:RadGrid runat="server" ID="rgDose" DataSourceID="SqlDSDos" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="TLDPeriod,persid">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
|
||||
<ExportSettings FileName="TldFingerDose" OpenInNewWindow="True">
|
||||
<Excel FileExtension="xlsx" Format="Xlsx" />
|
||||
</ExportSettings>
|
||||
<MasterTableView DataSourceID="SqlDSDos" CommandItemDisplay="Top" ClientDataKeyNames="persid,TLDPeriod" DataKeyNames="persid,TLDPeriod">
|
||||
<DetailTables>
|
||||
<telerik:GridTableView runat="server" DataKeyNames="TLDPeriod,persid" DataSourceID="SqlDsDosDetail" ShowFooter="True" AllowNaturalSort="False" AllowSorting="False">
|
||||
<ParentTableRelation>
|
||||
<telerik:GridRelationFields DetailKeyField="TLDPeriod" MasterKeyField="TLDPeriod" />
|
||||
<telerik:GridRelationFields DetailKeyField="persid" MasterKeyField="persid" />
|
||||
</ParentTableRelation>
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="dosis" DataType="System.Single" FilterControlAltText="Filter dosis column" HeaderText="dosis" SortExpression="dosis" UniqueName="dosis" Aggregate="Sum" FooterAggregateFormatString="T: {0:0.00}" ReadOnly="True">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="TLDPeriod" DataType="System.Int32" FilterControlAltText="Filter TLDPeriod column" HeaderText="TLDPeriod" SortExpression="TLDPeriod" UniqueName="TLDPeriod">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="TLD" HeaderText="TLD" SortExpression="TLD" UniqueName="TLD">
|
||||
</telerik:GridBoundColumn>
|
||||
</Columns>
|
||||
</telerik:GridTableView>
|
||||
</DetailTables>
|
||||
<CommandItemSettings ShowExportToExcelButton="True" />
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="persid" DataType="System.Int32" FilterControlAltText="Filter persid column" HeaderText="persid" SortExpression="persid" UniqueName="persid" />
|
||||
|
||||
<telerik:GridBoundColumn DataField="name" FilterControlAltText="Filter name column" HeaderText="name" ReadOnly="True" SortExpression="name" UniqueName="name">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Company" FilterControlAltText="Filter Company column" HeaderText="Company" SortExpression="Company" UniqueName="Company">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="dosis" DataType="System.Single" FilterControlAltText="Filter dosis column" HeaderText="dosis" ReadOnly="True" SortExpression="dosis" UniqueName="dosis" DataFormatString="{0:0.00}" />
|
||||
<telerik:GridBoundColumn DataField="dosis12tede" DataType="System.Double" FilterControlAltText="Filter dosis12tede column" HeaderText="dosis12tede" ReadOnly="True" SortExpression="dosis12tede" UniqueName="dosis12tede" DataFormatString="{0:0.00}" />
|
||||
<telerik:GridBoundColumn DataField="records" DataType="System.Int32" FilterControlAltText="Filter records column" HeaderText="records" ReadOnly="True" SortExpression="records" UniqueName="records" />
|
||||
<telerik:GridBoundColumn DataField="MinPeriod" DataType="System.Int32" FilterControlAltText="Filter MinPeriod column" HeaderText="MinPeriod" ReadOnly="True" SortExpression="MinPeriod" UniqueName="MinPeriod">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="MaxPeriod" DataType="System.Int32" FilterControlAltText="Filter MaxPeriod column" HeaderText="MaxPeriod" ReadOnly="True" SortExpression="MaxPeriod" UniqueName="MaxPeriod">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="TLDPeriod" DataType="System.Int32" ReadOnly="True" SortExpression="TLDPeriod" UniqueName="TLDPeriod" />
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
|
||||
|
||||
|
||||
<asp:SqlDataSource ID="SqlDSDos" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="tld_vinger_dose" SelectCommandType="StoredProcedure">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="pJaar" DefaultValue="2017" Name="tldJaar" PropertyName="Text" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="pMaand" DefaultValue="01" Name="tldMaand" PropertyName="Text" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:SqlDataSource>
|
||||
|
||||
<asp:SqlDataSource ID="SqlDsDosDetail" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="TLD_Vinger_Dose_Detail" SelectCommandType="StoredProcedure">
|
||||
<SelectParameters>
|
||||
<asp:Parameter Name="TLDPeriod" Type="Int32" DefaultValue="201702" />
|
||||
<asp:Parameter Name="persid" Type="Int32" DefaultValue="13115" />
|
||||
</SelectParameters>
|
||||
</asp:SqlDataSource>
|
||||
|
||||
|
||||
|
||||
</asp:Content>
|
||||
23
Safety/Dosimetry/VingerDosis.aspx.cs
Normal file
23
Safety/Dosimetry/VingerDosis.aspx.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety.Dosimetry
|
||||
{
|
||||
public partial class VingerDosis : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Page.Master, "VingerTLD dosis");
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
pJaar.Text = DateTime.Now.Year.ToString();
|
||||
pMaand.Text = DateTime.Now.Month.ToString();
|
||||
rgDose.Rebind();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
60
Safety/Dosimetry/VingerDosis.aspx.designer.cs
generated
Normal file
60
Safety/Dosimetry/VingerDosis.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.Dosimetry {
|
||||
|
||||
|
||||
public partial class VingerDosis {
|
||||
|
||||
/// <summary>
|
||||
/// pJaar control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadNumericTextBox pJaar;
|
||||
|
||||
/// <summary>
|
||||
/// pMaand control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadNumericTextBox pMaand;
|
||||
|
||||
/// <summary>
|
||||
/// rgDose control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid rgDose;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSDos control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSDos;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDsDosDetail control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDsDosDetail;
|
||||
}
|
||||
}
|
||||
57
Safety/Dosimetry/VingerDosismeters.aspx
Normal file
57
Safety/Dosimetry/VingerDosismeters.aspx
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site2n.master" AutoEventWireup="true" CodeBehind="VingerDosismeters.aspx.cs" Inherits="safety.Dosimetry.VingerDosismeters" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid runat="server" ID="RG" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" DataSourceID="SqlDSVingerDosismeters" AllowSorting="True" AutoGenerateColumns="False" >
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="False"></GroupingSettings>
|
||||
<ExportSettings FileName="VingerDosimeters" OpenInNewWindow="True">
|
||||
<Excel Format="Xlsx" />
|
||||
</ExportSettings>
|
||||
<MasterTableView CommandItemDisplay="Top" DataKeyNames="TLDVingerID" DataSourceID="SqlDSVingerDosismeters">
|
||||
<CommandItemSettings ShowExportToExcelButton="True" />
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="TLDVingerID" DataType="System.Int32" FilterControlAltText="Filter TLDVingerID column" HeaderText="ID" ReadOnly="True" SortExpression="TLDVingerID" UniqueName="TLDVingerID">
|
||||
<HeaderStyle Width="30px" />
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="TLDGroup" HeaderText="Group" UniqueName="TLDGroup" HeaderStyle-Width="100px">
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="TLDCode" FilterControlAltText="Filter TLDCode column" HeaderText="TLDCode" SortExpression="TLDCode" UniqueName="TLDCode">
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="TLDNummer" FilterControlAltText="Filter TLDNummer column" HeaderText="TLDNummer" SortExpression="TLDNummer" UniqueName="TLDNummer">
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridButtonColumn CommandName="Delete" Text="Edit" ButtonCssClass="rgDel" UniqueName="DeleteColumn" HeaderStyle-Width="30px" ConfirmText="Wil je dit antwoord verwijderen ? ">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="SqlDSVingerDosismeters" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" DeleteCommand="tld_vinger_delete" DeleteCommandType="StoredProcedure" InsertCommand="tld_vinger_insert" InsertCommandType="StoredProcedure" SelectCommand="tld_vinger_select" SelectCommandType="StoredProcedure" UpdateCommand="tld_vinger_update" UpdateCommandType="StoredProcedure">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="TLDVingerID" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="TLDGroup" Type="String" />
|
||||
<asp:Parameter Name="TLDCode" Type="String" />
|
||||
<asp:Parameter Name="TLDNummer" Type="String" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="TLDVingerID" Type="Int32" />
|
||||
<asp:Parameter Name="TLDGroup" Type="String" />
|
||||
<asp:Parameter Name="TLDCode" Type="String" />
|
||||
<asp:Parameter Name="TLDNummer" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
|
||||
|
||||
<asp:SqlDataSource ID="SqlTLDGroup" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="tld_group_list" SelectCommandType="StoredProcedure" />
|
||||
|
||||
</asp:Content>
|
||||
17
Safety/Dosimetry/VingerDosismeters.aspx.cs
Normal file
17
Safety/Dosimetry/VingerDosismeters.aspx.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety.Dosimetry
|
||||
{
|
||||
public partial class VingerDosismeters : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Vingerdosismeters");
|
||||
}
|
||||
}
|
||||
}
|
||||
42
Safety/Dosimetry/VingerDosismeters.aspx.designer.cs
generated
Normal file
42
Safety/Dosimetry/VingerDosismeters.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.Dosimetry {
|
||||
|
||||
|
||||
public partial class VingerDosismeters {
|
||||
|
||||
/// <summary>
|
||||
/// RG control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RG;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSVingerDosismeters control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSVingerDosismeters;
|
||||
|
||||
/// <summary>
|
||||
/// SqlTLDGroup control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlTLDGroup;
|
||||
}
|
||||
}
|
||||
123
Safety/GebVW/App_LocalResources/ClusterResponsable.aspx.resx
Normal file
123
Safety/GebVW/App_LocalResources/ClusterResponsable.aspx.resx
Normal file
|
|
@ -0,0 +1,123 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Titel" xml:space="preserve">
|
||||
<value>Cluster/Gebouw verantwoordelijke</value>
|
||||
</data>
|
||||
</root>
|
||||
36
Safety/GebVW/BuildingClusters.aspx
Normal file
36
Safety/GebVW/BuildingClusters.aspx
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Siten.master" AutoEventWireup="true" CodeBehind="BuildingClusters.aspx.cs" Inherits="safety.GebVW.BuildingClusters" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="-1" GridLines="Both" DataSourceID="SqlDataSource1" AllowSorting="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateColumns="False">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="False"></GroupingSettings>
|
||||
<ExportSettings ExportOnlyData="True" HideStructureColumns="True" OpenInNewWindow="True">
|
||||
<Excel FileExtension="xlsx" Format="Xlsx" />
|
||||
</ExportSettings>
|
||||
<MasterTableView DataSourceID="SqlDataSource1" CommandItemDisplay="Top" DataKeyNames="BuildingClusterID">
|
||||
<CommandItemSettings ShowExportToExcelButton="True" />
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="BuildingClusterID" DataType="System.Int32" HeaderText="ClusterID" ReadOnly="True" SortExpression="BuildingClusterID" UniqueName="BuildingClusterID">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="BuildingCluster" HeaderText="Cluster" SortExpression="BuildingCluster" UniqueName="BuildingCluster">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridHyperLinkColumn DataNavigateUrlFields="ResponsableID" DataTextField="ResponsableName" HeaderText="Beheerder" UniqueName="ResponsableID" DataNavigateUrlFormatString="https://toegang.intern.sck.be/pub/Fiche/{0}" DataTextFormatString="{0}" />
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>" SelectCommand="cts.BuildingClustersSelect" SelectCommandType="StoredProcedure" InsertCommand="cts.BuildingClustersInsert" InsertCommandType="StoredProcedure" UpdateCommand="cts.BuildingClustersUpdate" UpdateCommandType="StoredProcedure">
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="BuildingCluster" Type="String" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="BuildingClusterID" Type="Int32" />
|
||||
<asp:Parameter Name="BuildingCluster" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSNamen" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>"
|
||||
SelectCommand="[cts].[getLijstNamen]" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
|
||||
</asp:Content>
|
||||
21
Safety/GebVW/BuildingClusters.aspx.cs
Normal file
21
Safety/GebVW/BuildingClusters.aspx.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety.GebVW
|
||||
{
|
||||
public partial class BuildingClusters : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Gebouw clusters");
|
||||
bool canWrite = General.IESCanWrite("cts.BuildingClustersUpdate");
|
||||
RadGrid1.MasterTableView.GetColumn("EditColumn").Visible = canWrite;
|
||||
//RadGrid1.MasterTableView.GetColumn("DeleteColumn").Visible = canWrite;
|
||||
RadGrid1.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = canWrite;
|
||||
}
|
||||
}
|
||||
}
|
||||
42
Safety/GebVW/BuildingClusters.aspx.designer.cs
generated
Normal file
42
Safety/GebVW/BuildingClusters.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.GebVW {
|
||||
|
||||
|
||||
public partial class BuildingClusters {
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSNamen control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSNamen;
|
||||
}
|
||||
}
|
||||
172
Safety/GebVW/ClusterResponsable.aspx
Normal file
172
Safety/GebVW/ClusterResponsable.aspx
Normal file
|
|
@ -0,0 +1,172 @@
|
|||
<%@ Page Title="CR" Language="C#" MasterPageFile="~/Siten.master" AutoEventWireup="true" CodeBehind="ClusterResponsable.aspx.cs" Inherits="safety.GebVW.ClusterResponsable" %>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<div style="width: 100%;">
|
||||
<telerik:RadDropDownList ID="ddBuildings" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDSClusters" DataTextField="ClusterText" DataValueField="BuildingClusterID" AutoPostBack="true" Width="250px">
|
||||
<items>
|
||||
<telerik:DropDownListItem runat="server" Text="Alle clusters" Value="" />
|
||||
</items>
|
||||
</telerik:RadDropDownList>
|
||||
|
||||
<telerik:RadDropDownList ID="ddFuncties" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDSGebouwFuncties" DataTextField="RoleName" DataValueField="RoleID" AutoPostBack="true" OnSelectedIndexChanged="ddFuncties_SelectedIndexChanged">
|
||||
<items>
|
||||
<telerik:DropDownListItem runat="server" Text="Alle rollen" Value="" />
|
||||
</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="GebouwclusterVerantwoordelijken" openinnewwindow="True">
|
||||
<Pdf PageWidth="">
|
||||
</Pdf>
|
||||
<Excel Format="Xlsx" />
|
||||
</exportsettings>
|
||||
<mastertableview datakeynames="CRespID,BuildingClusterID" datasourceid="dsBResponsables" allowautomaticdeletes="True" allowautomaticinserts="True" allowautomaticupdates="True" commanditemdisplay="Top">
|
||||
<DetailTables>
|
||||
<telerik:GridTableView runat="server" DataSourceID="dsClusterBuildings" ClientDataKeyNames="BuildingClusterID">
|
||||
<ParentTableRelation>
|
||||
<telerik:GridRelationFields DetailKeyField="BuildingClusterID" MasterKeyField="BuildingClusterID" />
|
||||
</ParentTableRelation>
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="BuildingCode" HeaderText="Gebouw Code" UniqueName="BuildingCode" />
|
||||
<telerik:GridBoundColumn DataField="BuildingName" HeaderText="Gebouw Naam" UniqueName="BuildingName" />
|
||||
</Columns>
|
||||
</telerik:GridTableView>
|
||||
</DetailTables>
|
||||
<CommandItemSettings ShowExportToExcelButton="True" />
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="CRespID" UniqueName="CRespID" ReadOnly="true" Visible="false" />
|
||||
|
||||
<%-- <telerik:GridDropDownColumn DataField="BuildingID" HeaderText="Gebouw" ListValueField="BuildingID" UniqueName="BuildingID" DataSourceID="SqlDSBuildings" ListTextField="BuildingText" ListTextFormatString="{0}" ReadOnly="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridDropDownColumn>--%>
|
||||
|
||||
|
||||
|
||||
<telerik:GridTemplateColumn DataField="BuildingClusterID" HeaderText="Cluster" UniqueName="BuildingClusterID" meta:resourcekey="Cluster">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="gebCB" runat="server" DataSourceID="SqlDSClusters" DataTextField="ClusterText" DataValueField="BuildingClusterID" SelectedValue='<%# Bind("BuildingClusterID") %>' MarkFirstMatch="true" Width="250px">
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("BuildingCluster") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
|
||||
<%-- <telerik:GridDropDownColumn DataField="RoleID" HeaderText="Rol" ListValueField="RoleID" UniqueName="RoleID" DataSourceID="SqlDSGebouwFuncties" ListTextField="RoleName" ListTextFormatString="{0}" ReadOnly="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridDropDownColumn>--%>
|
||||
|
||||
<telerik:GridTemplateColumn DataField="RoleID" HeaderText="Rol" UniqueName="RoleID" meta:resourcekey="Rol">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="roleComobox" runat="server" DataSourceID="SqlDSGebouwFuncties" DataTextField="RoleName" DataValueField="RoleID" SelectedValue='<%# Bind("RoleID") %>' MarkFirstMatch="true" AllowCustomText="true" Width="250px">
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Hyperlink runat="server" NavigateUrl='<%# Eval("URLLink") %>' Text='<%# Eval("RoleName") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
|
||||
|
||||
<telerik:GridTemplateColumn DataField="PersID1" HeaderText="" UniqueName="PersID1" >
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox1" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("PersID1") %>' MarkFirstMatch="true" AllowCustomText="true" Width="250px">
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("https://toegang.intern.sck.be/pub/Fiche/{0}",Eval("PersID1")) %>' Text='<%# Eval("pName1") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
<telerik:GridTemplateColumn DataField="PersID2" HeaderText="Coordinator 2" UniqueName="PersID2" meta:resourcekey="C2">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox2" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("PersID2") %>' MarkFirstMatch="true" AllowCustomText="true" Width="250px">
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("https://toegang.intern.sck.be/pub/Fiche/{0}",Eval("PersID2")) %>' Text='<%# Eval("pName2") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
<telerik:GridTemplateColumn DataField="PersID3" HeaderText="Coordinator 3" UniqueName="PersID3" meta:resourcekey="C3">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox4" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("PersID3") %>' MarkFirstMatch="true" AllowCustomText="true">
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("https://toegang.intern.sck.be/pub/Fiche/{0}",Eval("PersID3")) %>' Text='<%# Eval("pName3") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
|
||||
<telerik:GridTemplateColumn DataField="PersID4" HeaderText="Vervanger" UniqueName="PersID4" meta:resourcekey="D1">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox3" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("PersID4") %>' MarkFirstMatch="true" AllowCustomText="true" Width="250px">
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("https://toegang.intern.sck.be/pub/Fiche/{0}",Eval("PersID4")) %>' Text='<%# Eval("sName1") %>' Width="250px" />
|
||||
</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:IESConnectionString %>" DeleteCommand="cts.ClusterResponsablesDelete" DeleteCommandType="StoredProcedure" InsertCommand="[cts].[ClusterResponsablesInsert]" InsertCommandType="StoredProcedure" SelectCommand="[cts].[ClusterResponsablesSelect]" SelectCommandType="StoredProcedure" UpdateCommand="[cts].[ClusterResponsablesUpdate]" UpdateCommandType="StoredProcedure" CancelSelectOnNullParameter="False">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="CRespID" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="BuildingClusterID" Type="Int32" />
|
||||
<asp:Parameter Name="RoleID" Type="Int32" />
|
||||
<asp:Parameter Name="PersID1" Type="Int32" />
|
||||
<asp:Parameter Name="PersID2" Type="Int32" />
|
||||
<asp:Parameter Name="PersID3" Type="Int32" />
|
||||
<asp:Parameter Name="PersID4" Type="Int32" />
|
||||
</InsertParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ddBuildings" Name="BuildingClusterID" PropertyName="SelectedValue" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="ddFuncties" Name="RoleID" PropertyName="SelectedValue" Type="Int32" />
|
||||
<asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="CRespID" Type="Int32" />
|
||||
<asp:Parameter Name="BuildingClusterID" Type="Int32" />
|
||||
<asp:Parameter Name="RoleID" Type="Int32" />
|
||||
<asp:Parameter Name="PersID1" Type="Int32" />
|
||||
<asp:Parameter Name="PersID2" Type="Int32" />
|
||||
<asp:Parameter Name="PersID3" Type="Int32" />
|
||||
<asp:Parameter Name="PersID4" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSClusters" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>"
|
||||
SelectCommand="[cts].[ClusterList]" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSGebouwFuncties" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>"
|
||||
SelectCommand="[cts].[ClusterRolesList]" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSNamen" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>"
|
||||
SelectCommand="cts.getLijstNamen" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="dsClusterBuildings" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>"
|
||||
SelectCommand="cts.ClusterBuildingsSelect" SelectCommandType="StoredProcedure">
|
||||
<SelectParameters>
|
||||
<asp:Parameter Name="BuildingClusterID" Type="Int32" DefaultValue="1" />
|
||||
</SelectParameters>
|
||||
</asp:SqlDataSource>
|
||||
|
||||
</asp:Content>
|
||||
70
Safety/GebVW/ClusterResponsable.aspx.cs
Normal file
70
Safety/GebVW/ClusterResponsable.aspx.cs
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Telerik.Web.UI;
|
||||
|
||||
namespace safety.GebVW
|
||||
{
|
||||
public partial class ClusterResponsable : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, GetLocalResourceObject("Titel").ToString());
|
||||
bool canWrite = General.IESCanWrite("cts.ClusterResponsablesUpdate");
|
||||
RadGrid1.MasterTableView.GetColumn("EditColumn").Visible = canWrite;
|
||||
RadGrid1.MasterTableView.GetColumn("DeleteColumn").Visible = canWrite;
|
||||
RadGrid1.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = canWrite;
|
||||
}
|
||||
|
||||
protected void ddFuncties_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void RadGrid1_PreRender(object sender, EventArgs e)
|
||||
{
|
||||
string c1 = string.Empty, c2 = string.Empty, c3 = string.Empty, c4 = string.Empty;
|
||||
int rid = 0;
|
||||
DataTable tb = null;
|
||||
if (!string.IsNullOrEmpty(ddFuncties.SelectedValue) && int.TryParse(ddFuncties.SelectedValue, out rid))
|
||||
{
|
||||
using (System.Data.SqlClient.SqlConnection co = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["IESConnectionString"].ConnectionString))
|
||||
{
|
||||
using (System.Data.SqlClient.SqlCommand cm = new System.Data.SqlClient.SqlCommand("cts.roleNames", co))
|
||||
{
|
||||
cm.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
cm.Parameters.AddWithValue("roleid", rid);
|
||||
co.Open();
|
||||
tb = new DataTable();
|
||||
{
|
||||
var dr = cm.ExecuteReader(System.Data.CommandBehavior.CloseConnection | System.Data.CommandBehavior.SingleRow);
|
||||
tb.Load(dr);
|
||||
co.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (tb != null && tb.Rows.Count > 0)
|
||||
{
|
||||
if (!tb.Rows[0].IsNull("Title1")) c1 = (string)tb.Rows[0]["Title1"];
|
||||
if (!tb.Rows[0].IsNull("Title2")) c2 = (string)tb.Rows[0]["Title2"];
|
||||
if (!tb.Rows[0].IsNull("Title3")) c3 = (string)tb.Rows[0]["Title3"];
|
||||
if (!tb.Rows[0].IsNull("Title4")) c4 = (string)tb.Rows[0]["Title4"];
|
||||
}
|
||||
RadGrid1.MasterTableView.GetHeaderCellByColumnUniqueName("PersID1").Text = c1;
|
||||
RadGrid1.MasterTableView.GetHeaderCellByColumnUniqueName("PersID2").Text = c2;
|
||||
RadGrid1.MasterTableView.GetHeaderCellByColumnUniqueName("PersID3").Text = c3;
|
||||
RadGrid1.MasterTableView.GetHeaderCellByColumnUniqueName("PersID4").Text = c4;
|
||||
}
|
||||
|
||||
protected void ddFuncties_SelectedIndexChanged(object sender, DropDownListEventArgs e)
|
||||
{
|
||||
RadGrid1.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
87
Safety/GebVW/ClusterResponsable.aspx.designer.cs
generated
Normal file
87
Safety/GebVW/ClusterResponsable.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.GebVW {
|
||||
|
||||
|
||||
public partial class ClusterResponsable {
|
||||
|
||||
/// <summary>
|
||||
/// ddBuildings control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadDropDownList ddBuildings;
|
||||
|
||||
/// <summary>
|
||||
/// ddFuncties control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadDropDownList ddFuncties;
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// dsBResponsables control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource dsBResponsables;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSClusters control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSClusters;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSGebouwFuncties control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSGebouwFuncties;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSNamen control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSNamen;
|
||||
|
||||
/// <summary>
|
||||
/// dsClusterBuildings control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource dsClusterBuildings;
|
||||
}
|
||||
}
|
||||
94
Safety/GebVW/ClusterRoles.aspx
Normal file
94
Safety/GebVW/ClusterRoles.aspx
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Siten.master" AutoEventWireup="true" CodeBehind="ClusterRoles.aspx.cs" Inherits="safety.GebVW.ClusterRoles" %>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="-1" GridLines="Both" DataSourceID="SqlDataSource1" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowSorting="True" AutoGenerateColumns="False">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="False"></GroupingSettings>
|
||||
<ExportSettings ExportOnlyData="True" OpenInNewWindow="True">
|
||||
<Excel FileExtension="xlsx" Format="Xlsx" />
|
||||
</ExportSettings>
|
||||
|
||||
<MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="RoleID" CommandItemDisplay="Top">
|
||||
<CommandItemSettings ShowExportToExcelButton="True" />
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="RoleID" HeaderText="ID" SortExpression="RoleID" UniqueName="RoleID" DataType="System.Int32" ReadOnly="True">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="RoleName" HeaderText="Benaming" SortExpression="RoleName" UniqueName="RoleName">
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="RoleSequence" DataType="System.Byte" HeaderText="Volgorde" SortExpression="RoleSequence" UniqueName="RoleSequence">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="visible" DataType="System.Boolean" HeaderText="Zichtbaar" SortExpression="visible" UniqueName="visible">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
|
||||
<telerik:GridCheckBoxColumn DataField="BVCA" DataType="System.Boolean" HeaderText="B-VCA" SortExpression="BVCA" UniqueName="BVCA" HeaderStyle-Width="50px" />
|
||||
|
||||
<telerik:GridTemplateColumn DataField="OwnerID" HeaderText="Beheerder" UniqueName="OwnerID">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("OwnerID") %>' MarkFirstMatch="true" AllowCustomText="true">
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("https://toegang.intern.sck.be/pub/Fiche/{0}",Eval("OwnerID")) %>' Text='<%# Eval("OwnerName") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
|
||||
<telerik:GridTemplateColumn DataField="URLLink" HeaderText="IMS link" UniqueName="URLLink">
|
||||
<EditItemTemplate>
|
||||
|
||||
<telerik:RadTextBox ID="linkTextBox" runat="server" Text='<%# Bind("URLLink") %>' Width="300px" MaxLength="255">
|
||||
</telerik:RadTextBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# Eval("URLLink") %>' Text='<%# Eval("URLLink") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
|
||||
<telerik:GridBoundColumn DataField="Title1NL" HeaderText="Title1 NL" UniqueName="Title1NL" AllowSorting="false" />
|
||||
<telerik:GridBoundColumn DataField="Title2NL" HeaderText="Title2 NL" UniqueName="Title2NL" AllowSorting="false" />
|
||||
<telerik:GridBoundColumn DataField="Title3NL" HeaderText="Title3 NL" UniqueName="Title3NL" AllowSorting="false" />
|
||||
<telerik:GridBoundColumn DataField="Title4NL" HeaderText="Title4 NL" UniqueName="Title4NL" AllowSorting="false" />
|
||||
|
||||
<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="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>" SelectCommand="cts.ClusterRolesSelect" InsertCommand="cts.ClusterRolesInsert" InsertCommandType="StoredProcedure" UpdateCommand="cts.ClusterRolesUpdate" UpdateCommandType="StoredProcedure" DeleteCommandType="StoredProcedure" SelectCommandType="StoredProcedure">
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="RoleName" Type="String" />
|
||||
<asp:Parameter Name="RoleSequence" Type="Byte" />
|
||||
<asp:Parameter Name="visible" Type="Boolean" />
|
||||
<asp:Parameter Name="BVCA" Type="Boolean" />
|
||||
<asp:Parameter Name="OwnerID" Type="Int32" />
|
||||
<asp:Parameter Name="URLLink" Type="String" />
|
||||
<asp:Parameter Name="Title1NL" Type="String" />
|
||||
<asp:Parameter Name="Title2NL" Type="String" />
|
||||
<asp:Parameter Name="Title3NL" Type="String" />
|
||||
<asp:Parameter Name="Title4NL" Type="String" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="RoleID" Type="Int32" />
|
||||
<asp:Parameter Name="RoleName" Type="String" />
|
||||
<asp:Parameter Name="RoleSequence" Type="Byte" />
|
||||
<asp:Parameter Name="visible" Type="Boolean" />
|
||||
<asp:Parameter Name="BVCA" Type="Boolean" />
|
||||
<asp:Parameter Name="OwnerID" Type="Int32" />
|
||||
<asp:Parameter Name="URLLink" Type="String" />
|
||||
<asp:Parameter Name="Title1NL" Type="String" />
|
||||
<asp:Parameter Name="Title2NL" Type="String" />
|
||||
<asp:Parameter Name="Title3NL" Type="String" />
|
||||
<asp:Parameter Name="Title4NL" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<br />
|
||||
<asp:SqlDataSource ID="SqlDSNamen" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>"
|
||||
SelectCommand="cts.getLijstNamen" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
|
||||
</asp:Content>
|
||||
20
Safety/GebVW/ClusterRoles.aspx.cs
Normal file
20
Safety/GebVW/ClusterRoles.aspx.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety.GebVW
|
||||
{
|
||||
public partial class ClusterRoles : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Cluster coördinator rollen");
|
||||
bool canWrite = General.IESCanWrite("cts.ClusterRolesUpdate");
|
||||
RadGrid1.MasterTableView.GetColumn("EditColumn").Visible = canWrite;
|
||||
RadGrid1.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = canWrite;
|
||||
}
|
||||
}
|
||||
}
|
||||
44
Safety/GebVW/ClusterRoles.aspx.designer.cs
generated
Normal file
44
Safety/GebVW/ClusterRoles.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.GebVW
|
||||
{
|
||||
|
||||
|
||||
public partial class ClusterRoles
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSNamen control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSNamen;
|
||||
}
|
||||
}
|
||||
48
Safety/GebVW/IMS_BuildingClusters.aspx
Normal file
48
Safety/GebVW/IMS_BuildingClusters.aspx
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Siten.master" AutoEventWireup="true" CodeBehind="IMS_BuildingClusters.aspx.cs" Inherits="safety.GebVW.IMS_BuildingClusters" MaintainScrollPositionOnPostback="true" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="-1" GridLines="Both" DataSourceID="SqlDataSource1" AllowSorting="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateColumns="False">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="False"></GroupingSettings>
|
||||
<ExportSettings ExportOnlyData="True" HideStructureColumns="True" OpenInNewWindow="True">
|
||||
<Excel FileExtension="xlsx" Format="Xlsx" />
|
||||
</ExportSettings>
|
||||
<MasterTableView DataSourceID="SqlDataSource1" CommandItemDisplay="Top" DataKeyNames="IMS_BuildingClusterID">
|
||||
<CommandItemSettings ShowExportToExcelButton="True" />
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="IMS_BuildingClusterID" DataType="System.Int32" FilterControlAltText="Filter IMS_BuildingClusterID column" HeaderText="ClusterID" ReadOnly="True" SortExpression="IMS_BuildingClusterID" UniqueName="IMS_BuildingClusterID">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Ims_BuildingCluster" FilterControlAltText="Filter Ims_BuildingCluster column" HeaderText="Cluster" SortExpression="Ims_BuildingCluster" UniqueName="Ims_BuildingCluster">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridTemplateColumn DataField="BeheerderID" FilterControlAltText="Filter column column" HeaderText="Beheerder" UniqueName="BeheerderID">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("BeheerderID") %>'>
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("http://intern.sckcen.be/phonebook/fiche.asp?id={0}",Eval("BeheerderID")) %>' Text='<%# Eval("Beheerder") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="ims_BuildingClustersSelect" SelectCommandType="StoredProcedure" InsertCommand="ims_BuildingClustersUpdate" InsertCommandType="StoredProcedure" UpdateCommand="ims_BuildingClustersUpdate" UpdateCommandType="StoredProcedure">
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="IMS_BuildingClusterID" Type="Int32" />
|
||||
<asp:Parameter Name="Ims_BuildingCluster" Type="String" />
|
||||
<asp:Parameter Name="BeheerderID" Type="Int32" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="IMS_BuildingClusterID" Type="Int32" />
|
||||
<asp:Parameter Name="Ims_BuildingCluster" Type="String" />
|
||||
<asp:Parameter Name="BeheerderID" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSNamen" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>"
|
||||
SelectCommand="getLijstNamen" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
17
Safety/GebVW/IMS_BuildingClusters.aspx.cs
Normal file
17
Safety/GebVW/IMS_BuildingClusters.aspx.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety.GebVW
|
||||
{
|
||||
public partial class IMS_BuildingClusters : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Gebouw clusters");
|
||||
}
|
||||
}
|
||||
}
|
||||
42
Safety/GebVW/IMS_BuildingClusters.aspx.designer.cs
generated
Normal file
42
Safety/GebVW/IMS_BuildingClusters.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.GebVW {
|
||||
|
||||
|
||||
public partial class IMS_BuildingClusters {
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSNamen control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSNamen;
|
||||
}
|
||||
}
|
||||
147
Safety/GebVW/IMS_BuildingResponsable.aspx
Normal file
147
Safety/GebVW/IMS_BuildingResponsable.aspx
Normal file
|
|
@ -0,0 +1,147 @@
|
|||
<%@ 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>
|
||||
52
Safety/GebVW/IMS_BuildingResponsable.aspx.cs
Normal file
52
Safety/GebVW/IMS_BuildingResponsable.aspx.cs
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Telerik.Web.UI;
|
||||
|
||||
namespace safety.GebVW
|
||||
{
|
||||
public partial class IMS_BuildingResponsable : System.Web.UI.Page
|
||||
{
|
||||
bool mayUpdate = false;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Cluster verantwoordelijken");
|
||||
using (System.Data.SqlClient.SqlConnection cn = new System.Data.SqlClient.SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["idpbwConnectionString"].ConnectionString))
|
||||
{
|
||||
System.Data.SqlClient.SqlCommand cm = new System.Data.SqlClient.SqlCommand("select execperm=convert(bit,HAS_PERMS_BY_NAME('dbo.IMS_ClusterResponsablesUpdate', 'OBJECT', 'EXECUTE'))", cn);
|
||||
cm.CommandType = System.Data.CommandType.Text;
|
||||
cn.Open();
|
||||
mayUpdate = (bool)cm.ExecuteScalar();
|
||||
cn.Close();
|
||||
}
|
||||
}
|
||||
|
||||
protected void ddFuncties_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void RadGrid1_PreRender(object sender, EventArgs e)
|
||||
{
|
||||
if (!mayUpdate)
|
||||
{
|
||||
|
||||
|
||||
//RadGrid1.MasterTableView.GetColumn("EditColumn").Display = false;
|
||||
|
||||
//foreach (GridDataItem dataItem in RadGrid1.MasterTableView.Items)
|
||||
// {
|
||||
// ((LinkButton)dataItem["EditColumn"].Controls[0]).Enabled = false;
|
||||
// ((LinkButton)dataItem["EditColumn"].Controls[0]).Visible = false;
|
||||
// GridCommandItem cmdItem = (GridCommandItem)RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)[0];
|
||||
// //((LinkButton)cmdItem.FindControl("InitInsertButton")).Visible = false;
|
||||
// //((Button)cmdItem.FindControl("AddNewRecordButton")).Visible = false;
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
78
Safety/GebVW/IMS_BuildingResponsable.aspx.designer.cs
generated
Normal file
78
Safety/GebVW/IMS_BuildingResponsable.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.GebVW {
|
||||
|
||||
|
||||
public partial class IMS_BuildingResponsable {
|
||||
|
||||
/// <summary>
|
||||
/// ddFuncties control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadDropDownList ddFuncties;
|
||||
|
||||
/// <summary>
|
||||
/// ddBuildings control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadDropDownList ddBuildings;
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// dsBResponsables control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource dsBResponsables;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSBuildings control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSBuildings;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSGebouwFuncties control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSGebouwFuncties;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSNamen control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSNamen;
|
||||
}
|
||||
}
|
||||
46
Safety/GebVW/IMS_Buildings.aspx
Normal file
46
Safety/GebVW/IMS_Buildings.aspx
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Siten.master" AutoEventWireup="true" CodeBehind="IMS_Buildings.aspx.cs" Inherits="safety.GebVW.IMS_Buildings" MaintainScrollPositionOnPostback="true" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="-1" GridLines="Both" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowSorting="True" >
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="False"></GroupingSettings>
|
||||
<ExportSettings ExportOnlyData="True" HideStructureColumns="True" OpenInNewWindow="True">
|
||||
<Excel FileExtension="xlsx" Format="Xlsx" />
|
||||
</ExportSettings>
|
||||
<MasterTableView CommandItemDisplay="Top" DataKeyNames="IMS_BuildingID" DataSourceID="SqlDataSource1">
|
||||
<CommandItemSettings ShowExportToExcelButton="True" />
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="IMS_BuildingID" DataType="System.Int32" FilterControlAltText="Filter ImsBuildingID column" HeaderText="ID" ReadOnly="True" SortExpression="IMS_BuildingID" UniqueName="IMS_BuildingID">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="IMS_BuildingCode" FilterControlAltText="Filter ImsBuildingCode column" HeaderText="Code" SortExpression="IMS_BuildingCode" UniqueName="IMS_BuildingCode">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="IMS_BuildingName" FilterControlAltText="Filter ImsBuildingName column" HeaderText="Naam" SortExpression="IMS_BuildingName" UniqueName="IMS_BuildingName">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="CTSBuildingID" DataType="System.Int32" FilterControlAltText="Filter CTSBuildingID column" HeaderText="CTS nr" SortExpression="CTSBuildingID" UniqueName="CTSBuildingID">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridDropDownColumn DataField="IMS_BuildingClusterID" DataSourceID="SqlDataSource2" FilterControlAltText="Filter column column" HeaderText="Cluster" ListTextField="IMS_BuildingCluster" ListValueField="IMS_BuildingClusterID" UniqueName="IMS_BuildingClusterID">
|
||||
</telerik:GridDropDownColumn>
|
||||
<telerik:GridBoundColumn DataField="beheerder" FilterControlAltText="Filter beheerder column" HeaderText="Beheerder" SortExpression="beheerder" UniqueName="beheerder" ReadOnly="True">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="ims_BuildingsSelect" SelectCommandType="StoredProcedure" InsertCommand="ims_BuildingsInsert" InsertCommandType="StoredProcedure" UpdateCommand="ims_BuildingsUpdate" UpdateCommandType="StoredProcedure">
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="IMS_BuildingCode" Type="String" />
|
||||
<asp:Parameter Name="IMS_BuildingName" Type="String" />
|
||||
<asp:Parameter Name="CTSBuildingID" Type="Int32" />
|
||||
<asp:Parameter Name="IMS_BuildingClusterID" Type="Int32" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="IMS_BuildingID" Type="Int32" />
|
||||
<asp:Parameter Name="IMS_BuildingCode" Type="String" />
|
||||
<asp:Parameter Name="IMS_BuildingName" Type="String" />
|
||||
<asp:Parameter Name="CTSBuildingID" Type="Int32" />
|
||||
<asp:Parameter Name="IMS_BuildingClusterID" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="IMS_BuildingClustersList" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
</asp:Content>
|
||||
17
Safety/GebVW/IMS_Buildings.aspx.cs
Normal file
17
Safety/GebVW/IMS_Buildings.aspx.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety.GebVW
|
||||
{
|
||||
public partial class IMS_Buildings : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Gebouwen");
|
||||
}
|
||||
}
|
||||
}
|
||||
42
Safety/GebVW/IMS_Buildings.aspx.designer.cs
generated
Normal file
42
Safety/GebVW/IMS_Buildings.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.GebVW {
|
||||
|
||||
|
||||
public partial class IMS_Buildings {
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource2;
|
||||
}
|
||||
}
|
||||
63
Safety/GebVW/IMS_GebouwFuncties.aspx
Normal file
63
Safety/GebVW/IMS_GebouwFuncties.aspx
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Siten.master" AutoEventWireup="true" CodeBehind="IMS_GebouwFuncties.aspx.cs" Inherits="safety.GebVW.IMS_GebouwFuncties" MaintainScrollPositionOnPostback="true" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="-1" GridLines="Both" DataSourceID="SqlDataSource1" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowSorting="True">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="False"></GroupingSettings>
|
||||
<ExportSettings ExportOnlyData="True" OpenInNewWindow="True">
|
||||
<Excel FileExtension="xlsx" Format="Xlsx" />
|
||||
</ExportSettings>
|
||||
|
||||
<MasterTableView DataSourceID="SqlDataSource1" AutoGenerateColumns="False" DataKeyNames="ims_GebFunctieID">
|
||||
<CommandItemSettings ShowExportToExcelButton="True" />
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="ims_GebFunctieID" FilterControlAltText="Filter ims_GebFunctie column" HeaderText="ID" SortExpression="ims_GebFunctieID" UniqueName="ims_GebFunctieID">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="ims_GebFunctie" FilterControlAltText="Filter ims_GebFunctie column" HeaderText="Code" SortExpression="ims_GebFunctie" UniqueName="ims_GebFunctie">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="ims_GebFunctieNaam" FilterControlAltText="Filter ims_GebFunctieNaam column" HeaderText="Coord.Type" SortExpression="ims_GebFunctieNaam" UniqueName="ims_GebFunctieNaam">
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridTemplateColumn DataField="EigenaarID" FilterControlAltText="Filter column column" HeaderText="Eigenaar" UniqueName="EigenaarID">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox" runat="server" DataSourceID="SqlDSNamen" DataTextField="naam" DataValueField="persid" SelectedValue='<%# Bind("EigenaarID") %>'>
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("http://intern.sckcen.be/phonebook/fiche.asp?id={0}",Eval("EigenaarID")) %>' Text='<%# Eval("Eigenaar") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="volgorde" DataType="System.Byte" FilterControlAltText="Filter volgorde column" HeaderText="Volgorde" SortExpression="volgorde" UniqueName="volgorde">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="visible" DataType="System.Boolean" FilterControlAltText="Filter visible column" HeaderText="Zichtbaar" SortExpression="visible" UniqueName="visible">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
|
||||
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="ims_GebfunctiesSelect" SelectCommandType="StoredProcedure" InsertCommand="ims_GebfunctiesInsert" InsertCommandType="StoredProcedure" UpdateCommand="ims_GebfunctiesUpdate" UpdateCommandType="StoredProcedure">
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="ims_GebFunctie" Type="String" />
|
||||
<asp:Parameter Name="ims_GebFunctieNaam" Type="String" />
|
||||
<asp:Parameter Name="volgorde" Type="Byte" />
|
||||
<asp:Parameter Name="visible" Type="Boolean" />
|
||||
<asp:Parameter Name="EigenaarID" Type="Int32" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="ims_GebFunctieID" Type="Int32" />
|
||||
<asp:Parameter Name="ims_GebFunctie" Type="String" />
|
||||
<asp:Parameter Name="ims_GebFunctieNaam" Type="String" />
|
||||
<asp:Parameter Name="volgorde" Type="Byte" />
|
||||
<asp:Parameter Name="visible" Type="Boolean" />
|
||||
<asp:Parameter Name="EigenaarID" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<br />
|
||||
<asp:SqlDataSource ID="SqlDSNamen" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>"
|
||||
SelectCommand="getLijstNamen" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
</asp:Content>
|
||||
17
Safety/GebVW/IMS_GebouwFuncties.aspx.cs
Normal file
17
Safety/GebVW/IMS_GebouwFuncties.aspx.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety.GebVW
|
||||
{
|
||||
public partial class IMS_GebouwFuncties : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Gebouw coordinator types");
|
||||
}
|
||||
}
|
||||
}
|
||||
42
Safety/GebVW/IMS_GebouwFuncties.aspx.designer.cs
generated
Normal file
42
Safety/GebVW/IMS_GebouwFuncties.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.GebVW {
|
||||
|
||||
|
||||
public partial class IMS_GebouwFuncties {
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSNamen control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSNamen;
|
||||
}
|
||||
}
|
||||
95
Safety/GebVW/ctsBuildings.aspx
Normal file
95
Safety/GebVW/ctsBuildings.aspx
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
<%@ Page Title="" Language="C#" MasterPageFile="~/Siten.master" AutoEventWireup="true" CodeBehind="ctsBuildings.aspx.cs" Inherits="safety.GebVW.ctsBuildings" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid runat="server" ID="rgBuildings" DataSourceID="sqlDSBuildings" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateColumns="False">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="False"></GroupingSettings>
|
||||
<ExportSettings IgnorePaging="True" OpenInNewWindow="True" FileName="Buildings" ExportOnlyData="true">
|
||||
<Excel FileExtension="xlsx" Format="Xlsx" />
|
||||
</ExportSettings>
|
||||
<MasterTableView DataSourceID="sqlDSBuildings" AllowSorting="True" CommandItemDisplay="Top" DataKeyNames="BuildingID" AllowAutomaticDeletes="True">
|
||||
<CommandItemSettings ShowExportToExcelButton="True" />
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="BuildingID" DataType="System.Int32" FilterControlAltText="Filter BuildingID column" HeaderText="BuildingID" ReadOnly="False" SortExpression="BuildingID" UniqueName="BuildingID" Visible="true">
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="SiteName" HeaderText="Site" SortExpression="SiteName" UniqueName="SiteName" ReadOnly="true" />
|
||||
<telerik:GridDropDownColumn DataField="ComplexID" DataSourceID="SqlDSComplex" HeaderText="Complex" ListTextField="ComplexName" ListValueField="ComplexID" UniqueName="ComplexID">
|
||||
</telerik:GridDropDownColumn>
|
||||
|
||||
|
||||
<telerik:GridDropDownColumn DataField="BuildingClusterID" DataSourceID="SqlDataSource2" HeaderText="Cluster" ListTextField="BuildingCluster" ListValueField="BuildingClusterID" UniqueName="BuildingClusterID">
|
||||
</telerik:GridDropDownColumn>
|
||||
|
||||
|
||||
<telerik:GridBoundColumn DataField="BuildingCode" FilterControlAltText="Filter BuildingCode column" HeaderText="BuildingCode" SortExpression="BuildingCode" UniqueName="BuildingCode">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="BuildingName" FilterControlAltText="Filter BuildingName column" HeaderText="BuildingName" SortExpression="BuildingName" UniqueName="BuildingName">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="BuildingRemark" FilterControlAltText="Filter BuildingRemark column" HeaderText="BuildingRemark" SortExpression="BuildingRemark" UniqueName="BuildingRemark">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="BuildingSAP" FilterControlAltText="Filter BuildingSAP column" HeaderText="BuildingSAP" SortExpression="BuildingSAP" UniqueName="BuildingSAP">
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="SvgBuildingCode" HeaderText="SVG Code" SortExpression="SvgBuildingCode" UniqueName="SvgBuildingCode" HeaderTooltip="contact Katrijn" Exportable="false">
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridDropDownColumn DataField="BuildingState" HeaderText="Status" SortExpression="State" UniqueName="BuildingState" DataSourceID="SqlDSState" ListValueField="BuildingState" ListTextField="BuildingStateName" />
|
||||
|
||||
<telerik:GridCheckBoxColumn DataField="hasVQ" HeaderText="VQ" SortExpression="hasVQ" UniqueName="hasVQ" HeaderTooltip="VersoCliq" Exportable="false" />
|
||||
|
||||
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px" Exportable="false">
|
||||
<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" Exportable="false">
|
||||
<HeaderStyle Width="30px"></HeaderStyle>
|
||||
</telerik:GridButtonColumn>
|
||||
|
||||
</Columns>
|
||||
|
||||
</MasterTableView>
|
||||
|
||||
</telerik:RadGrid>
|
||||
|
||||
<asp:SqlDataSource ID="sqlDSBuildings" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>" SelectCommand="cts.BuildingsSelect" SelectCommandType="StoredProcedure" CancelSelectOnNullParameter="False" UpdateCommand="cts.BuildingsUpdate" UpdateCommandType="StoredProcedure" InsertCommand="cts.BuildingsInsert" InsertCommandType="StoredProcedure" DeleteCommand="cts.BuildingsDelete" DeleteCommandType="StoredProcedure">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="BuildingID" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="BuildingID" Type="Int32" />
|
||||
<asp:Parameter Name="BuildingClusterID" Type="Int32" />
|
||||
<asp:Parameter Name="BuildingCode" Type="String" />
|
||||
<asp:Parameter Name="BuildingName" Type="String" />
|
||||
<asp:Parameter Name="BuildingRemark" Type="String" />
|
||||
<asp:Parameter Name="BuildingSAP" Type="String" />
|
||||
<asp:Parameter Name="SvgBuildingCode" Type="String" />
|
||||
<asp:Parameter Name="BuildingState" Type="Int32" />
|
||||
<asp:Parameter Name="ComplexID" Type="Int32" />
|
||||
<asp:Parameter Name="hasVQ" Type="Boolean" />
|
||||
</InsertParameters>
|
||||
<SelectParameters>
|
||||
<asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />
|
||||
<asp:Parameter Name="BuildingID" Type="Int32" />
|
||||
<asp:Parameter Name="BuildingClusterID" Type="Int32" />
|
||||
<asp:Parameter Name="BuildingCode" Type="String" />
|
||||
<asp:Parameter Name="BuildingName" Type="String" />
|
||||
<asp:Parameter Name="BuildingRemark" Type="String" />
|
||||
<asp:Parameter Name="BuildingSAP" Type="String" />
|
||||
<asp:Parameter Name="SvgBuildingCode" Type="String" />
|
||||
<asp:Parameter Name="BuildingState" Type="Int32" />
|
||||
<asp:Parameter Name="ComplexID" Type="Int32" />
|
||||
<asp:Parameter Name="hasVQ" Type="Boolean" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>" SelectCommand="cts.BuildingClustersSelect" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSSite" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>" SelectCommand="cts.SitesList" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSState" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>" SelectCommand="cts.BuildingStateList" SelectCommandType="StoredProcedure" CancelSelectOnNullParameter="False" />
|
||||
<asp:SqlDataSource ID="SqlDSComplex" runat="server" ConnectionString="<%$ ConnectionStrings:IESConnectionString %>" SelectCommand="cts.ComplexList" SelectCommandType="StoredProcedure" CancelSelectOnNullParameter="False" />
|
||||
</asp:Content>
|
||||
24
Safety/GebVW/ctsBuildings.aspx.cs
Normal file
24
Safety/GebVW/ctsBuildings.aspx.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety.GebVW
|
||||
{
|
||||
public partial class ctsBuildings : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
General.setTitle(Master, "Beheer gebouwen");
|
||||
|
||||
bool canWrite = General.IESCanWrite("cts.BuildingsUpdate");
|
||||
rgBuildings.MasterTableView.GetColumn("EditColumn").Visible = canWrite;
|
||||
rgBuildings.MasterTableView.GetColumn("DeleteColumn").Visible = canWrite;
|
||||
rgBuildings.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = canWrite;
|
||||
}
|
||||
}
|
||||
}
|
||||
69
Safety/GebVW/ctsBuildings.aspx.designer.cs
generated
Normal file
69
Safety/GebVW/ctsBuildings.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.GebVW {
|
||||
|
||||
|
||||
public partial class ctsBuildings {
|
||||
|
||||
/// <summary>
|
||||
/// rgBuildings control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid rgBuildings;
|
||||
|
||||
/// <summary>
|
||||
/// sqlDSBuildings control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource sqlDSBuildings;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource2;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSSite control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSSite;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSState control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSState;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDSComplex control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDSComplex;
|
||||
}
|
||||
}
|
||||
1
Safety/Global.asax
Normal file
1
Safety/Global.asax
Normal file
|
|
@ -0,0 +1 @@
|
|||
<%@ Application Codebehind="Global.asax.cs" Inherits="safety.Global" Language="C#" %>
|
||||
51
Safety/Global.asax.cs
Normal file
51
Safety/Global.asax.cs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
|
||||
namespace safety
|
||||
{
|
||||
public class Global : System.Web.HttpApplication
|
||||
{
|
||||
protected void Application_Start(object sender, EventArgs e)
|
||||
{
|
||||
//RouteTable.Routes.MapHttpRoute(
|
||||
// name: "DefaultApi",
|
||||
// routeTemplate: "api/{controller}/{id}",
|
||||
// defaults: new { id = System.Web.Http.RouteParameter.Optional }
|
||||
// );
|
||||
//RouteTable.Routes.MapHttpRoute(
|
||||
// name: "KwalifictieApi",
|
||||
// routeTemplate: "apik/{controller}/{qual_id}",
|
||||
// defaults: new { qual_id = System.Web.Http.RouteParameter.Optional }
|
||||
// );
|
||||
}
|
||||
|
||||
protected void Session_Start(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Application_BeginRequest(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Application_AuthenticateRequest(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Application_Error(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Session_End(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Application_End(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
294
Safety/HPH/ApproveNoInternalCheck.aspx
Normal file
294
Safety/HPH/ApproveNoInternalCheck.aspx
Normal file
|
|
@ -0,0 +1,294 @@
|
|||
<%@ Page Title="Approval" Language="C#" MasterPageFile="~/Masters/Site.master" AutoEventWireup="true" CodeBehind="ApproveNoInternalCheck.aspx.cs" Inherits="safety.HPH.ApproveNoInternalCheck" MaintainScrollPositionOnPostback="true" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
|
||||
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="False" AutoGenerateEditColumn="True" CellSpacing="-1" GridLines="Both" GroupPanelPosition="Top" AllowFilteringByColumn="True" AllowSorting="True">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
|
||||
<ExportSettings>
|
||||
<Pdf PageWidth="">
|
||||
</Pdf>
|
||||
</ExportSettings>
|
||||
<MasterTableView DataSourceID="SqlDataSource1" AllowAutomaticUpdates="True">
|
||||
<ColumnGroups>
|
||||
<telerik:GridColumnGroup Name="Freq" HeaderText="HPH" HeaderStyle-HorizontalAlign="Center">
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
</telerik:GridColumnGroup>
|
||||
<telerik:GridColumnGroup Name="Grid" HeaderText="Grid " HeaderStyle-HorizontalAlign="Center">
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
</telerik:GridColumnGroup>
|
||||
<telerik:GridColumnGroup Name="Excep" HeaderText="Exception Request" HeaderStyle-HorizontalAlign="Center">
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
</telerik:GridColumnGroup>
|
||||
<telerik:GridColumnGroup Name="Mentor" HeaderText="Mentor/Chef" HeaderStyle-HorizontalAlign="Center">
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
</telerik:GridColumnGroup>
|
||||
</ColumnGroups>
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="ID" HeaderText="ID" SortExpression="ID" UniqueName="ID" DataType="System.Int32" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="done" HeaderText="Done" ReadOnly="True" SortExpression="done" UniqueName="done" DataType="System.Byte" Visible="false" AllowFiltering="false" />
|
||||
<telerik:GridBoundColumn DataField="persid" HeaderText="persid" ReadOnly="True" SortExpression="persid" UniqueName="persid" DataType="System.Int32" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="name" HeaderText="name" SortExpression="name" UniqueName="name" ReadOnly="True" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" HeaderStyle-Width="150px" FilterControlWidth="120px">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="companyname" HeaderText="companyname" SortExpression="companyname" UniqueName="companyname" ReadOnly="True" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" HeaderStyle-Width="150px" FilterControlWidth="120px">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridDateTimeColumn DataField="start" DataFormatString="{0:yyyy-MM-dd}" HeaderText="Start" ReadOnly="True" UniqueName="start" ItemStyle-Width="100px" HeaderStyle-Width="100px" FilterControlWidth="100px" ItemStyle-Wrap="false">
|
||||
<HeaderStyle Width="100px"></HeaderStyle>
|
||||
<ItemStyle Wrap="False" Width="100px"></ItemStyle>
|
||||
</telerik:GridDateTimeColumn>
|
||||
|
||||
<telerik:GridTemplateColumn HeaderText="Cat" UniqueName="mCat" AllowFiltering="false" HeaderStyle-Width="50px" >
|
||||
<ItemTemplate>
|
||||
<%# Eval("mCat") %>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="rcCat" runat="server" SelectedValue='<%# Bind("mCat") %>'>
|
||||
<Items>
|
||||
<telerik:RadComboBoxItem Value="" Text="-" />
|
||||
<telerik:RadComboBoxItem Value="A" Text="A" />
|
||||
<telerik:RadComboBoxItem Value="B" Text="B" />
|
||||
</Items>
|
||||
</telerik:RadComboBox>
|
||||
</EditItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
|
||||
<telerik:GridBoundColumn DataField="wbc" DataType="System.Byte" HeaderText="wbc" SortExpression="wbc" UniqueName="wbc" HeaderStyle-Width="50px" ColumnGroupName="Freq" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="lung" DataType="System.Byte" HeaderText="lung" SortExpression="lung" UniqueName="lung" HeaderStyle-Width="50px" ColumnGroupName="Freq" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="thy" DataType="System.Byte" HeaderText="thy" SortExpression="thy" UniqueName="thy" HeaderStyle-Width="50px" ColumnGroupName="Freq" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Pu" DataType="System.Byte" HeaderText="Pu" SortExpression="Pu" UniqueName="Pu" HeaderStyle-Width="50px" ColumnGroupName="Freq" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Am" DataType="System.Byte" HeaderText="Am" SortExpression="Am" UniqueName="Am" HeaderStyle-Width="50px" ColumnGroupName="Freq" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="U" DataType="System.Byte" HeaderText="U" SortExpression="U" UniqueName="U" HeaderStyle-Width="50px" ColumnGroupName="Freq" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Tr" DataType="System.Byte" HeaderText="Tr" SortExpression="Tr" UniqueName="Tr" HeaderStyle-Width="50px" ColumnGroupName="Freq" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Po" HeaderText="Po" SortExpression="Po" UniqueName="Po" DataType="System.Byte" HeaderStyle-Width="50px" ColumnGroupName="Freq" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="Th" HeaderText="Th" SortExpression="Th" UniqueName="Th" DataType="System.Byte" HeaderStyle-Width="50px" ColumnGroupName="Freq" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="other" DataType="System.Byte" HeaderText="other" SortExpression="other" UniqueName="other" HeaderStyle-Width="50px" ColumnGroupName="Freq" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
|
||||
<telerik:GridBoundColumn DataField="mCatOr" DataType="System.String" HeaderText="Cat" SortExpression="mCatOr" UniqueName="mCatOr" ReadOnly="True" HeaderStyle-Width="50px" ColumnGroupName="Grid" AllowFiltering="false">
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="wbcOr" DataType="System.Byte" HeaderText="Wbc" SortExpression="wbcOr" UniqueName="wbcOr" ReadOnly="True" HeaderStyle-Width="50px" ColumnGroupName="Grid" AllowFiltering="false">
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="lungOr" HeaderText="Lung" SortExpression="lung" UniqueName="lungOr" DataType="System.Byte" ReadOnly="True" HeaderStyle-Width="50px" ColumnGroupName="Grid" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="thyOr" DataType="System.Byte" HeaderText="Thy" SortExpression="thyOr" UniqueName="thyOr" ReadOnly="True" HeaderStyle-Width="50px" ColumnGroupName="Grid" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="PuOr" HeaderText="Pu" ReadOnly="True" SortExpression="PuOr" UniqueName="PuOr" DataType="System.Byte" HeaderStyle-Width="50px" ColumnGroupName="Grid" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="AmOr" DataType="System.Byte" HeaderText="Am" ReadOnly="True" SortExpression="AmOr" UniqueName="AmOr" HeaderStyle-Width="50px" ColumnGroupName="Grid" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="UOr" DataType="System.Byte" HeaderText="U" ReadOnly="True" SortExpression="UOr" UniqueName="UOr" HeaderStyle-Width="50px" ColumnGroupName="Grid" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="TrOr" DataType="System.Byte" HeaderText="Tr" ReadOnly="True" SortExpression="TrOr" UniqueName="TrOr" HeaderStyle-Width="50px" ColumnGroupName="Grid" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="PoOr" DataType="System.Byte" HeaderText="Po" ReadOnly="True" SortExpression="PoOr" UniqueName="PoOr" HeaderStyle-Width="50px" ColumnGroupName="Grid" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="ThOr" DataType="System.Byte" HeaderText="Th" ReadOnly="True" SortExpression="ThOr" UniqueName="ThOr" HeaderStyle-Width="50px" ColumnGroupName="Grid" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
|
||||
<telerik:GridBoundColumn DataField="otherOr" DataType="System.Byte" HeaderText="other" ReadOnly="True" SortExpression="otherOr" UniqueName="otherOr" HeaderStyle-Width="50px" ColumnGroupName="Grid" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
<HeaderStyle Width="50px"></HeaderStyle>
|
||||
</telerik:GridBoundColumn>
|
||||
|
||||
<telerik:GridDateTimeColumn DataField="OrChanged" DataFormatString="{0:yyyy-MM-dd}" HeaderText="Changed" ReadOnly="True" SortExpression="OrChanged" UniqueName="OrChanged" HeaderStyle-Width="80px" ColumnGroupName="Grid" ItemStyle-Wrap="false" AllowFiltering="false">
|
||||
<HeaderStyle Width="80px"></HeaderStyle>
|
||||
<ItemStyle Wrap="False"></ItemStyle>
|
||||
</telerik:GridDateTimeColumn>
|
||||
|
||||
<telerik:GridCheckBoxColumn DataField="otherReason" DataType="System.Boolean" HeaderText="Extra Control" ReadOnly="True" SortExpression="otherReason" UniqueName="otherReason" ColumnGroupName="Excep" AllowFiltering="false">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="OtherIsotopes" DataType="System.Boolean" HeaderText="OtherIsotopes" ReadOnly="True" SortExpression="OtherIsotopes" UniqueName="OtherIsotopes" ColumnGroupName="Excep" AllowFiltering="false" />
|
||||
<telerik:GridBoundColumn DataField="Isotopes" HeaderText="Isotopes" ReadOnly="True" SortExpression="Isotopes" UniqueName="Isotopes" ColumnGroupName="Excep" />
|
||||
<telerik:GridCheckBoxColumn DataField="NoInternal" DataType="System.Boolean" HeaderText="No Internal" ReadOnly="False" SortExpression="NoInternal" UniqueName="NoInternal" ColumnGroupName="Excep" AllowFiltering="false">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridBoundColumn DataField="ReasonNoIn" HeaderText="Reason" ReadOnly="True" SortExpression="ReasonNoIn" UniqueName="ReasonNoIn" ColumnGroupName="Excep" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="changed" DataType="System.DateTime" HeaderText="changed" ReadOnly="True" SortExpression="changed" UniqueName="changed">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="Override" DataType="System.Boolean" HeaderText="Override" SortExpression="Override" UniqueName="Override" DefaultInsertValue="true" AllowFiltering="false">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridCheckBoxColumn DataField="Denied" DataType="System.Boolean" HeaderText="Denied" SortExpression="Denied" UniqueName="Denied" AllowFiltering="false">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridTemplateColumn HeaderText="Med Remark" UniqueName="catRemark">
|
||||
<ItemTemplate>
|
||||
<%# Eval("catRemark") %>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<telerik:RadTextBox ID="tcatRemark" runat="server" Text='<%# Bind("catRemark") %>' Width="300px" MaxLength="1000" TextMode="MultiLine" Rows="3" Resize="Both" />
|
||||
</EditItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
|
||||
<telerik:GridBoundColumn DataField="HphChecked" DataType="System.DateTime" HeaderText="HphChecked" ReadOnly="True" SortExpression="HphChecked" UniqueName="HphChecked" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
<telerik:GridBoundColumn DataField="HphCheckedBy" HeaderText="HphCheckedBy" ReadOnly="True" SortExpression="HphCheckedBy" UniqueName="HphCheckedBy" AllowFiltering="false">
|
||||
<ColumnValidationSettings>
|
||||
<ModelErrorMessage Text="" />
|
||||
</ColumnValidationSettings>
|
||||
</telerik:GridBoundColumn>
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
|
||||
ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>"
|
||||
SelectCommand="[frm].[RequestOtherFreqSelect]" SelectCommandType="StoredProcedure"
|
||||
UpdateCommand="[frm].[RequestOtherFreqUpdate]" UpdateCommandType="StoredProcedure"
|
||||
CancelSelectOnNullParameter="False">
|
||||
<SelectParameters>
|
||||
<asp:QueryStringParameter Name="persid" QueryStringField="persid" Type="Int32" />
|
||||
<asp:QueryStringParameter Name="Request" QueryStringField="rq" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" />
|
||||
<asp:Parameter Name="ID" Type="Int32" />
|
||||
<asp:Parameter Name="wbc" Type="Byte" />
|
||||
<asp:Parameter Name="lung" Type="Byte" />
|
||||
<asp:Parameter Name="thy" Type="Byte" />
|
||||
<asp:Parameter Name="Pu" Type="Byte" />
|
||||
<asp:Parameter Name="Am" Type="Byte" />
|
||||
<asp:Parameter Name="U" Type="Byte" />
|
||||
<asp:Parameter Name="Tr" Type="Byte" />
|
||||
<asp:Parameter Name="Po" Type="Byte" />
|
||||
<asp:Parameter Name="Th" Type="Byte" />
|
||||
<asp:Parameter Name="other" Type="Byte" />
|
||||
<asp:Parameter Name="mCat" Type="String" />
|
||||
<asp:Parameter Name="wbcOr" Type="Byte" />
|
||||
<asp:Parameter Name="lungOr" Type="Byte" />
|
||||
<asp:Parameter Name="thyOr" Type="Byte" />
|
||||
<asp:Parameter Name="PuOr" Type="Byte" />
|
||||
<asp:Parameter Name="AmOr" Type="Byte" />
|
||||
<asp:Parameter Name="UOr" Type="Byte" />
|
||||
<asp:Parameter Name="TrOr" Type="Byte" />
|
||||
<asp:Parameter Name="PoOr" Type="Byte" />
|
||||
<asp:Parameter Name="ThOr" Type="Byte" />
|
||||
<asp:Parameter Name="otherOr" Type="Byte" />
|
||||
<asp:Parameter Name="mCatOr" Type="String" />
|
||||
<asp:Parameter Name="OrChanged" Type="DateTime" />
|
||||
<asp:Parameter Name="otherReason" Type="Boolean" />
|
||||
<asp:Parameter Name="OtherIsotopes" Type="Boolean" />
|
||||
<asp:Parameter Name="Isotopes" Type="String" />
|
||||
<asp:Parameter Name="NoInternal" Type="Boolean" />
|
||||
<asp:Parameter Name="ReasonNoIn" Type="String" />
|
||||
<asp:Parameter Name="changed" Type="DateTime" />
|
||||
<asp:Parameter Name="Override" Type="Boolean" />
|
||||
<asp:Parameter Name="Denied" Type="Boolean" />
|
||||
<asp:Parameter Name="HphChecked" Type="DateTime" />
|
||||
<asp:Parameter Name="HphCheckedBy" Type="String" />
|
||||
<asp:Parameter Name="catRemark" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
</asp:Content>
|
||||
17
Safety/HPH/ApproveNoInternalCheck.aspx.cs
Normal file
17
Safety/HPH/ApproveNoInternalCheck.aspx.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety.HPH
|
||||
{
|
||||
public partial class ApproveNoInternalCheck : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Approval for other or no internal examination");
|
||||
}
|
||||
}
|
||||
}
|
||||
35
Safety/HPH/ApproveNoInternalCheck.aspx.designer.cs
generated
Normal file
35
Safety/HPH/ApproveNoInternalCheck.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.HPH
|
||||
{
|
||||
|
||||
|
||||
public partial class ApproveNoInternalCheck
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// RadGrid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid RadGrid1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource1;
|
||||
}
|
||||
}
|
||||
669
Safety/HPH/HPHApprove.aspx
Normal file
669
Safety/HPH/HPHApprove.aspx
Normal file
|
|
@ -0,0 +1,669 @@
|
|||
<%@ Page Title="MOVED toegang !!HPH Approve" Language="C#" MasterPageFile="~/Masters/Site.master" AutoEventWireup="true" CodeBehind="HPHApprove.aspx.cs" Inherits="safety.HPH.HPHApprove" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<div style="width: 65%; float: left">
|
||||
<telerik:RadDataForm ID="RadDataForm1" runat="server" CssClass="rdfLeftAligned rdfNoFieldHint" DataKeyNames="ID" DataSourceID="SqlDataSource1" OnItemCommand="RadDataForm1_ItemCommand" Width="100%">
|
||||
<LayoutTemplate>
|
||||
<div class="RadDataForm RadDataForm_<%# Container.Skin %> rdfLeftAligned rdfNoFieldHint">
|
||||
<div id="itemPlaceholder" runat="server">
|
||||
</div>
|
||||
<div style="display: none">
|
||||
<telerik:RadCalendar ID="rdfSharedCalendar" runat="server" RangeMinDate="<%#new DateTime(1900, 1, 1) %>" />
|
||||
</div>
|
||||
<div style="display: none">
|
||||
<telerik:RadTimeView ID="rdfSharedTimeView" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</LayoutTemplate>
|
||||
<ItemTemplate >
|
||||
<fieldset class="rdfFieldset rdfBorders" >
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<fieldset>
|
||||
<table>
|
||||
<tr>
|
||||
<th style="text-align:left;">
|
||||
<asp:Label ID="IDLabel2" runat="server" CssClass="rdfLabel" Text="RF"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="IDLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("ID") %>' />
|
||||
</td>
|
||||
<th>
|
||||
<asp:Label ID="startLabel2" runat="server" CssClass="rdfLabel" Text="start"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="startLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("start","{0:yyyy-MM-dd}") %>' />
|
||||
</td>
|
||||
<th>
|
||||
<asp:Label ID="eindeLabel2" runat="server" CssClass="rdfLabel" Text="einde"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="eindeLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("einde","{0:yyyy-MM-dd}") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<asp:Label ID="persidLabel2" runat="server" CssClass="rdfLabel" Text="persid"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="persidLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("persid") %>' />
|
||||
</td>
|
||||
<th>
|
||||
<asp:Label ID="nameLabel2" runat="server" CssClass="rdfLabel" Text="name"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="nameLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("name") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<asp:Label ID="companynameLabel2" runat="server" CssClass="rdfLabel" Text="companyname"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="companynameLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("companyname") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<fieldset>
|
||||
<table>
|
||||
<tr style="background-color: lightgray">
|
||||
<th>
|
||||
<asp:Label ID="Label26" runat="server" CssClass="rdfLabel" Text=""></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="wbcLabel2" runat="server" CssClass="rdfLabel" Text="wbc"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="lungLabel2" runat="server" CssClass="rdfLabel" Text="lung"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="thyLabel2" runat="server" CssClass="rdfLabel" Text="thy"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="PuLabel2" runat="server" CssClass="rdfLabel" Text="Pu"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="AmLabel2" runat="server" CssClass="rdfLabel" Text="Am"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="ULabel2" runat="server" CssClass="rdfLabel" Text="U"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="TrLabel2" runat="server" CssClass="rdfLabel" Text="Tr"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="PoLabel2" runat="server" CssClass="rdfLabel" Text="Po"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="ThLabel2" runat="server" CssClass="rdfLabel" Text="Th"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="otherLabel2" runat="server" CssClass="rdfLabel" Text="other"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="mCatLabel2" runat="server" CssClass="rdfLabel" Text="Cat"></asp:Label>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<asp:Label ID="Label27" runat="server" CssClass="rdfFieldValue" Text="Manual" />
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="wbcLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("wbc") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="lungLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("lung") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="thyLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("thy") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="PuLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("Pu") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="AmLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("Am") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="ULabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("U") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="TrLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("Tr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="PoLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("Po") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="ThLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("Th") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="otherLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("other") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="CatLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("mCat") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: gray; font-style: oblique;">
|
||||
<th>
|
||||
<asp:Label ID="Label28" runat="server" CssClass="rdfFieldValue" Text="Grid" />
|
||||
</th>
|
||||
|
||||
<td>
|
||||
<asp:Label ID="Label1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("wbcOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label2" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("lungOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label3" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("thyOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label4" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("PuOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label5" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("AmOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label6" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("UOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label7" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("TrOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label8" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("PoOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label34" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("ThOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label9" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("otherOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label33" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("mCatOr") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table><br />
|
||||
<asp:label ID="Label30" runat="server" Text="Opmerking" AssociatedControlID="tOpmerking" /><br />
|
||||
<asp:TextBox ID="tOpmerking" runat="server" Width="100%" Text='<%# Eval("Remark") %>' AutoPostBack="False" ReadOnly="true"/>
|
||||
|
||||
|
||||
<asp:label ID="Label31" runat="server" Text="Opmerking Agamas" AssociatedControlID="bOpmerking" /><br />
|
||||
<asp:TextBox ID="bOpmerking" runat="server" Width="100%" Text='<%# Eval("bRemark") %>' AutoPostBack="False"/>
|
||||
|
||||
|
||||
<asp:label ID="Label32" runat="server" Text="Opmerking LRM" AssociatedControlID="uOpmerking" /><br />
|
||||
<asp:TextBox ID="uOpmerking" runat="server" Width="100%" Text='<%# Eval("uRemark") %>' AutoPostBack="False"/>
|
||||
|
||||
<asp:label ID="Label35" runat="server" Text="Opmerking Medic" AssociatedControlID="mOpmerking" /><br />
|
||||
<asp:TextBox ID="mOpmerking" runat="server" Width="100%" Text='<%# Eval("catRemark") %>' AutoPostBack="False"/>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<hr />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<fieldset>
|
||||
<asp:label ID="li_163" runat="server" Text="Andere isotopen" AssociatedControlID="tb_163" /><br />
|
||||
<asp:TextBox ID="tb_163" runat="server" Width="100%" Text='<%# Eval("Isotopes") %>' AutoPostBack="False"/>
|
||||
<asp:Checkbox ID="otherReasonCheckBox" runat="server" Checked='<%# BoolNullIsFalse(Eval("otherReason")) %>' Enabled="false" Text="Zijn er andere redenen" TextAlign="Right" /><br />
|
||||
<asp:Checkbox ID="cb_165" runat="server" Text="Geen inwendig onderzoek noodzakelijk" Checked='<%# BoolNullIsFalse(Eval("NoInternal")) %>' AutoPostBack="False" TextAlign="Right" />
|
||||
<telerik:RadTextBox ID="tb_165" runat="server" Label="Reden" Text='<%# Eval("ReasonNoIn") %>' LabelCssClass="RedenRed" TextMode="MultiLine" Width="100%" LabelWidth="25%" AutoPostBack="False" />
|
||||
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<fieldset>
|
||||
<asp:CheckBox runat="server" Text="Werkt met handshoenkast" TextAlign="Right" Checked='<%# Eval("Handschoenkast") %>' /><br />
|
||||
<asp:CheckBox runat="server" Text="Risico 1mSv/maand" TextAlign="Right" Checked='<%# Eval("1mSv") %>' /><br />
|
||||
<asp:CheckBox runat="server" Text="Meer dan 10x/jaar in zone" TextAlign="Right" Checked='<%# Eval("10Times") %>' /><br />
|
||||
<asp:Label runat="server" Text="Nrs van de labo's waar de persoon zal werken" AssociatedControlID="tb_159" /></label><br />
|
||||
<asp:TextBox ID="tb_159" runat="server" Text='<%# Eval("Labs") %>' Width="100%" Resize="Both" AutoPostBack="False" /><br />
|
||||
<asp:label ID="Literal4" runat="server" Text="Aard van het uit te voeren werk" AssociatedControlID="tb_160" /><br />
|
||||
<asp:TextBox ID="tb_160" runat="server" Text='<%# Eval("extraWerk") %>' Width="100%" AutoPostBack="False" /><br />
|
||||
<asp:Label ID="Literal5" runat="server" Text="Aard en activiteitsniveau van de gewoonlijk behandelde radioactieve producten" AssociatedControlID="tb_161" /><br />
|
||||
<asp:TextBox ID="tb_161" runat="server" Text='<%# Eval("rProduct") %>' Width="100%" AutoPostBack="False" /><br />
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<fieldset>
|
||||
<table>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
<asp:Label ID="changedLabel2" runat="server" AssociatedControlID="changedLabel1" CssClass="rdfLabel" Text="Changed on"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="changedLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("changed") %>' />
|
||||
</td>
|
||||
<th style="text-align: left;">
|
||||
<asp:Label ID="OverrideLabel2" runat="server" AssociatedControlID="OverrideCheckBox" Text="Override"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:CheckBox ID="OverrideCheckBox" runat="server" Checked='<%# BoolNullIsFalse(Eval("Override")) %>' Enabled="false" />
|
||||
</td>
|
||||
<th style="text-align: left;">
|
||||
<asp:Label ID="DeniedLabel2" runat="server" AssociatedControlID="DeniedCheckBox" Text="Denied"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:CheckBox ID="DeniedCheckBox" runat="server" Checked='<%# BoolNullIsFalse(Eval("Denied")) %>' Enabled="false" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
<asp:Label ID="HphCheckedLabel2" runat="server" AssociatedControlID="HphCheckedLabel1" Text="Hph Checked"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="HphCheckedLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("HphChecked","{0:yyyy-MM-dd}") %>' />
|
||||
</td>
|
||||
<th style="text-align: left;">
|
||||
<asp:Label ID="HphCheckedByLabel2" runat="server" AssociatedControlID="HphCheckedByLabel1" Text="By"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="HphCheckedByLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("HphCheckedBy") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<hr />
|
||||
<div class="rdfCommandButtons">
|
||||
<telerik:RadButton ID="EditButton" runat="server" ButtonType="SkinnedButton" CausesValidation="False" CommandName="Edit" Text="Edit" ToolTip="Edit" />
|
||||
</div>
|
||||
</fieldset>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<fieldset class="rdfFieldset rdfBorders">
|
||||
<legend class="rdfLegend">Edit</legend>
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<fieldset>
|
||||
<table>
|
||||
<tr>
|
||||
<th>
|
||||
<asp:Label ID="Label10" runat="server" CssClass="rdfLabel" Text="ID"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="Label11" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("ID") %>' />
|
||||
</td>
|
||||
<th>
|
||||
<asp:Label ID="Label12" runat="server" CssClass="rdfLabel" Text="start"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="startLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("start","{0:yyyy-MM-dd}") %>' />
|
||||
</td>
|
||||
<th>
|
||||
<asp:Label ID="Label13" runat="server" CssClass="rdfLabel" Text="einde"></asp:Label>
|
||||
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="eindeLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("einde","{0:yyyy-MM-dd}") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<asp:Label ID="Label14" runat="server" CssClass="rdfLabel" Text="persid"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="persidLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("persid") %>' />
|
||||
</td>
|
||||
<th>
|
||||
<asp:Label ID="Label15" runat="server" CssClass="rdfLabel" Text="name"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="nameLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("name") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<asp:Label ID="Label16" runat="server" CssClass="rdfLabel" Text="companyname"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="companynameLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("companyname") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<fieldset>
|
||||
<table>
|
||||
<tr style="background-color: lightgray;">
|
||||
<th></th>
|
||||
<th>
|
||||
<asp:Label ID="Label17" runat="server" CssClass="rdfLabel" Text="wbc"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="Label18" runat="server" CssClass="rdfLabel" Text="lung"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="Label19" runat="server" CssClass="rdfLabel" Text="thy"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="Label20" runat="server" CssClass="rdfLabel" Text="Pu"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="Label21" runat="server" CssClass="rdfLabel" Text="Am"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="Label22" runat="server" CssClass="rdfLabel" Text="U"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="Label23" runat="server" CssClass="rdfLabel" Text="Tr"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="Label24" runat="server" CssClass="rdfLabel" Text="Po"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="Label36" runat="server" CssClass="rdfLabel" Text="Th"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="Label25" runat="server" CssClass="rdfLabel" Text="other"></asp:Label>
|
||||
</th>
|
||||
<th>
|
||||
<asp:Label ID="Label37" runat="server" CssClass="rdfLabel" Text="Cat"></asp:Label>
|
||||
</th>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>
|
||||
<asp:Label ID="Label29" runat="server" CssClass="rdfFieldValue" Text="Manual" />
|
||||
</th>
|
||||
|
||||
|
||||
<td>
|
||||
<telerik:RadNumericTextBox ID="wbcTextBox" runat="server" DataType="Byte" DbValue='<%# Bind("wbc") %>' NumberFormat-DecimalDigits="0" WrapperCssClass="rdfInput" />
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadNumericTextBox ID="lungTextBox" runat="server" DataType="Byte" DbValue='<%# Bind("lung") %>' NumberFormat-DecimalDigits="0" WrapperCssClass="rdfInput" />
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadNumericTextBox ID="thyTextBox" runat="server" DataType="Byte" DbValue='<%# Bind("thy") %>' NumberFormat-DecimalDigits="0" WrapperCssClass="rdfInput" />
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadNumericTextBox ID="PuTextBox" runat="server" DataType="Byte" DbValue='<%# Bind("Pu") %>' NumberFormat-DecimalDigits="0" WrapperCssClass="rdfInput" />
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadNumericTextBox ID="AmTextBox" runat="server" DataType="Byte" DbValue='<%# Bind("Am") %>' NumberFormat-DecimalDigits="0" WrapperCssClass="rdfInput" />
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadNumericTextBox ID="UTextBox" runat="server" DataType="Byte" DbValue='<%# Bind("U") %>' NumberFormat-DecimalDigits="0" WrapperCssClass="rdfInput" />
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadNumericTextBox ID="TrTextBox" runat="server" DataType="Byte" DbValue='<%# Bind("Tr") %>' NumberFormat-DecimalDigits="0" WrapperCssClass="rdfInput" />
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadNumericTextBox ID="PoTextBox" runat="server" DataType="Byte" DbValue='<%# Bind("Po") %>' NumberFormat-DecimalDigits="0" WrapperCssClass="rdfInput" />
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadNumericTextBox ID="ThTextBox" runat="server" DataType="Byte" DbValue='<%# Bind("Th") %>' NumberFormat-DecimalDigits="0" WrapperCssClass="rdfInput" />
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadNumericTextBox ID="otherTextBox" runat="server" DataType="Byte" DbValue='<%# Bind("other") %>' NumberFormat-DecimalDigits="0" WrapperCssClass="rdfInput" />
|
||||
</td>
|
||||
<td>
|
||||
<telerik:RadTextBox ID="catTextBox" runat="server" Text='<%# Bind("mCat") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: gray; font-style: oblique;">
|
||||
<th>
|
||||
<asp:Label ID="Label28" runat="server" CssClass="rdfFieldValue" Text="Grid" />
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="Label1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("wbcOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label2" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("lungOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label3" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("thyOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label4" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("PuOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label5" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("AmOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label6" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("UOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label7" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("TrOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label38" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("ThOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label8" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("PoOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label9" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("otherOr") %>' />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="Label39" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("mCatOr") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:label ID="Label30" runat="server" Text="Opmerking" AssociatedControlID="tOpmerking" /><br />
|
||||
<asp:TextBox ID="tOpmerking" runat="server" Width="100%" Text='<%# Bind("Remark") %>' AutoPostBack="False"/>
|
||||
|
||||
<asp:label ID="Label31" runat="server" Text="Opmerking Agamas" AssociatedControlID="bOpmerking" /><br />
|
||||
<asp:TextBox ID="bOpmerking" runat="server" Width="100%" Text='<%# Bind("bRemark") %>' AutoPostBack="False"/>
|
||||
|
||||
|
||||
<asp:label ID="Label32" runat="server" Text="Opmerking LRM" AssociatedControlID="uOpmerking" /><br />
|
||||
<asp:TextBox ID="uOpmerking" runat="server" Width="100%" Text='<%# Bind("uRemark") %>' AutoPostBack="False"/>
|
||||
|
||||
<asp:label ID="Label40" runat="server" Text="Opmerking Medic" AssociatedControlID="mOpmerking" /><br />
|
||||
<asp:TextBox ID="mOpmerking" runat="server" Width="100%" Text='<%# Bind("catRemark") %>' AutoPostBack="False"/>
|
||||
|
||||
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<hr />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<fieldset>
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<th colspan="1" style="text-align: left;">
|
||||
<asp:Label ID="OtherIsotopesLabel2" runat="server" AssociatedControlID="OtherIsotopesCheckBox" Text="Behandelt de volgende isotopen"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:CheckBox ID="OtherIsotopesCheckBox" runat="server" Checked='<%# BoolNullIsFalse(Eval("OtherIsotopes")) %>' Enabled="false" />
|
||||
</td>
|
||||
<th style="text-align: left;">
|
||||
<asp:Label ID="IsotopesLabel2" runat="server" AssociatedControlID="IsotopesLabel1" Text="Isotopes:"></asp:Label>
|
||||
</th>
|
||||
<td style="text-align: left;">
|
||||
<asp:Label ID="IsotopesLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("Isotopes") %>' BorderStyle="Solid" BorderWidth="1px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="1" style="text-align: left;">
|
||||
<asp:Label ID="otherReasonLabel2" runat="server" AssociatedControlID="otherReasonCheckBox" Text="Zijn er andere redenen voor inwendige monitoring ?"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<telerik:RadCheckBox ID="otherReasonCheckBox" runat="server" Checked='<%# BoolNullIsFalse(Eval("otherReason")) %>' Enabled="false" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
<asp:Label ID="NoInternalLabel2" runat="server" AssociatedControlID="NoInternalCheckBox" Text="Is er een reden om geen interne meting te doen?"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:CheckBox ID="NoInternalCheckBox" runat="server" Checked='<%# BoolNullIsFalse(Eval("NoInternal")) %>' Enabled="false" />
|
||||
</td>
|
||||
<th style="text-align: left;">
|
||||
<asp:Label ID="ReasonNoInLabel2" runat="server" AssociatedControlID="ReasonNoInLabel1" Text="justificatie:"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="ReasonNoInLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("ReasonNoIn") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<fieldset>
|
||||
<table>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
<asp:Label ID="changedLabel2" runat="server" AssociatedControlID="changedLabel1" CssClass="rdfLabel" Text="changed"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="changedLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("changed") %>' />
|
||||
</td>
|
||||
<th style="text-align: left;">
|
||||
<asp:Label ID="OverrideLabel2" runat="server" AssociatedControlID="OverrideCheckBox" Text="Override"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# BoolNullIsFalse(Eval("Override")) %>' Enabled="false" />
|
||||
</td>
|
||||
<th style="text-align: left;">
|
||||
<asp:Label ID="DeniedLabel2" runat="server" AssociatedControlID="DeniedCheckBox" Text="Denied"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:CheckBox ID="CheckBox2" runat="server" Checked='<%# BoolNullIsFalse(Eval("Denied")) %>' Enabled="false" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
<asp:Label ID="HphCheckedLabel2" runat="server" AssociatedControlID="HphCheckedLabel1" Text="Hph Checked"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="HphCheckedLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("HphChecked","{0:yyyy-MM-dd}") %>' />
|
||||
</td>
|
||||
<th style="text-align: left;">
|
||||
<asp:Label ID="HphCheckedByLabel2" runat="server" AssociatedControlID="HphCheckedByLabel1" Text="By"></asp:Label>
|
||||
</th>
|
||||
<td>
|
||||
<asp:Label ID="HphCheckedByLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("HphCheckedBy") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<asp:CheckBox ID="DeniedCheckBox" runat="server" Checked='<%# Bind("Denied") %>' Enabled="true" Visible="false" />
|
||||
<asp:CheckBox ID="OverrideCheckBox" runat="server" Checked='<%# Bind("Override") %>' Enabled="true" Visible="false" />
|
||||
<br />
|
||||
<hr />
|
||||
<div class="rdfCommandButtons">
|
||||
<telerik:RadButton ID="ApproveButton" runat="server" ButtonType="SkinnedButton" CommandName="Approve" Text="Approve" ToolTip="Approve" />
|
||||
<telerik:RadButton ID="DisapproveButton" runat="server" ButtonType="SkinnedButton" CommandName="Disapprove" Text="Disapprove" ToolTip="Disapprove" />
|
||||
<telerik:RadButton ID="CancelButton" runat="server" ButtonType="SkinnedButton" CommandName="Cancel" Text="Cancel" ToolTip="Cancel" />
|
||||
</div>
|
||||
</fieldset>
|
||||
</EditItemTemplate>
|
||||
<EmptyDataTemplate>
|
||||
<div class="RadDataForm RadDataForm_<%# Container.Skin %>">
|
||||
<div class="rdfEmpty">
|
||||
There are no items to be displayed.
|
||||
</div>
|
||||
</div>
|
||||
</EmptyDataTemplate>
|
||||
</telerik:RadDataForm>
|
||||
</div>
|
||||
<div style="width: 34%; float: left;">
|
||||
<telerik:RadGrid runat="server" ID="rg2" DataSourceID="SqlDataSource2" GroupPanelPosition="Top" AutoGenerateColumns="False">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="False" MainTableCaption="Personal history"></GroupingSettings>
|
||||
<ExportSettings FileName="PersonHist">
|
||||
</ExportSettings>
|
||||
<MasterTableView DataSourceID="SqlDataSource2" Caption="Personal history">
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="changedate" DataType="System.DateTime" HeaderText="Changed" SortExpression="changedate" UniqueName="changedate" />
|
||||
<telerik:GridBoundColumn DataField="WBC" DataType="System.Int32" HeaderText="Antropo" SortExpression="WBC" UniqueName="WBC" />
|
||||
<telerik:GridBoundColumn DataField="Urine" DataType="System.Int32" HeaderText="Urine" SortExpression="Urine" UniqueName="Urine" />
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
</div>
|
||||
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
|
||||
ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>"
|
||||
SelectCommand="HPGApproveRFSelect" SelectCommandType="StoredProcedure"
|
||||
UpdateCommand="HPGApproveRFUpdate" UpdateCommandType="StoredProcedure" >
|
||||
<SelectParameters>
|
||||
<asp:QueryStringParameter DefaultValue="45" Name="id" QueryStringField="docaID" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="ID" Type="Int32" />
|
||||
<asp:Parameter Name="wbc" Type="Byte" />
|
||||
<asp:Parameter Name="lung" Type="Byte" />
|
||||
<asp:Parameter Name="thy" Type="Byte" />
|
||||
<asp:Parameter Name="Pu" Type="Byte" />
|
||||
<asp:Parameter Name="Am" Type="Byte" />
|
||||
<asp:Parameter Name="U" Type="Byte" />
|
||||
<asp:Parameter Name="Tr" Type="Byte" />
|
||||
<asp:Parameter Name="Po" Type="Byte" />
|
||||
<asp:Parameter Name="Th" Type="Byte" />
|
||||
<asp:Parameter Name="other" Type="Byte" />
|
||||
<asp:Parameter Name="mCat" Type="String" />
|
||||
<asp:Parameter Name="wbcOr" Type="Byte" />
|
||||
<asp:Parameter Name="lungOr" Type="Byte" />
|
||||
<asp:Parameter Name="thyOr" Type="Byte" />
|
||||
<asp:Parameter Name="PuOr" Type="Byte" />
|
||||
<asp:Parameter Name="AmOr" Type="Byte" />
|
||||
<asp:Parameter Name="UOr" Type="Byte" />
|
||||
<asp:Parameter Name="TrOr" Type="Byte" />
|
||||
<asp:Parameter Name="PoOr" Type="Byte" />
|
||||
<asp:Parameter Name="ThOr" Type="Byte" />
|
||||
<asp:Parameter Name="otherOr" Type="Byte" />
|
||||
<asp:Parameter Name="mCatOr" Type="String" />
|
||||
<asp:Parameter Name="OrChanged" Type="DateTime" />
|
||||
<asp:Parameter Name="otherReason" Type="Boolean" />
|
||||
<asp:Parameter Name="OtherIsotopes" Type="Boolean" />
|
||||
<asp:Parameter Name="Isotopes" Type="String" />
|
||||
<asp:Parameter Name="NoInternal" Type="Boolean" />
|
||||
<asp:Parameter Name="ReasonNoIn" Type="String" />
|
||||
<asp:Parameter Name="changed" Type="DateTime" />
|
||||
<asp:Parameter Name="Override" Type="Boolean" />
|
||||
<asp:Parameter Name="Denied" Type="Boolean" />
|
||||
<asp:Parameter Name="HphChecked" Type="DateTime" />
|
||||
<asp:Parameter Name="HphCheckedBy" Type="String" />
|
||||
<asp:Parameter Name="Remark" Type="String" />
|
||||
<asp:Parameter Name="bRemark" Type="String" />
|
||||
<asp:Parameter Name="uRemark" Type="String" />
|
||||
<asp:Parameter Name="catRemark" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="PersfrequencyPersonHistory" SelectCommandType="StoredProcedure" CancelSelectOnNullParameter="False">
|
||||
<SelectParameters>
|
||||
<asp:QueryStringParameter DefaultValue="13527" Name="persid" QueryStringField="persid" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:SqlDataSource>
|
||||
|
||||
</asp:Content>
|
||||
47
Safety/HPH/HPHApprove.aspx.cs
Normal file
47
Safety/HPH/HPHApprove.aspx.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Telerik.Web.UI;
|
||||
|
||||
namespace safety.HPH
|
||||
{
|
||||
public partial class HPHApprove : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(this.Master, "Approve exceptions");
|
||||
}
|
||||
|
||||
public bool BoolNullIsFalse ( object b)
|
||||
{
|
||||
if (b is bool && (bool)b) return true; else return false;
|
||||
}
|
||||
|
||||
protected void RadDataForm1_ItemCommand(object sender, Telerik.Web.UI.RadDataFormCommandEventArgs e)
|
||||
{
|
||||
CheckBox b = null;
|
||||
RadDataFormEditableItem editedItem = null;
|
||||
|
||||
editedItem = e.DataFormItem as RadDataFormEditableItem;
|
||||
switch (e.CommandName)
|
||||
{
|
||||
case "Approve":
|
||||
b = editedItem.FindControl("DeniedCheckBox") as CheckBox; b.Checked = false;
|
||||
b = editedItem.FindControl("OverrideCheckBox") as CheckBox; b.Checked = true;
|
||||
editedItem.FireCommandEvent("Update", e);
|
||||
break;
|
||||
case "DisApprove":
|
||||
b = editedItem.FindControl("DeniedCheckBox") as CheckBox; b.Checked = true;
|
||||
b = editedItem.FindControl("OverrideCheckBox") as CheckBox; b.Checked = false;
|
||||
editedItem.FireCommandEvent("Update", e);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
53
Safety/HPH/HPHApprove.aspx.designer.cs
generated
Normal file
53
Safety/HPH/HPHApprove.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.HPH
|
||||
{
|
||||
|
||||
|
||||
public partial class HPHApprove
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// RadDataForm1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadDataForm RadDataForm1;
|
||||
|
||||
/// <summary>
|
||||
/// rg2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid rg2;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource2;
|
||||
}
|
||||
}
|
||||
85
Safety/HPH/HphApprovePeople.aspx
Normal file
85
Safety/HPH/HphApprovePeople.aspx
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
<%@ Page Title="MOVED toegang !!HPH Exceptions People" Language="C#" MasterPageFile="~/Masters/Site.master" AutoEventWireup="true" CodeBehind="HphApprovePeople.aspx.cs" Inherits="safety.HPH.HphApprovePeople" MaintainScrollPositionOnPostback="true" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<fieldset>
|
||||
<telerik:RadLabel runat="server" ID="RadLabel1" AssociatedControlID="dChoice" Text="Soort"></telerik:RadLabel>
|
||||
<telerik:RadDropDownList runat="server" ID="dSoort" AutoPostBack="true">
|
||||
<Items>
|
||||
<telerik:DropDownListItem Value="" Text="Alles" />
|
||||
<telerik:DropDownListItem Value="E" Text="Extern" />
|
||||
<telerik:DropDownListItem Value="W" Text="Werknemer" Selected="true" />
|
||||
</Items>
|
||||
</telerik:RadDropDownList>
|
||||
|
||||
<telerik:RadLabel runat="server" ID="ldc" AssociatedControlID="dChoice" Text="Filter todo"></telerik:RadLabel>
|
||||
<telerik:RadDropDownList runat="server" ID="dChoice" AutoPostBack="true">
|
||||
<Items>
|
||||
<telerik:DropDownListItem Value="" Text="Alles" />
|
||||
<telerik:DropDownListItem Value="true" Text="To Do" Selected="true" />
|
||||
<telerik:DropDownListItem Value="false" Text="Done" />
|
||||
</Items>
|
||||
</telerik:RadDropDownList>
|
||||
</fieldset>
|
||||
<telerik:RadGrid runat="server" ID="rg1" DataSourceID="SqlDataSource1" GroupPanelPosition="Top" AllowFilteringByColumn="True" CellSpacing="-1" GridLines="Both" OnItemDataBound="rg1_ItemDataBound">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="false" />
|
||||
<MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1" AllowFilteringByColumn="True" DataKeyNames="persid">
|
||||
<DetailTables>
|
||||
<telerik:GridTableView runat="server" AllowFilteringByColumn="False" DataKeyNames="persid,id" DataSourceID="SqlDataSource2" CommandItemDisplay="Top" AllowPaging="True" PageSize="100" AutoGenerateColumns="false" Name="ChildGrid">
|
||||
<ParentTableRelation>
|
||||
<telerik:GridRelationFields DetailKeyField="persid" MasterKeyField="persid" />
|
||||
</ParentTableRelation>
|
||||
<CommandItemSettings ShowAddNewRecordButton="False" />
|
||||
<ColumnGroups>
|
||||
<telerik:GridColumnGroup HeaderText="Risc datasheet" Name="RF" HeaderStyle-HorizontalAlign="Center" />
|
||||
<telerik:GridColumnGroup HeaderText="Max. Frequency" Name="MaxFreq" HeaderStyle-HorizontalAlign="Center" />
|
||||
<telerik:GridColumnGroup HeaderText="Approval" Name="Approve" HeaderStyle-HorizontalAlign="Center" />
|
||||
|
||||
</ColumnGroups>
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="persid" DataType="System.Int32" HeaderText="persid" SortExpression="persid" UniqueName="persid" Visible="false" />
|
||||
<telerik:GridHyperLinkColumn DataType="System.Int32" HeaderText="RF" SortExpression="id" UniqueName="id" DataNavigateUrlFields="id,persid" DataNavigateUrlFormatString="~/HPH/HPHApprove.aspx?docaID={0}&persid={1}" DataTextField="id" DataTextFormatString="RF{0}" ColumnGroupName="RF" />
|
||||
<telerik:GridBoundColumn DataField="roleID" DataType="System.Int32" HeaderText="roleID" SortExpression="roleID" UniqueName="roleID" ColumnGroupName="RF" />
|
||||
<telerik:GridBoundColumn DataField="roleName" HeaderText="roleName" SortExpression="roleName" UniqueName="roleName" ColumnGroupName="RF" />
|
||||
<telerik:GridCheckBoxColumn DataField="checked" DataType="System.Boolean" HeaderText="checked" ReadOnly="True" SortExpression="checked" UniqueName="checked" ColumnGroupName="RF">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridBoundColumn DataField="text" HeaderText="text" ReadOnly="True" SortExpression="text" UniqueName="text" ColumnGroupName="RF" />
|
||||
<telerik:GridBoundColumn DataField="MaxWbcFreq" DataType="System.Int32" HeaderText="Wbc" SortExpression="MaxWbcFreq" UniqueName="MaxWbcFreq" ColumnGroupName="MaxFreq" />
|
||||
<telerik:GridBoundColumn DataField="MaxWbcFreqOr" DataType="System.Int32" HeaderText="Wbc Grid" SortExpression="MaxWbcFreqOr" UniqueName="MaxWbcFreqOr" ColumnGroupName="MaxFreq" />
|
||||
<telerik:GridBoundColumn DataField="MaxUrineFreq" DataType="System.Int32" HeaderText="Urine" SortExpression="MaxUrineFreq" UniqueName="MaxUrineFreq" ColumnGroupName="MaxFreq" />
|
||||
<telerik:GridBoundColumn DataField="MaxUrineFreqOr" DataType="System.Int32" HeaderText="Urine Grid" SortExpression="MaxUrineFreqOr" UniqueName="MaxUrineFreqOr" ColumnGroupName="MaxFreq" />
|
||||
<telerik:GridCheckBoxColumn DataField="AutoApprove" DataType="System.Boolean" HeaderText="Auto-Approve" ReadOnly="True" SortExpression="AutoApprove" UniqueName="AutoApprove" ColumnGroupName="Approve">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
<telerik:GridBoundColumn DataField="HphChecked" DataType="System.DateTime" HeaderText="Checked date" SortExpression="HphChecked" UniqueName="HphChecked" ColumnGroupName="Approve" />
|
||||
<telerik:GridBoundColumn DataField="HphCheckedBy" HeaderText="HphCheckedBy" SortExpression="Checked By" UniqueName="HphCheckedBy" ColumnGroupName="Approve" />
|
||||
<telerik:GridCheckBoxColumn DataField="toCheck" DataType="System.Boolean" HeaderText="To Check" ReadOnly="True" SortExpression="toCheck" UniqueName="toCheck" ColumnGroupName="Approve">
|
||||
</telerik:GridCheckBoxColumn>
|
||||
</Columns>
|
||||
</telerik:GridTableView>
|
||||
</DetailTables>
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="persid" DataType="System.Int32" HeaderText="persid" SortExpression="persid" UniqueName="persid" AllowFiltering="false" HeaderStyle-Width="80px" />
|
||||
<telerik:GridBoundColumn DataField="fullname" HeaderText="Fullname" ReadOnly="True" SortExpression="fullname" UniqueName="fullname" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" HeaderStyle-Width="150px" FilterControlWidth="120px" />
|
||||
<telerik:GridBoundColumn DataField="persGroup" HeaderText="persGroup" SortExpression="persGroup" UniqueName="persGroup" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" HeaderStyle-Width="60px" FilterControlWidth="30px" />
|
||||
<telerik:GridBoundColumn DataField="building" HeaderText="Building" SortExpression="building" UniqueName="building" AllowFiltering="false" />
|
||||
<telerik:GridBoundColumn DataField="toCheck" DataType="System.Int32" HeaderText="# items" ReadOnly="True" SortExpression="toCheck" UniqueName="toCheck" AllowFiltering="false" />
|
||||
<telerik:GridBoundColumn DataField="TotalRF" DataType="System.Int32" HeaderText="# of RF" ReadOnly="True" SortExpression="TotalRF" UniqueName="TotalRF" AllowFiltering="false" />
|
||||
<telerik:GridBoundColumn DataField="maxWbc" DataType="System.Int32" HeaderText="WBC" ReadOnly="True" SortExpression="maxWbc" UniqueName="maxWbc" AllowFiltering="false" />
|
||||
<telerik:GridBoundColumn DataField="maxUrine" DataType="System.Int32" HeaderText="Urine" ReadOnly="True" SortExpression="maxUrine" UniqueName="maxUrine" AllowFiltering="false" />
|
||||
</Columns>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<asp:SqlDataSource ID="SqlDataSource1" runat="server" CancelSelectOnNullParameter="False"
|
||||
ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="hphApprovePeople" SelectCommandType="StoredProcedure">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="dSoort" DefaultValue="" Name="soort" PropertyName="SelectedValue" Type="String" />
|
||||
<asp:ControlParameter ControlID="dChoice" Name="tocheck" PropertyName="SelectedValue" Type="Boolean" />
|
||||
</SelectParameters>
|
||||
</asp:SqlDataSource>
|
||||
<br />
|
||||
<asp:SqlDataSource ID="SqlDataSource2" runat="server" CancelSelectOnNullParameter="False" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" SelectCommand="hphApprovePersid" SelectCommandType="StoredProcedure">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="" Name="persid" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:SqlDataSource>
|
||||
|
||||
</asp:Content>
|
||||
37
Safety/HPH/HphApprovePeople.aspx.cs
Normal file
37
Safety/HPH/HphApprovePeople.aspx.cs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Telerik.Web.UI;
|
||||
|
||||
namespace safety.HPH
|
||||
{
|
||||
public partial class HphApprovePeople : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(this.Master, "Approve exceptions");
|
||||
}
|
||||
|
||||
protected void rg1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
|
||||
{
|
||||
//Visible="<%= Eval("hasCheckbox") %>"
|
||||
if (e.Item.DataItem is System.Data.DataRowView && e.Item.OwnerTableView.Name == "ChildGrid")
|
||||
{
|
||||
System.Data.DataRowView r = e.Item.DataItem as System.Data.DataRowView;
|
||||
var o = r.Row["hasCheckbox"];
|
||||
if (o is bool)
|
||||
{
|
||||
GridDataItem i = e.Item as GridDataItem;
|
||||
if (i != null)
|
||||
{
|
||||
CheckBox cb = i["checked"].Controls[0] as CheckBox;
|
||||
if (cb != null) cb.Visible = (bool)o;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
80
Safety/HPH/HphApprovePeople.aspx.designer.cs
generated
Normal file
80
Safety/HPH/HphApprovePeople.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.HPH
|
||||
{
|
||||
|
||||
|
||||
public partial class HphApprovePeople
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// RadLabel1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadLabel RadLabel1;
|
||||
|
||||
/// <summary>
|
||||
/// dSoort control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadDropDownList dSoort;
|
||||
|
||||
/// <summary>
|
||||
/// ldc control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadLabel ldc;
|
||||
|
||||
/// <summary>
|
||||
/// dChoice control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadDropDownList dChoice;
|
||||
|
||||
/// <summary>
|
||||
/// rg1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid rg1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource1;
|
||||
|
||||
/// <summary>
|
||||
/// SqlDataSource2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource2;
|
||||
}
|
||||
}
|
||||
101
Safety/HPH/OverrideMedic.aspx
Normal file
101
Safety/HPH/OverrideMedic.aspx
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
<%@ Page Title="MOVED! Override Medic" Language="C#" MasterPageFile="~/Masters/Site.master" AutoEventWireup="true" CodeBehind="OverrideMedic.aspx.cs" Inherits="safety.HPH.OverrideMedic" %>
|
||||
<asp:Content ID="H" ContentPlaceHolderID="head" runat="server">
|
||||
<style>
|
||||
.rgCaption {
|
||||
color: white;
|
||||
background-color: #495a70;
|
||||
font: bold 14pt Arial Narrow;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid runat="server" ID="rg1" DataSourceID="dsOverride" CellSpacing="-1" GridLines="Both">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
|
||||
<MasterTableView AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateColumns="False" DataKeyNames="persID" DataSourceID="dsOverride" CommandItemDisplay="Top" Caption="Exceptions">
|
||||
<CommandItemSettings AddNewRecordText="Nieuw" ShowAddNewRecordButton="true" />
|
||||
<RowIndicatorColumn ShowNoSortIcon="False"></RowIndicatorColumn>
|
||||
<ExpandCollapseColumn ShowNoSortIcon="False"></ExpandCollapseColumn>
|
||||
<Columns>
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px" />
|
||||
<telerik:GridButtonColumn CommandName="Delete" Text="Del" UniqueName="DeleteColumn" ButtonCssClass="rgDel" ConfirmText="Are you sure to delete this?" HeaderStyle-Width="30px" />
|
||||
<telerik:GridBoundColumn DataField="persID" DataType="System.Int32" HeaderText="persID" ReadOnly="false" ShowNoSortIcon="False" SortExpression="persID" UniqueName="persID" InsertVisiblityMode="AlwaysVisible" />
|
||||
<telerik:GridBoundColumn DataField="fullname" HeaderText="fullname" ReadOnly="True" ShowNoSortIcon="False" SortExpression="fullname" UniqueName="fullname" />
|
||||
<telerik:GridDropDownColumn DataField="newConCode" HeaderText="Code" ShowNoSortIcon="False" SortExpression="newConCode" UniqueName="newConCode" DataSourceID="dsConCode" ListTextField="Text" ListValueField="ConCode" />
|
||||
<telerik:GridBoundColumn DataField="mCat" HeaderText="Cat" ShowNoSortIcon="False" SortExpression="mCat" UniqueName="mCat" ReadOnly="true" />
|
||||
<telerik:GridDropDownColumn DataField="hphDoseLimit" HeaderText="Limit" ShowNoSortIcon="False" SortExpression="hphDoseLimit" UniqueName="hphDoseLimit" DataSourceID="dsLimits" ListTextField="Text" ListValueField="ID" />
|
||||
<telerik:GridDateTimeColumn DataField="allowFrom" DataType="System.DateTime" HeaderText="allowFrom" ShowNoSortIcon="False" SortExpression="allowFrom" UniqueName="allowFrom" DataFormatString="{0:yyyy-MM-dd}" EditDataFormatString="yyyy-MM-dd" PickerType="DatePicker" />
|
||||
<telerik:GridDateTimeColumn DataField="allowTill" DataType="System.DateTime" HeaderText="allowTill" ShowNoSortIcon="False" SortExpression="allowTill" UniqueName="allowTill" DataFormatString="{0:yyyy-MM-dd}" EditDataFormatString="yyyy-MM-dd" PickerType="DatePicker" />
|
||||
<telerik:GridBoundColumn DataField="remark" HeaderText="remark" ShowNoSortIcon="False" SortExpression="remark" UniqueName="remark" />
|
||||
<telerik:GridBoundColumn DataField="examinDate" DataType="System.DateTime" HeaderText="Exam.Date" ShowNoSortIcon="False" SortExpression="examinDate" UniqueName="examinDate" ReadOnly="true" DataFormatString="{0:yyyy-MM-dd}" />
|
||||
<telerik:GridBoundColumn DataField="ConCodeNow" HeaderText="CurrentCode" ShowNoSortIcon="False" SortExpression="ConCodeNow" UniqueName="ConCodeNow" ReadOnly="true" />
|
||||
<telerik:GridBoundColumn DataField="changed" DataType="System.DateTime" HeaderText="changed" ShowNoSortIcon="False" SortExpression="changed" UniqueName="changed" ReadOnly="true" />
|
||||
<telerik:GridBoundColumn DataField="changer" HeaderText="changer" ShowNoSortIcon="False" SortExpression="changer" UniqueName="changer" ReadOnly="true" />
|
||||
</Columns>
|
||||
<EditFormSettings>
|
||||
<EditColumn ButtonType="ImageButton" />
|
||||
</EditFormSettings>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
<hr />
|
||||
<telerik:RadGrid runat="server" ID="rgIssues" DataSourceID="dsPossibleIssues" CellSpacing="-1" GridLines="Both" AutoGenerateColumns="False">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
|
||||
|
||||
<MasterTableView AllowAutomaticDeletes="True" DataSourceID="dsPossibleIssues" Caption="Possible Issues">
|
||||
<RowIndicatorColumn ShowNoSortIcon="False"></RowIndicatorColumn>
|
||||
<ExpandCollapseColumn ShowNoSortIcon="False"></ExpandCollapseColumn>
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="persId" DataType="System.Int32" HeaderText="persId" ShowNoSortIcon="False" SortExpression="persId" UniqueName="persId" />
|
||||
<telerik:GridBoundColumn DataField="fullname" HeaderText="Name" ReadOnly="True" ShowNoSortIcon="False" SortExpression="fullname" UniqueName="fullname" />
|
||||
<telerik:GridBoundColumn DataField="ConCode" HeaderText="ConCode" ShowNoSortIcon="False" SortExpression="ConCode" UniqueName="ConCode" />
|
||||
<telerik:GridBoundColumn DataField="examinDate" DataType="System.DateTime" HeaderText="Examnination" ReadOnly="True" ShowNoSortIcon="False" SortExpression="examinDate" UniqueName="examinDate" DataFormatString="{0:yyyy-MM-dd}" />
|
||||
<telerik:GridBoundColumn DataField="expireDate" DataType="System.DateTime" HeaderText="Expiry" ReadOnly="True" ShowNoSortIcon="False" SortExpression="expireDate" UniqueName="expireDate" DataFormatString="{0:yyyy-MM-dd}" />
|
||||
<telerik:GridBoundColumn DataField="sagEnd" DataType="System.DateTime" HeaderText="EndContract" ShowNoSortIcon="False" SortExpression="sagEnd" UniqueName="sagEnd" DataFormatString="{0:yyyy-MM-dd}" />
|
||||
<telerik:GridBoundColumn DataField="cat" HeaderText="Cat" ShowNoSortIcon="False" SortExpression="cat" UniqueName="cat" />
|
||||
<telerik:GridBoundColumn DataField="ConclusionRemarks" HeaderText="ConclusionRemarks" ShowNoSortIcon="False" SortExpression="ConclusionRemarks" UniqueName="ConclusionRemarks" />
|
||||
<telerik:GridBoundColumn DataField="IonisingRadiationCode" HeaderText="IonisingRadiationCode" ShowNoSortIcon="False" SortExpression="IonisingRadiationCode" UniqueName="IonisingRadiationCode" />
|
||||
</Columns>
|
||||
|
||||
<EditFormSettings>
|
||||
<EditColumn ShowNoSortIcon="False"></EditColumn>
|
||||
</EditFormSettings>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
|
||||
<asp:SqlDataSource runat="server" ID="dsConCode"
|
||||
SelectCommand="[medic].[ConCodeList]" SelectCommandType="StoredProcedure"
|
||||
ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" />
|
||||
|
||||
<asp:SqlDataSource runat="server" ID="dsOverride"
|
||||
SelectCommand="[hph].[medicoverrideSelect]" SelectCommandType="StoredProcedure"
|
||||
InsertCommand="[hph].[medicoverrideInsert]" InsertCommandType="StoredProcedure"
|
||||
UpdateCommand="[hph].[medicoverrideInsert]" UpdateCommandType="StoredProcedure"
|
||||
DeleteCommand="[hph].[medicoverrideDelete]" DeleteCommandType="StoredProcedure" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="persID" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="persID" Type="Int32" />
|
||||
<asp:Parameter Name="NewConCode" Type="String" />
|
||||
<asp:Parameter Name="hphDoseLimit" Type="Byte" />
|
||||
<asp:Parameter Name="remark" Type="String" />
|
||||
<asp:Parameter DbType="Date" Name="allowFrom" />
|
||||
<asp:Parameter DbType="Date" Name="allowTill" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="persID" Type="Int32" />
|
||||
<asp:Parameter Name="NewConCode" Type="String" />
|
||||
<asp:Parameter Name="hphDoseLimit" Type="Byte" />
|
||||
<asp:Parameter Name="remark" Type="String" />
|
||||
<asp:Parameter DbType="Date" Name="allowFrom" />
|
||||
<asp:Parameter DbType="Date" Name="allowTill" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
|
||||
<asp:SqlDataSource runat="server" ID="dsPossibleIssues"
|
||||
SelectCommand="[hph].[medicoverrideList]" SelectCommandType="StoredProcedure"
|
||||
ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" />
|
||||
<asp:SqlDataSource runat="server" ID="dsLimits"
|
||||
SelectCommand="hph.DoseLimitsList" SelectCommandType="StoredProcedure"
|
||||
ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>" />
|
||||
</asp:Content>
|
||||
17
Safety/HPH/OverrideMedic.aspx.cs
Normal file
17
Safety/HPH/OverrideMedic.aspx.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace safety.HPH
|
||||
{
|
||||
public partial class OverrideMedic : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
General.setTitle(Master, "Exceptions Medic");
|
||||
}
|
||||
}
|
||||
}
|
||||
71
Safety/HPH/OverrideMedic.aspx.designer.cs
generated
Normal file
71
Safety/HPH/OverrideMedic.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace safety.HPH
|
||||
{
|
||||
|
||||
|
||||
public partial class OverrideMedic
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// rg1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid rg1;
|
||||
|
||||
/// <summary>
|
||||
/// rgIssues control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Telerik.Web.UI.RadGrid rgIssues;
|
||||
|
||||
/// <summary>
|
||||
/// dsConCode control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource dsConCode;
|
||||
|
||||
/// <summary>
|
||||
/// dsOverride control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource dsOverride;
|
||||
|
||||
/// <summary>
|
||||
/// dsPossibleIssues control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource dsPossibleIssues;
|
||||
|
||||
/// <summary>
|
||||
/// dsLimits control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.SqlDataSource dsLimits;
|
||||
}
|
||||
}
|
||||
73
Safety/HPH/SuspendAccess.aspx
Normal file
73
Safety/HPH/SuspendAccess.aspx
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
<%@ Page Title="MOVED! Suspensions" Language="C#" MasterPageFile="~/Masters/Site.master" AutoEventWireup="true" CodeBehind="SuspendAccess.aspx.cs" Inherits="safety.HPH.SuspendAccess" %>
|
||||
|
||||
<asp:Content ID="H" ContentPlaceHolderID="head" runat="server">
|
||||
<style>
|
||||
.rgCaption {
|
||||
color: white;
|
||||
background-color: #495a70;
|
||||
font: bold 14pt Arial Narrow;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<telerik:RadGrid runat="server" ID="rg1" DataSourceID="dsOverride" CellSpacing="-1" GridLines="Both">
|
||||
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
|
||||
<MasterTableView AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateColumns="False" DataKeyNames="persID" DataSourceID="dsOverride" CommandItemDisplay="Top" Caption="Supensions">
|
||||
<CommandItemSettings AddNewRecordText="Nieuwe shorsing" ShowAddNewRecordButton="true" />
|
||||
<RowIndicatorColumn ShowNoSortIcon="False"></RowIndicatorColumn>
|
||||
<ExpandCollapseColumn ShowNoSortIcon="False"></ExpandCollapseColumn>
|
||||
<Columns>
|
||||
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" ButtonCssClass="rgEdit" UniqueName="EditColumn" HeaderStyle-Width="30px" />
|
||||
<telerik:GridButtonColumn CommandName="Delete" Text="Del" UniqueName="DeleteColumn" ButtonCssClass="rgDel" ConfirmText="Are you sure to delete this?" HeaderStyle-Width="30px" />
|
||||
<%--<telerik:GridBoundColumn DataField="persID" DataType="System.Int32" HeaderText="persID" ReadOnly="false" ShowNoSortIcon="False" SortExpression="persID" UniqueName="persID" InsertVisiblityMode="AlwaysVisible" />--%>
|
||||
|
||||
<telerik:GridTemplateColumn DataField="persID" HeaderText="PersID" UniqueName="persID" HeaderStyle-Width="60px" ItemStyle-Width="40px" FilterControlWidth="40px">
|
||||
<EditItemTemplate>
|
||||
<telerik:RadComboBox ID="persidRadComboBox1" runat="server" DataSourceID="SqlDSNamen" DataTextField="fullname" DataValueField="persID" SelectedValue='<%# Bind("persID") %>' MarkFirstMatch="true" AllowCustomText="true" Width="250px" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("https://toegang.intern.sck.be/fwd/Fiche/{0}",Eval("persID")) %>' Text='<%# Eval("persID") %>' />
|
||||
</ItemTemplate>
|
||||
</telerik:GridTemplateColumn>
|
||||
|
||||
<telerik:GridBoundColumn DataField="fullname" HeaderText="fullname" ReadOnly="True" ShowNoSortIcon="False" SortExpression="fullname" UniqueName="fullname" />
|
||||
<telerik:GridDateTimeColumn DataField="suspendFrom" DataType="System.DateTime" HeaderText="Vanaf" ShowNoSortIcon="False" SortExpression="suspendFrom" UniqueName="suspendFrom" DataFormatString="{0:yyyy-MM-dd}" EditDataFormatString="yyyy-MM-dd" PickerType="DatePicker" />
|
||||
<telerik:GridDateTimeColumn DataField="suspendTill" DataType="System.DateTime" HeaderText="Tot" ShowNoSortIcon="False" SortExpression="suspendTill" UniqueName="suspendTill" DataFormatString="{0:yyyy-MM-dd}" EditDataFormatString="yyyy-MM-dd" PickerType="DatePicker" />
|
||||
<telerik:GridBoundColumn DataField="remark" HeaderText="remark" ShowNoSortIcon="False" SortExpression="remark" UniqueName="remark" />
|
||||
<telerik:GridBoundColumn DataField="changed" DataType="System.DateTime" HeaderText="changed" ShowNoSortIcon="False" SortExpression="changed" UniqueName="changed" ReadOnly="true" />
|
||||
<telerik:GridBoundColumn DataField="changer" HeaderText="changer" ShowNoSortIcon="False" SortExpression="changer" UniqueName="changer" ReadOnly="true" />
|
||||
</Columns>
|
||||
<EditFormSettings>
|
||||
<EditColumn ButtonType="ImageButton" />
|
||||
</EditFormSettings>
|
||||
</MasterTableView>
|
||||
</telerik:RadGrid>
|
||||
|
||||
|
||||
|
||||
<asp:SqlDataSource runat="server" ID="dsOverride"
|
||||
SelectCommand="[hph].[SuspendSelect]" SelectCommandType="StoredProcedure"
|
||||
InsertCommand="[hph].[SuspendInsert]" InsertCommandType="StoredProcedure"
|
||||
UpdateCommand="[hph].[SuspendInsert]" UpdateCommandType="StoredProcedure"
|
||||
DeleteCommand="[hph].[SuspendDelete]" DeleteCommandType="StoredProcedure" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="persID" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="persID" Type="Int32" />
|
||||
<asp:Parameter Name="remark" Type="String" />
|
||||
<asp:Parameter DbType="Date" Name="suspendFrom" />
|
||||
<asp:Parameter DbType="Date" Name="suspendTill" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="persID" Type="Int32" />
|
||||
<asp:Parameter Name="remark" Type="String" />
|
||||
<asp:Parameter DbType="Date" Name="suspendFrom" />
|
||||
<asp:Parameter DbType="Date" Name="suspendTill" />
|
||||
</UpdateParameters>
|
||||
</asp:SqlDataSource>
|
||||
<asp:SqlDataSource ID="SqlDSNamen" runat="server" ConnectionString="<%$ ConnectionStrings:idpbwConnectionString %>"
|
||||
SelectCommand="[personList]" SelectCommandType="StoredProcedure" />
|
||||
|
||||
</asp:Content>
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue