-
Notifications
You must be signed in to change notification settings - Fork 16
/
FindClaimAdministrator.aspx
395 lines (340 loc) · 18.2 KB
/
FindClaimAdministrator.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
387
388
389
390
391
392
393
394
395
<%-- 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" AutoEventWireup="false" MasterPageFile="~/IMIS.Master" CodeBehind="FindClaimAdministrator.aspx.vb" Inherits="IMIS.FindClaimAdministrator"
title='<%$ Resources:Resource,L_FINDCLAIMADMINISTRATORS %>' %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" language="javascript">
$(document).ready(function () {
bindRowSelection();
$('#<%= B_SEARCH.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;
}
});
});
/** Ruzo Grid Row Selection 29 Aug 2014 >> Start **/
function bindRowSelection() {
var $trs = $('#<%=gvClaimAdministrators.ClientID%> tr')
$trs.unbind("hover").hover(function () {
if ($(this).index() < 1 || $(this).is(".pgr")) return;
$trs.removeClass("alt");
$(this).addClass("alt");
}, function () {
if ($(this).index() < 1 || $(this).is(".pgr")) return;
$(this).removeClass("alt");
});
$trs.unbind("click").click(function () {
if ($(this).index() < 1 || $(this).is(".pgr")) return;
$trs.removeClass("srs");
$(this).addClass("srs");
fillSelectedRowData($(this))
});
if ($trs.filter(".srs").length > 0) {
$trs.filter(".srs").eq(0).trigger("click");
} else {
$trs.eq(1).trigger("click");
}
$trs.unbind("dblclick").dblclick(function () {
if ($(this).index() < 1 || $(this).is(".pgr")) return;
fillSelectedRowData($(this));
customDoPostback("<%=B_EDIT.UniqueID%>", "");
});
}
function fillSelectedRowData($row) {
var $anchor = $row.find("td").eq(0).find("a");
var dataNavStringParts = $anchor.attr("href").split("=")
$("#<%=hfClaimAdministratorId.ClientID%>").val(dataNavStringParts[1]);
$("#<%=hfClaimAdministratorCode.ClientID%>").val($anchor.html());
var $hasLogin = $row.find("td").eq(7).html()
$("#<%=hfHasLogin.ClientID%>").val($hasLogin);
}
/** Ruzo Grid Row Selection 29 Aug 2014 >> End **/
</script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="Body" Runat="Server">
<asp:HiddenField ID="hfClaimAdministratorId" runat="server" />
<asp:HiddenField ID="hfClaimAdministratorCode" runat="server" />
<asp:HiddenField ID="hfHasLogin" runat="server" />
<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:Panel ID="pnlTop" runat="server" GroupingText='<%$ Resources:Resource,G_CLAIMADMINISTRATOR %>' CssClass="panelTop" >
<table>
<tr>
<td>
<table>
<tr>
<td class="FormLabel">
<asp:Label
ID="L_LASTNAME"
runat="server"
Text='<%$ Resources:Resource,L_LASTNAME %>'>
</asp:Label>
</td>
<td class ="DataEntry">
<asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
</td>
<td class="FormLabel">
<asp:Label
ID="L_OTHERNAMES"
runat="server"
Text='<%$ Resources:Resource,L_OTHERNAMES %>'>
</asp:Label>
</td>
<td class ="DataEntry">
<asp:TextBox ID="txtOtherNames" runat="server"></asp:TextBox>
</td>
<td class="FormLabel">
<asp:Label ID="lblHFCode" runat="server" Text='<%$ Resources:Resource,L_HFCODE%>'></asp:Label>
</td>
<td class ="DataEntry">
<asp:DropDownList ID="ddlHFCode" runat="server" ></asp:DropDownList>
</td>
</tr>
<tr>
<td class="FormLabel">
<asp:Label ID="L_CODE" runat="server" Text="<%$ Resources:Resource,L_CODE %>">
</asp:Label>
</td>
<td class="DataEntry">
<asp:TextBox ID="txtCode" runat="server" MaxLength="8">
</asp:TextBox>
</td>
<td class ="FormLabel">
<asp:Label
ID="L_DOBFROM"
runat="server"
Text='<%$ Resources:Resource,L_BIRTHDATEFROM %>'></asp:Label>
</td>
<td class ="DataEntry">
<asp:TextBox
ID="txtDOBFrom"
runat="server" Width="120px" CssClass="dateCheck"></asp:TextBox>
<asp:Button ID="btnDateFrom" runat="server" Height="20px" Width="20px" />
<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDOBFrom" PopupButtonID="btnDateFrom" Format="dd/MM/yyyy"></asp:CalendarExtender>
<%-- <asp:MaskedEditExtender ID="txtDOBFrom_MaskedEditExtender" runat="server"
CultureDateFormat="dd/MM/YYYY"
TargetControlID="txtDOBFrom" Mask="99/99/9999" MaskType="Date"
UserDateFormat="DayMonthYear">
</asp:MaskedEditExtender>--%>
</td>
<td class="FormLabel">
<asp:Label ID="Label1" runat="server" Text="<%$ Resources:Resource,L_PHONE %>">
</asp:Label>
</td>
<td class ="DataEntry">
<asp:TextBox ID="txtPhone" runat="server">
</asp:TextBox>
</td>
</tr>
<tr>
<td class="FormLabel">
<asp:Label ID="L_Email" runat="server" style="direction: ltr" Text="<%$ Resources:Resource,L_EMAIL %>"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtEmail" runat="server" MaxLength="200"></asp:TextBox>
</td>
<td class ="FormLabel">
<asp:Label
ID="L_BIRTHDATETO"
runat="server"
Text='<%$ Resources:Resource,L_BIRTHDATETO %>'></asp:Label>
</td>
<td class ="DataEntry">
<asp:TextBox
ID="txtDOBTo"
runat="server" Width="120 px" CssClass="dateCheck" ></asp:TextBox>
<asp:Button ID="btnDateTo" runat="server" Height="20px" Width="20px" />
<asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDOBTo" PopupButtonID="btnDateTo" Format="dd/MM/yyyy"></asp:CalendarExtender>
<%-- <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server"
CultureDateFormat="dd/MM/YYYY"
TargetControlID="txtDOBTo" Mask="99/99/9999" MaskType="Date"
UserDateFormat="DayMonthYear">
</asp:MaskedEditExtender>--%>
</td>
<td class="FormLabel">
</td>
<td>
</td>
</tr>
<tr>
<td >
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</td>
<td>
<br />
<asp:CheckBox class="checkbox" AutoPostBack="True" ID="chkLegacy" runat="server" Text='<%$ Resources:Resource,L_ALL %>' />
<br />
<br />
<asp:Button class="button" ID="B_SEARCH" runat="server"
Text='<%$ Resources:Resource,B_SEARCH %>' >
</asp:Button>
<br />
</td>
</tr>
</table>
</asp:Panel>
<table class="catlabel">
<tr>
<td >
<asp:label
ID="lblFoundClaimAdministrators"
runat="server"
Text='<%$ Resources:Resource,L_FOUNDCLAIMADMINISTRATORS %>'> </asp:label>
</td>
</tr>
</table>
<asp:Panel ID="pnlGrid" runat="server"
CssClass="panelBody" ScrollBars="Auto">
<asp:GridView ID="gvClaimAdministrators" runat="server"
AutoGenerateColumns="False"
GridLines="None"
AllowPaging="True" PagerSettings-FirstPageText = "First Page"
PagerSettings-LastPageText = "Last Page" PagerSettings-Mode ="NumericFirstLast" PageSize="15"
CssClass="mGrid"
PagerStyle-CssClass="pgr"
DataKeyNames="ClaimAdminID,ClaimAdminCode"
EmptyDataText='<%$ Resources:Resource,L_NORECORDS %>'
>
<Columns>
<asp:HyperLinkField DataNavigateUrlFields = "ClaimAdminUUID" DataTextField="ClaimAdminCode" DataNavigateUrlFormatString = "ClaimAdministrator.aspx?a={0}" HeaderText='<%$ Resources:Resource,L_Code %>' HeaderStyle-Width ="80px" >
<HeaderStyle Width="80px" />
</asp:HyperLinkField>
<asp:CommandField SelectText ="Select" ShowSelectButton="true"
ItemStyle-CssClass = "HideButton" HeaderStyle-CssClass ="HideButton" >
<HeaderStyle CssClass="HideButton" />
<ItemStyle CssClass="HideButton" />
</asp:CommandField>
<asp:BoundField DataField="LastName" HeaderText='<%$ Resources:Resource,L_LASTNAME%>'
SortExpression="LastName" HeaderStyle-Width ="160px">
<HeaderStyle Width="160px" />
</asp:BoundField>
<asp:BoundField DataField="OtherNames" HeaderText='<%$ Resources:Resource,L_OTHERNAMES%>'
SortExpression="OtherNames" HeaderStyle-Width ="160px">
<HeaderStyle Width="160px" />
</asp:BoundField>
<asp:BoundField DataField="HFCode" HeaderText='<%$ Resources:Resource,L_HFCODE %>' SortExpression="hfcode"
HeaderStyle-Width="70px">
<HeaderStyle Width="70px" />
<ItemStyle Width="70px" />
</asp:BoundField>
<asp:BoundField DataField="DOB"
HeaderText='<%$ Resources:Resource,L_BIRTHDATE %>' SortExpression="DOB"
HeaderStyle-Width="70px" DataFormatString="{0:d}">
<HeaderStyle Width="70px" />
</asp:BoundField>
<asp:BoundField DataField="Phone" HeaderText='<%$ Resources:Resource,L_PHONE %>'
SortExpression="Phone" HeaderStyle-Width="100px" >
<HeaderStyle Width="100px" />
</asp:BoundField>
<asp:BoundField DataField="HasLogin" HeaderText='<%$ Resources:Resource,L_HASLOGIN %>' SortExpression="HasLogin" HeaderStyle-Width="100px" >
<HeaderStyle Width="100px" />
</asp:BoundField>
<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" />
<AlternatingRowStyle CssClass="alt" />
<SelectedRowStyle CssClass="srs" />
<PagerSettings FirstPageText="First Page" LastPageText="Last Page"
Mode="NumericFirstLast" />
<RowStyle CssClass="normal" />
</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
ID="B_EDIT"
runat="server"
Text='<%$ Resources:Resource,B_EDIT%>'
ValidationGroup="check" />
</td>
<td align="left" >
<%--<asp:Button
Visible ="false"
ID="B_VIEW"
runat="server"
Text='<%$ Resources:Resource,B_VIEW%>'
/>--%>
</td>
<td align="center">
<asp:Button
ID="B_DELETE"
runat="server"
Text='<%$ Resources:Resource,B_DELETE%>'
OnClientClick="return showmodalPopup();"
/>
</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="Content2" ContentPlaceHolderID="Footer" Runat="Server">
<asp:label id="lblMsg" runat="server"></asp:label>
</asp:Content>