SMMNE21100_응급전용환자대장.xfdl 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE21100" position="absolute 0 0 1105 778" titletext="응급전용 환자대장" oninit="SMMNE21100_oninit" onload="SMMNE21100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" taborder="0" class="div_SA" position="absolute 0 25 1099 64" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 869 9 875 31" anchor="top right"/>
  11. <Static id="caption2" text="조회기간 :" class="search_name" position="absolute 15 12 86 29" anchor="default"/>
  12. <Calendar id="input_refFrDT" taborder="1" class="input_s_essential" position="absolute 88 9 188 30" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
  13. <Static id="caption5" text="~" class="search_no_b" position="absolute 193 12 204 29" anchor="default"/>
  14. <Calendar id="input_refToDT" taborder="2" class="input_s_essential" position="absolute 209 9 309 30" anchor="default" dateformat="yyyy-MM-dd" autoselect="true"/>
  15. <Button id="btn_srch" taborder="4" text="조회" class="btn1" position="absolute 880 10 936 30" anchor="top right" onclick="group2_btn_srch_onclick" defaultbutton="false" escapebutton="false"/>
  16. <Static id="caption10" text="등록번호 :" class="search_name" position="absolute 329 12 404 29"/>
  17. <Edit id="ipt_pid" taborder="5" onkeydown="grp_srch2_ipt_pid_onkeydown" class="input_search" position="absolute 408 10 474 29"/>
  18. <Div id="divExamCond" taborder="6" style="background:transparent;" text="Div00" position="absolute 484 7 754 30">
  19. <Layouts>
  20. <Layout>
  21. <Static id="caption00" text="조회구분 :" class="search_name" position="absolute 8 4 83 21" anchor="default"/>
  22. <Radio id="Radio00" taborder="1" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 89 5 270 21" anchor="default" onitemchanged="group2_divExamCond_Radio00_onitemchanged">
  23. <Dataset id="innerdataset">
  24. <ColumnInfo>
  25. <Column id="codecolumn" size="256"/>
  26. <Column id="datacolumn" size="256"/>
  27. </ColumnInfo>
  28. <Rows>
  29. <Row>
  30. <Col id="codecolumn">XRAY</Col>
  31. <Col id="datacolumn">응급 X-ray</Col>
  32. </Row>
  33. <Row>
  34. <Col id="codecolumn">CT</Col>
  35. <Col id="datacolumn">응급 CT</Col>
  36. </Row>
  37. </Rows>
  38. </Dataset>
  39. </Radio>
  40. </Layout>
  41. </Layouts>
  42. </Div>
  43. </Layout>
  44. </Layouts>
  45. </Div>
  46. <Shape id="line1" linetype="horizontal" class="line_3" position="absolute 0 755 1099 761" anchor="left right bottom"/>
  47. <Static id="caption6" text="응급전용 환자 대장" class="tit_1" position="absolute 0 0 151 25"/>
  48. <Button id="btn_report" taborder="6" text="출력" class="btn6" position="absolute 1035 35 1091 55" anchor="top right" onclick="btn_report_onclick"/>
  49. <Button id="btn_excel" taborder="7" text="엑셀저장" class="btn7" position="absolute 946 35 1026 55" anchor="top right" onclick="btn_excel_onclick"/>
  50. <Static id="caption1" text="[표]" position="absolute 1072 762 1097 776" anchor="right bottom"/>
  51. <Tab id="Tab00" taborder="8" tabindex="0" scrollbars="autoboth" position="absolute 0 66 1105 755" anchor="all" onchanged="Tab00_onchanged">
  52. <Tabpages>
  53. <Tabpage id="tabpage1" text=" 응급전용 수술실 이용 환자 대장 ">
  54. <Layouts>
  55. <Layout>
  56. <Grid id="grd_eronly_oplist" class="datagrid2" taborder="1" binddataset="ds_main_eronly_oplist" autoenter="key" useinputpanel="false" cellsizingtype="col" cellsizebandtype="allband" position="absolute 0 4 1091 652" anchor="all" readonly="true" onheadclick="Tab00_tabpage1_grd_eronly_oplist_onheadclick" selecttype="multirow" onrbuttondown="Tab00_tabpage1_grd_eronly_oplist_onrbuttondown">
  57. <Formats>
  58. <Format id="default">
  59. <Columns>
  60. <Column size="25" band="left"/>
  61. <Column size="96" band="left"/>
  62. <Column size="87" band="left"/>
  63. <Column size="90" band="left"/>
  64. <Column size="60" band="left"/>
  65. <Column size="90" band="left"/>
  66. <Column size="60" band="left"/>
  67. <Column size="59" band="left"/>
  68. <Column size="90" band="left"/>
  69. <Column size="60" band="left"/>
  70. <Column size="90" band="left"/>
  71. <Column size="60" band="left"/>
  72. <Column size="116" band="left"/>
  73. <Column size="48" band="left"/>
  74. </Columns>
  75. <Rows>
  76. <Row size="26" band="head"/>
  77. <Row size="28" band="head"/>
  78. <Row size="26"/>
  79. </Rows>
  80. <Band id="head">
  81. <Cell/>
  82. <Cell col="1" colspan="2" text="환자정보" taborder="undefined"/>
  83. <Cell col="3" colspan="4" text="응급실정보" taborder="undefined"/>
  84. <Cell col="7" rowspan="2" edittype="none" style="align:center;" text="수술실&#13;&#10;입실경로" wordwrap="none" taborder="undefined"/>
  85. <Cell col="8" colspan="6" text="수술정보" taborder="undefined"/>
  86. <Cell row="1"/>
  87. <Cell row="1" col="1" text="이름"/>
  88. <Cell row="1" col="2" text="등록번호"/>
  89. <Cell row="1" col="3" text="내원일자"/>
  90. <Cell row="1" col="4" text="내원시간"/>
  91. <Cell row="1" col="5" text="퇴실일자"/>
  92. <Cell row="1" col="6" text="퇴실시간"/>
  93. <Cell row="1" col="8" text="시작일자"/>
  94. <Cell row="1" col="9" text="시작시간"/>
  95. <Cell row="1" col="10" text="종료일자"/>
  96. <Cell row="1" col="11" text="종료시간"/>
  97. <Cell row="1" col="12" text="수술의뢰진료과"/>
  98. <Cell row="1" col="13" text="수술방"/>
  99. </Band>
  100. <Band id="body">
  101. <Cell celltype="head" text="expr:currow + 1"/>
  102. <Cell col="1" text="bind:hngnm"/>
  103. <Cell col="2" displaytype="normal" edittype="normal" style="padding:0 0 0 2;" text="bind:pid" enable="false"/>
  104. <Cell col="3" displaytype="normal" text="bind:chosdd"/>
  105. <Cell col="4" displaytype="normal" text="bind:chostm"/>
  106. <Cell col="5" displaytype="normal" text="bind:outrmdd"/>
  107. <Cell col="6" text="bind:outrmtm"/>
  108. <Cell col="7" text="bind:in_method"/>
  109. <Cell col="8" displaytype="normal" text="bind:opstrdd"/>
  110. <Cell col="9" text="bind:opstrtm"/>
  111. <Cell col="10" displaytype="normal" text="bind:openddd"/>
  112. <Cell col="11" text="bind:opendtm"/>
  113. <Cell col="12" text="bind:opdeptnm"/>
  114. <Cell col="13" text="bind:oproomnm"/>
  115. </Band>
  116. </Format>
  117. </Formats>
  118. </Grid>
  119. </Layout>
  120. </Layouts>
  121. </Tabpage>
  122. <Tabpage id="tabpage2" text=" 응급전용 X-ray 및 CT 이용 환자 대장 " style="anchor:default;margin:3 0 10 0;" layoutselecttype="inner,width">
  123. <Layouts>
  124. <Layout>
  125. <Grid id="grd_eronly_examlist" class="datagrid2" taborder="0" binddataset="ds_main_eronly_examlist" autoenter="key" useinputpanel="false" cellsizingtype="col" cellsizebandtype="allband" position="absolute 0 4 1099 652" anchor="all" readonly="true" onheadclick="Tab00_tabpage2_grd_eronly_examlist_onheadclick" selecttype="multirow" onrbuttondown="Tab00_tabpage2_grd_eronly_examlist_onrbuttondown">
  126. <Formats>
  127. <Format id="default">
  128. <Columns>
  129. <Column size="25"/>
  130. <Column size="67"/>
  131. <Column size="96"/>
  132. <Column size="87"/>
  133. <Column size="90"/>
  134. <Column size="60"/>
  135. <Column size="90"/>
  136. <Column size="60"/>
  137. <Column size="90"/>
  138. <Column size="60"/>
  139. <Column size="107"/>
  140. <Column size="80"/>
  141. <Column size="40"/>
  142. <Column size="79"/>
  143. <Column size="122"/>
  144. <Column size="94"/>
  145. </Columns>
  146. <Rows>
  147. <Row size="26" band="head"/>
  148. <Row size="28" band="head"/>
  149. <Row size="26"/>
  150. </Rows>
  151. <Band id="head">
  152. <Cell taborder="undefined"/>
  153. <Cell col="1" rowspan="2" text="촬영&#13;&#10;기기&#13;&#10;번호" taborder="undefined"/>
  154. <Cell col="2" colspan="2" text="환자정보" taborder="undefined"/>
  155. <Cell col="4" colspan="4" text="응급실정보" taborder="undefined"/>
  156. <Cell col="8" colspan="4" text="촬영정보" taborder="undefined"/>
  157. <Cell col="12" colspan="4" text="기타 정보" taborder="undefined"/>
  158. <Cell row="1" taborder="undefined"/>
  159. <Cell row="1" col="2" text="이름"/>
  160. <Cell row="1" col="3" text="등록번호"/>
  161. <Cell row="1" col="4" text="내원일자"/>
  162. <Cell row="1" col="5" text="내원시간"/>
  163. <Cell row="1" col="6" text="퇴실일자"/>
  164. <Cell row="1" col="7" text="퇴실시간"/>
  165. <Cell row="1" col="8" text="촬영일자"/>
  166. <Cell row="1" col="9" text="촬영시간"/>
  167. <Cell row="1" col="10" text="촬영의뢰진료과"/>
  168. <Cell row="1" col="11" text="촬영자"/>
  169. <Cell row="1" col="12" text="IO"/>
  170. <Cell row="1" col="13" text="병실코드"/>
  171. <Cell row="1" col="14" text="병동명"/>
  172. <Cell row="1" col="15" style="align:center;" text="처방명"/>
  173. </Band>
  174. <Band id="body">
  175. <Cell celltype="head" text="expr:currow + 1"/>
  176. <Cell col="1" text="bind:deptrem"/>
  177. <Cell col="2" text="bind:hngnm"/>
  178. <Cell col="3" displaytype="normal" edittype="normal" style="padding:0 0 0 2;" text="bind:pid" enable="false"/>
  179. <Cell col="4" displaytype="normal" text="bind:chosdd"/>
  180. <Cell col="5" displaytype="normal" text="bind:chostm"/>
  181. <Cell col="6" displaytype="normal" text="bind:outrmdd"/>
  182. <Cell col="7" text="bind:outrmtm"/>
  183. <Cell col="8" displaytype="normal" text="bind:executetodd"/>
  184. <Cell col="9" text="bind:executetotm"/>
  185. <Cell col="10" displaytype="normal" text="bind:orddeptnm"/>
  186. <Cell col="11" text="bind:execrid1"/>
  187. <Cell col="12" text="bind:ioflag"/>
  188. <Cell col="13" text="bind:roomcd"/>
  189. <Cell col="14" text="bind:wardnm"/>
  190. <Cell col="15" style="align:left;" text="bind:prcpnm"/>
  191. </Band>
  192. </Format>
  193. </Formats>
  194. </Grid>
  195. </Layout>
  196. </Layouts>
  197. </Tabpage>
  198. </Tabpages>
  199. </Tab>
  200. <CheckBox id="CheckBox00" taborder="9" text="예외 확인" position="absolute 156 3 236 21" truevalue="Y" value="false" falsevalue="N"/>
  201. <Menu id="Menu00" taborder="10" idcolumn="idcolumn" captioncolumn="captioncolumn" levelcolumn="levelcolumn" iconcolumn="iconcolumn" enablecolumn="enablecolumn" checkboxcolumn="checkboxcolumn" hotkeycolumn="hotkeycolumn" userdatacolumn="userdatacolumn" position="absolute 1017 72 1087 82" visible="false">
  202. <Dataset id="innerdataset">
  203. <ColumnInfo>
  204. <Column id="idcolumn" size="256"/>
  205. <Column id="captioncolumn" size="256"/>
  206. <Column id="levelcolumn" size="256"/>
  207. <Column id="iconcolumn" size="256"/>
  208. <Column id="enablecolumn" size="256"/>
  209. <Column id="checkboxcolumn" size="256"/>
  210. <Column id="hotkeycolumn" size="256"/>
  211. <Column id="userdatacolumn" size="256"/>
  212. </ColumnInfo>
  213. <Rows>
  214. <Row>
  215. <Col id="idcolumn">fExptList</Col>
  216. <Col id="captioncolumn">제외</Col>
  217. <Col id="levelcolumn"/>
  218. <Col id="iconcolumn"/>
  219. <Col id="enablecolumn"/>
  220. <Col id="checkboxcolumn"/>
  221. <Col id="hotkeycolumn"/>
  222. <Col id="userdatacolumn"/>
  223. </Row>
  224. </Rows>
  225. </Dataset>
  226. </Menu>
  227. <PopupMenu id="pmn_menu" position="absolute 1114 62 1260 101" idcolumn="idcolumn" captioncolumn="captioncolumn" levelcolumn="levelcolumn" enablecolumn="enablecolumn" iconcolumn="iconcolumn" checkboxcolumn="checkboxcolumn" hotkeycolumn="hotkeycolumn" userdatacolumn="userdatacolumn" onmenuclick="pmn_menu_onmenuclick">
  228. <Dataset id="innerdataset">
  229. <ColumnInfo>
  230. <Column id="idcolumn" size="256"/>
  231. <Column id="captioncolumn" size="256"/>
  232. <Column id="levelcolumn" size="256"/>
  233. <Column id="enablecolumn" size="256"/>
  234. <Column id="iconcolumn" size="256"/>
  235. <Column id="checkboxcolumn" size="256"/>
  236. <Column id="hotkeycolumn" size="256"/>
  237. <Column id="userdatacolumn" size="256"/>
  238. </ColumnInfo>
  239. <Rows>
  240. <Row>
  241. <Col id="idcolumn">fExptList("Y")</Col>
  242. <Col id="captioncolumn">제외</Col>
  243. <Col id="levelcolumn"/>
  244. <Col id="enablecolumn"/>
  245. <Col id="iconcolumn"/>
  246. <Col id="checkboxcolumn"/>
  247. <Col id="hotkeycolumn"/>
  248. <Col id="userdatacolumn"/>
  249. </Row>
  250. <Row>
  251. <Col id="idcolumn">fExptList("N")</Col>
  252. <Col id="captioncolumn">제외 취소</Col>
  253. <Col id="levelcolumn"/>
  254. <Col id="enablecolumn"/>
  255. <Col id="iconcolumn"/>
  256. <Col id="checkboxcolumn"/>
  257. <Col id="hotkeycolumn"/>
  258. <Col id="userdatacolumn"/>
  259. </Row>
  260. </Rows>
  261. </Dataset>
  262. </PopupMenu>
  263. <CheckBox id="CheckBox01" taborder="11" text="제외 대상자만 보기" position="absolute 260 3 390 19" truevalue="Y" falsevalue="N"/>
  264. </Layout>
  265. </Layouts>
  266. <Objects>
  267. <Dataset id="ds_main_eronly_oplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  268. <ColumnInfo>
  269. <Column id="pid" type="STRING" size="256"/>
  270. <Column id="hngnm" type="STRING" size="256"/>
  271. <Column id="chosdd" type="STRING" size="256"/>
  272. <Column id="chostm" type="STRING" size="256"/>
  273. <Column id="outrmdd" type="STRING" size="256"/>
  274. <Column id="outrmtm" type="STRING" size="256"/>
  275. <Column id="in_method" type="STRING" size="256"/>
  276. <Column id="opschedd" type="STRING" size="256"/>
  277. <Column id="opstrdd" type="STRING" size="256"/>
  278. <Column id="opstrtm" type="STRING" size="256"/>
  279. <Column id="openddd" type="STRING" size="256"/>
  280. <Column id="opendtm" type="STRING" size="256"/>
  281. <Column id="opdeptnm" type="STRING" size="256"/>
  282. <Column id="oproomcd" type="STRING" size="256"/>
  283. <Column id="oproomnm" type="STRING" size="256"/>
  284. </ColumnInfo>
  285. </Dataset>
  286. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  287. <ColumnInfo>
  288. <Column id="fromdd" type="STRING" size="256"/>
  289. <Column id="todd" type="STRING" size="256"/>
  290. <Column id="pid" type="STRING" size="256"/>
  291. <Column id="excuroomtype" type="STRING" size="256"/>
  292. <Column id="excepchk" type="STRING" size="256"/>
  293. <Column id="examlistSortType" type="STRING" size="256"/>
  294. <Column id="oplistSortType" type="STRING" size="256"/>
  295. <Column id="patclass" type="STRING" size="256"/>
  296. <Column id="exptviewyn" type="STRING" size="256"/>
  297. <Column id="excepchkvalue" type="STRING" size="256"/>
  298. </ColumnInfo>
  299. <Rows>
  300. <Row>
  301. <Col id="exptviewyn"/>
  302. </Row>
  303. </Rows>
  304. </Dataset>
  305. <Dataset id="ds_main_eronly_examlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  306. <ColumnInfo>
  307. <Column id="deptrem" type="STRING" size="256"/>
  308. <Column id="hngnm" type="STRING" size="256"/>
  309. <Column id="pid" type="STRING" size="256"/>
  310. <Column id="chosdd" type="STRING" size="256"/>
  311. <Column id="chostm" type="STRING" size="256"/>
  312. <Column id="outrmdd" type="STRING" size="256"/>
  313. <Column id="outrmtm" type="STRING" size="256"/>
  314. <Column id="executetodd" type="STRING" size="256"/>
  315. <Column id="executetotm" type="STRING" size="256"/>
  316. <Column id="orddeptnm" type="STRING" size="256"/>
  317. <Column id="execrid1" type="STRING" size="256"/>
  318. <Column id="prcpnm" type="STRING" size="256"/>
  319. <Column id="indd" type="STRING" size="256"/>
  320. <Column id="ioflag" type="STRING" size="256"/>
  321. <Column id="roomcd" type="STRING" size="256"/>
  322. <Column id="wardnm" type="STRING" size="256"/>
  323. </ColumnInfo>
  324. </Dataset>
  325. <Dataset id="ds_send_exptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  326. <ColumnInfo>
  327. <Column id="pid" type="STRING" size="256"/>
  328. <Column id="chosdd" type="STRING" size="256"/>
  329. <Column id="chostm" type="STRING" size="256"/>
  330. <Column id="patclass" type="STRING" size="256"/>
  331. <Column id="roomcd" type="STRING" size="256"/>
  332. <Column id="useyn" type="STRING" size="256"/>
  333. </ColumnInfo>
  334. </Dataset>
  335. <Dataset id="ds_tmp_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  336. <ColumnInfo>
  337. <Column id="excepchk" type="STRING" size="256"/>
  338. </ColumnInfo>
  339. <Rows>
  340. <Row/>
  341. </Rows>
  342. </Dataset>
  343. </Objects>
  344. <Bind>
  345. <BindItem id="item0" compid="group2.input_refFrDT" propid="value" datasetid="ds_cond" columnid="fromdd"/>
  346. <BindItem id="item1" compid="group2.input_refToDT" propid="value" datasetid="ds_cond" columnid="todd"/>
  347. <BindItem id="item10" compid="group2.ipt_pid" propid="value" datasetid="ds_cond" columnid="pid"/>
  348. <BindItem id="item2" compid="group2.divExamCond.Radio00" propid="value" datasetid="ds_cond" columnid="excuroomtype"/>
  349. <BindItem id="item3" compid="CheckBox00" propid="value" datasetid="ds_cond" columnid="excepchk"/>
  350. <BindItem id="item4" compid="CheckBox01" propid="value" datasetid="ds_cond" columnid="exptviewyn"/>
  351. </Bind>
  352. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  353. * System Name :
  354. * Job Name :
  355. * Creator : 김현석
  356. * Make Date : 2019-05-27
  357. * Description :
  358. *---------------------------------------------------------------------------------------
  359. * Modify Date Modifier Modify Description
  360. *---------------------------------------------------------------------------------------
  361. * 2019-05-27
  362. *
  363. *---------------------------------------------------------------------------------------
  364. ****************************************************************************************/
  365. include "com_commonxp::comm_main.xjs";
  366. include "emr_carecomxp::CareCom.xjs";
  367. /******************************************************************
  368. * Argument :
  369. * Description : 초기화
  370. ******************************************************************/
  371. function SMMNE21100_oninit(obj:Form, e:InitEventInfo)
  372. {
  373. frmf_initForm(obj);
  374. }
  375. function SMMNE21100_onload(obj:Form, e:LoadEventInfo)
  376. {
  377. ds_main_eronly_oplist.clearData();
  378. var setDate = utlf_getCurrentDate();
  379. ds_cond.setColumn(0, "fromdd", setDate.substr(0, 6) + "01");
  380. ds_cond.setColumn(0, "todd", setDate);
  381. ds_cond.setColumn(0, "excuroomtype", "XRAY");
  382. ds_cond.setColumn(0, "excepchk", "");
  383. ds_cond.setColumn(0, "exptviewyn", "N");
  384. ds_tmp_cond.setColumn(0, "excepchk", "");
  385. // 공통코드를 가져온다.
  386. dsf_createDs("ds_send");
  387. dsf_createDs("ds_codelist");
  388. var pCdrupid = "'E48'" ; // 예외 조회 조건 옵션 처리
  389. var pFromDate = utlf_getCurrentDate(); //조회기준일자
  390. // 간호 하드코드 가져오기.
  391. fGetNursHardCdInfo(pCdrupid, pFromDate);
  392. var viewoption = ds_codelist.getColumn(0, "cdnm");
  393. if ( utlf_transNullToEmpty(viewoption.substr(0, 1)) == "Y" )
  394. {
  395. CheckBox00.visible = true;
  396. CheckBox01.visible = true;
  397. }
  398. else
  399. {
  400. CheckBox00.visible = false;
  401. CheckBox01.visible = false;
  402. }
  403. // 예외 허용 여부
  404. if ( utlf_transNullToEmpty(viewoption.substr(1, 1)) == "Y" )
  405. {
  406. ds_cond.setColumn(0, "excepchk", utlf_transNullToEmpty(viewoption.substr(1, 1)) );
  407. }
  408. ds_tmp_cond.setColumn(0, "excepchk", utlf_transNullToEmpty(viewoption));
  409. /*ds_diagkind.copyData(ds_codelist);*/
  410. //속도개선
  411. group2.divExamCond.visible= false;
  412. // grdf_initGrid(Tab00.tabpage1.grd_eronly_oplist);
  413. // grdf_initGrid(Tab00.tabpage2.grd_eronly_examlist);
  414. //lf_InitCotrolSetting(this.components, "", "");
  415. if (IsDevMode())
  416. {
  417. Tab00.tabindex = 1;
  418. ds_cond.setColumn(0, "fromdd", "20190405");
  419. ds_cond.setColumn(0, "todd" , "20190405");
  420. ds_cond.setColumn(0, "excuroomtype", "CT");
  421. Tab00.tabindex = 0;
  422. ds_cond.setColumn(0, "fromdd", "20180801");
  423. ds_cond.setColumn(0, "todd" , "20180930");
  424. ds_cond.setColumn(0, "excuroomtype", "CT");
  425. }
  426. }
  427. function lf_InitCotrolSetting(objComponent, Objparent, parentName)
  428. {
  429. if ( ! utlf_isNull( objComponent ) )
  430. {
  431. if ( ! utlf_isNull( Objparent) )
  432. {
  433. parentName += Objparent.name + ".";
  434. }
  435. for (var i = 0; i < objComponent.length; i++)
  436. {
  437. switch ( objComponent[i] )
  438. {
  439. case "[object Grid]":
  440. grdf_initGrid ( eval(parentName + objComponent[i].name) );
  441. break;
  442. }
  443. lf_InitCotrolSetting(objComponent[i].components, objComponent[i], parentName);
  444. }
  445. }
  446. }
  447. /******************************************************************
  448. * Argument :
  449. * Description : 조회 button event
  450. ******************************************************************/
  451. function group2_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  452. {
  453. switch (Tab00.tabindex)
  454. {
  455. case "0": // 응급전용 수술실
  456. ds_cond.setColumn(0, "patclass", "OP");
  457. var oParam = {};
  458. oParam.id = "TRMNP20401";
  459. oParam.service = "opanstapp.OpAnstPatMngt";
  460. oParam.method = "reqGetOpRegListErOnly";
  461. oParam.inds = "cond=ds_cond";
  462. oParam.outds = "ds_main_eronly_oplist=oplist";
  463. oParam.async = false;
  464. tranf_submit(oParam);
  465. break;
  466. case "1": // 응급전용 촬영실
  467. ds_cond.setColumn(0, "patclass", ds_cond.getColumn(0, "excuroomtype"));
  468. var oParam = {};
  469. oParam.id = "TRMNP20402";
  470. oParam.service = "ercareapp.ERPatMngt";
  471. oParam.method = "reqGetErOnlyExamList";
  472. oParam.inds = "cond=ds_cond";
  473. oParam.outds = "ds_main_eronly_examlist=examlist";
  474. oParam.async = false;
  475. break;
  476. }
  477. tranf_submit(oParam);
  478. }
  479. /******************************************************************
  480. * Argument :
  481. * Description : 엑셀저장 button event
  482. ******************************************************************/
  483. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  484. {
  485. var fromdd = ds_cond.getColumn(0, "fromdd");
  486. var todd = ds_cond.getColumn(0, "todd");
  487. var title = Tab00.tabpages[Tab00.tabindex].text;
  488. switch (Tab00.tabindex)
  489. {
  490. case 0:
  491. if (ds_main_eronly_oplist.rowcount > 0)
  492. {
  493. grdf_exportExcel( Tab00.tabpage1.grd_eronly_oplist, title + "("+ fromdd +"-"+ todd +")", title , false, "", "user", false);
  494. }
  495. break;
  496. case 1:
  497. if (ds_main_eronly_examlist.rowcount > 0)
  498. {
  499. grdf_exportExcel(Tab00.tabpage2.grd_eronly_examlist, title + "("+ fromdd +"-"+ todd +")", ds_cond.getColumn(0, "excuroomtype") , false, "", "user", false);
  500. }
  501. break;
  502. default:
  503. return;
  504. }
  505. }
  506. /******************************************************************
  507. * Argument :
  508. * Description : 출력 button event
  509. ******************************************************************/
  510. function btn_report_onclick(obj:Button, e:ClickEventInfo)
  511. {
  512. ds_cond.updatecontrol = true;
  513. switch (Tab00.tabindex)
  514. {
  515. case 0:
  516. var objDOM = rptf_createDOM();
  517. rptf_setNodeListToDOM(objDOM, "/root/main/oplistEronly/oplist", ds_main_eronly_oplist);
  518. rptf_setNodeListToDOM(objDOM, "/root/cond", ds_cond);
  519. var objParam = new Object();
  520. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  521. var option = "";
  522. rptf_exeReportPreview30(["RPMNP21100"],[objParam], option);
  523. break;
  524. case 1:
  525. var objDOM = rptf_createDOM();
  526. rptf_setNodeListToDOM(objDOM, "/root/main/examlistEronly/examlist", ds_main_eronly_examlist);
  527. rptf_setNodeListToDOM(objDOM, "/root/cond", ds_cond);
  528. var objParam = new Object();
  529. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  530. var option = "";
  531. rptf_exeReportPreview30(["RPMME07000"],[objParam], option);
  532. break;
  533. default:
  534. break;
  535. }
  536. }
  537. function Tab00_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  538. {
  539. if (Tab00.tabindex == 0)
  540. {
  541. group2.divExamCond.visible= false;
  542. ds_cond.setColumn(0, "excepchk", utlf_transNullToEmpty(ds_tmp_cond.getColumn(0, "excepchk").substr(1, 1)) );
  543. }
  544. else if (Tab00.tabindex == 1)
  545. {
  546. group2.divExamCond.visible= true
  547. ds_cond.setColumn(0, "excepchk", utlf_transNullToEmpty(ds_tmp_cond.getColumn(0, "excepchk").substr(2, 1)) );
  548. }
  549. trace("excepchk : " + ds_cond.getColumn(0, "excepchk"));
  550. }
  551. function group2_divExamCond_Radio00_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  552. {
  553. ds_main_eronly_examlist.clearData();
  554. }
  555. function Tab00_tabpage2_grd_eronly_examlist_onheadclick(obj:Grid, e:GridClickEventInfo)
  556. {
  557. var colName = obj.getCellProperty("Body", e.col, "text").replace("bind:","");
  558. var sortType = (ds_cond.getColumn(0, "examlistSortType") == "-"? "":"-");
  559. ds_cond.setColumn(0, "examlistSortType", sortType );
  560. ds_main_eronly_examlist.keystring = "S:" + sortType + colName;
  561. }
  562. function Tab00_tabpage1_grd_eronly_oplist_onheadclick(obj:Grid, e:GridClickEventInfo)
  563. {
  564. var colName = obj.getCellProperty("Body", e.col, "text").replace("bind:","");
  565. var sortType = (ds_cond.getColumn(0, "oplistSortType") == "-"? "":"-");
  566. ds_cond.setColumn(0, "oplistSortType", sortType );
  567. ds_main_eronly_oplist.keystring = "S:" + sortType + colName;
  568. }
  569. function Tab00_tabpage2_grd_eronly_examlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  570. {
  571. pmn_menu.trackPopup(e.screenX,e.screenY);
  572. return true;
  573. }
  574. function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  575. {
  576. //eval(e.id + "()");
  577. eval(e.id);
  578. }
  579. function fExptList(useyn)
  580. {
  581. var rows, grid, ds;
  582. var seldd, seldtm;
  583. var patclass = "";
  584. switch (Tab00.tabindex)
  585. {
  586. case 0: // 응급 수술
  587. patclass = "OP";
  588. grid = eval("Tab00.tabpage1.grd_eronly_oplist");
  589. ds = eval("ds_main_eronly_oplist");
  590. seldd = "opstrdd";
  591. seltm = "opstrtm";
  592. break;
  593. case 1: // 응급 촬영실
  594. patclass = ds_cond.getColumn(0, "excuroomtype");
  595. grid = eval("Tab00.tabpage2.grd_eronly_examlist");
  596. ds = eval("ds_main_eronly_examlist");
  597. seldd = "chosdd";
  598. seltm = "chostm";
  599. break;
  600. }
  601. rows = grdf_getSelectedRows (grid);
  602. ds_send_exptlist.clearData();
  603. for (var i = rows.length-1 ; i >= 0; i--)
  604. {
  605. var nRow = ds_send_exptlist.addRow();
  606. ds_send_exptlist.setColumn(nRow, "pid" , ds.getColumn(rows[i], "pid") );
  607. ds_send_exptlist.setColumn(nRow, "chosdd", ds.getColumn(rows[i], seldd).replace("-","") );
  608. ds_send_exptlist.setColumn(nRow, "chostm", ds.getColumn(rows[i], seltm).replace(":","") );
  609. ds_send_exptlist.setColumn(nRow, "patclass", patclass);
  610. ds_send_exptlist.setColumn(nRow, "pid", ds.getColumn(rows[i], "pid") );
  611. ds_send_exptlist.setColumn(nRow, "roomcd", "X" );
  612. ds_send_exptlist.setColumn(nRow, "useyn", useyn)
  613. }
  614. trace( ds_send_exptlist.rowcount );
  615. if (ds_send_exptlist.rowcount > 0)
  616. {
  617. var oParam = {};
  618. oParam.id = "TRMNP20402";
  619. oParam.service = "ercareapp.ERPatMngt";
  620. oParam.method = "reqInsErOnlyExamExpt";
  621. oParam.inds = "cond=ds_send_exptlist";
  622. oParam.outds = "";
  623. oParam.async = false;
  624. tranf_submit(oParam);
  625. //ds_send_exptlist.clearData();
  626. }
  627. }
  628. function IsDevMode()
  629. {
  630. var systeminstnm = sysf_getUserInfo("systeminstnm");
  631. if (systeminstnm.indexOf("개인HIS개발") >= 0 )
  632. {
  633. return true;
  634. }
  635. else
  636. {
  637. return false;
  638. }
  639. }
  640. function Tab00_tabpage1_grd_eronly_oplist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  641. {
  642. pmn_menu.trackPopup(e.screenX,e.screenY);
  643. return true;
  644. }
  645. ]]></Script>
  646. </Form>
  647. </FDL>