-
Notifications
You must be signed in to change notification settings - Fork 2
/
CartList.ascx
137 lines (134 loc) · 8.37 KB
/
CartList.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="CartList.ascx.vb" Inherits="NEvoWeb.Modules.NB_Store.CartList" %>
<table cellSpacing="0" cellPadding="0" width="100%" border="0" class="NBright_CartList">
<tr>
<td>
<asp:DataGrid ID="dgCartList" runat="server" AutoGenerateColumns="False" showfooter="True" width="100%" gridlines="none" cellpadding="5">
<AlternatingItemStyle cssclass="NBright_AltCartItem" />
<ItemStyle cssclass="NBright_CartItem" />
<Columns>
<asp:BoundColumn DataField="ItemID" Visible="False"></asp:BoundColumn>
<asp:BoundColumn DataField="ItemDesc" HeaderText="Description" headerstyle-cssclass="NBright_cartheader"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Price" headerstyle-cssclass="NBright_cartheader" headerstyle-horizontalalign="Center" itemstyle-horizontalalign="Center" footerstyle-horizontalalign="Right">
<ItemTemplate>
<asp:Label runat="server" ID="lblUnitCost" Text='<%# DataBinder.Eval(Container, "DataItem.UnitCost") %>'></asp:Label>
<asp:TextBox ID="txtUnitCost" runat="server" width="70px" MaxLength="10" Text='' Visible="false"></asp:TextBox>
</ItemTemplate>
<footertemplate>
<table style="line-height:150%;white-space:nowrap" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="right">
<asp:Label ID="lblTotals" Runat="server" resourcekey="lblTotals">Total:</asp:Label>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="lblDiscount" Runat="server" resourcekey="lblDiscount">Discount:</asp:Label>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="lblAfterDiscount" Runat="server" resourcekey="lblAfterDiscount">Total After Discount:</asp:Label>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="lblShipping" Runat="server" resourcekey="lblShipping">Shipping:</asp:Label>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="lblAppliedTax" Runat="server" resourcekey="lblTax">Tax:</asp:Label>
</td>
</tr>
<tr>
<td align="right" class="NBright_OrderTotalLabel">
<asp:Label ID="lblOrderTotal" Runat="server" resourcekey="lblOrderTotal">Order Total:</asp:Label>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="lblOutstanding" Runat="server" resourcekey="lblOutstanding">Outstanding:</asp:Label>
</td>
</tr>
</table>
</footertemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Qty" headerstyle-cssclass="NBright_cartheader" headerstyle-horizontalalign="Center" itemstyle-horizontalalign="Center" footerstyle-horizontalalign="Center">
<ItemTemplate>
<asp:TextBox ID="txtQty" runat="server" width="30px" MaxLength="6" Text='<%# DataBinder.Eval(Container.DataItem, "Quantity") %>'></asp:TextBox>
</ItemTemplate>
<footertemplate>
<asp:label id="lblQtyCount" runat="server"></asp:label>
</footertemplate>
<footerstyle verticalalign="Top"></footerstyle>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Discount" headerstyle-cssclass="NBright_cartheader" headerstyle-horizontalalign="Center" itemstyle-horizontalalign="Center" footerstyle-horizontalalign="Center">
<ItemTemplate>
<asp:Label runat="server" ID="lblDiscount" Text='<%# DataBinder.Eval(Container, "DataItem.Discount") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Remove" headerstyle-cssclass="NBright_cartheader" headerstyle-horizontalalign="Center" itemstyle-horizontalalign="Center" footerstyle-horizontalalign="Center">
<ItemTemplate>
<asp:CheckBox CssClass="normalCheckBox" ID="chkRemove" runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Total" headerstyle-cssclass="NBright_cartheader" headerstyle-horizontalalign="Center" itemstyle-horizontalalign="Right" footerstyle-horizontalalign="Right" >
<ItemTemplate>
<asp:Label ID="lblSubTotal" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "SubTotal") %>'></asp:Label>
</ItemTemplate>
<footertemplate>
<table style="line-height:150%;white-space:nowrap" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="right">
<asp:Label ID="lblTotal" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="lblDiscountTotal" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="lblTotalAfterDiscount" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="lblShippingTotal" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="lblAppliedTaxAmount" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="right" class="NBright_OrderTotalValue">
<asp:Label ID="lblOrdTotal" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="lblOutstandingAmount" runat="server"></asp:Label>
</td>
</tr>
</table>
</footertemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td align="right"><div class="NBright_RecalcButtonDiv"><asp:LinkButton ID="cmdRecalculate" runat="server" cssclass="NBright_RecalcButton Button Recalculate" resourcekey="cmdRecalculate" Text="Recalculate" /></div></td>
</tr>
<tr>
<td align="right"><asp:Label ID="lblEstShipDate" runat="server" Text="" Visible="false"></asp:Label><b><asp:Label ID="lblMsg" runat="server" Text="" Visible="false"></asp:Label></b></td>
</tr>
<tr>
<td align="right"><asp:Label ID="lblTax" Runat="server" resourcekey="lblTax">Tax:</asp:Label><asp:Label ID="lblTaxAmount" runat="server" cssclass="Normal"></asp:Label></td>
</tr>
</table>