-
Notifications
You must be signed in to change notification settings - Fork 0
/
OrganizationControl.ascx
121 lines (115 loc) · 5 KB
/
OrganizationControl.ascx
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
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="OrganizationControl.ascx.cs" Inherits="OrganizationControl" %>
<div align="left" style="padding-top: 10px">
<table>
<tr>
<td align="left">
<table style="height: 350px">
<tr>
<td colspan="2"
valign="top">
<div class="titlemain">
Organization</div>
</td>
</tr>
<tr>
<td class="label" >
Organization Name:</td>
<td >
<asp:TextBox ID="txOrgName" runat="server" Width="400px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="label" >
Image on left</td>
<td >
<input id="txtLogoLeft" style="width: 210px" type="text" runat="server"
readonly="readonly"/><input id="Button2"
type="button" value="Browse ..." onclick="dispQuestionFile('txtLogoLeft');" /><asp:Button
ID="btnDeleteLogoLeft" runat="server" onclick="btnDeleteLogoLeft_Click"
Text="Delete Logo" Width="90px" />
</td>
</tr>
<tr>
<td class="label" >
Image on Center</td>
<td >
<input id="txtLogoMiddle" style="width: 210px" type="text" runat="server"
readonly="readonly"/><input id="Button3"
type="button" value="Browse ..." onclick="dispQuestionFile('txtLogoMiddle');" /><asp:Button
ID="btnDeleteLogoMiddle" runat="server" onclick="btnDeleteLogoMiddle_Click"
Text="Delete Logo" Width="90px" />
</td>
</tr>
<tr>
<td class="label" >
Image on Right</td>
<td >
<input id="txtLogoRight" style="width: 210px" type="text" runat="server"
readonly="readonly"/><input id="Button1"
type="button" value="Browse ..." onclick="dispQuestionFile('txtLogoRight');" /><asp:Button ID="btnDeleteLogo" runat="server" onclick="btnDeleteLogo_Click"
Text="Delete Logo" Width="90px" />
</td>
</tr>
<tr>
<td class="label" >
Organization Status:</td>
<td >
<asp:DropDownList ID="ddlStatus" runat="server">
<asp:ListItem Value="1">Active</asp:ListItem>
<asp:ListItem Value="0">InActive</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td >
</td>
<td>
<asp:Label ID="lblMessage" runat="server" ForeColor="#FF3300"></asp:Label>
</td>
</tr>
<tr>
<td >
</td>
<td>
<asp:Button ID="btnAdd" runat="server" Text="Submit" onclick="btnAdd_Click" />
<asp:Button ID="btnClear" runat="server" Text="Reset"
onclick="btnClear_Click" />
<asp:Button ID="btnDelete" runat="server" onclick="btnDelete_Click"
Text="Delete" />
</td>
</tr>
<tr>
<td >
</td>
<td >
<asp:Panel ID="Panel1" runat="server" Height="275px" HorizontalAlign="Left"
ScrollBars="Auto" Width="300px">
<asp:GridView ID="gvwOrganization" runat="server" AutoGenerateColumns="False"
onselectedindexchanged="gvwOrganization_SelectedIndexChanged" BackColor="#E2E2E2"
GridLines="None">
<Columns>
<asp:CommandField ShowSelectButton="True" SelectText="Edit" >
<ControlStyle Width="30px" />
</asp:CommandField>
<asp:BoundField DataField="Name" HeaderText="Organization Name"
SortExpression="Name" />
<asp:BoundField DataField="Status" SortExpression="Status">
<ItemStyle ForeColor="#E2E2E2" Width="1px" Font-Size="1px" />
</asp:BoundField>
<asp:BoundField DataField="OrganizationID" SortExpression="OrganizationID">
<ItemStyle ForeColor="#E2E2E2" Width="1px" Font-Size="1px" />
</asp:BoundField>
</Columns>
</asp:GridView>
<asp:LinqDataSource ID="Linqorg" runat="server"
ContextTypeName="AssesmentDataClassesDataContext"
Select="new (OrganizationID, Name, Status)" TableName="Organizations">
</asp:LinqDataSource>
</asp:Panel>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>