-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCameraStatusMasters.aspx
148 lines (141 loc) · 8.22 KB
/
CameraStatusMasters.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<%@ Page Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true" CodeFile="CameraStatusMasters.aspx.cs" Inherits="CaSt" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2 style="text-align:center">Camera Status - Masters</h2>
<div>
<table>
<tr>
<td style="width:284px"></td>
<td style="align-items:center">
<div>
<asp:ListView ID="CaStV" runat="server" DataKeyNames="CaSID" DataSourceID="EntityDataSource1" InsertItemPosition="LastItem" OnItemCommand="CaStV_ItemCommand" OnItemDataBound="CaStV_ItemDataBound">
<AlternatingItemTemplate>
<tr style="background-color: lightblue;color:black;">
<td>
<asp:Label ID="CaSIDLabel" runat="server" Text='<%# Eval("CaSID") %>' />
<asp:HiddenField ID="IsDeleted" runat="server" Value ='<%# Eval("IsDeleted") %>' />
</td>
<td>
<asp:Label ID="Camera_StatusLabel" runat="server" Text='<%# Eval("Camera_Status") %>' />
</td>
<td>
<asp:Label ID="DescriptionLabel" runat="server" Text='<%# Eval("Description") %>' />
</td>
<td>
<asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
<asp:Button ID="Deactivate" runat="server" CommandName="Deactivate" Text="Deactivate" ForeColor="Black"/>
</td>
</tr>
</AlternatingItemTemplate>
<EditItemTemplate>
<tr style="background-color: lightblue;color: black;">
<td>
<asp:Label ID="CaSIDLabel1" runat="server" Text='<%# Eval("CaSID") %>' />
</td>
<td>
<asp:TextBox ID="Camera_StatusTextBox" runat="server" Text='<%# Bind("Camera_Status") %>' /><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Required Field" ControlToValidate="Camera_StatusTextBox" Display="Dynamic" ToolTip="Required Field" Text="*"></asp:RequiredFieldValidator>
</td>
<td>
<asp:TextBox ID="DescriptionTextBox" runat="server" Text='<%# Bind("Description") %>' />
</td>
<td>
<asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="Update" />
<asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel" />
</td>
</tr>
</EditItemTemplate>
<EmptyDataTemplate>
<table runat="server" style="background-color: lightblue;border-collapse: collapse;border-color: black;border-style:none;border-width:0.5px;">
<tr>
<td>No data was returned.</td>
</tr>
</table>
</EmptyDataTemplate>
<InsertItemTemplate>
<tr style="background-color: white">
<td>
<asp:TextBox ID="CaSIDTextBox" runat="server" Text='Auto' />
</td>
<td>
<asp:TextBox ID="Camera_StatusTextBox" runat="server" Text='<%# Bind("Camera_Status") %>' /><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Required Field" Text="*" ToolTip="Required Field" ValidationGroup="InsertCaS" ControlToValidate="Camera_StatusTextBox" Display="Dynamic"></asp:RequiredFieldValidator>
</td>
<td>
<asp:TextBox ID="DescriptionTextBox" runat="server" Text='<%# Bind("Description") %>' />
</td>
<td>
<asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" ValidationGroup="InsertCaS" />
<asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Clear" />
</td>
</tr>
</InsertItemTemplate>
<ItemTemplate>
<tr style="background-color:#DCDCDC;color: #000000;">
<td>
<asp:Label ID="CaSIDLabel" runat="server" Text='<%# Eval("CaSID") %>' />
<asp:HiddenField ID="IsDeleted" runat="server" Value ='<%# Eval("IsDeleted") %>' />
</td>
<td>
<asp:Label ID="Camera_StatusLabel" runat="server" Text='<%# Eval("Camera_Status") %>' />
</td>
<td>
<asp:Label ID="DescriptionLabel" runat="server" Text='<%# Eval("Description") %>' />
</td>
<td>
<asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
<asp:Button ID="Deactivate" runat="server" CommandName="Deactivate" Text="Deactivate" ForeColor="Black"/>
</td>
</tr>
</ItemTemplate>
<LayoutTemplate>
<table runat="server">
<tr runat="server">
<td runat="server">
<table id="itemPlaceholderContainer" runat="server" border="0" style="background-color: #FFFFFF;border-collapse: collapse;border-color: black;border-style:none;border-width:0.0px;font-family: 'Times New Roman', Times, serif;">
<tr runat="server" style="background-color:#21618C ;color: white;">
<th runat="server">CaSID</th>
<th runat="server">Camera Status</th>
<th runat="server">Description</th>
<th runat="server"></th>
</tr>
<tr id="itemPlaceholder" runat="server">
</tr>
</table>
</td>
</tr>
<tr runat="server">
<td runat="server" style="text-align: center;background-color: #85929E;font-family: 'Times New Roman', Times, serif;color: #000000;">
<asp:DataPager ID="DataPager1" runat="server">
<Fields>
<asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowLastPageButton="True" />
</Fields>
</asp:DataPager>
</td>
</tr>
</table>
</LayoutTemplate>
<SelectedItemTemplate>
<tr style="background-color:#008A8C;font-weight: bold;color: #FFFFFF;">
<td>
<asp:Label ID="CaSIDLabel" runat="server" Text='<%# Eval("CaSID") %>' />
</td>
<td>
<asp:Label ID="Camera_StatusLabel" runat="server" Text='<%# Eval("Camera_Status") %>' />
</td>
<td>
<asp:Label ID="DescriptionLabel" runat="server" Text='<%# Eval("Description") %>' />
</td>
<td>
<asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
</td>
</tr>
</SelectedItemTemplate>
</asp:ListView>
<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=AssetTaggingEntities" DefaultContainerName="AssetTaggingEntities" EnableFlattening="False" EnableInsert="True" EnableUpdate="True" EntitySetName="LUT_Camera_Status">
</asp:EntityDataSource>
</div>
</td>
</tr>
</table>
</div>
</asp:Content>