-
Notifications
You must be signed in to change notification settings - Fork 7
/
editscript.aspx
138 lines (138 loc) · 6.74 KB
/
editscript.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
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="editscript.aspx.cs" Inherits="Analytics.editscript" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<table style="width: 100%; border: solid; border-width: 1px; border-color: black; margin-top:2%;">
<tr style="border: solid; border-width: 1px;">
<td colspan="3" style="width: 100%; text-align: center; border: solid; border-width: 1px;">
<asp:Label ID="Label1" runat="server" Font-Size="Large" Text="Edit Stock Transaction"></asp:Label>
</td>
</tr>
</table>
<%--<hr />--%>
<table style="width: 100%; border: solid; border-width: 1px; border-color: black;margin-top:1%;">
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label2" runat="server" Text="Company Name:"></asp:Label>
</td>
<td style="width: 20%;">
<asp:TextBox ID="textboxCompaName" runat="server" ToolTip="Enter company name" TabIndex="1"></asp:TextBox>
</td>
<td style="width: 20%;"></td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label3" runat="server" Text="Symbol:"></asp:Label>
</td>
<td style="width: 20%;">
<asp:TextBox ID="textboxSymbol" runat="server" ToolTip="Enter stock Symbol:" TabIndex="2"></asp:TextBox>
</td>
<td style="width: 20%;"></td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label8" runat="server" Text="Exchange Code:"></asp:Label>
</td>
<td style="width: 20%;">
<asp:TextBox ID="textboxExch" runat="server" ReadOnly="false"></asp:TextBox>
</td>
<td style="width: 20%;"></td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label10" runat="server" Text="Exchange Name:"></asp:Label>
</td>
<td style="width: 20%;">
<asp:TextBox ID="textboxExchDisp" runat="server" ReadOnly="false"></asp:TextBox>
</td>
<td style="width: 20%;"></td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label11" runat="server" Text="Type:"></asp:Label>
</td>
<td style="width: 20%;">
<asp:TextBox ID="textboxType" runat="server" ReadOnly="false"></asp:TextBox>
</td>
<td style="width: 20%;"></td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label12" runat="server" Text="Type Name:"></asp:Label>
</td>
<td style="width: 20%;">
<asp:TextBox ID="textboxTypeDisp" runat="server" ReadOnly="false"></asp:TextBox>
</td>
<td style="width: 20%;"></td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label5" runat="server" Text="Purchase Date:"></asp:Label>
</td>
<td style="width: 20%;">
<asp:TextBox ID="textboxPurchaseDate" runat="server" TextMode="Date" ToolTip="Enter date of purchase" TabIndex="3"></asp:TextBox>
</td>
<td style="width: 20%;"></td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label4" runat="server" Text="Price per stock:"></asp:Label>
</td>
<td style="width: 20%;">
<asp:TextBox ID="textboxPurchasePrice" runat="server" ToolTip="Purchase price " TabIndex="4"></asp:TextBox>
</td>
<td style="width: 20%;">
<%--<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="textboxPurchasePrice"
ErrorMessage="Please enter valid decimal number with at least 1 decimal place."
ToolTip="Please enter valid decimal number with at least 1 decimal place."
ValidationExpression="((\d+)+(\.\d+))$"
Text="*" />--%>
</td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label6" runat="server" Text="Quantity: "></asp:Label>
</td>
<td style="width: 20%;">
<asp:TextBox ID="textboxQuantity" runat="server" TextMode="Number" ToolTip="Enter quantity you purchased" TabIndex="5"></asp:TextBox><br />
</td>
<td style="width: 20%;"></td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Label ID="Label7" runat="server" Text="Commission: "></asp:Label>
</td>
<td style="width: 20%;">
<asp:TextBox ID="textboxCommission" runat="server" Text="0.00" ToolTip="Enter commission you paid to the broker" TabIndex="6"></asp:TextBox>
</td>
<td style="width: 20%;">
<%--<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server"
ControlToValidate="textboxCommission"
ErrorMessage="Please enter valid decimal number with at least 1 decimal place."
ToolTip="Please enter valid decimal number with at least 1 decimal place."
ValidationExpression="((\d+)+(\.\d+))$"
Text="*" />--%>
</td>
</tr>
<tr>
<td style="width: 25%; text-align: right;">
<asp:Button ID="buttonCalCost" runat="server" Text="Calculate Total Cost" OnClick="buttonCalCost_Click" TabIndex="7" />
</td>
<td style="width: 20%;">
<asp:Label ID="labelTotalCost" runat="server" Style="text-align: left" Text="0.00"></asp:Label>
</td>
<td style="width: 20%;"></td>
</tr>
</table>
<%--<hr />--%>
<table style="width: 100%;margin-top:1%;">
<tr>
<td style="width: 25%; text-align: right;"></td>
<td style="width: 30%; text-align: center;">
<asp:Button ID="buttonSave" runat="server" Text="Save Changes" TabIndex="8" OnClick="buttonSave_Click"/>
</td>
<td style="width: 50%;">
<asp:Button ID="buttonBack" runat="server" Text="Back" TabIndex="10" OnClick="buttonBack_Click" />
</td>
</tr>
</table>
</asp:Content>