-
Notifications
You must be signed in to change notification settings - Fork 16
/
FindPremium.aspx
386 lines (342 loc) · 21.2 KB
/
FindPremium.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
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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
<%-- Copyright (c) 2016-2017 Swiss Agency for Development and Cooperation (SDC)
The program users must agree to the following terms:
Copyright notices
This program is free software: you can redistribute it and/or modify it under the terms of the GNU AGPL v3 License as published by the
Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL v3 License for more details www.gnu.org.
Disclaimer of Warranty
There is no warranty for the program, to the extent permitted by applicable law; except when otherwise stated in writing the copyright
holders and/or other parties provide the program "as is" without warranty of any kind, either expressed or implied, including, but not
limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and
performance of the program is with you. Should the program prove defective, you assume the cost of all necessary servicing, repair or correction.
Limitation of Liability
In no event unless required by applicable law or agreed to in writing will any copyright holder, or any other party who modifies and/or
conveys the program as permitted above, be liable to you for damages, including any general, special, incidental or consequential damages
arising out of the use or inability to use the program (including but not limited to loss of data or data being rendered inaccurate or losses
sustained by you or third parties or a failure of the program to operate with any other programs), even if such holder or other party has been
advised of the possibility of such damages.
In case of dispute arising out or in relation to the use of the program, it is subject to the public law of Switzerland. The place of jurisdiction is Berne.--%>
<%@ Page Language="vb" MasterPageFile="~/IMIS.Master" AutoEventWireup="false" CodeBehind="FindPremium.aspx.vb" Inherits="IMIS.FindPremium"
Title='<%$ Resources:Resource,L_FINDPREMIUM %>' %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Body" runat="Server">
<script type="text/javascript">
$(document).ready(function () {
$('#<%= btnSearch.ClientID %>').click(function (e) {
var passed = true;
$DateControls = $('.dateCheck');
$DateControls.each(function () {
if ($(this).val().length > 0 && !isValidJSDate($(this).val())) {
$('#<%=lblMsg.ClientID%>').html('<%= imisgen.getMessage("M_INVALIDDATE", True ) %>');
$(this).focus();
passed = false;
return false;
}
});
if (passed == false) {
return false;
}
});
});
</script>
<div class="divBody">
<table class="catlabel">
<tr>
<td>
<asp:Label ID="Label8" runat="server" Text='<%$ Resources:Resource,L_SELECTCRITERIA %>'></asp:Label>
</td>
</tr>
</table>
<asp:UpdatePanel ID="upDistrict" runat="server">
<Triggers>
<asp:PostBackTrigger ControlID="btnSearch" />
<asp:PostBackTrigger ControlID="chkLegacy" />
<asp:PostBackTrigger ControlID="chkOffline" />
</Triggers>
<ContentTemplate>
<asp:Panel ID="pnlTop" runat="server" CssClass="panelTop" Style="height: auto;" GroupingText='<%$ Resources:Resource,L_PREMIUM %>'>
<table>
<tr>
<td>
<table>
<tr>
<td class="auto-style1">
<asp:Label
ID="L_Payer"
runat="server"
Text='<%$ Resources:Resource,L_PAYER %>'></asp:Label>
</td>
<td class="DataEntry">
<asp:DropDownList ID="ddlPayer" runat="server">
</asp:DropDownList>
</td>
<td class="auto-style1">
<asp:Label ID="L_PaymentDate" runat="server" Text='<%$ Resources:Resource,L_PAYDATEFROM %>'></asp:Label>
</td>
<td class="DataEntry">
<asp:TextBox
ID="txtDateOfPaymentFrom"
runat="server"
Width="120px"
CssClass="dateCheck">
</asp:TextBox>
<asp:Button
ID="btnDateOfPaymentFrom"
runat="server"
Class="dateButton"
padding-bottom="3px" />
<asp:CalendarExtender
ID="CalendarExtender3"
runat="server"
TargetControlID="txtDateOfPaymentFrom"
Format="dd/MM/yyyy"
PopupButtonID="btnDateOfPaymentfrom" ClearTime="True">
</asp:CalendarExtender>
</td>
<td class="auto-style1">
<asp:Label ID="lblRegion" runat="server" Text="<%$ Resources:Resource,L_REGION %>"></asp:Label>
</td>
<td class="DataEntry">
<asp:DropDownList ID="ddlRegion" runat="server" AutoPostBack="true">
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="FormLabel">
<asp:Label ID="L_TypeOfPayment" runat="server" Text='<%$ Resources:Resource,L_TYPEOFPAYMENT %>'></asp:Label>
<td class="DataEntry">
<asp:DropDownList ID="ddlPayType" runat="server">
</asp:DropDownList>
<%--<ajax:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="BirthDate" Format="dd/MM/yyyy" PopupButtonID="Button1" >
</ajax:CalendarExtender>--%>
</td>
<td class="FormLabel">
<asp:Label ID="L_PAYDATETO" runat="server" Text="<%$ Resources:Resource,L_PAYDATETO %>"></asp:Label>
</td>
<td class="DataEntry">
<asp:TextBox ID="txtDateOfPaymentTo" runat="server" CssClass="dateCheck" Width="120px">
</asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender1" runat="server" ClearTime="True" Format="dd/MM/yyyy" PopupButtonID="btnDateOfPaymentTo" TargetControlID="txtDateOfPaymentTo">
</asp:CalendarExtender>
<asp:Button ID="btnDateOfPaymentTo" runat="server" Class="dateButton" padding-bottom="3px" />
</td>
</td>
<td class="auto-style1">
<asp:Label
ID="lblDistrict"
runat="server"
Text='<%$ Resources:Resource,L_DISTRICT %>'></asp:Label>
</td>
<td class="DataEntry">
<asp:DropDownList ID="ddlDistrict" runat="server" AutoPostBack="false">
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="FormLabel">
<asp:Label ID="lblReceiptNo" runat="server" Text='<%$ Resources:Resource, L_RECEIPT %>'></asp:Label>
</td>
<td class="DataEntry">
<asp:TextBox ID="txtReceiptNo" runat="server"></asp:TextBox>
</td>
<td class="FormLabel">
<asp:Label ID="L_PremiumPaid" runat="server" Text="<%$ Resources:Resource,L_PREMIUMPAID %>"></asp:Label>
</td>
<td class="DataEntry">
<asp:TextBox ID="txtPremiumPaid" runat="server"></asp:TextBox>
</td>
<td class="FormLabel">
<asp:Label ID="Label1" runat="server" Text='<%$ Resources:Resource,L_MATCHINGDATEFROM %>'></asp:Label>
<td class="DataEntry">
<asp:TextBox
ID="txtMatchedDateFrom"
runat="server"
Width="120px"
CssClass="dateCheck">
</asp:TextBox>
<asp:Button
ID="btnMatchedDateFrom"
runat="server"
Class="dateButton"
padding-bottom="3px" />
<asp:CalendarExtender
ID="CalendarExtender4"
runat="server"
TargetControlID="txtMatchedDateFrom"
Format="dd/MM/yyyy"
PopupButtonID="btnMatchedDateFrom" ClearTime="True">
</asp:CalendarExtender>
</td>
<td class="FormLabel"></td>
<td class="DataEntry"></td>
</tr>
<tr>
<td class="FormLabel">
<%-- <asp:Label ID="Label1" runat="server" Text='<%$ Resources:Resource, L_RECEIPT %>'></asp:Label>--%>
</td>
<td class="DataEntry">
<%-- <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>--%>
</td>
<td class="FormLabel">
<%-- <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Resource,L_PREMIUMPAID %>"></asp:Label>--%>
</td>
<td class="DataEntry">
<%-- <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>--%>
</td>
<td class="FormLabel">
<asp:Label ID="Label2" runat="server" Text='<%$ Resources:Resource,L_MATCHINGDATETO %>'></asp:Label>
<td class="DataEntry">
<asp:TextBox
ID="txtMatchedDateTo"
runat="server"
Width="120px"
CssClass="dateCheck">
</asp:TextBox>
<asp:Button
ID="btnMatchedDateTo"
runat="server"
Class="dateButton"
padding-bottom="3px" />
<asp:CalendarExtender
ID="CalendarExtender2"
runat="server"
TargetControlID="txtMatchedDateTo"
Format="dd/MM/yyyy"
PopupButtonID="btnMatchedDateTo" ClearTime="True">
</asp:CalendarExtender>
</td>
<td class="FormLabel"></td>
<td class="DataEntry"></td>
</tr>
</table>
</td>
<td>
<asp:CheckBox class="checkbox" ID="chkOffline" runat="server" Text='<%$ Resources:Resource,L_OFFLINE %>' AutoPostBack="True" />
<br />
<br />
<asp:CheckBox class="checkbox" ID="chkLegacy" runat="server"
Text='<%$ Resources:Resource,L_ALL %>' AutoPostBack="True" />
<br />
<br />
<asp:Button class="button" ID="btnSearch" runat="server"
Text='<%$ Resources:Resource,B_SEARCH %>'></asp:Button>
<br />
</td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
<table class="catlabel">
<tr>
<td>
<asp:Label
ID="L_FOUNDPREMIUM"
runat="server"
Text='<%$ Resources:Resource,L_FOUNDPREMIUMS %>'>
</asp:Label>
</td>
</tr>
</table>
<asp:Panel ID="pnlBody" runat="server" CssClass="panelBody">
<asp:GridView ID="gvPremiums" runat="server"
AutoGenerateColumns="False"
GridLines="None"
AllowPaging="true" PagerSettings-FirstPageText="First Page" PagerSettings-LastPageText="Last Page" PagerSettings-Mode="NumericFirstLast"
CssClass="mGrid"
EmptyDataText='<%$ Resources:Resource,L_NORECORDS %>'
PagerStyle-CssClass="pgr" PageSize="15"
AlternatingRowStyle-CssClass="alt"
SelectedRowStyle-CssClass="srs" DataKeyNames="FamilyID,PremiumUUID">
<Columns>
<%-- <asp:BoundField DataField="Gender" HeaderText="GENDER" SortExpression="Gender" />
<asp:BoundField DataField="DOB" DataFormatString="{0:d}" HeaderText="DATE OF BIRTH" SortExpression="DOB" />
<asp:CheckBoxField DataField="CardIssued" HeaderText="CARD" SortExpression="CardIssued" />--%><asp:CommandField
HeaderStyle-CssClass="HideButton" ItemStyle-CssClass="HideButton"
SelectText="Select" ShowSelectButton="true">
<HeaderStyle CssClass="HideButton" />
<ItemStyle CssClass="HideButton" />
</asp:CommandField>
<asp:HyperLinkField DataNavigateUrlFields="FamilyUUID,PremiumUUID,PolicyUUID" DataTextFormatString="{0:d}"
DataNavigateUrlFormatString="OverviewFamily.aspx?p={1}&f={0}&po={2}"
DataTextField="PayDate" HeaderText='<%$ Resources:Resource,L_PAYDATE %>' />
<asp:BoundField DataField="Amount" HeaderText='<%$ Resources:Resource,L_PREMIUMPAID %>'
SortExpression="Amount" DataFormatString="{0:n2}">
<HeaderStyle Width="130px" />
</asp:BoundField>
<asp:BoundField DataField="PayerName"
HeaderText='<%$ Resources:Resource,L_PAYER %>'>
<HeaderStyle Width="130px" />
</asp:BoundField>
<asp:BoundField DataField="PayType" HeaderText='<%$ Resources:Resource,L_TYPEOFPAYMENT %>'
SortExpression="PayType" />
<asp:BoundField DataField="Receipt" HeaderText='<%$ Resources:Resource,L_RECEIPT %>'
SortExpression="Receipt" />
<asp:BoundField DataField="MatchedAmount" HeaderText='<%$ Resources:Resource,L_MATCHEDAMOUNT %>'
SortExpression="MatchedAmount" />
<asp:BoundField DataField="ValidityFrom" DataFormatString="{0:d}" HeaderText='<%$ Resources:Resource,L_VALIDFROM %>' SortExpression="ValidityFrom" HeaderStyle-Width="70px">
<HeaderStyle Width="70px" />
</asp:BoundField>
<asp:BoundField DataField="ValidityTo" DataFormatString="{0:d}" HeaderText='<%$ Resources:Resource,L_VALIDTO %>' SortExpression="ValidityTo" HeaderStyle-Width="70px">
<HeaderStyle Width="70px" />
</asp:BoundField>
</Columns>
<PagerStyle CssClass="pgr" />
<SelectedRowStyle CssClass="srs" />
<AlternatingRowStyle CssClass="alt" />
<RowStyle CssClass="normal" Wrap="False" />
</asp:GridView>
</asp:Panel>
</div>
<asp:Panel ID="pnlButtons" runat="server" CssClass="panelbuttons">
<table width="100%" cellpadding="10 10 10 10">
<tr>
<td align="left">
<%--<asp:Button
ID="B_ADD"
runat="server"
Text='<%$ Resources:Resource,B_ADD%>'
/>--%>
</td>
<td align="center">
<asp:Button
Visible="false"
ID="B_VIEW"
runat="server"
Text='<%$ Resources:Resource,B_VIEW%>' />
</td>
<td align="center">
<%-- <asp:Button
ID="B_EDIT"
runat="server"
Text='<%$ Resources:Resource,B_EDIT%>'
ValidationGroup="check" />--%>
</td>
<td align="right">
<asp:Button
ID="B_CANCEL"
runat="server"
Text='<%$ Resources:Resource,B_CANCEL%>' />
</td>
</tr>
</table>
</asp:Panel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Footer" Runat="Server" Visible="true" >
<asp:Label text="" runat="server" ID="lblMsg"> </asp:Label>
</asp:Content>
<asp:Content ID="Content4" runat="server" contentplaceholderid="head">
<style type="text/css">
.auto-style1 {
height: 27px;
width: 150px;
text-align: right;
color: Blue;
font-weight: normal;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
padding-right: 5px;
}
</style>
</asp:Content>