SPAED00100_처방조회.xfdl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAED00100" position="absolute 0 0 801 376" titletext="처방조회" onload="SPAED00100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_srch" taborder="1" class="div_SA2" position="absolute 0 24 800 64"/>
  8. <Static text="처방조회" position="absolute 0 7 175 27" align="align:center middle;" id="caption2" class="tit_2"/>
  9. <Static text="등록번호 :" position="absolute 320 36 406 53" id="caption3" class="search_name"/>
  10. <Shape position="absolute 716 34 722 56" linetype="vertical" id="line1"/>
  11. <Shape position="absolute 0 64 800 70" id="line3" class="line_10"/>
  12. <Button position="absolute 731 34 787 56" id="btn_search" class="btn1" text="조회" onclick="btn_search_onclick"/>
  13. <Button position="absolute 684 350 740 372" id="btn_cfm" class="btn4" text="확인" onclick="btn_cfm_onclick"/>
  14. <Button position="absolute 743 350 799 372" id="btn_can" class="btn4" text="취소" onclick="btn_can_onclick"/>
  15. <Static text="기 간 :" position="absolute 20 36 106 53" id="caption1" class="search_name"/>
  16. <Edit position="absolute 409 35 515 54" id="ipt_srchpid" class="input_search" onkeydown="ipt_srchpid_onkeydown" autoselect="true"/>
  17. <Calendar position="absolute 90 35 190 54" id="ipt_srchfromdd" class="input_essential" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  18. <Static text="~" position="absolute 193 36 205 53" id="lbl_~" class="search_no_b"/>
  19. <Calendar position="absolute 207 35 307 54" id="ipt_srchtodd" class="input_essential" dateformat="yyyy-MM-dd" autoselect="true"/>
  20. <Edit position="absolute 517 35 623 54" id="input1" class="input_search" autoselect="true"/>
  21. <Grid position="absolute 0 69 800 344" id="grd_ordlist1" binddataset="ds_main_ordlist1_mainordlist" oncelldblclick="grd_ordlist1_oncelldblclick" onlbuttonup="grd_ordlist1_onlbuttonup" onrbuttonup="grd_ordlist1_onrbuttonup" cellsizingtype="col" cellsizebandtype="allband">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="25" band="left"/>
  26. <Column size="0" band="left"/>
  27. <Column size="72" band="left"/>
  28. <Column size="70" band="left"/>
  29. <Column size="45" band="left"/>
  30. <Column size="73" band="left"/>
  31. <Column size="58"/>
  32. <Column size="80"/>
  33. <Column size="115"/>
  34. <Column size="70"/>
  35. <Column size="61"/>
  36. <Column size="115"/>
  37. <Column size="165"/>
  38. <Column size="240"/>
  39. <Column size="59"/>
  40. <Column size="121"/>
  41. <Column size="62"/>
  42. <Column size="54"/>
  43. <Column size="100"/>
  44. </Columns>
  45. <Rows>
  46. <Row size="24" band="head"/>
  47. <Row size="24"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell/>
  51. <Cell col="1"/>
  52. <Cell col="2" text="등록번호"/>
  53. <Cell col="3" text="성명"/>
  54. <Cell col="4" text="S/A"/>
  55. <Cell col="5" text="진료과"/>
  56. <Cell col="6" text="진료의"/>
  57. <Cell col="7" text="처방코드"/>
  58. <Cell col="8" text="처방일자"/>
  59. <Cell col="9" text="처방상태"/>
  60. <Cell col="10" text="병실"/>
  61. <Cell col="11" text="예약시간"/>
  62. <Cell col="12" text="처방명"/>
  63. <Cell col="13" text="비고"/>
  64. <Cell col="14" text="예약자"/>
  65. <Cell col="15" text="실시시간"/>
  66. <Cell col="16" text="실시자"/>
  67. <Cell col="17" text="수납여부"/>
  68. <Cell col="18" text="취소코드"/>
  69. </Band>
  70. <Band id="body">
  71. <Cell celltype="head" text="expr:currow+1"/>
  72. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  73. <Cell col="2" text="bind:pid"/>
  74. <Cell col="3" text="bind:hngnm"/>
  75. <Cell col="4" text="bind:sna"/>
  76. <Cell col="5" text="bind:orddepthngnm"/>
  77. <Cell col="6" text="bind:orddrnm"/>
  78. <Cell col="7" text="bind:calcscorcd"/>
  79. <Cell col="8" text="bind:prcpdt" mask="expr:utlf_isNull(prcpdt) || prcpdt == '-' ? '' : '####-##-## ##:##'"/>
  80. <Cell col="9" text="bind:statcd"/>
  81. <Cell col="10" text="bind:roomcd"/>
  82. <Cell col="11" text="bind:srchrsrvdt" mask="expr:utlf_isNull(srchrsrvdt) || srchrsrvdt == '-' ? '' : '####-##-## ##:##'"/>
  83. <Cell col="12" displaytype="text" text="bind:prcpnm"/>
  84. <Cell col="13" displaytype="text" text="bind:prcpdelivefact"/>
  85. <Cell col="14" displaytype="none" edittype="none" text="bind:rsrvrnm"/>
  86. <Cell col="15" text="bind:execdt"/>
  87. <Cell col="16" displaytype="none" edittype="none" text="bind:execrnm"/>
  88. <Cell col="17" text="bind:rcptyn"/>
  89. <Cell col="18" text="bind:basecd"/>
  90. </Band>
  91. </Format>
  92. </Formats>
  93. </Grid>
  94. <Grid position="absolute 490 115 710 305" id="grd_temproom" visible="false" binddataset="ds_init_cmb_info_initexcuroomcd">
  95. <Formats>
  96. <Format id="default">
  97. <Columns>
  98. <Column size="127"/>
  99. </Columns>
  100. <Rows>
  101. <Row size="24" band="head"/>
  102. <Row size="24"/>
  103. </Rows>
  104. <Band id="head">
  105. <Cell text="caption3"/>
  106. </Band>
  107. <Band id="body">
  108. <Cell text="bind:excuroomcd"/>
  109. </Band>
  110. </Format>
  111. </Formats>
  112. </Grid>
  113. <CheckBox position="absolute 630 35 650 55" id="bool1" truevalue="Y" falsevalue="N"/>
  114. <Static text="처방포함" position="absolute 650 35 700 55" id="caption4"/>
  115. </Layout>
  116. </Layouts>
  117. <Objects>
  118. <Dataset id="ds_init_cmb_info_initexcuroomcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  119. <ColumnInfo>
  120. <Column id="excuroomcd" type="STRING" size="256"/>
  121. </ColumnInfo>
  122. <Rows>
  123. <Row>
  124. <Col id="excuroomcd"/>
  125. </Row>
  126. </Rows>
  127. </Dataset>
  128. <Dataset id="ds_init_cmb_info_cdidlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  129. <ColumnInfo>
  130. <Column id="cdid" type="STRING" size="256"/>
  131. </ColumnInfo>
  132. </Dataset>
  133. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  134. <ColumnInfo>
  135. <Column id="srchpid" type="STRING" size="256"/>
  136. <Column id="srchdate1" type="STRING" size="256"/>
  137. <Column id="srchdate2" type="STRING" size="256"/>
  138. <Column id="acptlistflag" type="STRING" size="256"/>
  139. <Column id="selectexcuroom" type="STRING" size="256"/>
  140. <Column id="excuroomcd" type="STRING" size="256"/>
  141. <Column id="prcpgenrflag" type="STRING" size="256"/>
  142. <Column id="prcpexecdeptcd" type="STRING" size="256"/>
  143. <Column id="centyn" type="STRING" size="256"/>
  144. <Column id="centflag" type="STRING" size="256"/>
  145. <Column id="sgubn" type="STRING" size="256"/>
  146. <Column id="term" type="STRING" size="256"/>
  147. <Column id="largeclass" type="STRING" size="256"/>
  148. <Column id="centflag" type="STRING" size="256"/>
  149. </ColumnInfo>
  150. <Rows>
  151. <Row>
  152. <Col id="srchpid"/>
  153. <Col id="srchdate1"/>
  154. <Col id="srchdate2"/>
  155. <Col id="acptlistflag"/>
  156. <Col id="selectexcuroom"/>
  157. <Col id="excuroomcd"/>
  158. <Col id="prcpgenrflag"/>
  159. <Col id="prcpexecdeptcd"/>
  160. <Col id="centyn"/>
  161. <Col id="centflag"/>
  162. <Col id="sgubn"/>
  163. <Col id="term"/>
  164. <Col id="largeclass"/>
  165. <Col id="centflag"/>
  166. </Row>
  167. </Rows>
  168. </Dataset>
  169. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  170. <ColumnInfo>
  171. <Column id="receiveref" type="STRING" size="256"/>
  172. </ColumnInfo>
  173. <Rows>
  174. <Row>
  175. <Col id="receiveref"/>
  176. </Row>
  177. </Rows>
  178. </Dataset>
  179. <Dataset id="ds_init_cmb_info_initexecrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  180. <ColumnInfo>
  181. <Column id="execrid1cdnm" type="STRING" size="256"/>
  182. <Column id="execrid1cdid" type="STRING" size="256"/>
  183. </ColumnInfo>
  184. <Rows>
  185. <Row>
  186. <Col id="execrid1cdnm"/>
  187. <Col id="execrid1cdid"/>
  188. </Row>
  189. </Rows>
  190. </Dataset>
  191. <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  192. <ColumnInfo>
  193. <Column id="instance1" type="STRING" size="256"/>
  194. </ColumnInfo>
  195. <Rows>
  196. <Row>
  197. <Col id="instance1"/>
  198. </Row>
  199. </Rows>
  200. </Dataset>
  201. <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  202. <ColumnInfo>
  203. <Column id="srchfromdd" type="STRING" size="256"/>
  204. <Column id="srchtodd" type="STRING" size="256"/>
  205. <Column id="srchhngnm" type="STRING" size="256"/>
  206. <Column id="suppdeptcd" type="STRING" size="256"/>
  207. <Column id="srchprcpflag" type="STRING" size="256"/>
  208. </ColumnInfo>
  209. <Rows>
  210. <Row>
  211. <Col id="srchfromdd"/>
  212. <Col id="srchtodd"/>
  213. <Col id="srchhngnm"/>
  214. <Col id="suppdeptcd"/>
  215. <Col id="srchprcpflag"/>
  216. </Row>
  217. </Rows>
  218. </Dataset>
  219. <Dataset id="ds_init_cmb_info_prcpexecdeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  220. <ColumnInfo>
  221. <Column id="prcpexecdeptcd" type="STRING" size="256"/>
  222. </ColumnInfo>
  223. <Rows>
  224. <Row>
  225. <Col id="prcpexecdeptcd"/>
  226. </Row>
  227. </Rows>
  228. </Dataset>
  229. <Dataset id="ds_init_cmb_info_initexecroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  230. <ColumnInfo>
  231. <Column id="excuroomcdid" type="STRING" size="256"/>
  232. <Column id="excuroomcdnm" type="STRING" size="256"/>
  233. </ColumnInfo>
  234. <Rows>
  235. <Row>
  236. <Col id="excuroomcdid"/>
  237. <Col id="excuroomcdnm"/>
  238. </Row>
  239. </Rows>
  240. </Dataset>
  241. <Dataset id="ds_main_ordlist1_mainordlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  242. <ColumnInfo>
  243. <Column id="check" type="STRING" size="256"/>
  244. <Column id="pid" type="STRING" size="256"/>
  245. <Column id="hngnm" type="STRING" size="256"/>
  246. <Column id="sna" type="STRING" size="256"/>
  247. <Column id="rrgstno1" type="STRING" size="256"/>
  248. <Column id="rrgstno2" type="STRING" size="256"/>
  249. <Column id="orddepthngnm" type="STRING" size="256"/>
  250. <Column id="orddrnm" type="STRING" size="256"/>
  251. <Column id="portprcpflag" type="STRING" size="256"/>
  252. <Column id="calcscorcd" type="STRING" size="256"/>
  253. <Column id="prcpdd" type="STRING" size="256"/>
  254. <Column id="execprcpstatcd" type="STRING" size="256"/>
  255. <Column id="roomcd" type="STRING" size="256"/>
  256. <Column id="srchrsrvdt" type="STRING" size="256"/>
  257. <Column id="prcpnm" type="STRING" size="256"/>
  258. <Column id="rsrvrid" type="STRING" size="256"/>
  259. <Column id="execdt" type="STRING" size="256"/>
  260. <Column id="execrid1" type="STRING" size="256"/>
  261. <Column id="execrnm" type="STRING" size="256"/>
  262. <Column id="rcptyn" type="STRING" size="256"/>
  263. <Column id="hight" type="STRING" size="256"/>
  264. <Column id="weight" type="STRING" size="256"/>
  265. <Column id="prcpexecdeptnm" type="STRING" size="256"/>
  266. <Column id="execdeptnm" type="STRING" size="256"/>
  267. <Column id="hometel" type="STRING" size="256"/>
  268. <Column id="mpphontel" type="STRING" size="256"/>
  269. <Column id="statcd" type="STRING" size="256"/>
  270. <Column id="basecd" type="STRING" size="256"/>
  271. <Column id="execprcpuniqno" type="STRING" size="256"/>
  272. <Column id="prcpexecdeptcd" type="STRING" size="256"/>
  273. <Column id="excuroomcd" type="STRING" size="256"/>
  274. <Column id="inflag" type="STRING" size="256"/>
  275. <Column id="rcptacptyn" type="STRING" size="256"/>
  276. <Column id="execbaseflag" type="STRING" size="256"/>
  277. <Column id="excupartcd" type="STRING" size="256"/>
  278. <Column id="modality" type="STRING" size="256"/>
  279. <Column id="execrem" type="STRING" size="256"/>
  280. <Column id="prcpdelivefact" type="STRING" size="256"/>
  281. <Column id="carecnfmdd" type="STRING" size="256"/>
  282. <Column id="prcpkindcd" type="STRING" size="256"/>
  283. <Column id="rcptno" type="STRING" size="256"/>
  284. <Column id="acptseqno" type="STRING" size="256"/>
  285. <Column id="prcpgenrflag" type="STRING" size="256"/>
  286. <Column id="orddd" type="STRING" size="256"/>
  287. <Column id="orddeptcd" type="STRING" size="256"/>
  288. <Column id="rcptdd" type="STRING" size="256"/>
  289. <Column id="orddrid" type="STRING" size="256"/>
  290. <Column id="prcpno" type="STRING" size="256"/>
  291. <Column id="eqmtifyn" type="STRING" size="256"/>
  292. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  293. <Column id="cretno" type="STRING" size="256"/>
  294. <Column id="wardcd" type="STRING" size="256"/>
  295. <Column id="rsrvdt" type="STRING" size="256"/>
  296. <Column id="rgstdeptcd" type="STRING" size="256"/>
  297. <Column id="rgstrid" type="STRING" size="256"/>
  298. <Column id="inclprcpcd" type="STRING" size="256"/>
  299. <Column id="lrgcd" type="STRING" size="256"/>
  300. <Column id="mdlcd" type="STRING" size="256"/>
  301. <Column id="actorddd" type="STRING" size="256"/>
  302. <Column id="actcretno" type="STRING" size="256"/>
  303. <Column id="examroomnm" type="STRING" size="256"/>
  304. <Column id="prcphistno" type="STRING" size="256"/>
  305. <Column id="pacsnocretyn" type="STRING" size="256"/>
  306. <Column id="tmpldata" type="STRING" size="256"/>
  307. <Column id="prcpdt" type="STRING" size="256"/>
  308. <Column id="rsrvrnm" type="STRING" size="256"/>
  309. <Column id="deptengabbr" type="STRING" size="256"/>
  310. <Column id="cnclresncdnm" type="STRING" size="256"/>
  311. <Column id="rsrvexmptmplcd" type="STRING" size="256"/>
  312. <Column id="age" type="STRING" size="256"/>
  313. <Column id="tretflagcd" type="STRING" size="256"/>
  314. <Column id="rsrvexcuroomposscd" type="STRING" size="256"/>
  315. <Column id="prcphopedd" type="STRING" size="256"/>
  316. <Column id="precureprcpflag" type="STRING" size="256"/>
  317. <Column id="clincstdycd" type="STRING" size="256"/>
  318. <Column id="aftrcptinfo" type="STRING" size="256"/>
  319. <Column id="centcd" type="STRING" size="256"/>
  320. <Column id="prcpclscd" type="STRING" size="256"/>
  321. <Column id="ioflag" type="STRING" size="256"/>
  322. <Column id="bf_srchrsrvtm" type="STRING" size="256"/>
  323. <Column id="emryn" type="STRING" size="256"/>
  324. <Column id="prcpqty" type="STRING" size="256"/>
  325. <Column id="unrsrvexecyn" type="STRING" size="256"/>
  326. <Column id="insukind" type="STRING" size="256"/>
  327. <Column id="ordrsrvdt" type="STRING" size="256"/>
  328. </ColumnInfo>
  329. <Rows>
  330. <Row>
  331. <Col id="check"/>
  332. <Col id="pid"/>
  333. <Col id="hngnm"/>
  334. <Col id="sna"/>
  335. <Col id="rrgstno1"/>
  336. <Col id="rrgstno2"/>
  337. <Col id="orddepthngnm"/>
  338. <Col id="orddrnm"/>
  339. <Col id="portprcpflag"/>
  340. <Col id="calcscorcd"/>
  341. <Col id="prcpdd"/>
  342. <Col id="execprcpstatcd"/>
  343. <Col id="roomcd"/>
  344. <Col id="srchrsrvdt"/>
  345. <Col id="prcpnm"/>
  346. <Col id="rsrvrid"/>
  347. <Col id="execdt"/>
  348. <Col id="execrid1"/>
  349. <Col id="execrnm"/>
  350. <Col id="rcptyn"/>
  351. <Col id="hight"/>
  352. <Col id="weight"/>
  353. <Col id="prcpexecdeptnm"/>
  354. <Col id="execdeptnm"/>
  355. <Col id="hometel"/>
  356. <Col id="mpphontel"/>
  357. <Col id="statcd"/>
  358. <Col id="basecd"/>
  359. <Col id="execprcpuniqno"/>
  360. <Col id="prcpexecdeptcd"/>
  361. <Col id="excuroomcd"/>
  362. <Col id="inflag"/>
  363. <Col id="rcptacptyn"/>
  364. <Col id="execbaseflag"/>
  365. <Col id="excupartcd"/>
  366. <Col id="modality"/>
  367. <Col id="execrem"/>
  368. <Col id="prcpdelivefact"/>
  369. <Col id="carecnfmdd"/>
  370. <Col id="prcpkindcd"/>
  371. <Col id="rcptno"/>
  372. <Col id="acptseqno"/>
  373. <Col id="prcpgenrflag"/>
  374. <Col id="orddd"/>
  375. <Col id="orddeptcd"/>
  376. <Col id="rcptdd"/>
  377. <Col id="orddrid"/>
  378. <Col id="prcpno"/>
  379. <Col id="eqmtifyn"/>
  380. <Col id="basesuppdeptcd"/>
  381. <Col id="cretno"/>
  382. <Col id="wardcd"/>
  383. <Col id="rsrvdt"/>
  384. <Col id="rgstdeptcd"/>
  385. <Col id="rgstrid"/>
  386. <Col id="inclprcpcd"/>
  387. <Col id="lrgcd"/>
  388. <Col id="mdlcd"/>
  389. <Col id="actorddd"/>
  390. <Col id="actcretno"/>
  391. <Col id="examroomnm"/>
  392. <Col id="prcphistno"/>
  393. <Col id="pacsnocretyn"/>
  394. <Col id="tmpldata"/>
  395. <Col id="prcpdt"/>
  396. <Col id="rsrvrnm"/>
  397. <Col id="deptengabbr"/>
  398. <Col id="cnclresncdnm"/>
  399. <Col id="rsrvexmptmplcd"/>
  400. <Col id="age"/>
  401. <Col id="tretflagcd"/>
  402. <Col id="rsrvexcuroomposscd"/>
  403. <Col id="prcphopedd"/>
  404. <Col id="precureprcpflag"/>
  405. <Col id="clincstdycd"/>
  406. <Col id="aftrcptinfo"/>
  407. <Col id="centcd"/>
  408. <Col id="prcpclscd"/>
  409. <Col id="ioflag"/>
  410. <Col id="bf_srchrsrvtm"/>
  411. <Col id="emryn"/>
  412. <Col id="prcpqty"/>
  413. <Col id="unrsrvexecyn"/>
  414. <Col id="insukind"/>
  415. <Col id="ordrsrvdt"/>
  416. </Row>
  417. </Rows>
  418. </Dataset>
  419. <Dataset id="ds_init_cmb_info_nursingtype2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  420. <Dataset id="ds_init_cmb_info_initexcuroomgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  421. </Objects>
  422. <Bind>
  423. <BindItem id="item0" compid="ipt_srchpid" propid="value" datasetid="ds_send_data" columnid="srchpid"/>
  424. <BindItem id="item1" compid="ipt_srchfromdd" propid="value" datasetid="ds_send_data" columnid="srchdate1"/>
  425. <BindItem id="item2" compid="ipt_srchtodd" propid="value" datasetid="ds_send_data" columnid="srchdate2"/>
  426. <BindItem id="item3" compid="input1" propid="value" datasetid="ds_send_srch" columnid="srchhngnm"/>
  427. <BindItem id="item4" compid="bool1" propid="value" datasetid="ds_send_srch" columnid="srchprcpflag"/>
  428. </Bind>
  429. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  430. * System Name :
  431. * Job Name :
  432. * Creator :
  433. * Make Date : 2016-09-30
  434. * Description :
  435. *---------------------------------------------------------------------------------------
  436. * Modify Date Modifier Modify Description
  437. *---------------------------------------------------------------------------------------
  438. * 2016-09-30 Live Converter TF->XP
  439. *
  440. *---------------------------------------------------------------------------------------
  441. ****************************************************************************************/
  442. //=======================================================================================
  443. // Lib Include
  444. //---------------------------------------------------------------------------------------
  445. include "com_commonxp::comm_main.xjs";
  446. include "ast_examcurexp::AEZ0001.xjs";
  447. //=======================================================================================
  448. // Global Form Variable
  449. //---------------------------------------------------------------------------------------
  450. var arErrorCode = new HashArray();
  451. //=======================================================================================
  452. // Function
  453. //---------------------------------------------------------------------------------------
  454. /****************************************************************************************
  455. * Argument : N/A
  456. * Description : 모화면 데이터 전달
  457. ****************************************************************************************/
  458. function fSetOpener(){
  459. var cRow = ds_main_ordlist1_mainordlist.rowposition;
  460. var statcd = ds_main_ordlist1_mainordlist.getColumn(cRow, "statcd");
  461. var roomcd = ds_main_ordlist1_mainordlist.getColumn(cRow, "roomcd");
  462. if ( statcd == "수납" || !utlf_isNull(roomcd) ){
  463. if( frmf_checkOpener() ){
  464. dsf_makeValue( opener.ds_temp, "okflag", "string", "ok" );
  465. opener.ds_send_ordlist1_mainordlist.copyRow(0,ds_main_ordlist1_mainordlist,cRow);
  466. this.close();
  467. }
  468. }else{
  469. sysf_messageBox("처방상태가 수납일 경우에만 접수", "I006");
  470. return;
  471. }
  472. }
  473. //=======================================================================================
  474. // Event
  475. //---------------------------------------------------------------------------------------
  476. /****************************************************************************************
  477. * Components : Form
  478. * Description : 화면 처음 초기화시 폼초기화
  479. ****************************************************************************************/
  480. function SPAED00100_onload(obj:Form, e:LoadEventInfo) {
  481. frmf_initForm(obj);
  482. //grdf_initGrid(grd_ordlist1);
  483. grdf_setGridSort(grd_ordlist1);
  484. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  485. // 검색조건 설정
  486. var vpid = opener.frmf_getParameter("SPAVT00110_PID");
  487. ds_send_data.setColumn( 0, "srchpid", vpid);
  488. // 자동조회
  489. ds_send_data.setColumn( 0, "excuroomcd", frmf_getPrestDeptCd());
  490. ds_send_data.setColumn( 0, "acptlistflag", "Y");
  491. ds_send_data.setColumn( 0, "prcpexecdeptcd", frmf_getPrestDeptCd());
  492. lf_aezfSetSuppDeptcd();
  493. ds_send_globalinstance.setColumn(0,"instance1",frmf_getParameter("AST_DEPTCD"));
  494. ds_send_srch.setColumn( 0, "suppdeptcd", ds_send_globalinstance.getColumn(0, "instance1"));
  495. ds_send_data.setColumn( 0, "acptlistflag", "N");
  496. //검사실 갖고오기
  497. dsf_createDsRow("ds_reqparam", [
  498. {col:"basesuppdeptcd", type:"STRING", size:256, val:ds_send_globalinstance.getColumn(0, "instance1")}
  499. , {col:"rbasecdflag", type:"STRING", size:256, val:"R"}
  500. , {col:"ebasecdflag", type:"STRING", size:256, val:"E"}
  501. , {col:"largeclass", type:"STRING", size:256, val:"M4"}
  502. , {col:"cdgrupid", type:"STRING", size:256, val:"A0486"}
  503. , {col:"centflag", type:"STRING", size:256, val:""}
  504. ]);
  505. var oParam = {};
  506. oParam.id = "TRAEA01115";
  507. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  508. oParam.method = "reqGetInitFuncExamCureRoomList";
  509. oParam.inds = "reqparam=ds_reqparam";
  510. oParam.outds = "ds_init_cmb_info_initexecroom=initexcuroom ds_init_cmb_info_initexcuroomcd=initexcuroomcd ds_init_cmb_info_initexecrid1=initexecrid "
  511. +"ds_init_cmb_info_prcpexecdeptcdlist=prcpexecdeptcdlist ds_init_cmb_info_cdidlist=cdidlist ds_init_cmb_info_nursingtype2=nursingtype ds_init_cmb_info_initexcuroomgrp=initexcuroomgrp";
  512. oParam.async = false;
  513. oParam.callback = "cf_TRAEA01115";
  514. tranf_submit(oParam);
  515. var loop = ds_init_cmb_info_initexcuroomcd.rowcount;
  516. var excuroomcd = "";
  517. for(var i = 0; i < loop; i++){
  518. excuroomcd = ds_init_cmb_info_initexcuroomcd.getColumn(i, "excuroomcd") + " " + excuroomcd;
  519. }
  520. ds_send_data.setColumn( 0, "selectexcuroom", excuroomcd );
  521. //20160708 kya 수정
  522. // 일자 setting
  523. var curDD = utlf_getCurrentDate();
  524. if ( vpid != "") {
  525. var idate = new Date();
  526. //var curDD_from = curDD.substring (0, 6) + "01";
  527. var curDD_from = idate.getAddDate(-7, "D").getDateFormat();
  528. ds_send_data.setColumn( 0, "srchdate1" , curDD_from ); // 조회시작일자
  529. ds_send_data.setColumn( 0, "srchdate2" , curDD ); // 조회종료일자
  530. btn_search.click();
  531. } else {
  532. ds_send_data.setColumn( 0, "srchdate1" , curDD ); // 조회시작일자
  533. ds_send_data.setColumn( 0, "srchdate2" , curDD ); // 조회종료일자
  534. }
  535. // frmf_createPopupMenuDs("pmn_menu", "pmn_menu_onmenuclick", ds_menu);
  536. }
  537. function cf_TRAEA01115(sSvcId, nErrorCode, sErrorMsg) {
  538. if(nErrorCode < 0) return;
  539. ds_init_cmb_info_initexecroom.updateColID("basecd","excuroomcdid");
  540. ds_init_cmb_info_initexecroom.updateColID("basecdflagdesc","excuroomcdnm");
  541. ds_init_cmb_info_initexecrid1.updateColID("basecd","execrid1cdid");
  542. ds_init_cmb_info_initexecrid1.updateColID("basecdflagdesc","execrid1cdnm");
  543. ds_init_cmb_info_initexcuroomgrp.updateColID("basecdcnts","excuroomgrpcdid");
  544. ds_init_cmb_info_initexcuroomgrp.updateColID("basecdcnts2","excuroomgrpcdnm");
  545. }
  546. /****************************************************************************************
  547. * Components : Button
  548. * Description : 조회
  549. ****************************************************************************************/
  550. function btn_search_onclick(obj:Button, e:ClickEventInfo) {
  551. dsf_createDsRow("ds_reqparam", [
  552. {col:"acptlistflag", type:"STRING", size:256, val:ds_send_data.getColumn(0,"acptlistflag")}
  553. , {col:"basesuppdeptcd", type:"STRING", size:256, val:ds_send_globalinstance.getColumn(0, "instance1")}
  554. , {col:"initexcuroom", type:"STRING", size:256, val:ds_send_data.getColumn(0,"selectexcuroom")}
  555. , {col:"prcpexecdeptcd", type:"STRING", size:256, val:ds_send_data.getColumn(0,"prcpexecdeptcd")}
  556. , {col:"srchdate1", type:"STRING", size:256, val:ds_send_data.getColumn(0,"srchdate1")}
  557. , {col:"srchdate2", type:"STRING", size:256, val:ds_send_data.getColumn(0,"srchdate2")}
  558. , {col:"srchpid", type:"STRING", size:256, val:ds_send_data.getColumn(0,"srchpid")}
  559. , {col:"excuroomflag", type:"STRING", size:256, val:ds_send_globalinstance.getColumn(0, "instance1")}
  560. , {col:"term", type:"STRING", size:256, val:ds_send_data.getColumn(0,"term")}
  561. , {col:"prcpgenrflag", type:"STRING", size:256, val:ds_send_data.getColumn(0,"prcpgenrflag")}
  562. , {col:"sgubn", type:"STRING", size:256, val:ds_send_data.getColumn(0,"sgubn")}
  563. , {col:"largeclass", type:"STRING", size:256, val:"M4"}
  564. , {col:"centyn", type:"STRING", size:256, val:ds_send_data.getColumn(0,"centyn")}
  565. , {col:"centflag", type:"STRING", size:256, val:ds_send_data.getColumn(0,"centflag")}
  566. , {col:"hcflag", type:"STRING", size:256, val:""}
  567. ]);
  568. var oParam = {};
  569. oParam.id = "TRAEA01101";
  570. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  571. oParam.method = "reqGetExamCureExecPrcpList";
  572. oParam.inds = "reqparam=ds_reqparam";
  573. oParam.outds = "ds_main_ordlist1_mainordlist=examcureexecprcplist";
  574. oParam.async = false;
  575. oParam.callback = "cf_TRAEA01101";
  576. tranf_submit(oParam);
  577. if( arErrorCode.pop("TRAEA01101") > -1 ){
  578. if( ds_send_srch.getColumn(0, "srchprcpflag") != "Y" ){
  579. var cnt = ds_main_ordlist1_mainordlist.rowcount;
  580. for(var i = cnt-1 ; i >= 0 ; i-- ){
  581. if( ds_main_ordlist1_mainordlist.getColumn(i, "statcd") != "수납" ){
  582. ds_main_ordlist1_mainordlist.deleteRow(i);
  583. }
  584. }
  585. }
  586. }
  587. }
  588. function cf_TRAEA01101(sSvcId, nErrorCode, sErrorMsg) {
  589. arErrorCode.push(sSvcId, nErrorCode);
  590. }
  591. /****************************************************************************************
  592. * Components : Button
  593. * Description : 확인
  594. ****************************************************************************************/
  595. function btn_cfm_onclick(obj:Button, e:ClickEventInfo) {
  596. // 조회됐는지 확인
  597. var cRow = ds_main_ordlist1_mainordlist.rowposition;
  598. if( cRow > -1 ){
  599. fSetOpener();
  600. } else {
  601. sysf_messageBox("조회된 처방 정보가", "I004" , "다시 조회해주세요.");
  602. }
  603. }
  604. /****************************************************************************************
  605. * Components : Button
  606. * Description : 취소
  607. ****************************************************************************************/
  608. function btn_can_onclick(obj:Button, e:ClickEventInfo) {
  609. if( frmf_checkOpener() ) {
  610. dsf_makeValue( opener.ds_temp, "okflag", "string", "" );
  611. }
  612. this.close();
  613. }
  614. /****************************************************************************************
  615. * Components : Edit
  616. * Description : 등록번호 입력하고 조회
  617. ****************************************************************************************/
  618. function ipt_srchpid_onkeydown(obj:Edit, e:KeyEventInfo) {
  619. if(e.keycode == 13) {
  620. obj.updateToDataset();
  621. btn_search.click();
  622. }
  623. }
  624. /****************************************************************************************
  625. * Components : Edit
  626. * Description : 성명 입력하고 조회
  627. ****************************************************************************************/
  628. function input1_onkeydown(obj:Edit, e:KeyEventInfo) {
  629. if(e.keycode == 13) {
  630. obj.updateToDataset();
  631. btn_search.click();
  632. }
  633. }
  634. /****************************************************************************************
  635. * Components : Grid
  636. * Description : 모화면 데이터 전달
  637. ****************************************************************************************/
  638. function grd_ordlist1_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  639. // 조회됐는지 확인
  640. if(e.row > -1) {
  641. fSetOpener();
  642. }
  643. }
  644. /****************************************************************************************
  645. * Components : Grid
  646. * Description :
  647. ****************************************************************************************/
  648. function grd_ordlist1_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  649. {
  650. // setPopupMenu("grd_ordlist1", false, "/root/hidden/popupmenu/menu/item", "label", "func");
  651. }
  652. ]]></Script>
  653. </Form>
  654. </FDL>