SMPMI05100_입원보고서.xfdl 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI05100" position="absolute 0 0 1201 719" titletext="입원 보고서" onload="SMPMI05100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="입원 보고서" class="tit_1" position="absolute 0 0 120 25"/>
  8. <Tab id="swt_aipmmngt" taborder="1" tabindex="0" position="absolute 0 85 1195 710" onchanged="swt_aipmmngt_onchanged" anchor="all">
  9. <Tabpages>
  10. <Tabpage id="case3" text="입원환자대장">
  11. <Layouts>
  12. <Layout width="1195" height="598">
  13. <Shape id="line19" linetype="horizontal" class="line_1" position="absolute 0 23 1195 29" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  14. <Button id="btn_saveexcel" taborder="1" text="엑셀저장" class="btn7" position="absolute 1114 4 1195 23" onclick="swt_aipmmngt_case3_btn_saveexcel_onclick" anchor="top right"/>
  15. <Button id="btn_print1" taborder="2" text="출력" class="btn6" position="absolute 1060 4 1113 23" onclick="swt_aipmmngt_case3_btn_print1_onclick" anchor="top right"/>
  16. <Grid id="grd_inpatlist" taborder="3" binddataset="ds_list_inreport1" useinputpanel="false" position="absolute 0 28 1195 598" anchor="all">
  17. <Formats>
  18. <Format id="default">
  19. <Columns>
  20. <Column size="25" band="left"/>
  21. <Column size="90"/>
  22. <Column size="90"/>
  23. <Column size="37"/>
  24. <Column size="80"/>
  25. <Column size="50"/>
  26. <Column size="100"/>
  27. <Column size="60"/>
  28. <Column size="70"/>
  29. <Column size="60"/>
  30. <Column size="70"/>
  31. <Column size="40"/>
  32. <Column size="50"/>
  33. <Column size="80"/>
  34. <Column size="80"/>
  35. <Column size="40"/>
  36. <Column size="40"/>
  37. <Column size="40"/>
  38. <Column size="42"/>
  39. <Column size="60"/>
  40. </Columns>
  41. <Rows>
  42. <Row size="30" band="head"/>
  43. <Row size="24"/>
  44. </Rows>
  45. <Band id="head">
  46. <Cell/>
  47. <Cell col="1" colspan="2" text="구분" taborder="undefined"/>
  48. <Cell col="3" text="상해&#10;외인"/>
  49. <Cell col="4" text="입원일자"/>
  50. <Cell col="5" text="상태"/>
  51. <Cell col="6" text="진료과"/>
  52. <Cell col="7" text="병실"/>
  53. <Cell col="8" text="환자번호"/>
  54. <Cell col="9" text="성명"/>
  55. <Cell col="10" text="생년월일"/>
  56. <Cell col="11" text="입원&#13;&#10;약정서"/>
  57. <Cell col="12" text="약정"/>
  58. <Cell col="13" text="조합기호"/>
  59. <Cell col="14" text="보험증번호"/>
  60. <Cell col="15" text="구분"/>
  61. <Cell col="16" text="요율"/>
  62. <Cell col="17" text="KTAS"/>
  63. <Cell col="18" displaytype="normal" text="ER&#13;&#10;경유"/>
  64. <Cell col="19" text="접수자"/>
  65. </Band>
  66. <Band id="body">
  67. <Cell celltype="head" expr="expr:currow + 1"/>
  68. <Cell col="1" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:insukindnm"/>
  69. <Cell col="2" displaytype="normal" edittype="none" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:suppkindnm" wordwrap="char"/>
  70. <Cell col="3" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:tsflag"/>
  71. <Cell col="4" displaytype="date" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  72. <Cell col="5" displaytype="combo" edittype="combo" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:indschacptstat" combodataset="ds_hidden_P0019list" combocodecol="cdid" combodatacol="cdnm"/>
  73. <Cell col="6" displaytype="normal" edittype="none" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:orddeptnm"/>
  74. <Cell col="7" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:roomcd"/>
  75. <Cell col="8" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:pid"/>
  76. <Cell col="9" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:hngnm"/>
  77. <Cell col="10" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:rrgstno" mask="99/99/99"/>
  78. <Cell col="11" style="background:EXPR(bgColorAgmt != null ? bgColorAgmt : bgColor);background2:EXPR(bgColorAgmt != null ? bgColorAgmt : bgColor);" text="bind:agmtyn"/>
  79. <Cell col="12" displaytype="combo" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:agmttype" combodataset="ds_static_agmttype" combocodecol="value" combodatacol="label" enable="false"/>
  80. <Cell col="13" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:insucd" wordwrap="char"/>
  81. <Cell col="14" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:insuno" wordwrap="char"/>
  82. <Cell col="15" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:choiflag" wordwrap="char"/>
  83. <Cell col="16" displaytype="combo" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:brateflag" combodataset="ds_static_brateflag" combocodecol="value" combodatacol="label" enable="false"/>
  84. <Cell col="17" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:specordtype"/>
  85. <Cell col="18" displaytype="combo" style="background:BIND(bgColor);background2:BIND(bgColor);" combodataset="ds_static_orgordtype" combocodecol="value" combodatacol="label"/>
  86. <Cell col="19" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:rcptrid"/>
  87. </Band>
  88. </Format>
  89. </Formats>
  90. </Grid>
  91. <Static id="caption1" text="입원환자대장" class="tit_2" position="absolute 0 7 110 23"/>
  92. <CheckBox id="bool4" taborder="4" position="absolute 984 7 1009 24" falsevalue="inkind" truevalue="date" anchor="top right"/>
  93. <Static id="caption5" text="일자별" position="absolute 1007 8 1049 23" anchor="top right"/>
  94. <Static id="rectangle1" position="absolute 116 8 131 23" style="background:#b2ebf4ff;border:1 solid #808080ff ;bordertype:round 2 0 ;"/>
  95. <Static id="caption11" text="응급실 경유 병동 입원환자 (입원일자 : 응급실 등록일자)" position="absolute 140 6 448 26"/>
  96. </Layout>
  97. </Layouts>
  98. </Tabpage>
  99. <Tabpage id="case4" text="전과환자대장" class="sw_box">
  100. <Layouts>
  101. <Layout>
  102. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 23 1195 29" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  103. <Static id="caption2" text="전과환자일보" class="tit_2" position="absolute 0 7 110 23"/>
  104. <Button id="btn_print2" taborder="1" text="출력" class="btn6" position="absolute 1060 4 1113 23" onclick="swt_aipmmngt_case4_btn_print2_onclick" anchor="top right"/>
  105. <Button id="btn_saveexcel2" taborder="2" text="엑셀저장" class="btn7" position="absolute 1114 4 1195 23" onclick="swt_aipmmngt_case4_btn_saveexcel2_onclick" anchor="top right"/>
  106. <Grid id="grd_chanpatlist" taborder="3" binddataset="ds_list_inreport2" useinputpanel="false" position="absolute 0 28 1195 598" anchor="all">
  107. <Formats>
  108. <Format id="default">
  109. <Columns>
  110. <Column size="25" band="left"/>
  111. <Column size="120"/>
  112. <Column size="100"/>
  113. <Column size="70"/>
  114. <Column size="70"/>
  115. <Column size="100"/>
  116. <Column size="120"/>
  117. <Column size="100"/>
  118. <Column size="100"/>
  119. <Column size="100"/>
  120. <Column size="100"/>
  121. <Column size="120"/>
  122. <Column size="100"/>
  123. </Columns>
  124. <Rows>
  125. <Row size="24" band="head"/>
  126. <Row size="24"/>
  127. </Rows>
  128. <Band id="head">
  129. <Cell/>
  130. <Cell col="1" text="등록번호"/>
  131. <Cell col="2" text="성명"/>
  132. <Cell col="3" text="성별"/>
  133. <Cell col="4" text="연령"/>
  134. <Cell col="5" text="환자유형"/>
  135. <Cell col="6" text="입원일자"/>
  136. <Cell col="7" text="전호실"/>
  137. <Cell col="8" text="현호실"/>
  138. <Cell col="9" text="변경전 진료과"/>
  139. <Cell col="10" text="현 진료과"/>
  140. <Cell col="11" text="변경일"/>
  141. <Cell col="12" text="비고"/>
  142. </Band>
  143. <Band id="body">
  144. <Cell celltype="head" expr="expr:currow + 1"/>
  145. <Cell col="1" text="bind:pid"/>
  146. <Cell col="2" text="bind:hngnm"/>
  147. <Cell col="3" text="bind:sex"/>
  148. <Cell col="4" text="bind:age"/>
  149. <Cell col="5" text="bind:insukind"/>
  150. <Cell col="6" displaytype="date" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="default"/>
  151. <Cell col="7" text="bind:prestroomcd"/>
  152. <Cell col="8" text="bind:chngroomcd"/>
  153. <Cell col="9" text="bind:prestorddeptcd"/>
  154. <Cell col="10" text="bind:chngorddeptcd"/>
  155. <Cell col="11" displaytype="date" text="bind:enddd" mask="yyyy-MM-dd" calendardisplaynulltype="default"/>
  156. <Cell col="12" text="bind:pamacptnm"/>
  157. </Band>
  158. </Format>
  159. </Formats>
  160. </Grid>
  161. </Layout>
  162. </Layouts>
  163. </Tabpage>
  164. <Tabpage id="case5" text="전실환자대장" class="sw_box">
  165. <Layouts>
  166. <Layout>
  167. <Shape id="line20" linetype="horizontal" class="line_1" position="absolute 0 23 1195 29" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  168. <Static id="caption3" text="전실환자내역" class="tit_2" position="absolute 0 7 110 23"/>
  169. <Grid id="grd_allinpat" taborder="1" binddataset="ds_list_inreport3" useinputpanel="false" position="absolute 0 28 1195 598" anchor="all">
  170. <Formats>
  171. <Format id="default">
  172. <Columns>
  173. <Column size="120"/>
  174. <Column size="100"/>
  175. <Column size="70"/>
  176. <Column size="70"/>
  177. <Column size="100"/>
  178. <Column size="120"/>
  179. <Column size="100"/>
  180. <Column size="100"/>
  181. <Column size="100"/>
  182. <Column size="120"/>
  183. <Column size="100"/>
  184. </Columns>
  185. <Rows>
  186. <Row size="24" band="head"/>
  187. <Row size="24"/>
  188. </Rows>
  189. <Band id="head">
  190. <Cell text="등록번호"/>
  191. <Cell col="1" text="성명"/>
  192. <Cell col="2" text="성별"/>
  193. <Cell col="3" text="연령"/>
  194. <Cell col="4" text="환자유형"/>
  195. <Cell col="5" text="입원일자"/>
  196. <Cell col="6" text="진료과"/>
  197. <Cell col="7" text="변경전 호실"/>
  198. <Cell col="8" text="변경후 호실"/>
  199. <Cell col="9" text="변경일"/>
  200. <Cell col="10" text="비고"/>
  201. </Band>
  202. <Band id="body">
  203. <Cell text="bind:pid"/>
  204. <Cell col="1" text="bind:hngnm"/>
  205. <Cell col="2" text="bind:sex"/>
  206. <Cell col="3" text="bind:age"/>
  207. <Cell col="4" text="bind:insukind"/>
  208. <Cell col="5" displaytype="date" text="bind:indd" calendardisplaynulltype="nulltext"/>
  209. <Cell col="6" text="bind:chngorddeptcd"/>
  210. <Cell col="7" text="bind:prestroomcd"/>
  211. <Cell col="8" text="bind:chngroomcd"/>
  212. <Cell col="9" displaytype="date" text="bind:enddd" calendardisplaynulltype="nulltext"/>
  213. <Cell col="10" text="bind:pamacptnm"/>
  214. </Band>
  215. </Format>
  216. </Formats>
  217. </Grid>
  218. <Button id="button1" taborder="2" text="엑셀저장" class="btn7" position="absolute 1114 4 1195 23" onclick="swt_aipmmngt_case5_button1_onclick" anchor="top right"/>
  219. <Button id="button2" taborder="3" text="출력" class="btn6" position="absolute 1060 4 1113 23" onclick="swt_aipmmngt_case5_button2_onclick" anchor="top right"/>
  220. </Layout>
  221. </Layouts>
  222. </Tabpage>
  223. <Tabpage id="case6" text="환자보호자대장">
  224. <Layouts>
  225. <Layout>
  226. <Shape id="line2" linetype="horizontal" class="line_1" position="absolute 0 23 1195 29" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  227. <Grid id="grd_protlist" taborder="1" binddataset="ds_grd_protlist" useinputpanel="false" position="absolute 0 28 1195 598" anchor="all">
  228. <Formats>
  229. <Format id="default">
  230. <Columns>
  231. <Column size="25"/>
  232. <Column size="87"/>
  233. <Column size="76"/>
  234. <Column size="88"/>
  235. <Column size="123"/>
  236. <Column size="72"/>
  237. <Column size="94"/>
  238. <Column size="80"/>
  239. <Column size="120"/>
  240. <Column size="387"/>
  241. </Columns>
  242. <Rows>
  243. <Row size="24" band="head"/>
  244. <Row size="24"/>
  245. </Rows>
  246. <Band id="head">
  247. <Cell/>
  248. <Cell col="1" text="등록번호"/>
  249. <Cell col="2" text="성명"/>
  250. <Cell col="3" text="입원일자"/>
  251. <Cell col="4" text="진료과"/>
  252. <Cell col="5" text="병실"/>
  253. <Cell col="6" text="보호자 관계"/>
  254. <Cell col="7" text="보호자 성명"/>
  255. <Cell col="8" text="보호자 연락처"/>
  256. <Cell col="9" text="비고"/>
  257. </Band>
  258. <Band id="body">
  259. <Cell celltype="head" expr="expr:currow + 1"/>
  260. <Cell col="1" text="bind:pid"/>
  261. <Cell col="2" text="bind:hngnm"/>
  262. <Cell col="3" displaytype="date" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  263. <Cell col="4" displaytype="combo" text="bind:orddeptcd" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  264. <Cell col="5" text="bind:roomcd"/>
  265. <Cell col="6" displaytype="combo" text="bind:protflag" combodataset="ds_static_protflag" combocodecol="value" combodatacol="label" enable="false"/>
  266. <Cell col="7" text="bind:name"/>
  267. <Cell col="8" text="bind:phone"/>
  268. <Cell col="9" style="align:left middle;" text="bind:remark"/>
  269. </Band>
  270. </Format>
  271. </Formats>
  272. </Grid>
  273. <Static id="caption10" text="입원환자보호자대장" class="tit_2" position="absolute 0 7 142 23"/>
  274. <Button id="button4" taborder="2" text="엑셀저장" class="btn7" position="absolute 1114 4 1195 23" onclick="swt_aipmmngt_case6_button4_onclick" anchor="top right"/>
  275. </Layout>
  276. </Layouts>
  277. </Tabpage>
  278. </Tabpages>
  279. </Tab>
  280. <Div id="grp" taborder="2" class="div_SA" position="absolute 0 25 1195 65" anchor="left top right">
  281. <Layouts>
  282. <Layout width="1172" height="35">
  283. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1106 10 1112 32" anchor="top right"/>
  284. <Static id="caption39" text="입원일자 :" class="search_name" position="absolute 9 12 96 29" anchor="default"/>
  285. <Button id="btn_search2" taborder="0" text="조회" class="btn1" position="absolute 1120 10 1176 32" anchor="top right" onclick="grp_btn_search2_onclick"/>
  286. <Calendar id="fromdd" taborder="1" class="input_search" position="absolute 88 11 178 30" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  287. <Static id="caption4" text="담당자 :" class="search_name" position="absolute 311 12 392 29" anchor="default"/>
  288. <Combo id="cmb_insukind" taborder="3" innerdataset="ds_init_insukind" codecolumn="cd" datacolumn="nm" class="combo_default" position="absolute 878 11 983 30" anchor="default" onitemchanged="grp_cmb_insukind_onitemchanged"/>
  289. <Static id="caption7" text="보험 :" class="search_name" position="absolute 826 12 886 29" anchor="default"/>
  290. <Radio id="rdo_inemr" taborder="4" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 538 13 709 28" anchor="default" style="textpadding:0 3 0 3;">
  291. <Dataset id="innerdataset">
  292. <ColumnInfo>
  293. <Column id="codecolumn"/>
  294. <Column id="datacolumn"/>
  295. </ColumnInfo>
  296. <Rows>
  297. <Row>
  298. <Col id="codecolumn">all</Col>
  299. <Col id="datacolumn">전체</Col>
  300. </Row>
  301. <Row>
  302. <Col id="codecolumn">noemr</Col>
  303. <Col id="datacolumn">입원</Col>
  304. </Row>
  305. <Row>
  306. <Col id="codecolumn">emr</Col>
  307. <Col id="datacolumn">응급실경유</Col>
  308. </Row>
  309. </Rows>
  310. </Dataset>
  311. </Radio>
  312. <Calendar id="todd" taborder="2" class="input_search" position="absolute 203 11 293 30" anchor="default" autoselect="true" dateformat="yyyy-MM-dd"/>
  313. <Static id="caption8" text="~" position="absolute 186 13 195 28" anchor="default"/>
  314. <Edit id="input_rcptr" taborder="5" class="input_search" position="absolute 388 11 451 30" anchor="default"/>
  315. <Button id="button3" taborder="6" class="icon_search" position="absolute 458 12 474 28" anchor="default" tooltiptext="직원조회" onclick="grp_button3_onclick"/>
  316. <Static id="caption9" text="구분 :" class="search_name" position="absolute 486 12 546 29" anchor="default"/>
  317. <Radio id="rdo_kindflag" taborder="7" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 996 13 1091 29" anchor="default" style=":disabled {textpadding:0 3 0 3;}">
  318. <Dataset id="innerdataset">
  319. <ColumnInfo>
  320. <Column id="codecolumn"/>
  321. <Column id="datacolumn"/>
  322. </ColumnInfo>
  323. <Rows>
  324. <Row>
  325. <Col id="codecolumn">1</Col>
  326. <Col id="datacolumn">지역</Col>
  327. </Row>
  328. <Row>
  329. <Col id="codecolumn">2</Col>
  330. <Col id="datacolumn">직장</Col>
  331. </Row>
  332. </Rows>
  333. </Dataset>
  334. </Radio>
  335. <Static id="cap_prot" text="등록번호 :" class="search_name" visible="false" position="absolute 311 12 382 29" anchor="default"/>
  336. <Edit id="ipt_protpid" taborder="8" class="input_search" visible="false" position="absolute 397 11 466 30" anchor="default"/>
  337. <CheckBox id="checkbox1" taborder="9" position="absolute 716 13 806 28" anchor="default" falsevalue="N" truevalue="Y" text="외래요율포함"/>
  338. </Layout>
  339. </Layouts>
  340. </Div>
  341. </Layout>
  342. </Layouts>
  343. <Objects>
  344. <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  345. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  346. <ColumnInfo>
  347. <Column id="fromdd" type="STRING" size="256"/>
  348. <Column id="todd" type="STRING" size="256"/>
  349. <Column id="insukind" type="STRING" size="256"/>
  350. <Column id="sess_posinstcd" type="STRING" size="256"/>
  351. <Column id="ioflag" type="STRING" size="256"/>
  352. <Column id="inhosflag" type="STRING" size="256"/>
  353. <Column id="printkind" type="STRING" size="256"/>
  354. <Column id="rcptrid" type="STRING" size="256"/>
  355. <Column id="rcptrnm" type="STRING" size="256"/>
  356. <Column id="kindflag" type="STRING" size="256"/>
  357. <Column id="protpid" type="STRING" size="256"/>
  358. <Column id="brateflagyn" type="STRING" size="256"/>
  359. </ColumnInfo>
  360. <Rows>
  361. <Row>
  362. <Col id="fromdd"/>
  363. <Col id="todd"/>
  364. <Col id="insukind"/>
  365. <Col id="sess_posinstcd"/>
  366. <Col id="ioflag"/>
  367. <Col id="inhosflag">all</Col>
  368. <Col id="printkind">inkind</Col>
  369. <Col id="rcptrid"/>
  370. <Col id="rcptrnm"/>
  371. <Col id="kindflag"/>
  372. <Col id="protpid"/>
  373. <Col id="brateflagyn"/>
  374. </Row>
  375. </Rows>
  376. </Dataset>
  377. <Dataset id="ds_main_userpopupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  378. <ColumnInfo>
  379. <Column id="param" type="STRING" size="256"/>
  380. </ColumnInfo>
  381. <Rows>
  382. <Row/>
  383. </Rows>
  384. </Dataset>
  385. <Dataset id="ds_list_inreport1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  386. <ColumnInfo>
  387. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  388. <Column id="insukindnm" type="STRING" size="256" sumtext="보험유형명"/>
  389. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  390. <Column id="suppkindnm" type="STRING" size="256" sumtext="보조유형명"/>
  391. <Column id="indd" type="STRING" size="256" sumtext="입원일짜"/>
  392. <Column id="indschacptstat" type="STRING" size="256" sumtext="재원상태"/>
  393. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  394. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
  395. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  396. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  397. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  398. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  399. <Column id="agmttype" type="STRING" size="256" sumtext="약정구분"/>
  400. <Column id="agmtyn" type="STRING" size="256" sumtext="입원약정서여부"/>
  401. <Column id="insucd" type="STRING" size="256" sumtext="조합기호"/>
  402. <Column id="insuno" type="STRING" size="256" sumtext="보험번호"/>
  403. <Column id="choiflag" type="STRING" size="256" sumtext="진료"/>
  404. <Column id="rcptrid" type="STRING" size="256" sumtext="접수담당자"/>
  405. <Column id="tsflag" type="STRING" size="256" sumtext="상해외인구분"/>
  406. <Column id="brateflag" type="STRING" size="256" sumtext="요율"/>
  407. <Column id="specordtype" type="STRING" size="256" sumtext="KTAS등급"/>
  408. <Column id="orgordtype" type="STRING" size="256" sumtext="원진료구분"/>
  409. <Column id="sortkey" type="STRING" size="256" sumtext="소트키"/>
  410. <Column id="bgColor" type="STRING" size="256"/>
  411. </ColumnInfo>
  412. </Dataset>
  413. <Dataset id="ds_list_inreport2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  414. <ColumnInfo>
  415. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  416. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  417. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  418. <Column id="age" type="STRING" size="256" sumtext="연령"/>
  419. <Column id="insukind" type="STRING" size="256" sumtext="환자유형"/>
  420. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  421. <Column id="prestroomcd" type="STRING" size="256" sumtext="전호실"/>
  422. <Column id="chngroomcd" type="STRING" size="256" sumtext="현호실"/>
  423. <Column id="prestorddeptcd" type="STRING" size="256" sumtext="변경전진료과"/>
  424. <Column id="chngorddeptcd" type="STRING" size="256" sumtext="현진료과"/>
  425. <Column id="enddd" type="STRING" size="256" sumtext="변경일"/>
  426. <Column id="pamacptid" type="STRING" size="256" sumtext="비고"/>
  427. <Column id="pamacptnm" type="STRING" size="256" sumtext="비고"/>
  428. </ColumnInfo>
  429. </Dataset>
  430. <Dataset id="ds_list_inreport3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  431. <Dataset id="ds_list_inreport4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  432. <Dataset id="ds_init1_P0101list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  433. <Dataset id="ds_init1_P0028list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  434. <Dataset id="ds_init1_P0038list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  435. <Dataset id="ds_hidden_P0019list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  436. <Dataset id="ds_static_agmttype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  437. <ColumnInfo>
  438. <Column id="label" type="STRING" size="256"/>
  439. <Column id="value" type="STRING" size="256"/>
  440. </ColumnInfo>
  441. <Rows>
  442. <Row>
  443. <Col id="label">일반</Col>
  444. <Col id="value">1</Col>
  445. </Row>
  446. <Row>
  447. <Col id="label">기간</Col>
  448. <Col id="value">2</Col>
  449. </Row>
  450. </Rows>
  451. </Dataset>
  452. <Dataset id="ds_static_brateflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  453. <ColumnInfo>
  454. <Column id="label" type="STRING" size="256"/>
  455. <Column id="value" type="STRING" size="256"/>
  456. </ColumnInfo>
  457. <Rows>
  458. <Row>
  459. <Col id="label">외래</Col>
  460. <Col id="value">O</Col>
  461. </Row>
  462. <Row>
  463. <Col id="label">입원</Col>
  464. <Col id="value">I</Col>
  465. </Row>
  466. </Rows>
  467. </Dataset>
  468. <Dataset id="ds_static_orgordtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  469. <ColumnInfo>
  470. <Column id="label" type="STRING" size="256"/>
  471. <Column id="value" type="STRING" size="256"/>
  472. </ColumnInfo>
  473. <Rows>
  474. <Row>
  475. <Col id="label">Y</Col>
  476. <Col id="value">E</Col>
  477. </Row>
  478. <Row>
  479. <Col id="label"/>
  480. <Col id="value">I</Col>
  481. </Row>
  482. <Row>
  483. <Col id="label"/>
  484. <Col id="value">D</Col>
  485. </Row>
  486. </Rows>
  487. </Dataset>
  488. <Dataset id="ds_static_protflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  489. <Dataset id="ds_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  490. <ColumnInfo>
  491. <Column id="cd" type="STRING" size="256"/>
  492. <Column id="nm" type="STRING" size="256"/>
  493. </ColumnInfo>
  494. </Dataset>
  495. <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  496. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  497. <Dataset id="ds_init_roomcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  498. </Objects>
  499. <Bind>
  500. <BindItem id="item0" compid="grp.ipt_protpid" propid="value" datasetid="ds_send" columnid="protpid"/>
  501. <BindItem id="item1" compid="grp.fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  502. <BindItem id="item2" compid="grp.todd" propid="value" datasetid="ds_send" columnid="todd"/>
  503. <BindItem id="item3" compid="grp.input_rcptr" propid="value" datasetid="ds_send" columnid="rcptrid"/>
  504. <BindItem id="item4" compid="grp.rdo_inemr" propid="value" datasetid="ds_send" columnid="inhosflag"/>
  505. <BindItem id="item5" compid="grp.checkbox1" propid="value" datasetid="ds_send" columnid=""/>
  506. <BindItem id="item6" compid="grp.cmb_insukind" propid="value" datasetid="ds_send" columnid="insukind"/>
  507. <BindItem id="item7" compid="grp.rdo_kindflag" propid="value" datasetid="ds_send" columnid="kindflag"/>
  508. <BindItem id="item8" compid="swt_aipmmngt.case3.bool4" propid="value" datasetid="ds_send" columnid="printkind"/>
  509. </Bind>
  510. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  511. * System Name :
  512. * Job Name :
  513. * Creator :
  514. * Make Date : 2016-05-24
  515. * Description :
  516. *---------------------------------------------------------------------------------------
  517. * Modify Date Modifier Modify Description
  518. *---------------------------------------------------------------------------------------
  519. * 2016-05-24 Live Converter TF->XP
  520. *
  521. *---------------------------------------------------------------------------------------
  522. ****************************************************************************************/
  523. //=======================================================================================
  524. // Lib Include
  525. //---------------------------------------------------------------------------------------
  526. include 'com_commonxp::comm_main.xjs';
  527. include 'pam_opatmngtxp::PMOCOM.xjs';
  528. include 'pam_pamcomnxp::PAM.xjs';
  529. var arErrorCode = new HashArray();
  530. //=======================================================================================
  531. // Local methods
  532. //---------------------------------------------------------------------------------------
  533. /**
  534. * [fHiddenBox description]
  535. * @return {[type]} [description]
  536. */
  537. function fHiddenBox() {
  538. var tabIdx = swt_aipmmngt.tabindex;
  539. if (tabIdx == 0) {
  540. grp.caption39.visible = true;
  541. grp.fromdd.visible = true;
  542. grp.caption8.visible = true;
  543. grp.todd.visible = true;
  544. grp.caption7.visible = true;
  545. grp.cmb_insukind.visible = true;
  546. grp.rdo_inemr.visible = true;
  547. grp.caption9.visible = true;
  548. swt_aipmmngt.case4.caption2.text = "입원환자대장";
  549. grp.caption39.text = "입원일자 : ";
  550. grp.caption4.visible = true;
  551. grp.input_rcptr.visible = true;
  552. grp.button3.visible = true;
  553. grp.ipt_protpid.visible = false;
  554. grp.cap_prot.visible = false;
  555. grp.checkbox1.visible = true;
  556. }
  557. else if (tabIdx == 1) {
  558. //caption8.visible = false;
  559. //todd.visible = false;
  560. grp.caption7.visible = false;
  561. grp.cmb_insukind.visible = false;
  562. grp.rdo_inemr.visible = false;
  563. grp.caption9.visible = false;
  564. swt_aipmmngt.case4.caption2.text = "전과환자일보";
  565. grp.caption39.text = "전과일자 : ";
  566. grp.caption4.visible = true;
  567. grp.input_rcptr.visible = true;
  568. grp.button3.visible = true;
  569. grp.ipt_protpid.visible = false;
  570. grp.cap_prot.visible = false;
  571. grp.checkbox1.visible = false;
  572. }
  573. else if (tabIdx == 2) {
  574. //caption8.visible = false;
  575. //todd.visible = false;
  576. grp.caption7.visible = false;
  577. grp.cmb_insukind.visible = false;
  578. grp.rdo_inemr.visible = false;
  579. grp.caption9.visible = false;
  580. swt_aipmmngt.case4.caption2.text = "전실환자내역";
  581. grp.caption39.text = "입원일자 : ";
  582. grp.caption4.visible = true;
  583. grp.input_rcptr.visible = true;
  584. grp.button3.visible = true;
  585. grp.ipt_protpid.visible = false;
  586. grp.cap_prot.visible = false;
  587. grp.checkbox1.visible = false;
  588. }
  589. else if (tabIdx == 3) {
  590. grp.caption7.visible = false;
  591. grp.cmb_insukind.visible = false;
  592. grp.rdo_inemr.visible = false;
  593. grp.caption9.visible = false;
  594. swt_aipmmngt.case4.caption2.text = "환자보호자대장";
  595. grp.caption39.text = "입원일자 : ";
  596. grp.caption4.visible = false;
  597. grp.input_rcptr.visible = false;
  598. grp.button3.visible = false;
  599. grp.ipt_protpid.visible = true;
  600. grp.cap_prot.visible = true;
  601. grp.checkbox1.visible = false;
  602. }
  603. }
  604. /**
  605. * submit 후 호출 될 공통 콜백
  606. * @param {[type]} sSvcId [description]
  607. * @param {[type]} nErrorCode [description]
  608. * @param {[type]} sErrorMsg [description]
  609. * @return {Function} [description]
  610. */
  611. function callback(sSvcId, nErrorCode, sErrorMsg){
  612. arErrorCode.push(sSvcId, nErrorCode);
  613. }
  614. //=======================================================================================
  615. // Events
  616. //---------------------------------------------------------------------------------------
  617. /**
  618. * onload 이벤트 발생 시 호출
  619. * @param {[type]} obj:Form [description]
  620. * @param {[type]} e:LoadEventInfo [description]
  621. */
  622. function SMPMI05100_onload(obj: Form, e: LoadEventInfo) {
  623. frmf_initForm(obj);
  624. grdf_setGridSort(swt_aipmmngt.case3.grd_inpatlist);
  625. // 세션정보
  626. fGetUserInfosSampling();
  627. ds_send.setColumn(0, "sess_posinstcd", ds_hidden_session.getColumn(0, "sess_dutplceinstcd"));
  628. ds_send.setColumn(0, "ioflag", "I");
  629. dsf_createDsRow('ds_TRPMI00106', [
  630. { col: 'sess_posinstcd', type: 'string', size: 256, val: '' },
  631. { col: 'ioflag', type: 'string', size: 256, val: '' },
  632. { col: 'dridsorttype', type: 'string', size: 256, val: '' }
  633. ], false);
  634. ds_TRPMI00106.copyRow(0, ds_send, 0);
  635. var oParam = {};
  636. oParam.id = "TRPMI00106";
  637. oParam.service = "pamcomnapp.PamComn";
  638. oParam.method = "reqGetComCD";
  639. oParam.inds = "req=ds_TRPMI00106";
  640. oParam.outds = "ds_init_insukind=insukind ds_init_orddrid=orddrid ds_init_orddeptcd=orddeptcd ds_init_roomcd=roomcd";
  641. oParam.async = false;
  642. tranf_submit(oParam);
  643. frmf_addComboItem('grp.cmb_insukind', '- 전 체 -', ' ', '');
  644. ds_send.setColumn(0, 'insukind', ' ');
  645. ds_send.setColumn(0, 'fromdd', utlf_getCurrentDate());
  646. ds_send.setColumn(0, 'todd', utlf_getCurrentDate());
  647. fHiddenBox();
  648. appf_getCodeList([
  649. { dsNm: 'ds_init1_P0101list', cdGrpId: 'P0101' },
  650. { dsNm: 'ds_init1_P0028list', cdGrpId: 'P0028' },
  651. { dsNm: 'ds_init1_P0038list', cdGrpId: 'P0038' },
  652. { dsNm: 'ds_hidden_P0019list', cdGrpId: 'P0019' }
  653. ]);
  654. }
  655. /**
  656. * button3 검색 아이콘 클릭 이벤트
  657. * @param {[type]} obj: Button [description]
  658. * @param {[type]} e: ClickEventInfo [description]
  659. * @return {[type]} [description]
  660. */
  661. function grp_button3_onclick(obj: Button, e: ClickEventInfo) {
  662. ds_main_userpopupinfo.clearData();
  663. ds_main_userpopupinfo.addRow();
  664. ds_main_userpopupinfo.setColumn(0, "param", "_OneS");
  665. var iParam = frmf_modal("SPZSU10103", "SPZSU10103", { param: '_OneS' }, "", "", "", "", "", "", "", "", "", "M");
  666. ds_main_oneselect.copyData(iParam);
  667. ds_send.setColumn(0, "rcptrid", ds_main_oneselect.getColumn(0, "userid"));
  668. ds_send.setColumn(0, "rcptrnm", ds_main_oneselect.getColumn(0, "usernm"));
  669. }
  670. /**
  671. * 보험 콤보 아이템 변경 후 이벤트
  672. * @param {[type]} obj: Combo [description]
  673. * @param {[type]} e: ItemChangeEventInfo [description]
  674. * @return {[type]} [description]
  675. */
  676. function grp_cmb_insukind_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  677. if (ds_send.getColumn(0, "insukind") == "11") {
  678. grp.rdo_kindflag.enable = true;
  679. }
  680. else {
  681. ds_send.setColumn(0, "kindflag", "");
  682. grp.rdo_kindflag.enable = false;
  683. }
  684. }
  685. /**
  686. * 조회 버튼 클릭 이벤트
  687. * @param {[type]} obj: Button [description]
  688. * @param {[type]} e: ClickEventInfo [description]
  689. * @return {[type]} [description]
  690. */
  691. function grp_btn_search2_onclick(obj: Button, e: ClickEventInfo) {
  692. var tabIdx = swt_aipmmngt.tabindex;
  693. if (tabIdx == 0) {
  694. dsf_createDsRow('ds_TRPMI05100', [
  695. { col: 'fromdd', type: 'string', size: 256, val: '' },
  696. { col: 'todd', type: 'string', size: 256, val: '' },
  697. { col: 'insukind', type: 'string', size: 256, val: '' },
  698. { col: 'inhosflag', type: 'string', size: 256, val: '' },
  699. { col: 'printkind', type: 'string', size: 256, val: '' },
  700. { col: 'rcptrid', type: 'string', size: 256, val: '' },
  701. { col: 'kindflag', type: 'string', size: 256, val: '' },
  702. { col: 'brateflagyn', type: 'string', size: 256, val: '' }
  703. ], false);
  704. ds_TRPMI05100.copyRow(0, ds_send, 0);
  705. ds_TRPMI05100.setColumn(0, 'insukind', String(ds_TRPMI05100.getColumn(0, 'insukind')).trim());
  706. ds_list_inreport1.clearData();
  707. var oParam = {};
  708. oParam.id = "TRPMI05100";
  709. oParam.service = "ipatmngtapp.InReport";
  710. oParam.method = "reqGetInInfo";
  711. oParam.inds = "req=ds_TRPMI05100";
  712. oParam.outds = "ds_list_inreport1=inreport1";
  713. oParam.async = false;
  714. oParam.callback = "callback";
  715. tranf_submit(oParam);
  716. ds_list_inreport1.addColumn('bgColor', 'string');
  717. ds_list_inreport1.addColumn('bgColorAgmt', 'string');
  718. if (arErrorCode.pop("TRPMI05100") > -1) {
  719. // 응급실 1일이상 재원 후 병동 입원환자 배경색처리 by 조중래 20170322
  720. // 20200206 고영민 입원약정서 없는 경우 컬럼 배경색처리
  721. for (var i = 0; i < ds_list_inreport1.rowcount; i++) {
  722. if (ds_list_inreport1.getColumn(i, "sortkey") == '2') {
  723. // 하늘색
  724. ds_list_inreport1.setColumn(i, 'bgColor', '#B2EBF4');
  725. }
  726. if(ds_list_inreport1.getColumn(i, "agmtyn") == "N"){
  727. ds_list_inreport1.setColumn(i, 'bgColorAgmt', '#FDC256');
  728. }
  729. }
  730. }
  731. }
  732. else if (tabIdx == 1) {
  733. dsf_createDsRow('ds_TRPMI05101', [
  734. { col: 'fromdd', type: 'string', size: 256, val: '' },
  735. { col: 'todd', type: 'string', size: 256, val: '' },
  736. { col: 'insukind', type: 'string', size: 256, val: '' }
  737. ], false);
  738. ds_TRPMI05101.copyRow(0, ds_send, 0);
  739. ds_TRPMI05101.setColumn(0, 'insukind', String(ds_TRPMI05101.getColumn(0, 'insukind')).trim());
  740. ds_list_inreport2.clearData();
  741. var oParam = {};
  742. oParam.id = "TRPMI05101";
  743. oParam.service = "ipatmngtapp.InReport";
  744. oParam.method = "reqChanInfo";
  745. oParam.inds = "req=ds_TRPMI05101";
  746. oParam.outds = "ds_list_inreport2=inreport2";
  747. oParam.async = false;
  748. tranf_submit(oParam);
  749. }
  750. else if (tabIdx == 2) {
  751. dsf_createDsRow('ds_TRPMI05102', [
  752. { col: 'fromdd', type: 'string', size: 256, val: '' },
  753. { col: 'todd', type: 'string', size: 256, val: '' },
  754. { col: 'insukind', type: 'string', size: 256, val: '' }
  755. ], false);
  756. ds_TRPMI05102.copyRow(0, ds_send, 0);
  757. ds_TRPMI05102.setColumn(0, 'insukind', String(ds_TRPMI05102.getColumn(0, 'insukind')).trim());
  758. ds_list_inreport3.clearData();
  759. var oParam = {};
  760. oParam.id = "TRPMI05102";
  761. oParam.service = "ipatmngtapp.InReport";
  762. oParam.method = "reqAllInfo";
  763. oParam.inds = "req=ds_TRPMI05102";
  764. oParam.outds = "ds_list_inreport3=inreport3";
  765. oParam.async = false;
  766. tranf_submit(oParam);
  767. }
  768. else if (tabIdx == 3) {
  769. dsf_createDsRow('ds_TRPMI05101', [
  770. { col: 'fromdd', type: 'string', size: 256, val: '' },
  771. { col: 'todd', type: 'string', size: 256, val: '' },
  772. { col: 'insukind', type: 'string', size: 256, val: '' }
  773. ], false);
  774. ds_TRPMI05101.copyRow(0, ds_send, 0);
  775. ds_TRPMI05101.setColumn(0, 'insukind', String(ds_TRPMI05101.getColumn(0, 'insukind')).trim());
  776. ds_list_inreport4.clearData();
  777. var oParam = {};
  778. oParam.id = "TRPMI05101";
  779. oParam.service = "ipatmngtapp.InReport";
  780. oParam.method = "reqGetProtInfoList";
  781. oParam.inds = "req=ds_TRPMI05101";
  782. oParam.outds = "ds_list_inreport4=inreport4";
  783. oParam.async = false;
  784. //oParam.callback = "cf_TRPMI05101";
  785. tranf_submit(oParam);
  786. }
  787. }
  788. /**
  789. * 입원환자대장 탭 출력 버튼 클릭 이벤트
  790. * @param {[type]} obj: Button [description]
  791. * @param {[type]} e: ClickEventInfo [description]
  792. * @return {[type]} [description]
  793. */
  794. function swt_aipmmngt_case3_btn_print1_onclick(obj: Button, e: ClickEventInfo) {
  795. var value = ds_send.getColumn(0, 'printkind');
  796. var objDOM = rptf_createDOM(); // DOM 객체 설정
  797. var docName = "";
  798. var option = null;
  799. if (value == "inkind")
  800. {
  801. docName = "RPPMI05100";
  802. rptf_setNodeListToDOM(objDOM, "root/list/inreport1" , ds_list_inreport1);
  803. }
  804. else if (value == "date")
  805. {
  806. docName = "RPPMI05110";
  807. rptf_setNodeListToDOM(objDOM, "root/list/inreport1" , ds_list_inreport1);
  808. }
  809. rptf_exeReportPreview30([docName],[{ xml_data_XML1: objDOM.documentElement.source}], option);
  810. }
  811. /**
  812. * 스위치 입원환자대장 탭 엑셀저장 버튼 클릭 이벤트
  813. * @param {[type]} obj: Button [description]
  814. * @param {[type]} e: ClickEventInfo [description]
  815. * @return {[type]} [description]
  816. */
  817. function swt_aipmmngt_case3_btn_saveexcel_onclick(obj: Button, e: ClickEventInfo) {
  818. var value = ds_send.getColumn(0, 'printkind');
  819. if (value == "inkind") {
  820. ds_list_inreport1.keystring = 'S:+insukindnm';
  821. grdf_exportExcel(swt_aipmmngt.case3.grd_inpatlist, "excel", "SheetName", false, "", "user", false);
  822. }
  823. else if (value == "date") {
  824. ds_list_inreport1.keystring = 'S:+tsflag';
  825. grdf_exportExcel(swt_aipmmngt.case3.grd_inpatlist, "excel", "SheetName", false, "", "user", false);
  826. }
  827. }
  828. /**
  829. * 전과환자대장 출력 버튼 클릭 이벤트
  830. * @param {[type]} obj: Button [description]
  831. * @param {[type]} e: ClickEventInfo [description]
  832. * @return {[type]} [description]
  833. */
  834. function swt_aipmmngt_case4_btn_print2_onclick(obj: Button, e: ClickEventInfo) {
  835. var objDOM = rptf_createDOM(); // DOM 객체 설정
  836. var option = null;
  837. rptf_setNodeListToDOM(objDOM, "/root/send" , ds_send);
  838. rptf_setNodeListToDOM(objDOM, "/root/list/inreport2" , ds_list_inreport2);
  839. rptf_exeReportPreview30(["RPPMI05101"],[{ xml_data_XML1: objDOM.documentElement.source}], option);
  840. }
  841. /**
  842. * 엑셀저장 버튼 클릭 이벤트
  843. * @param {[type]} obj: Button [description]
  844. * @param {[type]} e: ClickEventInfo [description]
  845. * @return {[type]} [description]
  846. */
  847. function swt_aipmmngt_case4_btn_saveexcel2_onclick(obj: Button, e: ClickEventInfo) {
  848. grdf_exportExcel(swt_aipmmngt.case4.grd_chanpatlist, "excel", "SheetName", false, "", "user", false);
  849. }
  850. /**
  851. * 출력 버튼 클릭 이벤트
  852. * @param {[type]} obj: Button [description]
  853. * @param {[type]} e: ClickEventInfo [description]
  854. * @return {[type]} [description]
  855. */
  856. function swt_aipmmngt_case5_button2_onclick(obj: Button, e: ClickEventInfo) {
  857. var objDOM = rptf_createDOM(); // DOM 객체 설정
  858. var option = null;
  859. rptf_setNodeListToDOM(objDOM, "/root/send" , ds_send);
  860. rptf_setNodeListToDOM(objDOM, "/root/list/inreport3" , ds_list_inreport3);
  861. rptf_exeReportPreview30(["RPPMI05102"],[{ xml_data_XML1: objDOM.documentElement.source}], option);
  862. }
  863. /**
  864. * 엑셀저장 버튼 클릭 이벤트
  865. * @param {[type]} obj: Button [description]
  866. * @param {[type]} e: ClickEventInfo [description]
  867. * @return {[type]} [description]
  868. */
  869. function swt_aipmmngt_case5_button1_onclick(obj: Button, e: ClickEventInfo) {
  870. grdf_exportExcel(swt_aipmmngt.case5.grd_allinpat, "excel", "SheetName", false, "", "user", false);
  871. }
  872. /**
  873. * 엑셀저장 버튼 클릭 이벤트
  874. * @param {[type]} obj: Button [description]
  875. * @param {[type]} e: ClickEventInfo [description]
  876. * @return {[type]} [description]
  877. */
  878. function swt_aipmmngt_case6_button4_onclick(obj: Button, e: ClickEventInfo) {
  879. if (ds_list_inreport3.rowcount <= 1) {
  880. sysf_messageBox("저장할 데이터가", "I004");
  881. return false;
  882. }
  883. grdf_exportExcel(swt_aipmmngt.case6.grd_protlist, "환자보호자대장", "SheetName", false, "", "user", false);
  884. }
  885. /**
  886. * 탭 변경 후 이벤트
  887. * @param {[type]} obj: Tab [description]
  888. * @param {[type]} e: TabIndexChangeEventInfo [description]
  889. * @return {[type]} [description]
  890. */
  891. function swt_aipmmngt_onchanged(obj: Tab, e: TabIndexChangeEventInfo) {
  892. fHiddenBox();
  893. }
  894. ]]></Script>
  895. </Form>
  896. </FDL>