-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCustomerOrders.ascx
245 lines (245 loc) · 17.1 KB
/
CustomerOrders.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<%@ Control language="c#" CodeBehind="CustomerOrders.ascx.cs" Inherits="DotNetNuke.Modules.Store.WebControls.CustomerOrders" AutoEventWireup="True" %>
<asp:Panel id="pnlOrdersError" runat="server">
<div class="dnnFormMessage dnnFormWarning"><asp:label id="lblError" runat="server" CssClass="StoreAccountOrdersError"></asp:label></div>
</asp:Panel>
<asp:Panel ID="pnlOrders" runat="server" CssClass="dnnForm StoreAccountOrdersWrapper">
<asp:placeholder id="plhGrid" runat="server">
<fieldset>
<div class="dnnFormItem">
<asp:datagrid id="grdOrders" runat="server" showheader="true" showfooter="false" autogeneratecolumns="false" CssClass="StoreAccountOrders dnnGrid">
<HeaderStyle CssClass="dnnGridHeader StoreAccountOrdersHeader" />
<ItemStyle CssClass="dnnGridItem StoreAccountOrdersItem" />
<AlternatingItemStyle CssClass="dnnGridAltItem StoreAccountOrdersAlternatingItem" />
<columns>
<asp:TemplateColumn HeaderStyle-CssClass="StoreAccountOrdersNumberHeader" ItemStyle-CssClass="StoreAccountOrdersNumber">
<HeaderTemplate>
<asp:Label id="lblOrderNumberHeader" Runat="server" resourcekey="lblOrderNumberHeader">Order Number</asp:Label>
</HeaderTemplate>
<ItemTemplate>
<asp:label id="lblName" runat="server"><%# DataBinder.Eval(Container.DataItem, "OrderID").ToString() %></asp:label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderStyle-CssClass="StoreAccountOrdersDateHeader" ItemStyle-CssClass="StoreAccountOrdersDate">
<HeaderTemplate>
<asp:Label id="lblOrderDateHeader" Runat="server" resourcekey="lblOrderDateHeader">Order Date</asp:Label>
</HeaderTemplate>
<ItemTemplate>
<asp:label id="lblOrderDateText" runat="server"></asp:label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderStyle-CssClass="StoreAccountOrdersTotalHeader" ItemStyle-CssClass="StoreAccountOrdersTotal">
<HeaderTemplate>
<asp:Label id="lblOrderTotalHeader" Runat="server" resourcekey="lblOrderTotalHeader">Order Total</asp:Label>
</HeaderTemplate>
<ItemTemplate>
<asp:label id="lblOrderTotalText" runat="server">Order Total</asp:label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderStyle-CssClass="StoreAccountOrdersStatusHeader" ItemStyle-CssClass="StoreAccountOrdersStatus">
<HeaderTemplate>
<asp:Label id="lblOrderStatusHeader" runat="server" resourcekey="lblOrderStatusHeader">Status</asp:Label>
</HeaderTemplate>
<ItemTemplate>
<asp:label id="lblOrderStatusText" runat="server">Order Status</asp:label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderStyle-CssClass="StoreAccountOrdersStatusDateHeader" ItemStyle-CssClass="StoreAccountOrdersStatusDate">
<HeaderTemplate>
<asp:Label id="lblShipDateHeader" Runat="server" resourcekey="lblShipDateHeader">Ship Date</asp:Label>
</HeaderTemplate>
<ItemTemplate>
<asp:label id="lblShipDateText" runat="server">Ship Date</asp:label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderStyle-CssClass="StoreAccountOrdersEditHeader" ItemStyle-CssClass="StoreAccountOrdersEdit">
<HeaderTemplate>
<span> </span>
</HeaderTemplate>
<ItemTemplate>
<asp:hyperlink id="lnkEdit" runat="server" resourcekey="lnkEdit" CssClass="dnnPrimaryAction StoreAccountOrdersEditButton">Details</asp:hyperlink>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderStyle-CssClass="StoreAccountOrdersCancelHeader" ItemStyle-CssClass="StoreAccountOrdersCancel">
<HeaderTemplate>
<span> </span>
</HeaderTemplate>
<ItemTemplate>
<asp:LinkButton id="lnkCancel" runat="server" resourcekey="lnkCancel" CssClass="dnnSecondaryAction StoreAccountOrdersCancelButton">Cancel</asp:LinkButton>
</ItemTemplate>
</asp:TemplateColumn>
</columns>
</asp:datagrid>
</div>
</fieldset>
</asp:placeholder>
<asp:placeholder id="plhForm" runat="server" visible="false">
<h2 class="dnnFormSectionHead"><asp:label id="lblEditTitle" runat="server" resourcekey="lblEditTitle" class="StoreAccountOrderTitle">Order Details</asp:label></h2>
<asp:panel id="pnlOrderDetails" runat="server" visible="false">
<fieldset>
<div class="dnnFormItem">
<table class="StoreAccountOrderHeader">
<tr>
<td class="StoreAccountOrderHeaderHeader">
<asp:Label id="lblOrderNumberTag" Runat="server" resourcekey="lblOrderNumberTag">Order Number</asp:Label>
</td>
<td class="StoreAccountOrderHeaderHeader">
<asp:Label id="lblOrderDateTag" Runat="server" resourcekey="lblOrderDateTag">Order Date</asp:Label>
</td>
<td class="StoreAccountOrderHeaderHeader">
<asp:Label id="lblOrderStatusTag" Runat="server" resourcekey="lblOrderStatusTag">Order Status</asp:Label>
</td>
</tr>
<tr>
<td class="StoreAccountOrderHeaderOrderNumber">
<asp:label id="lblOrderNumber" runat="server" enableviewstate="false"></asp:label>
</td>
<td class="StoreAccountOrderHeaderOrderDate">
<asp:label id="lblOrderDate" runat="server" enableviewstate="false"></asp:label>
</td>
<td class="StoreAccountOrderHeaderOrderStatus">
<asp:label id="lblOrderStatus" runat="server" enableviewstate="false"></asp:label>
</td>
</tr>
<tr>
<td class="StoreAccountOrderHeaderHeader">
<asp:Label id="lblBillingAddressTag" Runat="server" resourcekey="lblBillingAddressTag">Billing Address</asp:Label>
</td>
<td class="StoreAccountOrderHeaderHeader">
<asp:Label id="lblShippingAddressTag" Runat="server" resourcekey="lblShippingAddressTag">Shipping Address</asp:Label>
</td>
<td class="StoreAccountOrderHeaderStatusButtons">
<asp:Button ID="btnPayNow" runat="server" resourcekey="btnPayNow" Text="Pay Now!" CssClass="dnnPrimaryAction" />
</td>
</tr>
<tr>
<td class="StoreAccountOrderHeaderBillTo">
<asp:label id="lblBillTo" runat="server" enableviewstate="false"></asp:label>
</td>
<td class="StoreAccountOrderHeaderShipTo">
<asp:label id="lblShipTo" runat="server" enableviewstate="false"></asp:label>
</td>
<td>
<asp:Button id="btnCancel" runat="server" resourcekey="btnCancel" Text="Cancel Order" CssClass="dnnSecondaryAction" />
</td>
</tr>
</table>
</div>
<div class="dnnFormItem">
<asp:datagrid id="grdOrderDetails" runat="server" showheader="true" showfooter="false" autogeneratecolumns="false" CssClass="StoreAccountOrderBody">
<HeaderStyle CssClass="StoreAccountOrderBodyHeader" />
<ItemStyle CssClass="StoreAccountOrderBodyItem" />
<AlternatingItemStyle CssClass="StoreAccountOrderBodyAlternatingItem" />
<columns>
<asp:templatecolumn HeaderStyle-CssClass="StoreAccountOrderBodyProductHeader" ItemStyle-CssClass="StoreAccountOrderBodyProduct">
<headertemplate>
<asp:Label id="lblModelName" Runat="server" resourcekey="lblModelName">Model Name</asp:Label>
</headertemplate>
<itemtemplate>
<asp:label id="Label1" runat="server"></asp:label>
</itemtemplate>
</asp:templatecolumn>
<asp:templatecolumn HeaderStyle-CssClass="StoreAccountOrderBodyQtyHeader" ItemStyle-CssClass="StoreAccountOrderBodyQty">
<headertemplate>
<asp:Label id="lblQty" Runat="server" resourcekey="lblQty">Qty</asp:Label>
</headertemplate>
<itemtemplate>
<asp:label id="Label3" runat="server"><%# DataBinder.Eval(Container.DataItem, "Quantity") %></asp:label>
</itemtemplate>
</asp:templatecolumn>
<asp:templatecolumn HeaderStyle-CssClass="StoreAccountOrderBodyPriceHeader" ItemStyle-CssClass="StoreAccountOrderBodyPrice">
<headertemplate>
<asp:Label id="lblODPrice" Runat="server" resourcekey="lblODPrice">Price</asp:Label>
</headertemplate>
<itemtemplate>
<asp:label id="lblODPriceText" runat="server"></asp:label>
</itemtemplate>
</asp:templatecolumn>
<asp:templatecolumn HeaderStyle-CssClass="StoreAccountOrderBodySubtotalHeader" ItemStyle-CssClass="StoreAccountOrderBodySubtotal">
<headertemplate>
<asp:Label id="lblODSubtotal" Runat="server" resourcekey="lblODSubtotal">Subtotal</asp:Label>
</headertemplate>
<itemtemplate>
<asp:label id="lblODSubtotalText" runat="server"></asp:label>
</itemtemplate>
</asp:templatecolumn>
</columns>
</asp:datagrid>
</div>
<div class="dnnFormItem">
<table class="StoreAccountOrderFooter">
<tr id="trTotal" runat="server">
<td class="StoreAccountOrderFooterHeader">
<asp:Label id="lblTotalTag" Runat="server" resourcekey="lblTotalTag">Sub-total:</asp:Label>
</td>
<td class="StoreAccountOrderFooterValue StoreAccountOrderFooterTotal">
<asp:Label id="lblTotal" runat="server" EnableViewState="false"></asp:Label>
</td>
</tr>
<tr id="trDiscount" runat="server">
<td class="StoreAccountOrderFooterHeader">
<asp:Label id="lblDiscountTag" Runat="server" resourcekey="lblDiscountTag">Discount:</asp:Label>
</td>
<td class="StoreAccountOrderFooterValue StoreAccountOrderFooterDiscount">
<asp:Label id="lblDiscount" runat="server" EnableViewState="false"></asp:Label>
</td>
</tr>
<tr id="trShipping" runat="server">
<td class="StoreAccountOrderFooterHeader">
<asp:Label id="lblPostageTag" Runat="server" resourcekey="lblPostageTag">Shipping & Handling:</asp:Label>
</td>
<td class="StoreAccountOrderFooterValue StoreAccountOrderFooterShipping">
<asp:Label id="lblPostage" runat="server" EnableViewState="false"></asp:Label>
</td>
</tr>
<tr id="trTax" runat="server">
<td class="StoreAccountOrderFooterHeader">
<asp:Label id="lblTaxTag" Runat="server" resourcekey="lblTaxTag">Tax:</asp:Label>
</td>
<td class="StoreAccountOrderFooterValue StoreAccountOrderFooterTax">
<asp:Label id="lblTax" runat="server" EnableViewState="false"></asp:Label>
</td>
</tr>
<tr>
<td class="StoreAccountOrderFooterHeader">
<asp:Label id="lblTotalIncPostageTag" Runat="server" resourcekey="lblTotalIncPostageTag">Total:</asp:Label>
</td>
<td class="StoreAccountOrderFooterValue StoreAccountOrderFooterGrandTotal">
<asp:Label id="lblTotalIncPostage" runat="server" EnableViewState="false"></asp:Label>
</td>
</tr>
<tr id="OrderStatusManagement" runat="server" visible="false">
<td colspan="2">
<fieldset class="StoreAccountOrderSatutsManagement">
<legend>
<asp:Label id="lblOrderStatusManagement" runat="server" resourcekey="lblOrderStatusManagement">Order Status Management</asp:Label>
</legend>
<table width="100%">
<tr>
<td>
<asp:Label ID="lblCommentToCustomer" runat="server" resourcekey="lblCommentToCustomer">Comment to the customer (optional):</asp:Label><br />
<asp:TextBox ID="txtCommentToCustomer" runat="server" TextMode="MultiLine" Width="100%" Height="60px" ></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblChangeStatus" runat="server" resourcekey="lblChangeStatus">Change Status:</asp:Label>
<asp:DropDownList id="ddlOrderStatus" runat="server"></asp:DropDownList>
<asp:CheckBox ID="chkSendEmailStatus" runat="server" resourcekey="chkSendEmailStatus" Checked="true" />
<asp:LinkButton id="lnkbtnSave" runat="server" resourcekey="lnkbtnSave" CssClass="dnnPrimaryAction StoreAccountOrderHeaderButtonSave">Save</asp:LinkButton>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr>
<td class="StoreAccountOrderFooterBack" colspan="2">
<asp:Button ID="btnBack" runat="server" resourcekey="btnBack" Text=" << " CssClass="dnnSecondaryAction" />
</td>
</tr>
</table>
</div>
</fieldset>
</asp:panel>
</asp:placeholder>
</asp:Panel>