SMMMO16300_업무협조문관리.xfdl 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMMO16300" position="absolute 0 0 970 730" titletext="코드별 환자조회" oninit="SMMMO16300_oninit" onload="SMMMO16300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="코드별 환자 조회" position="absolute 0 0 130 25" id="caption6" class="tit_1"/>
  8. <Grid position="absolute 0 89 970 730" id="grd_prcplist" binddataset="ds_patprcplist" anchor="all" cellsizingtype="col">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="25"/>
  13. <Column size="60"/>
  14. <Column size="70"/>
  15. <Column size="50"/>
  16. <Column size="90"/>
  17. <Column size="80"/>
  18. <Column size="83"/>
  19. <Column size="80"/>
  20. <Column size="60"/>
  21. <Column size="60"/>
  22. <Column size="60"/>
  23. <Column size="0"/>
  24. <Column size="50"/>
  25. <Column size="0"/>
  26. <Column size="50"/>
  27. <Column size="39"/>
  28. <Column size="39"/>
  29. <Column size="95"/>
  30. <Column size="90"/>
  31. <Column size="150"/>
  32. <Column size="60"/>
  33. <Column size="90"/>
  34. <Column size="40"/>
  35. <Column size="40"/>
  36. <Column size="210"/>
  37. <Column size="110"/>
  38. <Column size="86"/>
  39. <Column size="70"/>
  40. <Column size="100"/>
  41. </Columns>
  42. <Rows>
  43. <Row size="24" band="head"/>
  44. <Row size="24"/>
  45. </Rows>
  46. <Band id="head">
  47. <Cell/>
  48. <Cell col="1" text="환자번호"/>
  49. <Cell col="2" text="환자명"/>
  50. <Cell col="3" text="S/A"/>
  51. <Cell col="4" text="주민번호"/>
  52. <Cell col="5" text="진료(처방)일"/>
  53. <Cell col="6" text="진료(처방)시간"/>
  54. <Cell col="7" text="병동명"/>
  55. <Cell col="8" text="진료의"/>
  56. <Cell col="9" text="처방의"/>
  57. <Cell col="10" text="예약구분"/>
  58. <Cell col="11" text="1일수량"/>
  59. <Cell col="12" text="1회수량"/>
  60. <Cell col="13" text="1일용량"/>
  61. <Cell col="14" text="1회용량"/>
  62. <Cell col="15" text="횟수"/>
  63. <Cell col="16" text="일수"/>
  64. <Cell col="17" text="용법/검체"/>
  65. <Cell col="18" text="처방코드"/>
  66. <Cell col="19" text="처방명"/>
  67. <Cell col="20" text="ICD10"/>
  68. <Cell col="21" text="진단코드"/>
  69. <Cell col="22" text="R/O"/>
  70. <Cell col="23" text="주/부"/>
  71. <Cell col="24" text="진단명"/>
  72. <Cell col="25" text="진료과"/>
  73. <Cell col="26" text="전화번호"/>
  74. <Cell col="27" text="우편번호"/>
  75. <Cell col="28" text="주소"/>
  76. </Band>
  77. <Band id="body">
  78. <Cell celltype="head" text="expr:currow+1"/>
  79. <Cell col="1" text="bind:pid"/>
  80. <Cell col="2" text="bind:hngnm"/>
  81. <Cell col="3" text="bind:sa"/>
  82. <Cell col="4" text="bind:rgstno"/>
  83. <Cell col="5" text="bind:prcpdd" mask="####-##-##"/>
  84. <Cell col="6" text="bind:rgsttm" mask="##:##:##"/>
  85. <Cell col="7" text="bind:wardnm"/>
  86. <Cell col="8" text="bind:usernm"/>
  87. <Cell col="9" text="bind:prcpdrnm"/>
  88. <Cell col="10" style="align:left middle;" text="bind:rsrvflag"/>
  89. <Cell col="11" text="bind:prcpqty"/>
  90. <Cell col="12" text="bind:drprcpetc8"/>
  91. <Cell col="13" text="bind:prcpvol"/>
  92. <Cell col="14" text="bind:drprcpetc7"/>
  93. <Cell col="15" text="bind:prcptims"/>
  94. <Cell col="16" text="bind:prcpdayno"/>
  95. <Cell col="17" style="align:left middle;" text="bind:drugmthdspccdnm"/>
  96. <Cell col="18" style="align:left middle;" text="bind:prcpcd"/>
  97. <Cell col="19" style="align:left middle;" text="bind:prcpnm"/>
  98. <Cell col="20" style="align:left middle;" text="bind:icd10cd"/>
  99. <Cell col="21" style="align:left middle;" text="bind:diagcd"/>
  100. <Cell col="22" style="align:left middle;" text="bind:kindcd"/>
  101. <Cell col="23" style="align:left middle;" text="bind:kindcdflag"/>
  102. <Cell col="24" style="align:left middle;" text="bind:diagengnm"/>
  103. <Cell col="25" style="align:left middle;" text="bind:depthngnm"/>
  104. <Cell col="26" text="bind:mpphontel"/>
  105. <Cell col="27" style="align:left middle;" text="bind:zipcd"/>
  106. <Cell col="28" style="align:left middle;" text="bind:addr"/>
  107. </Band>
  108. </Format>
  109. </Formats>
  110. </Grid>
  111. <CheckBox position="absolute 290 0 366 20" id="bool1" visible="false" text="중복허용" falsevalue="N" truevalue="Y"/>
  112. <CheckBox position="absolute 143 0 273 20" id="bol_exec2" visible="false" text="실시된 처방만 조회" falsevalue="N" truevalue="Y"/>
  113. <Div id="Div00" taborder="1" position="absolute 0 25 970 86" class="div_SA" anchor="left top right" scrollbars="none">
  114. <Layouts>
  115. <Layout>
  116. <Static id="caption1" text="~" position="absolute 191 33 200 53" anchor="default"/>
  117. <Static id="caption7" text="조회기간 :" class="search_name" position="absolute 10 33 84 53" anchor="default"/>
  118. <Calendar id="ipt_fromdd" taborder="1" class="input" position="absolute 92 33 190 53" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  119. <Calendar id="ipt_todd" taborder="2" class="input" position="absolute 202 33 300 53" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  120. <Static id="caption2" text="제 목 :" class="search_name" position="absolute 10 8 84 28" anchor="default"/>
  121. <Edit id="ipt_title" taborder="4" class="input_essential" position="absolute 92 8 450 28" anchor="default" autoselect="true"/>
  122. <Radio id="rdo_code" taborder="5" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 310 33 455 53" anchor="default" onitemchanged="Div00_rdo_code_onitemchanged">
  123. <Dataset id="innerdataset">
  124. <ColumnInfo>
  125. <Column id="codecolumn"/>
  126. <Column id="datacolumn"/>
  127. </ColumnInfo>
  128. <Rows>
  129. <Row>
  130. <Col id="codecolumn">P</Col>
  131. <Col id="datacolumn">처방코드</Col>
  132. </Row>
  133. <Row>
  134. <Col id="codecolumn">D</Col>
  135. <Col id="datacolumn">상병코드</Col>
  136. </Row>
  137. </Rows>
  138. </Dataset>
  139. </Radio>
  140. <Button id="btn_patsrch" taborder="6" class="icon_search" position="absolute 662 33 682 53" anchor="default" onclick="Div00_btn_patsrch_onclick"/>
  141. <Static id="caption5" text="검색코드 :" class="search_name" position="absolute 465 33 539 53" anchor="default"/>
  142. <Static id="caption8" text="구분 :" class="search_name" position="absolute 688 8 740 28" anchor="default"/>
  143. <Radio id="rdo_ioflag" taborder="7" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 742 8 877 28" anchor="default">
  144. <Dataset id="innerdataset">
  145. <ColumnInfo>
  146. <Column id="codecolumn"/>
  147. <Column id="datacolumn"/>
  148. </ColumnInfo>
  149. <Rows>
  150. <Row>
  151. <Col id="codecolumn">T</Col>
  152. <Col id="datacolumn">전체</Col>
  153. </Row>
  154. <Row>
  155. <Col id="codecolumn">I</Col>
  156. <Col id="datacolumn">입원</Col>
  157. </Row>
  158. <Row>
  159. <Col id="codecolumn">O</Col>
  160. <Col id="datacolumn">외래</Col>
  161. </Row>
  162. </Rows>
  163. </Dataset>
  164. </Radio>
  165. <Combo id="cmb_prcpcd" taborder="8" innerdataset="@ds_init_prcpcd" codecolumn="codenm" datacolumn="codecd" position="absolute 548 33 658 53" anchor="default"/>
  166. <Div id="div_case1" taborder="10" position="absolute 466 8 667 28">
  167. <Layouts>
  168. <Layout>
  169. <Static id="caption4" text="진 료 과 :" class="search_name" position="absolute 0 0 74 20" anchor="default"/>
  170. <Combo id="cmb_orddept" taborder="1" innerdataset="@ds_orddept" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 82 0 192 20" anchor="default"/>
  171. </Layout>
  172. </Layouts>
  173. </Div>
  174. <Div id="div_case2" taborder="11" text="Div02" position="absolute 465 8 666 30" visible="false">
  175. <Layouts>
  176. <Layout>
  177. <Static id="caption9" text="병 동 :" class="search_name" position="absolute 0 0 74 20" anchor="default"/>
  178. <Combo id="combo1" taborder="1" innerdataset="ds_wardcdgruplist" codecolumn="wardcd" datacolumn="wardnm" position="absolute 83 0 193 20" anchor="default"/>
  179. </Layout>
  180. </Layouts>
  181. </Div>
  182. <Div id="div_case3" taborder="12" text="Div03" position="absolute 688 33 870 53">
  183. <Layouts>
  184. <Layout>
  185. <CheckBox id="bol_exec" taborder="0" text="실시된 처방만 조회" value="N" truevalue="Y" falsevalue="N" position="absolute 0 0 126 20" anchor="default"/>
  186. </Layout>
  187. </Layouts>
  188. </Div>
  189. <Div id="div_case4" taborder="13" text="Div04" position="absolute 688 32 870 54" visible="false">
  190. <Layouts>
  191. <Layout>
  192. <CheckBox id="bol_kindcd" taborder="2" text="R/O 포함" value="N" truevalue="Y" falsevalue="N" position="absolute 0 1 76 21" anchor="default"/>
  193. <CheckBox id="bol_kindcdflag" taborder="3" text="부진단포함" value="N" truevalue="Y" falsevalue="N" position="absolute 98 1 182 21" anchor="default"/>
  194. </Layout>
  195. </Layouts>
  196. </Div>
  197. <Shape id="line3" linetype="vertical" position="absolute 888 5 894 58" anchor="top right"/>
  198. <Button id="btn_req" taborder="3" text="조회" class="btn1" position="absolute 905 8 961 28" anchor="top right" onclick="Div00_btn_req_onclick"/>
  199. <Button id="button1" taborder="9" text="엑셀" class="btn7" position="absolute 911 33 961 53" anchor="top right" onclick="Div00_button1_onclick"/>
  200. </Layout>
  201. </Layouts>
  202. </Div>
  203. <Grid id="grd_excel" taborder="2" binddataset="ds_patprcplist" useinputpanel="false" cellsizingtype="col" position="absolute 971 0 1152 112" visible="false">
  204. <Formats>
  205. <Format id="default">
  206. <Columns>
  207. <Column size="60"/>
  208. <Column size="70"/>
  209. <Column size="50"/>
  210. <Column size="90"/>
  211. <Column size="80"/>
  212. <Column size="80"/>
  213. <Column size="66"/>
  214. <Column size="66"/>
  215. <Column size="75"/>
  216. <Column size="42"/>
  217. <Column size="42"/>
  218. <Column size="39"/>
  219. <Column size="42"/>
  220. <Column size="39"/>
  221. <Column size="39"/>
  222. <Column size="95"/>
  223. <Column size="90"/>
  224. <Column size="150"/>
  225. <Column size="60"/>
  226. <Column size="90"/>
  227. <Column size="40"/>
  228. <Column size="40"/>
  229. <Column size="210"/>
  230. <Column size="110"/>
  231. <Column size="70"/>
  232. <Column size="100"/>
  233. </Columns>
  234. <Rows>
  235. <Row size="24" band="head"/>
  236. <Row size="24"/>
  237. </Rows>
  238. <Band id="head">
  239. <Cell style="background:lightgrey;" text="환자번호"/>
  240. <Cell col="1" style="background:lightgrey;" text="환자명"/>
  241. <Cell col="2" style="background:lightgrey;" text="S/A"/>
  242. <Cell col="3" style="background:lightgrey;" text="주민번호"/>
  243. <Cell col="4" style="background:lightgrey;" text="진료(처방)일"/>
  244. <Cell col="5" style="background:lightgrey;" text="병동명"/>
  245. <Cell col="6" style="background:lightgrey;" text="진료의"/>
  246. <Cell col="7" style="background:lightgrey;" text="처방의"/>
  247. <Cell col="8" style="background:lightgrey;" text="예약구분"/>
  248. <Cell col="9" style="background:lightgrey;" text="1일수량"/>
  249. <Cell col="10" style="background:lightgrey;" text="1회수량"/>
  250. <Cell col="11" style="background:lightgrey;" text="1일용량"/>
  251. <Cell col="12" style="background:lightgrey;" text="1회용량"/>
  252. <Cell col="13" style="background:lightgrey;" text="횟수"/>
  253. <Cell col="14" style="background:lightgrey;" text="일수"/>
  254. <Cell col="15" style="background:lightgrey;" text="용법/검체"/>
  255. <Cell col="16" style="background:lightgrey;" text="처방코드"/>
  256. <Cell col="17" style="background:lightgrey;" text="처방명"/>
  257. <Cell col="18" style="background:lightgrey;" text="ICD10"/>
  258. <Cell col="19" style="background:lightgrey;" text="진단코드"/>
  259. <Cell col="20" style="background:lightgrey;" text="R/O"/>
  260. <Cell col="21" style="background:lightgrey;" text="주/부"/>
  261. <Cell col="22" style="background:lightgrey;" text="진단명"/>
  262. <Cell col="23" style="background:lightgrey;" text="진료과"/>
  263. <Cell col="24" style="background:lightgrey;" text="우편번호"/>
  264. <Cell col="25" style="background:lightgrey;" text="주소"/>
  265. </Band>
  266. <Band id="body">
  267. <Cell text="bind:pid"/>
  268. <Cell col="1" text="bind:hngnm"/>
  269. <Cell col="2" text="bind:sa"/>
  270. <Cell col="3" text="bind:rgstno"/>
  271. <Cell col="4" text="bind:prcpdd" mask="####-##-##"/>
  272. <Cell col="5" text="bind:wardnm"/>
  273. <Cell col="6" text="bind:usernm"/>
  274. <Cell col="7" text="bind:prcpdrnm"/>
  275. <Cell col="8" style="align:left middle;" text="bind:rsrvflag"/>
  276. <Cell col="9" text="bind:prcpqty"/>
  277. <Cell col="10" text="bind:drprcpetc8"/>
  278. <Cell col="11" text="bind:prcpvol"/>
  279. <Cell col="12" text="bind:drprcpetc7"/>
  280. <Cell col="13" text="bind:prcptims"/>
  281. <Cell col="14" text="bind:prcpdayno"/>
  282. <Cell col="15" style="align:left middle;" text="bind:drugmthdspccdnm"/>
  283. <Cell col="16" style="align:left middle;" text="bind:prcpcd"/>
  284. <Cell col="17" style="align:left middle;" text="bind:prcpnm"/>
  285. <Cell col="18" style="align:left middle;" text="bind:icd10cd"/>
  286. <Cell col="19" style="align:left middle;" text="bind:diagcd"/>
  287. <Cell col="20" style="align:left middle;" text="bind:kindcd"/>
  288. <Cell col="21" style="align:left middle;" text="bind:kindcdflag"/>
  289. <Cell col="22" style="align:left middle;" text="bind:diagengnm"/>
  290. <Cell col="23" style="align:left middle;" text="bind:depthngnm"/>
  291. <Cell col="24" style="align:left middle;" text="bind:zipcd"/>
  292. <Cell col="25" style="align:left middle;" text="bind:addr"/>
  293. </Band>
  294. </Format>
  295. </Formats>
  296. </Grid>
  297. </Layout>
  298. </Layouts>
  299. <Objects>
  300. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  301. <ColumnInfo>
  302. <Column id="fromdd" type="STRING" size="256"/>
  303. <Column id="todd" type="STRING" size="256"/>
  304. <Column id="orddeptcd" type="STRING" size="256"/>
  305. <Column id="prcpcd" type="STRING" size="256"/>
  306. <Column id="title" type="STRING" size="256"/>
  307. <Column id="code" type="STRING" size="256"/>
  308. <Column id="alowtwo" type="STRING" size="256"/>
  309. <Column id="ioflag" type="STRING" size="256"/>
  310. <Column id="prcpcd2" type="STRING" size="256"/>
  311. <Column id="exec" type="STRING" size="256"/>
  312. <Column id="wardcd" type="STRING" size="256"/>
  313. <Column id="kindcd" type="STRING" size="256"/>
  314. <Column id="kindcdflag" type="STRING" size="256"/>
  315. <Column id="prcpcd3" type="STRING" size="256"/>
  316. </ColumnInfo>
  317. <Rows>
  318. <Row>
  319. <Col id="orddeptcd">-</Col>
  320. <Col id="code">P</Col>
  321. <Col id="ioflag">T</Col>
  322. </Row>
  323. </Rows>
  324. </Dataset>
  325. <Dataset id="ds_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  326. <ColumnInfo>
  327. <Column id="depthngnm" type="STRING"/>
  328. <Column id="deptcd" type="STRING"/>
  329. </ColumnInfo>
  330. </Dataset>
  331. <Dataset id="ds_patprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  332. <ColumnInfo>
  333. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  334. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  335. <Column id="sa" type="STRING" size="256" sumtext="성별/나이"/>
  336. <Column id="rgstno" type="STRING" size="256" sumtext="주민등록번호"/>
  337. <Column id="prcpdd" type="STRING" size="256" sumtext="처방/진단일"/>
  338. <Column id="wardnm" type="STRING" size="256" sumtext="병동명"/>
  339. <Column id="usernm" type="STRING" size="256" sumtext="처방의"/>
  340. <Column id="prcpqty" type="STRING" size="256" sumtext="수량"/>
  341. <Column id="prcpvol" type="STRING" size="256" sumtext="용량"/>
  342. <Column id="drprcpetc8" type="STRING" size="256" sumtext="수량"/>
  343. <Column id="drprcpetc7" type="STRING" size="256" sumtext="용량"/>
  344. <Column id="prcptims" type="STRING" size="256" sumtext="횟수"/>
  345. <Column id="prcpdayno" type="STRING" size="256" sumtext="일수"/>
  346. <Column id="drugmthdspccdnm" type="STRING" size="256" sumtext="용법/검체"/>
  347. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  348. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  349. <Column id="icd10cd" type="STRING" size="256" sumtext="icd10"/>
  350. <Column id="diagcd" type="STRING" size="256" sumtext="진단코드"/>
  351. <Column id="diagengnm" type="STRING" size="256" sumtext="진단명"/>
  352. <Column id="depthngnm" type="STRING" size="256" sumtext="부서"/>
  353. <Column id="zipcd" type="STRING" size="256" sumtext="우편번호"/>
  354. <Column id="addr" type="STRING" size="256" sumtext="주소"/>
  355. <Column id="kindcd" type="STRING" size="256" sumtext="Ruleout 여부"/>
  356. <Column id="kindcdflag" type="STRING" size="256" sumtext="주진단 여부"/>
  357. <Column id="rgstdd" type="STRING" size="256" sumtext="진단등록일"/>
  358. <Column id="rsrvflag" type="STRING" size="256" sumtext="예약구분"/>
  359. <Column id="prcpdrid" type="STRING" size="256" sumtext="처방의"/>
  360. <Column id="prcpdrnm" type="STRING" size="256" sumtext="처방의명"/>
  361. <Column id="rgsttm" type="STRING" size="256" sumtext="진료(처방)시간"/>
  362. <Column id="mmohdiag" type="STRING" size="256" sumtext="전화번호"/>
  363. </ColumnInfo>
  364. </Dataset>
  365. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  366. <ColumnInfo>
  367. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  368. <Column id="ioparam" type="STRING" size="256" sumtext="외래병동구분"/>
  369. </ColumnInfo>
  370. </Dataset>
  371. <Dataset id="ds_wardcdgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  372. <ColumnInfo>
  373. <Column id="wardnm" type="STRING" size="256" sumtext="병동명"/>
  374. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  375. </ColumnInfo>
  376. </Dataset>
  377. <Dataset id="ds_init_prcpcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  378. <ColumnInfo>
  379. <Column id="codecd" type="STRING" size="256"/>
  380. <Column id="codenm" type="STRING" size="256"/>
  381. </ColumnInfo>
  382. </Dataset>
  383. <Dataset id="ds_hidden_time" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  384. </Objects>
  385. <Bind>
  386. <BindItem id="item0" compid="Div00.ipt_title" propid="value" datasetid="ds_cond" columnid="title"/>
  387. <BindItem id="item1" compid="Div00.ipt_fromdd" propid="value" datasetid="ds_cond" columnid="fromdd"/>
  388. <BindItem id="item2" compid="Div00.ipt_todd" propid="value" datasetid="ds_cond" columnid="todd"/>
  389. <BindItem id="item3" compid="Div00.rdo_code" propid="value" datasetid="ds_cond" columnid="code"/>
  390. <BindItem id="item4" compid="Div00.div_case1.cmb_orddept" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
  391. <BindItem id="item5" compid="Div00.div_case2.combo1" propid="value" datasetid="ds_cond" columnid="wardcd"/>
  392. <BindItem id="item6" compid="Div00.rdo_ioflag" propid="value" datasetid="ds_cond" columnid="ioflag"/>
  393. <BindItem id="item7" compid="Div00.cmb_prcpcd" propid="value" datasetid="ds_cond" columnid="prcpcd3"/>
  394. <BindItem id="item8" compid="Div00.div_case3.bol_exec" propid="value" datasetid="ds_cond" columnid="exec"/>
  395. <BindItem id="item9" compid="Div00.div_case4.bol_kindcd" propid="value" datasetid="ds_cond" columnid="kindcd"/>
  396. <BindItem id="item10" compid="Div00.div_case4.bol_kindcdflag" propid="value" datasetid="ds_cond" columnid="kindcdflag"/>
  397. </Bind>
  398. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  399. * System Name :
  400. * Job Name :
  401. * Creator :
  402. * Make Date : 2014-12-10
  403. * Description :
  404. *---------------------------------------------------------------------------------------
  405. * Modify Date Modifier Modify Description
  406. *---------------------------------------------------------------------------------------
  407. * 2014-12-10 Live Converter TF->XP
  408. *
  409. *---------------------------------------------------------------------------------------
  410. ****************************************************************************************/
  411. include "com_commonxp::comm_main.xjs";
  412. include "emr_prcpmngtxp::MMO001.xjs";
  413. var arErrorCode = new HashArray();
  414. function SMMMO16300_oninit(obj:Form, e:InitEventInfo)
  415. {
  416. frmf_initForm(obj);
  417. }
  418. function SMMMO16300_onload(obj:Form, e:LoadEventInfo)
  419. {
  420. grdf_setToolTipBind(grd_prcplist);
  421. grdf_setGridSort(grd_prcplist)
  422. fSetBaseInit();
  423. fGrdInit();
  424. }
  425. function Div00_rdo_code_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  426. {
  427. fGrdInit();
  428. if(obj.value == "P"){
  429. Div00.div_case3.visible = true;
  430. Div00.div_case4.visible = false;
  431. } else{
  432. Div00.div_case3.visible = false;
  433. Div00.div_case4.visible = true;
  434. }
  435. }
  436. function Div00_btn_patsrch_onclick(obj:Button, e:ClickEventInfo)
  437. {
  438. frmf_modal("SPMMO16600", "SPMMO16600", null, null, null, null, null, null, null, null, null, null, "M");
  439. fSetComboCodeCD();
  440. Div00.cmb_prcpcd.index = 0;
  441. }
  442. function Div00_btn_req_onclick(obj:Button, e:ClickEventInfo)
  443. {
  444. ds_patprcplist.clearData();
  445. var title = ds_cond.getColumn(0, "title");
  446. var prcpcd = ds_cond.getColumn(0, "prcpcd3");
  447. var ioflag = ds_cond.getColumn(0, "ioflag");
  448. var code = ds_cond.getColumn(0, "code");
  449. if (utlf_isNull(title)) {
  450. sysf_messageBox("제목은","I003");
  451. Div00.ipt_title.setFocus();
  452. return;
  453. }
  454. if (utlf_isNull(prcpcd)) {
  455. sysf_messageBox("처방코드는","I003");
  456. Div00.cmb_prcpcd.setFocus();
  457. return;
  458. }
  459. if (utlf_isNull(ioflag)) {
  460. sysf_messageBox("외래/입원 구분은","I003");
  461. Div00.rdo_ioflag.setFocus();
  462. return;
  463. }
  464. if (utlf_isNull(code)) {
  465. sysf_messageBox("처방코드/상병코드 구분은","I003");
  466. Div00.rdo_code.setFocus();
  467. return;
  468. }
  469. var prcpcd = "'";
  470. var prcpcd2= "";
  471. for(var i = 0; i < ds_init_prcpcd.rowcount; i++){
  472. prcpcd = prcpcd + ds_init_prcpcd.getColumn(i, "codecd") +"', '";
  473. prcpcd2 = prcpcd2 + "_" + ds_init_prcpcd.getColumn(i, "codecd");
  474. }
  475. prcpcd = prcpcd + " ' ";
  476. ds_cond.setColumn(0, "prcpcd", prcpcd);
  477. ds_cond.setColumn(0, "prcpcd2", prcpcd2);
  478. lf_getHardCDList("N", 5568, null, ds_hidden_time);
  479. var jobkind = sysf_getUserInfo("jobkindcd");
  480. // if ( jobkind == "0330" || jobkind == "1411" )
  481. // {
  482. // model.setValue("/root/main/cond/wardcd" , ".");
  483. // }
  484. // else
  485. // {
  486. // model.setValue("/root/main/cond/orddeptcd" , ".");
  487. // }
  488. var sUserDeptcd = sysf_getUserInfo("dutplcecd");
  489. var cTime = utlf_getCurrentTime().substr(0, 4);
  490. var time = ds_hidden_time.lookup("hardcd", sUserDeptcd, "hardcdnm");
  491. var bTransaction = false;
  492. if ( !utlf_isNull(time) ) {
  493. var ftime = time.substr(0,4);
  494. var ttime = time.substr(4,4);
  495. if(cTime > ttime || cTime < ftime) {
  496. bTransaction = true;
  497. } else {
  498. var ddInterval = utlf_getDateInterval(Div00.ipt_fromdd.value, Div00.ipt_todd.value);
  499. if(ddInterval > 30){
  500. sysf_messageBox("30일까지만 조회", "I006");
  501. return;
  502. } else {
  503. bTransaction = true;
  504. }
  505. }
  506. } else {
  507. if(cTime > "1700" || cTime < 0830) {
  508. bTransaction = true;
  509. } else {
  510. var ddInterval = utlf_getDateInterval(Div00.ipt_fromdd.value, Div00.ipt_todd.value);
  511. if(ddInterval > 30){
  512. sysf_messageBox("업무시간[08:30 ~ 17:00]에는 30일까지만 조회", "I006");
  513. return;
  514. } else {
  515. bTransaction = true;
  516. }
  517. }
  518. }
  519. if(bTransaction) {
  520. ds_patprcplist.clearData();
  521. var oParam = {};
  522. oParam.id = "TRMMO16302";
  523. oParam.service = "prcpmngtapp.PrcpMngt";
  524. oParam.method = "reqGetDeptPrcpList";
  525. oParam.inds = "req=ds_cond";
  526. oParam.outds = "ds_patprcplist=patprcplist";
  527. oParam.async = false;
  528. oParam.callback = "cf_TRMMO16302";
  529. tranf_submit(oParam);
  530. if(arErrorCode.pop("TRMMO16302") >= 0){
  531. var oParam = {};
  532. oParam.id = "TXMMO16302";
  533. oParam.service = "prcpmngtapp.PrcpMngt";
  534. oParam.method = "reqExePrcpSrchHist";
  535. oParam.inds = "savedata=ds_cond";
  536. oParam.async = false;
  537. tranf_submit(oParam);
  538. }
  539. }
  540. }
  541. function cf_TRMMO16302(sSvcId, nErrorCode, sErrorMsg) {
  542. arErrorCode.push(sSvcId, nErrorCode);
  543. }
  544. function Div00_button1_onclick(obj:Button, e:ClickEventInfo)
  545. {
  546. var title = lf_getDsValue(ds_cond, 0, "title");
  547. //20200303 이돈희 : grd_excel과 grd_prplist의 컬럼이 동일하므로 grd_excel에서 grd_prcplist로 변경
  548. //fsaveGridToExcel(grd_excel, title);
  549. fsaveGridToExcel(grd_prcplist, title);
  550. }
  551. /*
  552. * @desc : 업무협조문 기본조건 초기화
  553. * @
  554. * @param :
  555. * @return :
  556. * @author : 김영학
  557. * @---------------------------------------------------
  558. */
  559. function fSetBaseInit() {
  560. ds_cond.setColumn(0, "orddeptcd", "-");
  561. ds_cond.setColumn(0, "wardcd" , "-");
  562. var jobkind = sysf_getUserInfo("jobkindcd");
  563. if ( jobkind == "0330" || jobkind == "1411" )
  564. {
  565. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "wardnm"), "size", 0);
  566. Div00.div_case1.visible = true;
  567. Div00.div_case3.visible = true;
  568. Div00.div_case2.visible = false;
  569. Div00.div_case4.visible = false;
  570. lf_mmbfGetDeptCodeComboList(ds_orddept, "A");
  571. frmf_addComboItem("Div00.div_case1.cmb_orddept"); //부서콤보 Item '전체'추가
  572. ds_cond.setColumn(0, "orddeptcd", "-");
  573. }
  574. else
  575. {
  576. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "wardnm"), "size", 80);
  577. Div00.div_case2.visible = true;
  578. Div00.div_case4.visible = true;
  579. Div00.div_case1.visible = false;
  580. Div00.div_case3.visible = false;
  581. var oParam = {};
  582. oParam.id = "TRMNR01002";
  583. oParam.service = "carerecapp.TnsCareRec";
  584. oParam.method = "reqGetWardList";
  585. oParam.inds = "refCond=ds_send";
  586. oParam.outds = "ds_wardcdgruplist=wardcdgruplist";
  587. oParam.async = false;
  588. tranf_submit(oParam);
  589. frmf_addComboItem("Div00.div_case2.combo1"); //부서콤보 Item '전체'추가
  590. ds_cond.setColumn(0, "wardcd", "-");
  591. }
  592. ds_cond.setColumn(0, "fromdd", utlf_getCurrentDate());
  593. ds_cond.setColumn(0, "todd" , utlf_getCurrentDate());
  594. }
  595. /*
  596. * @desc : 업무협조문 처방코드나 상병코드 선택시 그리드 초기화
  597. * @
  598. * @param :
  599. * @return :
  600. * @author : 김영학
  601. * @---------------------------------------------------
  602. */
  603. function fGrdInit() {
  604. grd_prcplist.enableevent = false;
  605. ds_patprcplist.clearData();
  606. var code = ds_cond.getColumn(0, "code");
  607. if (code == "P" ) { // 처방 코드 조회
  608. //grd_prcplist.caption="환자번호^환자명^S/A^주민번호^처방일^처방의^수량^용량^횟수^일수^용법/검체^처방코드^진단코드^진료과^우편번호^주소"
  609. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "prcpqty"), "size", 0);//42
  610. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "prcpvol"), "size", 0);//39
  611. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "prcptims"), "size", 39);
  612. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "prcpdayno"), "size", 39);
  613. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "drugmthdspccdnm"), "size", 95);
  614. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "prcpcd"), "size", 90);
  615. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "icd10cd"), "size", 0);
  616. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "diagcd"), "size", 90);
  617. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "diagengnm"), "size", 210);
  618. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "prcpnm"), "size", 150);
  619. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "kindcd"), "size", 0);
  620. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "kindcdflag"), "size", 0);
  621. } else { // 진단코드로 조회
  622. //grd_prcplist.caption="환자번호^환자명^S/A^주민번호^진료일^처방의^수량^용량^횟수^일수^용법/검체^처방코드^진단코드^진료과^우편번호^주소"
  623. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "prcpqty"), "size", 0);
  624. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "prcpvol"), "size", 0);
  625. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "prcptims"), "size", 0);
  626. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "prcpdayno"), "size", 0);
  627. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "drugmthdspccdnm"), "size", 0);
  628. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "prcpcd"), "size", 0);
  629. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "icd10cd"), "size", 60);
  630. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "diagcd"), "size", 90);
  631. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "diagengnm"), "size", 210);
  632. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "prcpnm"), "size", 150);
  633. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "kindcd"), "size", 40);
  634. grd_prcplist.setFormatColProperty(grd_prcplist.getBindCellIndex("body", "kindcdflag"), "size", 40);
  635. }
  636. grd_prcplist.enableevent = true;
  637. }
  638. /**
  639. * @desc : 코드를 콤보 인스턴스에 매핑
  640. * @
  641. * @param :
  642. * @return :
  643. * @author : 김영학 (2008.12.10)
  644. * @---------------------------------------------------
  645. */
  646. function fSetComboCodeCD(){
  647. ds_init_prcpcd.clearData();
  648. var rtnparam = frmf_getParameter("SPMMO16300");
  649. if(utlf_isNull(rtnparam)) return;
  650. rtnparam = rtnparam.split("▩");
  651. for(var i = 1; i < rtnparam.length - 1; i++){
  652. var tmpstr = rtnparam[i];
  653. tmpstr = tmpstr.split("▦");
  654. var row = ds_init_prcpcd.addRow();
  655. ds_init_prcpcd.setColumn(row, "codecd", tmpstr[0]);
  656. ds_init_prcpcd.setColumn(row, "codenm", tmpstr[0]);
  657. }
  658. }
  659. /**
  660. * @desc : 엑셀저장
  661. * @
  662. * @param :
  663. * @return :
  664. * @author : 김영학 (2008.12.18)
  665. * @---------------------------------------------------
  666. */
  667. function fsaveGridToExcel(grdObj, title){
  668. var sTitle = "코드별 환자조회 " + title;
  669. grdf_exportExcel(grdObj, sTitle, "코드별 환자조회", true, null, null, null, "wordwrap");
  670. }]]></Script>
  671. </Form>
  672. </FDL>