-
Notifications
You must be signed in to change notification settings - Fork 16
/
FindMedicalService.aspx
260 lines (221 loc) · 12.1 KB
/
FindMedicalService.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
<%-- 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="FindMedicalService.aspx.vb" Inherits="IMIS.FindMedicalService"
title= '<%$ Resources:Resource,L_FINDMEDICALSERVICES %>' %>
<%@ 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();
});
/** Ruzo Grid Row Selection 29 Aug 2014 >> Start **/
function bindRowSelection() {
var $trs = $('#<%=gvService.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(1).find("a");
var dataNavStringParts = $anchor.attr("href").split("=")
$("#<%=hfServId.ClientID%>").val(dataNavStringParts[1]);
$("#<%=hfServCode.ClientID%>").val($anchor.html());
}
/** Ruzo Grid Row Selection 29 Aug 2014 >> End **/
</script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="Body" Runat="Server">
<asp:HiddenField ID="hfServId" runat="server" />
<asp:HiddenField ID="hfServCode" 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" CssClass="panelTop" GroupingText='<%$ Resources:Resource,G_MEDICALSERVICE %>'>
<table>
<tr>
<td>
<table>
<tr>
<td class="FormLabel">
<asp:Label
ID="L_SERVICECODE"
runat="server"
Text='<%$ Resources:Resource,L_Code %>'></asp:Label>
</td>
<td class ="DataEntry">
<asp:TextBox ID="txtServiceCode" runat="server" MaxLength="6"></asp:TextBox></td>
<td class="FormLabel">
<asp:Label
ID="L_SERVICENAME"
runat="server"
Text='<%$ Resources:Resource,L_NAME %>'>
</asp:Label>
</td>
<td class ="DataEntry">
<asp:TextBox ID="txtServiceName" runat="server" Width="150px" MaxLength="100"></asp:TextBox>
<td class ="FormLabel">
<asp:Label
ID="L_SERVICETYPE"
runat="server"
Text='<%$ Resources:Resource,L_TYPE %>'>
</asp:Label>
</td>
<td class="DataEntry">
<asp:DropDownList ID="ddlType" runat="server" Width="165px">
</asp:DropDownList>
</td>
</tr>
</table>
</td>
<td>
<br />
<asp:CheckBox class="checkbox" ID="chkLegacy" runat="server"
Text='<%$ Resources:Resource,L_ALL %>' AutoPostBack="True" />
<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="L_FOUNDUSERS"
runat="server"
Text='<%$ Resources:Resource,L_FOUNDSERVICES %>'> </asp:label>
</td>
</tr>
</table>
<asp:Panel ID="pnlGrid" runat="server"
CssClass="panelBody" Text='<%$ Resources:Resource,L_MEDICALSERVICES %>' >
<asp:GridView ID="gvService" runat="server"
AutoGenerateColumns="False"
GridLines="None"
AllowPaging="true" PagerSettings-FirstPageText = "First Page" PagerSettings-LastPageText = "Last Page" PagerSettings-Mode ="NumericFirstLast"
CssClass="mGrid"
PagerStyle-CssClass="pgr"
DataKeyNames="ServiceID,ServCode" PageSize="15"
EmptyDataText='<%$ Resources:Resource,L_NORECORDS %>'
>
<Columns>
<asp:CommandField SelectText ="Select" ShowSelectButton="true"
ItemStyle-CssClass = "HideButton" HeaderStyle-CssClass ="HideButton" >
<HeaderStyle CssClass="HideButton" />
<ItemStyle CssClass="HideButton" />
</asp:CommandField>
<asp:HyperLinkField DataNavigateUrlFields="ServiceUUID" DataNavigateUrlFormatString="MedicalService.aspx?s={0}" DataTextField="ServCode" HeaderText='<%$ Resources:Resource,L_Code %>' SortExpression="ServCode" HeaderStyle-Width ="60px"/>
<asp:BoundField DataField="ServName" HeaderText='<%$ Resources:Resource,L_NAME %>' SortExpression="ServName">
</asp:BoundField>
<asp:BoundField DataField="ServType" HeaderText='<%$ Resources:Resource,L_TYPE %>' SortExpression="ServType"
HeaderStyle-Width ="110px">
</asp:BoundField>
<asp:BoundField DataField="ServLevel" HeaderText='<%$ Resources:Resource,L_LEVEL %>' SortExpression="ServLevel"
HeaderStyle-Width="100px">
</asp:BoundField>
<asp:BoundField DataField="ServPrice" HeaderText='<%$ Resources:Resource,L_PRICE %>' SortExpression="ServPrice" headerstyle-width="80px" DataFormatString="{0:n2}" ItemStyle-HorizontalAlign="Right"/>
<asp:BoundField DataField="ValidityFrom" DataFormatString="{0:d}" HeaderText='<%$ Resources:Resource,L_VALIDFROM%>' SortExpression="ValidityFrom" HeaderStyle-Width="70px"> </asp:BoundField>
<asp:BoundField DataField="ValidityTo" DataFormatString="{0:d}" HeaderText='<%$ Resources:Resource,L_VALIDTO%>' SortExpression="ValidityTo" HeaderStyle-Width="70px"> </asp:BoundField>
</Columns>
<PagerStyle CssClass="pgr" />
<AlternatingRowStyle CssClass="alt" />
<SelectedRowStyle CssClass="srs" />
<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="Content3" ContentPlaceHolderID="Footer" Runat="Server">
<asp:Label text="" runat="server" ID="lblMsg"> </asp:Label>
<asp:ValidationSummary ID="validationSummary" runat="server" HeaderText='<%$ Resources:Resource,V_SUMMARY%>' ValidationGroup="check" />
</asp:Content>