SMMNE13000_응급전용중환자실입원실이용환자대장.xfdl 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE13000_응급전용중환자실입원실이용환자대장" classname="SMMNE13000_응급전용중환자실입원실이용환자대장" inheritanceid="" position="absolute 0 0 1155 805" titletext="응급전용 중환자실 및 입원실 이용환자대장" oninit="SMMNE13000_oninit" onload="SMMNE13000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="응급전용 중환자실 및 입원실 이용환자대장" class="tit_1" position="absolute 0 0 294 25"/>
  8. <Div id="grp_search" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 25 1150 58">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption1" text="조회구분 :" class="search_name" position="absolute 10 7 81 27" anchor="default"/>
  12. <Button id="btn_srch" taborder="5" text="조회" class="btn1" position="absolute 1030 7 1086 27" onclick="grp_search_btn_srch_onclick" anchor="top right"/>
  13. <Static id="caption5" text="조회기간 :" class="search_name" position="absolute 411 7 489 27" anchor="default"/>
  14. <Calendar id="ipt_fromdd" taborder="6" autoselect="true" autoskip="true" class="input_essential" position="absolute 499 7 591 27" anchor="default"/>
  15. <Static id="caption8" text="~" position="absolute 593 7 608 27" style="font:Dotum,9,bold;" anchor="default"/>
  16. <Calendar id="ipt_todd" taborder="7" autoselect="true" class="input_essential" position="absolute 608 7 700 27" anchor="default"/>
  17. <Radio id="rdo_gubun" taborder="8" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 83 7 228 27" anchor="default" onitemchanged="grp_search_rdo_gubun_onitemchanged" value="1" index="0">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn" size="256"/>
  21. <Column id="datacolumn" size="256"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn">1</Col>
  26. <Col id="datacolumn">중환자실</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">2</Col>
  30. <Col id="datacolumn">입원실</Col>
  31. </Row>
  32. </Rows>
  33. </Dataset>
  34. </Radio>
  35. <Button id="btn_execl" taborder="9" text="엑셀" class="btn7" position="absolute 1087 7 1143 27" onclick="grp_search_btn_execl_onclick" anchor="top right"/>
  36. <CheckBox id="CheckBox00" taborder="10" text="외상센터 제외" position="absolute 734 12 843 24" falsevalue="N" truevalue="Y" value="N" visible="false"/>
  37. </Layout>
  38. </Layouts>
  39. </Div>
  40. <Shape id="line8" class="line_10" position="absolute 0 59 1150 65" anchor="left top right"/>
  41. <Grid id="Grid_patlist" taborder="2" useinputpanel="false" position="absolute 1 61 1151 797" binddataset="ds_main_patlist" anchor="all" onheadclick="Grid_patlist_onheadclick" selecttype="multirow" onrbuttondown="Grid_patlist_icu_onrbuttondown">
  42. <Formats>
  43. <Format id="default">
  44. <Columns>
  45. <Column size="20"/>
  46. <Column size="55"/>
  47. <Column size="60"/>
  48. <Column size="40"/>
  49. <Column size="40"/>
  50. <Column size="55"/>
  51. <Column size="50"/>
  52. <Column size="50"/>
  53. <Column size="80"/>
  54. <Column size="65"/>
  55. <Column size="65"/>
  56. <Column size="65"/>
  57. <Column size="65"/>
  58. <Column size="55"/>
  59. <Column size="55"/>
  60. <Column size="65"/>
  61. <Column size="65"/>
  62. <Column size="65"/>
  63. <Column size="90"/>
  64. <Column size="55"/>
  65. <Column size="55"/>
  66. <Column size="65"/>
  67. <Column size="65"/>
  68. <Column size="55"/>
  69. <Column size="40"/>
  70. <Column size="40"/>
  71. </Columns>
  72. <Rows>
  73. <Row size="24" band="head"/>
  74. <Row size="30" band="head"/>
  75. <Row size="24"/>
  76. </Rows>
  77. <Band id="head">
  78. <Cell rowspan="2" taborder="undefined"/>
  79. <Cell col="1" rowspan="2" text="병실" taborder="undefined"/>
  80. <Cell col="2" rowspan="2" text="병상" taborder="undefined"/>
  81. <Cell col="3" rowspan="2" style="padding:0 0 0 0;" text="응급&#13;&#10;전용&#13;&#10;여부" taborder="undefined"/>
  82. <Cell col="4" rowspan="2" text="전문과&#13;&#10;지정&#13;&#10;여부" taborder="undefined"/>
  83. <Cell col="5" rowspan="2" text="이름" taborder="undefined"/>
  84. <Cell col="6" rowspan="2" text="등록&#13;&#10;번호" taborder="undefined"/>
  85. <Cell col="7" rowspan="2" text="성별&#13;&#10;나이" taborder="undefined"/>
  86. <Cell col="8" rowspan="2" text="진단명" taborder="undefined"/>
  87. <Cell col="9" colspan="6" text="응급실" taborder="undefined"/>
  88. <Cell col="15" colspan="10" text="중환자실" taborder="undefined"/>
  89. <Cell col="25"/>
  90. <Cell row="1" col="9" text="내원일자" taborder="undefined"/>
  91. <Cell row="1" col="10" text="내원시간"/>
  92. <Cell row="1" col="11" text="퇴실일자"/>
  93. <Cell row="1" col="12" text="퇴실시간"/>
  94. <Cell row="1" col="13" text="입원장&#13;&#10;발부의"/>
  95. <Cell row="1" col="14" text="입원&#13;&#10;관리자"/>
  96. <Cell row="1" col="15" text="입실일자"/>
  97. <Cell row="1" col="16" text="입실시간"/>
  98. <Cell row="1" col="17" text="입실경로"/>
  99. <Cell row="1" col="18" text="주진료과"/>
  100. <Cell row="1" col="19" text="담당교수"/>
  101. <Cell row="1" col="20" text="담당의"/>
  102. <Cell row="1" col="21" text="퇴실일자"/>
  103. <Cell row="1" col="22" text="퇴실시간"/>
  104. <Cell row="1" col="23" text="퇴실&#13;&#10;관리자"/>
  105. <Cell row="1" col="24" text="재원&#13;&#10;일수"/>
  106. <Cell row="1" col="25"/>
  107. </Band>
  108. <Band id="body">
  109. <Cell celltype="head" expr="expr:currow + 1"/>
  110. <Cell col="1" text="bind:roomnm"/>
  111. <Cell col="2" text="bind:bednm"/>
  112. <Cell col="3" text="bind:eryn"/>
  113. <Cell col="4" text="bind:specialdeptyn"/>
  114. <Cell col="5" text="bind:hngnm"/>
  115. <Cell col="6" text="bind:pid"/>
  116. <Cell col="7" text="bind:sexage"/>
  117. <Cell col="8" style="align:left middle;" text="bind:diagengnm" tooltiptype="bottom" tooltiptext="bind:diagengnm"/>
  118. <Cell col="9" text="bind:erindd"/>
  119. <Cell col="10" edittype="mask" text="bind:erintm" mask="##:##"/>
  120. <Cell col="11" text="bind:eroutdd"/>
  121. <Cell col="12" edittype="mask" text="bind:erouttm" mask="##:##"/>
  122. <Cell col="13" text="bind:indirecdrid"/>
  123. <Cell col="14" text="bind:inpermitdrnm"/>
  124. <Cell col="15" text="bind:inwarddd"/>
  125. <Cell col="16" edittype="mask" text="bind:inwardtm" mask="##:##"/>
  126. <Cell col="17" text="bind:fromward"/>
  127. <Cell col="18" text="bind:orddept" tooltiptype="bottom" tooltiptext="bind:orddept"/>
  128. <Cell col="19" text="bind:medispclnm"/>
  129. <Cell col="20" text="bind:atdoctnm"/>
  130. <Cell col="21" text="bind:outwarddd"/>
  131. <Cell col="22" edittype="mask" text="bind:outwardtm" mask="##:##"/>
  132. <Cell col="23" text="bind:outwardpermitdoc"/>
  133. <Cell col="24" text="bind:days"/>
  134. <Cell col="25" text="bind:tryn"/>
  135. </Band>
  136. </Format>
  137. </Formats>
  138. </Grid>
  139. <Grid id="Grid_patlist_icu" taborder="3" binddataset="ds_main_patlist_icu" useinputpanel="false" onheadclick="Grid_patlist_onheadclick" position="absolute 1 61 1151 797" anchor="all" cellsizingtype="both" onrbuttondown="Grid_patlist_icu_onrbuttondown" selecttype="multirow">
  140. <Formats>
  141. <Format id="default">
  142. <Columns>
  143. <Column size="20"/>
  144. <Column size="55"/>
  145. <Column size="60"/>
  146. <Column size="40"/>
  147. <Column size="40"/>
  148. <Column size="55"/>
  149. <Column size="50"/>
  150. <Column size="50"/>
  151. <Column size="80"/>
  152. <Column size="70"/>
  153. <Column size="65"/>
  154. <Column size="70"/>
  155. <Column size="65"/>
  156. <Column size="55"/>
  157. <Column size="55"/>
  158. <Column size="70"/>
  159. <Column size="65"/>
  160. <Column size="70"/>
  161. <Column size="65"/>
  162. <Column size="65"/>
  163. <Column size="70"/>
  164. <Column size="65"/>
  165. <Column size="65"/>
  166. <Column size="90"/>
  167. <Column size="55"/>
  168. <Column size="55"/>
  169. <Column size="70"/>
  170. <Column size="65"/>
  171. <Column size="55"/>
  172. <Column size="40"/>
  173. <Column size="40"/>
  174. </Columns>
  175. <Rows>
  176. <Row size="24" band="head"/>
  177. <Row size="30" band="head"/>
  178. <Row size="24"/>
  179. </Rows>
  180. <Band id="head">
  181. <Cell rowspan="2" taborder="undefined"/>
  182. <Cell col="1" rowspan="2" text="병실" taborder="undefined"/>
  183. <Cell col="2" rowspan="2" text="병상" taborder="undefined"/>
  184. <Cell col="3" rowspan="2" style="padding:0 0 0 0;" text="응급&#13;&#10;전용&#13;&#10;여부" taborder="undefined"/>
  185. <Cell col="4" rowspan="2" text="전문과&#13;&#10;지정&#13;&#10;여부" taborder="undefined"/>
  186. <Cell col="5" rowspan="2" text="이름" taborder="undefined"/>
  187. <Cell col="6" rowspan="2" text="등록&#13;&#10;번호" taborder="undefined"/>
  188. <Cell col="7" rowspan="2" text="성별&#13;&#10;나이" taborder="undefined"/>
  189. <Cell col="8" rowspan="2" text="진단명" taborder="undefined"/>
  190. <Cell col="9" colspan="6" text="응급실" taborder="undefined"/>
  191. <Cell col="15" colspan="5" text="응급전용입원실" taborder="undefined"/>
  192. <Cell col="20" colspan="10" text="중환자실" taborder="undefined"/>
  193. <Cell col="30"/>
  194. <Cell row="1" col="9" text="내원일자" taborder="undefined"/>
  195. <Cell row="1" col="10" text="내원시간"/>
  196. <Cell row="1" col="11" text="퇴실일자"/>
  197. <Cell row="1" col="12" text="퇴실시간"/>
  198. <Cell row="1" col="13" text="입원장&#13;&#10;발부의"/>
  199. <Cell row="1" col="14" text="입원&#13;&#10;관리자"/>
  200. <Cell row="1" col="15" text="입원일자"/>
  201. <Cell row="1" col="16" text="입원시간"/>
  202. <Cell row="1" col="17" text="퇴실일자"/>
  203. <Cell row="1" col="18" text="퇴실시간"/>
  204. <Cell row="1" col="19" text="입실경로"/>
  205. <Cell row="1" col="20" text="입실일자"/>
  206. <Cell row="1" col="21" text="입실시간"/>
  207. <Cell row="1" col="22" text="입실경로"/>
  208. <Cell row="1" col="23" text="주진료과"/>
  209. <Cell row="1" col="24" text="담당교수"/>
  210. <Cell row="1" col="25" text="담당의"/>
  211. <Cell row="1" col="26" text="퇴실일자"/>
  212. <Cell row="1" col="27" text="퇴실시간"/>
  213. <Cell row="1" col="28" text="퇴실&#13;&#10;관리자"/>
  214. <Cell row="1" col="29" text="재원&#13;&#10;일수"/>
  215. <Cell row="1" col="30"/>
  216. </Band>
  217. <Band id="body">
  218. <Cell celltype="head" expr="expr:currow + 1"/>
  219. <Cell col="1" text="bind:roomnm"/>
  220. <Cell col="2" text="bind:bednm"/>
  221. <Cell col="3" text="bind:eryn"/>
  222. <Cell col="4" text="bind:specialdeptyn"/>
  223. <Cell col="5" text="bind:hngnm"/>
  224. <Cell col="6" text="bind:pid"/>
  225. <Cell col="7" text="bind:sexage"/>
  226. <Cell col="8" style="align:left middle;" text="bind:diagengnm" tooltiptype="bottom" tooltiptext="bind:diagengnm"/>
  227. <Cell col="9" text="bind:erindd"/>
  228. <Cell col="10" edittype="mask" text="bind:erintm" mask="##:##"/>
  229. <Cell col="11" text="bind:eroutdd"/>
  230. <Cell col="12" edittype="mask" text="bind:erouttm" mask="##:##"/>
  231. <Cell col="13" text="bind:indirecdrid"/>
  232. <Cell col="14" text="bind:inpermitdrnm"/>
  233. <Cell col="15" text="bind:ipdinwarddd"/>
  234. <Cell col="16" edittype="mask" text="bind:ipdoutwardtm" mask="##:##"/>
  235. <Cell col="17" text="bind:ipdoutwarddd"/>
  236. <Cell col="18" edittype="mask" text="bind:ipdoutwardtm" mask="##:##"/>
  237. <Cell col="19" text="bind:ipdfromward"/>
  238. <Cell col="20" text="bind:inwarddd"/>
  239. <Cell col="21" edittype="mask" text="bind:inwardtm" mask="##:##"/>
  240. <Cell col="22" text="bind:fromward"/>
  241. <Cell col="23" text="bind:orddept" tooltiptype="bottom" tooltiptext="bind:orddept"/>
  242. <Cell col="24" text="bind:medispclnm"/>
  243. <Cell col="25" text="bind:atdoctnm"/>
  244. <Cell col="26" text="bind:outwarddd"/>
  245. <Cell col="27" edittype="mask" text="bind:outwardtm" mask="##:##"/>
  246. <Cell col="28" text="bind:outwardpermitdoc"/>
  247. <Cell col="29" text="bind:days"/>
  248. <Cell col="30" text="bind:tryn"/>
  249. </Band>
  250. </Format>
  251. </Formats>
  252. </Grid>
  253. <PopupMenu id="pmn_menu" idcolumn="idcolumn" captioncolumn="captioncolumn" levelcolumn="levelcolumn" enablecolumn="enablecolumn" iconcolumn="iconcolumn" checkboxcolumn="checkboxcolumn" hotkeycolumn="hotkeycolumn" userdatacolumn="userdatacolumn" onmenuclick="pmn_menu_onmenuclick" position="absolute 1167 25 1313 64">
  254. <Dataset id="innerdataset">
  255. <ColumnInfo>
  256. <Column id="idcolumn" size="256"/>
  257. <Column id="captioncolumn" size="256"/>
  258. <Column id="levelcolumn" size="256"/>
  259. <Column id="enablecolumn" size="256"/>
  260. <Column id="iconcolumn" size="256"/>
  261. <Column id="checkboxcolumn" size="256"/>
  262. <Column id="hotkeycolumn" size="256"/>
  263. <Column id="userdatacolumn" size="256"/>
  264. </ColumnInfo>
  265. <Rows>
  266. <Row>
  267. <Col id="idcolumn">fExptList("Y")</Col>
  268. <Col id="captioncolumn">제외</Col>
  269. <Col id="levelcolumn"/>
  270. <Col id="enablecolumn"/>
  271. <Col id="iconcolumn"/>
  272. <Col id="checkboxcolumn"/>
  273. <Col id="hotkeycolumn"/>
  274. <Col id="userdatacolumn"/>
  275. </Row>
  276. <Row>
  277. <Col id="idcolumn">fExptList("N")</Col>
  278. <Col id="captioncolumn">제외 취소</Col>
  279. <Col id="levelcolumn"/>
  280. <Col id="enablecolumn"/>
  281. <Col id="iconcolumn"/>
  282. <Col id="checkboxcolumn"/>
  283. <Col id="hotkeycolumn"/>
  284. <Col id="userdatacolumn"/>
  285. </Row>
  286. </Rows>
  287. </Dataset>
  288. </PopupMenu>
  289. <CheckBox id="CheckBox01" taborder="4" text="제외 대상자만 보기" value="N" truevalue="Y" falsevalue="N" position="absolute 308 3 438 19" visible="false"/>
  290. </Layout>
  291. </Layouts>
  292. <Bind>
  293. <BindItem id="item1" compid="grp_search.ipt_fromdd" propid="value" datasetid="ds_send_req" columnid="fromdd"/>
  294. <BindItem id="item2" compid="grp_search.ipt_todd" propid="value" datasetid="ds_send_req" columnid="todd"/>
  295. <BindItem id="item0" compid="grp_search.rdo_gubun" propid="value" datasetid="ds_send_req" columnid="gubun"/>
  296. <BindItem id="item3" compid="grp_search.CheckBox00" propid="value" datasetid="ds_send_req" columnid="tryn"/>
  297. <BindItem id="item4" compid="CheckBox01" propid="value" datasetid="ds_send_req" columnid="exptviewyn"/>
  298. </Bind>
  299. <Objects>
  300. <Dataset id="ds_main_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  301. <ColumnInfo>
  302. <Column id="roomnm" type="STRING" size="256"/>
  303. <Column id="bednm" type="STRING" size="256"/>
  304. <Column id="eryn" type="STRING" size="256"/>
  305. <Column id="specialdeptyn" type="STRING" size="256"/>
  306. <Column id="pid" type="STRING" size="256"/>
  307. <Column id="hngnm" type="STRING" size="256"/>
  308. <Column id="sexage" type="STRING" size="256"/>
  309. <Column id="diagengnm" type="STRING" size="256"/>
  310. <Column id="erindd" type="STRING" size="256"/>
  311. <Column id="erintm" type="STRING" size="256"/>
  312. <Column id="eroutdd" type="STRING" size="256"/>
  313. <Column id="erouttm" type="STRING" size="256"/>
  314. <Column id="indirecdrid" type="STRING" size="256"/>
  315. <Column id="inwarddd" type="STRING" size="256"/>
  316. <Column id="inwardtm" type="STRING" size="256"/>
  317. <Column id="fromward" type="STRING" size="256"/>
  318. <Column id="inpermitdrnm" type="STRING" size="256"/>
  319. <Column id="orddept" type="STRING" size="256"/>
  320. <Column id="medispclnm" type="STRING" size="256"/>
  321. <Column id="atdoctnm" type="STRING" size="256"/>
  322. <Column id="outwarddd" type="STRING" size="256"/>
  323. <Column id="outwardtm" type="STRING" size="256"/>
  324. <Column id="days" type="STRING" size="256"/>
  325. <Column id="outwardpermitdoc" type="STRING" size="256"/>
  326. </ColumnInfo>
  327. </Dataset>
  328. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  329. <ColumnInfo>
  330. <Column id="gubun" type="STRING" size="256" sumtext="1 : 중환자실, 2: 입원실"/>
  331. <Column id="fromdd" type="STRING" size="256" sumtext="조회기간"/>
  332. <Column id="todd" type="STRING" size="256" sumtext="조회기간"/>
  333. <Column id="tryn" type="STRING" size="256"/>
  334. <Column id="exptviewyn" type="STRING" size="256"/>
  335. </ColumnInfo>
  336. <Rows>
  337. <Row>
  338. <Col id="tryn">Y</Col>
  339. <Col id="exptviewyn">N</Col>
  340. </Row>
  341. </Rows>
  342. </Dataset>
  343. <Dataset id="ds_main_patlist_icu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  344. <ColumnInfo>
  345. <Column id="roomnm" type="STRING" size="256"/>
  346. <Column id="bednm" type="STRING" size="256"/>
  347. <Column id="eryn" type="STRING" size="256"/>
  348. <Column id="specialdeptyn" type="STRING" size="256"/>
  349. <Column id="pid" type="STRING" size="256"/>
  350. <Column id="hngnm" type="STRING" size="256"/>
  351. <Column id="sexage" type="STRING" size="256"/>
  352. <Column id="diagengnm" type="STRING" size="256"/>
  353. <Column id="erindd" type="STRING" size="256"/>
  354. <Column id="erintm" type="STRING" size="256"/>
  355. <Column id="eroutdd" type="STRING" size="256"/>
  356. <Column id="erouttm" type="STRING" size="256"/>
  357. <Column id="indirecdrid" type="STRING" size="256"/>
  358. <Column id="inwarddd" type="STRING" size="256"/>
  359. <Column id="inwardtm" type="STRING" size="256"/>
  360. <Column id="fromward" type="STRING" size="256"/>
  361. <Column id="inpermitdrnm" type="STRING" size="256"/>
  362. <Column id="orddept" type="STRING" size="256"/>
  363. <Column id="medispclnm" type="STRING" size="256"/>
  364. <Column id="atdoctnm" type="STRING" size="256"/>
  365. <Column id="outwarddd" type="STRING" size="256"/>
  366. <Column id="outwardtm" type="STRING" size="256"/>
  367. <Column id="days" type="STRING" size="256"/>
  368. <Column id="outwardpermitdoc" type="STRING" size="256"/>
  369. <Column id="ipdinwarddd" type="STRING" size="256"/>
  370. <Column id="ipdinwardtm" type="STRING" size="256"/>
  371. <Column id="ipdoutwarddd" type="STRING" size="256"/>
  372. <Column id="ipdoutwardtm" type="STRING" size="256"/>
  373. <Column id="ipdfromward" type="STRING" size="256"/>
  374. </ColumnInfo>
  375. </Dataset>
  376. <Dataset id="ds_send_exptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  377. <ColumnInfo>
  378. <Column id="pid" type="STRING" size="256"/>
  379. <Column id="chosdd" type="STRING" size="256"/>
  380. <Column id="chostm" type="STRING" size="256"/>
  381. <Column id="patclass" type="STRING" size="256"/>
  382. <Column id="roomcd" type="STRING" size="256"/>
  383. <Column id="useyn" type="STRING" size="256"/>
  384. </ColumnInfo>
  385. </Dataset>
  386. </Objects>
  387. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  388. function SMMNE13000_oninit(obj:Form, e:InitEventInfo)
  389. {
  390. frmf_initForm(obj);
  391. }
  392. function SMMNE13000_onload(obj:Form, e:LoadEventInfo)
  393. {
  394. ds_send_req.setColumn(0, "gubun", "1");
  395. ds_send_req.setColumn(0, "fromdd", utlf_getCurrentDate());
  396. ds_send_req.setColumn(0, "todd", utlf_getCurrentDate());
  397. ds_send_req.setColumn(0, "exptviewyn", "N");
  398. //grdf_setGridSort(Grid_patlist);
  399. }
  400. function grp_search_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  401. {
  402. if(ds_send_req.getColumn(0, "gubun") == "1"){
  403. if(grp_search.ipt_fromdd.value < "20180521"){
  404. sysf_messageBox("2018년 5월 21일 이후 데이터만 조회할 수 있습니다.");
  405. return;
  406. }
  407. }
  408. if(utlf_diffDate(grp_search.ipt_fromdd.value, grp_search.ipt_todd.value) > 31){
  409. sysf_messageBox("조회 기간은 31일을 초과할 수 없습니다.");
  410. return;
  411. }
  412. var oParam = {};
  413. oParam.id = "SMMNE13001";
  414. oParam.service = "ercareapp.ERPatMngt";
  415. oParam.method = "reqERIntensiveCareUnitAndWardPatientList";
  416. oParam.inds = "req=ds_send_req";
  417. if (ds_send_req.getColumn(0, "gubun") == "1")
  418. {
  419. oParam.outds = "ds_main_patlist_icu=patlist";
  420. }
  421. else
  422. {
  423. oParam.outds = "ds_main_patlist=patlist";
  424. }
  425. oParam.async = true;
  426. tranf_submit(oParam);
  427. }
  428. function grp_search_rdo_gubun_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  429. {
  430. //입원실
  431. if(obj.value == "2"){
  432. Grid_patlist.setCellProperty("Head", 10, "text", "입원실");
  433. Grid_patlist.visible = true;
  434. Grid_patlist_icu.visible = false;
  435. //grp_search.CheckBox00.visible = false;
  436. }
  437. //중환자실
  438. else {
  439. Grid_patlist.setCellProperty("Head", 10, "text", "중환자실");
  440. Grid_patlist.visible = false;
  441. Grid_patlist_icu.visible = true;
  442. //grp_search.CheckBox00.visible = true;
  443. }
  444. }
  445. function grp_search_btn_execl_onclick(obj:Button, e:ClickEventInfo)
  446. {
  447. if (ds_send_req.getColumn(0, "gubun") == "1")
  448. grdf_exportExcel(Grid_patlist_icu, "응급전용 중환자실 및 입원실 이용환자대장", "SheetName" , true, "" , "" , true);
  449. else
  450. grdf_exportExcel(Grid_patlist, "응급전용 중환자실 및 입원실 이용환자대장", "SheetName" , true, "" , "" , true);
  451. }
  452. // grdf_setGridSort()사용시 헤더가 2줄인거에 대하여 정렬이 안되어 수정 구현
  453. function Grid_patlist_onheadclick(obj:Grid, e:GridClickEventInfo)
  454. {
  455. var bindDs = eval(obj.binddataset);
  456. if (bindDs.rowcount == 0) return false;
  457. var CONST_SORT_MARK = "";
  458. // 클릭한 위치 그 앞에까지 존재하는 서브셀의 갯수 만큼 e.cell 에 더 해주면 body 영역의 col 위치 값이 나올듯?
  459. var colspanHeadCnt = 0;
  460. var colspanBodyCnt = 0;
  461. var headCnt = 0;
  462. var bodyCnt = 0;
  463. for(var i = 0; i <= e.cell; i++) {
  464. headCnt = obj.getCellProperty("Head", i, "colspan");
  465. bodyCnt = obj.getCellProperty("body", i, "colspan");
  466. colspanHeadCnt += headCnt;
  467. colspanBodyCnt += bodyCnt;
  468. }
  469. var colspanCnt = colspanHeadCnt - colspanBodyCnt;
  470. // 선택한 컬럼의 head가 합쳐져 있고 body는 안합쳐져 있을 때는 body의 제일 앞 컬럼 기준으로 sort 하도록 수정
  471. if(headCnt > 1 && bodyCnt == 1) {
  472. colspanCnt = colspanCnt - headCnt + 1;
  473. }
  474. // e.col로 bind 데이터 가져오기
  475. var sText = obj.getCellProperty("body", e.col, "text");
  476. if(utlf_isNull(sText)) return false;
  477. var BodyColId = sText.split(":"); // e.col : 바인드된 컬럼.
  478. if (BodyColId[0] != "bind") {
  479. return false;
  480. }
  481. if(obj.getCellText(-1, e.cell) == "undefined"){
  482. return;
  483. }
  484. var strHeadText = obj.getCellText(-1, e.cell);
  485. var keystring = bindDs.keystring;
  486. var sortcolumns = "";
  487. if(!utlf_isNull(keystring)) {
  488. keystring = keystring.toString();
  489. var isGroup = keystring.indexOf("G:");
  490. if(isGroup > -1) return;
  491. keystring = keystring.replace(/undefined/g, "");
  492. if(keystring != "S:") {
  493. var nStart = keystring.indexOf("S:");
  494. sortcolumns = keystring.substring(nStart + 2, keystring.length);
  495. var nS = sortcolumns.indexOf(BodyColId[1]); // keystring에 이미 들어가 있는 컬럼이면 먼저 제거 해준다.
  496. if( nS > -1) {
  497. sortcolumns = sortcolumns.substring(0, nS - 1) + sortcolumns.substring(nS, sortcolumns.length); // '+', '-' 제거
  498. sortcolumns = sortcolumns.replace(BodyColId[1], ""); // 기존에 있는 컬럼명 제거
  499. }
  500. }
  501. }
  502. if (strHeadText.substr(strHeadText.length - 1) == CONST_ASC_MARK) {
  503. obj.setCellProperty( "head", e.cell, "text", strHeadText.substr(0, strHeadText.length - 2) + " " + CONST_DESC_MARK);
  504. bindDs.keystring = "S:" + "-" + BodyColId[1] + sortcolumns;
  505. } else if (strHeadText.substr(strHeadText.length - 1) == CONST_DESC_MARK) {
  506. obj.setCellProperty( "head", e.cell, "text", strHeadText.substr(0, strHeadText.length - 2));
  507. bindDs.keystring = "S:" + sortcolumns;
  508. } else {
  509. obj.setCellProperty( "head", e.cell, "text", strHeadText + " " + CONST_ASC_MARK);
  510. bindDs.keystring = "S:" + "+" + BodyColId[1] + sortcolumns;
  511. }
  512. }
  513. function Grid_patlist_icu_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  514. {
  515. pmn_menu.trackPopup(e.screenX,e.screenY);
  516. return true;
  517. }
  518. function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  519. {
  520. eval(e.id);
  521. }
  522. function fExptList(useyn)
  523. {
  524. var rows, grid, ds;
  525. var patclass = "";
  526. switch (ds_send_req.getColumn(0, "gubun"))
  527. {
  528. case "1": // 중환자실
  529. patclass = "ICU"
  530. grid = eval("Grid_patlist_icu");
  531. ds = eval("ds_main_patlist_icu");
  532. break;
  533. case "2": // 입원실
  534. patclass = "IPD"
  535. grid = eval("Grid_patlist");
  536. ds = eval("ds_main_patlist");
  537. break;
  538. }
  539. rows = grdf_getSelectedRows (grid);
  540. ds_send_exptlist.clearData();
  541. for (var i = rows.length-1 ; i >= 0; i--)
  542. {
  543. var nRow = ds_send_exptlist.addRow();
  544. ds_send_exptlist.setColumn(nRow, "pid" , ds.getColumn(rows[i], "pid") );
  545. ds_send_exptlist.setColumn(nRow, "chosdd", ds.getColumn(rows[i], "erindd").replace("-","") );
  546. ds_send_exptlist.setColumn(nRow, "chostm", ds.getColumn(rows[i], "erintm").replace(":","") );
  547. ds_send_exptlist.setColumn(nRow, "patclass", patclass);
  548. ds_send_exptlist.setColumn(nRow, "pid" , ds.getColumn(rows[i], "pid") );
  549. ds_send_exptlist.setColumn(nRow, "roomcd", ds.getColumn(rows[i], "roomnm") );
  550. ds_send_exptlist.setColumn(nRow, "useyn", useyn)
  551. }
  552. if (ds_send_exptlist.rowcount > 0)
  553. {
  554. var oParam = {};
  555. oParam.id = "TRMNP20402";
  556. oParam.service = "ercareapp.ERPatMngt";
  557. oParam.method = "reqInsErOnlyExamExpt";
  558. oParam.inds = "cond=ds_send_exptlist";
  559. oParam.outds = "";
  560. oParam.async = false;
  561. tranf_submit(oParam);
  562. //ds_send_exptlist.clearData();
  563. }
  564. }
  565. ]]></Script>
  566. </Form>
  567. </FDL>