-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathissues.aspx
130 lines (130 loc) · 7.53 KB
/
issues.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
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="issues.aspx.vb" Inherits="issues" title="'s Tenants Association - View Issues." %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="server">
<div>
</div>
<asp:MultiView ID="MultiView1" runat="server">
<asp:View ID="View1" runat="server">
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SelectItems" SelectCommandType="StoredProcedure" InsertCommand="RequestClose" InsertCommandType="StoredProcedure">
<SelectParameters>
<asp:Parameter Name="ItemType" DefaultValue="61" Type="int16" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="varCloser" Type="string" />
<asp:Parameter Name="varItem" Type="string" />
</InsertParameters>
</asp:SqlDataSource>
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Selected="True" Value="61">All Requests</asp:ListItem>
<asp:ListItem Value="23">Structural - Disaster</asp:ListItem>
<asp:ListItem Value="22">Structural - Major</asp:ListItem>
<asp:ListItem Value="21">Structural - Minor</asp:ListItem>
<asp:ListItem Value="12">Cosmetic - Major</asp:ListItem>
<asp:ListItem Value="11">Cosmetic - Minor</asp:ListItem>
<asp:ListItem Value="51">Improvement Request - Major</asp:ListItem>
<asp:ListItem Value="52">Improvement Request - Minor</asp:ListItem>
<asp:ListItem Value="42">Other - Major</asp:ListItem>
<asp:ListItem Value="41">Other - Minor</asp:ListItem>
<asp:ListItem Value="0">Closed Issues</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="Button1" runat="server" Text="Select." /><br />
<asp:GridView ID="GridView1" runat="server" AllowSorting="True"
AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333"
GridLines="None" Width="779px">
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:CommandField ShowSelectButton="True" />
<asp:BoundField DataField="ID" HeaderText="ID:" InsertVisible="False" ReadOnly="True"
SortExpression="ID" />
<asp:BoundField DataField="IssueTitle" HeaderText="Issue Summary:" SortExpression="IssueTitle" />
<asp:BoundField DataField="IssueCategory" HeaderText="Category:" SortExpression="IssueCategory" />
<asp:BoundField DataField="Submitter" HeaderText="Submitter:" SortExpression="Submitter" />
<asp:BoundField DataField="Date" HeaderText="Date:" SortExpression="Date" />
</Columns>
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</asp:View>
<asp:View ID="View2" runat="server">
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="ShowIssue" SelectCommandType="StoredProcedure" InsertCommand="AddNote" InsertCommandType="StoredProcedure">
<SelectParameters>
<asp:Parameter Name="varID" Type="Int16" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="varSummary" Type="String" />
<asp:Parameter Name="varDescription" Type="String" />
<asp:Parameter Name="varUserName" Type="String" />
<asp:Parameter Name="varCategory" Type="int16" />
<asp:Parameter Name="varParent" Type="int16" />
<asp:Parameter Name="varFile" Type="string" />
</InsertParameters>
</asp:SqlDataSource>
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource2" ForeColor="#333333" GridLines="None" Width="782px">
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID:" InsertVisible="False" SortExpression="ID" />
<asp:BoundField DataField="IssueTitle" HeaderText="Summary:" SortExpression="IssueTitle" />
<asp:BoundField DataField="IssueDescription" HeaderText="Description:" SortExpression="IssueDescription" />
<asp:BoundField DataField="IssueCategory" HeaderText="Category:" SortExpression="IssueCategory" />
<asp:BoundField DataField="Submitter" HeaderText="Submitter:" SortExpression="Submitter" />
<asp:BoundField DataField="Date" HeaderText="Date:" SortExpression="Date" />
<asp:BoundField DataField="ImageAddress" HeaderText="View Image:" SortExpression="ImageAddress" />
</Columns>
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<asp:Button ID="Button3" runat="server" Text="Add Additional Notes." />
<asp:Button ID="Button4" runat="server" Text="Request Item Closure." /></asp:View>
<asp:View ID="View3" runat="server">
<table style="width: 350px">
<tr>
<td style="width: 100px; height: 21px;">
Issue ID:</td>
<td style="width: 100px; height: 21px;">
<asp:Label ID="Label1" runat="server"></asp:Label></td>
</tr>
<tr>
<td style="width: 100px">
Category:</td>
<td style="width: 100px">
<asp:Label ID="Label2" runat="server"></asp:Label></td>
</tr>
<tr>
<td style="width: 100px">
Summary:</td>
<td style="width: 100px">
<asp:TextBox ID="TextBox1" runat="server" Width="276px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px">
Additional Notes:</td>
<td style="width: 100px">
<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" Width="281px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px">
Picture:</td>
<td style="width: 100px">
<asp:FileUpload ID="FileUpload1" runat="server" /></td>
</tr>
<tr>
<td style="width: 100px">
Submit:</td>
<td style="width: 100px">
<asp:Button ID="Button2" runat="server" Text="Go." /></td>
</tr>
</table>
</asp:View>
<asp:View ID="View4" runat="server">
<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></asp:View>
</asp:MultiView><br />
<br />
</asp:Content>