-
Notifications
You must be signed in to change notification settings - Fork 0
/
Default.aspx
119 lines (117 loc) · 6.52 KB
/
Default.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
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="App_Themes/StyleSheet.css" rel="stylesheet" />
<title>Random Transaction Generator</title>
</head>
<body>
<form id="form1" runat="server">
<h1>Random Transaction Generator</h1>
<div id="wrapper">
<asp:RegularExpressionValidator ID="timeValRegex" runat="server" ControlToValidate="txtTimeOfTransaction" ErrorMessage="Please Enter a valid time in the format (HH:MM)" ValidationExpression="([0-1]?\d|2[0-3]):([0-5]?\d)(:([0-5]?\d))?"></asp:RegularExpressionValidator>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="calDiv">
<asp:Calendar ID="calDate" runat="server" BackColor="White" BorderColor="#3366CC" BorderWidth="1px" CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="#003399" Height="250px" Width="270px">
<DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
<NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
<OtherMonthDayStyle ForeColor="#999999" />
<SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
<SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
<TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" Font-Bold="True" Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
<TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
<WeekendDayStyle BackColor="#CCCCFF" />
</asp:Calendar>
</div>
<label id="calError" runat="server"></label>
<br />
<label>Please Enter a valid time in the format (HH:MM)</label>
<br />
<label>Time of Transaction: </label>
<asp:TextBox runat="server" ID="txtTimeOfTransaction"></asp:TextBox><asp:RequiredFieldValidator ID="rfvTime" ControlToValidate="txtTimeOfTransaction" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
<br />
<asp:Button ID="btnGenerateTrans" runat="server" Text="Generate Transaction" OnClick="btnGenerateTrans_Click" />
<br />
<table>
<tr>
<td>
<label>StoreID: </label>
</td>
<td>
<asp:TextBox runat="server" ID="txtStoreID" ReadOnly="True"></asp:TextBox></td>
</tr>
<tr>
<td>
<label>EmployeeID: </label>
</td>
<td>
<asp:TextBox runat="server" ID="txtEmployeeID" ReadOnly="True"></asp:TextBox></td>
</tr>
<tr>
<td>
<label>LoyaltyID: </label>
</td>
<td>
<asp:TextBox runat="server" ID="txtLoyaltyID" ReadOnly="True"></asp:TextBox></td>
</tr>
<tr>
<td>
<label>ProductID: </label>
</td>
<td>
<asp:TextBox runat="server" ID="txtProductID" ReadOnly="True"></asp:TextBox></td>
</tr>
<tr>
<td>
<label>CouponID: </label>
</td>
<td>
<asp:TextBox runat="server" ID="txtCouponID" ReadOnly="True"></asp:TextBox></td>
</tr>
<tr>
<td>
<label>Qty: </label>
</td>
<td>
<asp:TextBox runat="server" ID="txtQty" ReadOnly="True"></asp:TextBox></td>
</tr>
<tr>
<td>
<label>TransactionTypeID: </label>
</td>
<td>
<asp:TextBox runat="server" ID="txtTransactionTypeID" ReadOnly="True"></asp:TextBox></td>
</tr>
<tr>
<td>
<label>PricePerSellableUnitAsMarked: </label>
</td>
<td>
<asp:TextBox runat="server" ID="txtPricePerSellableUnitAsMarked" ReadOnly="True"></asp:TextBox></td>
</tr>
<tr>
<td>
<label>PricePerSellableUnitToCustomer: </label>
</td>
<td>
<asp:TextBox runat="server" ID="txtPricePerSellableUnitToCustomer" ReadOnly="True"></asp:TextBox></td>
</tr>
<tr>
<td>
<label>CouponDetailID: </label>
</td>
<td>
<asp:TextBox runat="server" ID="txtCouponDetailID" ReadOnly="True"></asp:TextBox></td>
</tr>
</table>
<asp:Button ID="btnAddTrans" Enabled="false" runat="server" Text="Add Transaction" OnClick="btnAddTrans_Click" />
<br />
<asp:Label ID="lblAddedT" runat="server" Text="Transaction Added!" ForeColor="#009933" Visible="false" ></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>