Subversion Repository Public Repository

Pharmacy_09_03_18

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
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="IPBillingDetail" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" scriptletClass="com.reporter.jasper.ConvertToWord" isIgnorePagination="true" uuid="cb2a7ca0-487f-4c72-97cc-f313c5ccb19e">
	<property name="ireport.zoom" value="1.5"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="96"/>
	<style name="table">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 1">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 1_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 1_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 1_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<parameter name="encId" class="java.lang.Integer"/>
	<queryString>
		<![CDATA[SELECT
     concat(t_patient.`patient_f_name`,' ',t_patient.`patient_m_name`,' ',t_patient.`patient_l_name`) AS patent_name,
     DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS(t_patient.`birth_date`)),'%m%y') AS age,
     TIMESTAMPDIFF(YEAR,t_patient.`birth_date`,CURDATE()) AS ageyr,
     TIMESTAMPDIFF(MONTH,t_patient.`birth_date`,CURDATE())%12 AS agemn,
     concat('AT/PO- ',t_patient.`present_address1`) AS present_address1,
     concat('C/O- ',t_patient.`present_address2`) AS present_address2,
     concat('City- ',t_patient.`present_patient_city`) AS t_patient_present_patient_city,
     concat('Dist- ',t_patient.`present_patient_district`) AS t_patient_present_patient_district,
     concat('State- ',ifnull(t_patient.`present_patient_state`,'')) AS t_patient_present_patient_state,
     t_outdoorbilling.`BillingDetails_Name` AS t_outdoorbilling_BillingDetails_Name,
     t_outdoorbilling.`OutDoorBilling_Amount` AS t_outdoorbilling_OutDoorBilling_Amount,
     t_outdoorbilling.`inpatient_charge_enc` AS t_outdoorbilling_inpatient_charge_enc,
     t_patient.`patient_id` AS t_patient_patient_id,
     t_patient.`patient_gender` AS t_patient_patient_gender,
     t_patient.`birth_date` AS t_patient_birth_date,
     t_outdoorbilling.`invoice_no` AS t_outdoorbilling_invoice_no,
     t_outdoorbilling.`item_date` AS t_outdoorbilling_item_date
FROM
     `t_pat_enc` t_pat_enc INNER JOIN `t_outdoorbilling` t_outdoorbilling ON t_pat_enc.`enc_id` = t_outdoorbilling.`inpatient_charge_enc`
     INNER JOIN `t_patient` t_patient ON t_pat_enc.`mrn_id` = t_patient.`id`
WHERE
     t_outdoorbilling.`inpatient_charge_enc` = $P{encId}]]>
	</queryString>
	<field name="patent_name" class="java.lang.String"/>
	<field name="age" class="java.lang.String"/>
	<field name="ageyr" class="java.lang.Long"/>
	<field name="agemn" class="java.lang.Long"/>
	<field name="present_address1" class="java.lang.String">
		<fieldDescription><![CDATA[]]></fieldDescription>
	</field>
	<field name="present_address2" class="java.lang.String">
		<fieldDescription><![CDATA[]]></fieldDescription>
	</field>
	<field name="t_patient_present_patient_city" class="java.lang.String"/>
	<field name="t_patient_present_patient_district" class="java.lang.String"/>
	<field name="t_patient_present_patient_state" class="java.lang.String"/>
	<field name="t_outdoorbilling_BillingDetails_Name" class="java.lang.String"/>
	<field name="t_outdoorbilling_OutDoorBilling_Amount" class="java.lang.Double"/>
	<field name="t_outdoorbilling_inpatient_charge_enc" class="java.lang.Long"/>
	<field name="t_patient_patient_id" class="java.lang.String"/>
	<field name="t_patient_patient_gender" class="java.lang.String"/>
	<field name="t_patient_birth_date" class="java.sql.Date"/>
	<field name="t_outdoorbilling_invoice_no" class="java.lang.String"/>
	<field name="t_outdoorbilling_item_date" class="java.sql.Timestamp"/>
	<variable name="Total" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{t_outdoorbilling_OutDoorBilling_Amount}]]></variableExpression>
	</variable>
	<variable name="TotalInttoWords" class="java.lang.String"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="82" splitType="Stretch">
			<staticText>
				<reportElement x="46" y="0" width="423" height="25" uuid="f7838f92-9f4f-4a1a-9d95-db752308105d"/>
				<textElement verticalAlignment="Middle">
					<font size="18" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[ODISHA ORTHOPAEDICS HOSPITAL PVT.LTD.]]></text>
			</staticText>
			<staticText>
				<reportElement x="46" y="25" width="423" height="20" uuid="6793e2a7-1058-4f2b-b165-ab55392daa87"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="Bookman Old Style" size="14"/>
				</textElement>
				<text><![CDATA[Kathagola,Mangalabag,Cuttack,753001]]></text>
			</staticText>
			<staticText>
				<reportElement x="46" y="45" width="423" height="20" uuid="14045c75-6219-49ea-b0ce-143b74fa2b48"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="Bookman Old Style" size="14"/>
				</textElement>
				<text><![CDATA[Ph.:067-2304200,Cell:9040665000,9040775000]]></text>
			</staticText>
		</band>
	</title>
	<pageHeader>
		<band height="117" splitType="Stretch">
			<staticText>
				<reportElement x="0" y="95" width="118" height="20" uuid="e8ce3362-d42c-4179-9768-a929c87c5198"/>
				<textElement verticalAlignment="Middle">
					<font fontName="Bookman Old Style" size="12" isBold="true"/>
				</textElement>
				<text><![CDATA[Bill Information :]]></text>
			</staticText>
			<rectangle>
				<reportElement x="0" y="5" width="555" height="25" uuid="ad66bf4a-8c9a-41f2-a1b3-3e945eba572f"/>
			</rectangle>
			<staticText>
				<reportElement x="220" y="5" width="149" height="25" uuid="72bc7bc4-2281-49a0-8b33-c76c692f5da3"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="12" isBold="true"/>
				</textElement>
				<text><![CDATA[OutDoor Billing Details]]></text>
			</staticText>
			<textField>
				<reportElement x="163" y="34" width="221" height="20" forecolor="#3333FF" uuid="3d2fd494-bf43-476d-940a-0fe0a2ddceb3"/>
				<textFieldExpression><![CDATA[$F{patent_name}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="388" y="34" width="66" height="20" uuid="2624f773-062a-4f87-a35c-fcfc2584023a"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Invoice No.:]]></text>
			</staticText>
			<textField>
				<reportElement x="455" y="34" width="88" height="20" forecolor="#3333FF" uuid="f2f24691-d019-4a1b-9ce3-04792c30e954"/>
				<textElement textAlignment="Center"/>
				<textFieldExpression><![CDATA[$F{t_outdoorbilling_invoice_no}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="389" y="55" width="65" height="20" uuid="062d35a7-e8bb-49ec-a008-6881787bc0ac"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Billing Date:]]></text>
			</staticText>
			<textField>
				<reportElement x="455" y="55" width="88" height="20" forecolor="#3333FF" uuid="356a3261-72a5-4266-af62-e0c3a33a1f5d"/>
				<textElement textAlignment="Center"/>
				<textFieldExpression><![CDATA[$F{t_outdoorbilling_item_date}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="9" y="34" width="153" height="20" uuid="78883e3b-d58d-4082-a1f3-a670a8564e16"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Received with thanks from M/s.:]]></text>
			</staticText>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="16" splitType="Stretch">
			<staticText>
				<reportElement x="94" y="1" width="132" height="15" forecolor="#333333" uuid="968ac2e0-e4de-4186-bb4d-8310d863ee54"/>
				<box>
					<pen lineWidth="0.0"/>
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="0.0"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="Serif" size="11" isBold="true"/>
				</textElement>
				<text><![CDATA[Particular Name]]></text>
			</staticText>
			<staticText>
				<reportElement x="373" y="1" width="79" height="15" forecolor="#333333" uuid="df8b66f3-aad8-4ceb-a670-307be5202217"/>
				<box>
					<pen lineWidth="0.0"/>
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="0.0"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="Serif" size="11" isBold="true"/>
				</textElement>
				<text><![CDATA[Amount]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="12" splitType="Stretch">
			<textField>
				<reportElement x="33" y="0" width="281" height="12" forecolor="#3333FF" uuid="a70f1c76-0027-48cb-bc4e-6896ebbc56f9"/>
				<box>
					<pen lineWidth="0.25"/>
					<topPen lineWidth="0.25"/>
					<leftPen lineWidth="0.25"/>
					<bottomPen lineWidth="0.25"/>
					<rightPen lineWidth="0.25"/>
				</box>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{t_outdoorbilling_BillingDetails_Name}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="314" y="0" width="208" height="12" forecolor="#3333FF" uuid="b106ecc9-43e8-486e-ad11-ba6e3365bb85"/>
				<box>
					<pen lineWidth="0.25"/>
					<topPen lineWidth="0.25"/>
					<leftPen lineWidth="0.25"/>
					<bottomPen lineWidth="0.25"/>
					<rightPen lineWidth="0.25"/>
				</box>
				<textElement textAlignment="Center">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{t_outdoorbilling_OutDoorBilling_Amount}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band height="30" splitType="Stretch">
			<staticText>
				<reportElement x="200" y="0" width="114" height="12" uuid="5937313c-e5d0-4884-ac26-081d6a5b44a0"/>
				<textElement textAlignment="Right" verticalAlignment="Top">
					<font size="9"/>
				</textElement>
				<text><![CDATA[Total Amount (Rs) :]]></text>
			</staticText>
			<textField>
				<reportElement x="314" y="0" width="208" height="12" forecolor="#3333FF" uuid="ce680712-0013-498e-8835-fff591c34865"/>
				<box>
					<pen lineWidth="0.0"/>
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="0.0"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Center">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{Total}]]></textFieldExpression>
			</textField>
		</band>
	</columnFooter>
	<pageFooter>
		<band height="169" splitType="Stretch">
			<staticText>
				<reportElement x="443" y="63" width="100" height="20" uuid="8d0a9ae9-702c-4b35-9208-cf0d642678e8"/>
				<text><![CDATA[For OOH Pvt.Ltd]]></text>
			</staticText>
			<staticText>
				<reportElement x="158" y="63" width="190" height="20" uuid="a1c5a9a1-60b3-4b66-813c-affd04d7a4f5"/>
				<textElement textAlignment="Center">
					<font size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[Thanking You.]]></text>
			</staticText>
			<staticText>
				<reportElement x="10" y="17" width="108" height="20" uuid="5b902fb6-c7f1-4d32-9205-7cfa77687639"/>
				<textElement>
					<font size="12"/>
				</textElement>
				<text><![CDATA[Rupees in words:]]></text>
			</staticText>
			<line>
				<reportElement x="120" y="34" width="228" height="1" uuid="60eccade-23e9-481a-ba95-e5684619c038"/>
			</line>
		</band>
	</pageFooter>
	<summary>
		<band height="8" splitType="Stretch"/>
	</summary>
</jasperReport>

Commits for Pharmacy_09_03_18/Dr Gyana ProjectSpace/DrGyanaEMR/src/main/resources/reports/OutDoorBillingDetail.jrxml

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 27 Jul, 2018 07:30:57 +0000