SMAEB00100_검사치료실관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>검사/치료실 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <examcurelist>
  11. <item>
  12. <sortno/>
  13. <basecd/>
  14. <basecdflagdesc/>
  15. <basecdcnts/>
  16. <baseroomopenyn/>
  17. <excuposseqcd/>
  18. <baseroomflag/>
  19. <rcptscrndispyn/>
  20. <autroomassgyn/>
  21. <rsrvtmcntlyn/>
  22. <rsrvpsnnocntlyn/>
  23. <sytserdispyn/>
  24. <sytshealdispyn/>
  25. <nextexcuroomcd/>
  26. <userid/>
  27. <execdeptnm/>
  28. <execdeptcd/>
  29. <seq/>
  30. <smlstandnm/>
  31. <dispnm/>
  32. </item>
  33. </examcurelist>
  34. </main>
  35. <send>
  36. <basecd/>
  37. <req>
  38. <data/>
  39. </req>
  40. <globalinstance>
  41. <instance1/>
  42. </globalinstance>
  43. <roomflag>R</roomflag>
  44. </send>
  45. <init>
  46. <baseinfo>
  47. <initexecbaseflag/>
  48. </baseinfo>
  49. <cmb_info>
  50. <initexecroom>
  51. <excuroomcdid/>
  52. <excuroomcdnm/>
  53. </initexecroom>
  54. </cmb_info>
  55. </init>
  56. <hidden>
  57. <item/>
  58. </hidden>
  59. <temp>
  60. <prestdeptcd/>
  61. <prestdeptnm/>
  62. </temp>
  63. </root>
  64. </instance>
  65. <submission id="TRAEB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/examcurelist"/>
  66. <submission id="TXAEB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  67. <submission id="TXAEB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  68. <submission id="TRAEB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. //aezfSetSuppDeptcd();
  72. var suppdeptcd = "";
  73. suppdeptcd = getScreenMenuParameter();
  74. if (suppdeptcd == "" || suppdeptcd == null || suppdeptcd == "null"){
  75. aezfSetSuppDeptcd();
  76. }else{
  77. model.setValue("/root/send/globalinstance/instance1", suppdeptcd);
  78. }
  79. zbcfGetCodeList( new Array("A0074"), new Array("/root/init/baseinfo/initexecbaseflag") );
  80. submit("TRZBC00101", false);
  81. model.removeNodeset("/root/main/examcurelist/item");
  82. submit("TRAEB00102", false);
  83. model.refresh();
  84. model.setFocus("ipt_basecd");
  85. ]]>
  86. </script>
  87. <submission id="TRZBC00101"/>
  88. </model>
  89. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  92. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  93. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  94. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  95. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  96. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  97. </xhtml:head>
  98. <xhtml:body guideline="1,1195;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  99. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  100. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  101. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  102. <line id="line13" class="line_4" style="x1:1112px; y1:7px; x2:1112px; y2:29px; "/>
  103. <button id="btn_sea" class="btn1_letter2" style="left:1128px; top:7px; width:56px; height:22px; ">
  104. <caption>조회</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. submit("TRAEB00101");
  108. ]]>
  109. </script>
  110. </button>
  111. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">실 코드 :</caption>
  112. <button id="button61" class="icon_search" style="left:245px; top:9px; width:16px; height:16px; ">
  113. <caption/>
  114. </button>
  115. <input id="ipt_basecd" ref="/root/send/basecd" class="input_search" style="left:105px; top:8px; width:135px; height:19px; ">
  116. <script type="javascript" ev:event="onkeydown">
  117. <![CDATA[
  118. inputEnterKey("btn_sea","DOMActivate");
  119. ]]>
  120. </script>
  121. </input>
  122. <select1 id="rdo_roomflag" ref="/root/send/roomflag" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:290px; top:10px; width:100px; height:20px; border-style:none; ">
  123. <choices>
  124. <item>
  125. <label>일반</label>
  126. <value>R</value>
  127. </item>
  128. <item>
  129. <label>보류</label>
  130. <value>Z</value>
  131. </item>
  132. </choices>
  133. </select1>
  134. </group>
  135. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:120px; height:13px; ">검사/치료실 현황</caption>
  136. <line id="line1" class="line_1" style="x1:3px; y1:73px; x2:1194px; y2:74px; "/>
  137. <button id="btn_grdadd" class="btn2_letter3" style="left:1086px; top:50px; width:53px; height:19px; ">
  138. <caption>행추가</caption>
  139. <script type="javascript" ev:event="DOMActivate">
  140. <![CDATA[
  141. // grd_examcureroom.addItem();
  142. grd_examcureroom.addRow();
  143. //grd_examcureroom.row = grd_examcureroom.bottomRow;
  144. model.setValue("/root/main/examcurelist/item["+grd_examcureroom.row+"]/basesuppdeptcd",model.getValue("/root/send/globalinstance/instance1"));
  145. model.setValue("/root/main/examcurelist/item["+grd_examcureroom.row+"]/rsrvtmcntlyn", "N");
  146. model.setValue("/root/main/examcurelist/item["+grd_examcureroom.row+"]/rsrvpsnnocntlyn", "N");
  147. model.setValue("/root/main/examcurelist/item["+grd_examcureroom.row+"]/autroomassgyn", "N");
  148. model.setValue("/root/main/examcurelist/item["+grd_examcureroom.row+"]/sytserdispyn", "N");
  149. model.setValue("/root/main/examcurelist/item["+grd_examcureroom.row+"]/sytshealdispyn", "N");
  150. model.refresh();
  151. // model.setValue("/root/main/examcurelist/item["+grd_examcureroom.row+"]/basecdflag",model.getValue("/root/send/globalinstance/instance2"));
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="btn_grddel" class="btn2_letter3" disabled="false" style="left:1142px; top:50px; width:53px; height:19px; ">
  156. <caption>행삭제</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. // grd_examcureroom.add(grd_examcureroom.row,"delete");
  160. deleteSelectedRows(grd_examcureroom, true);
  161. ]]>
  162. </script>
  163. </button>
  164. <datagrid id="grd_examcureroom" nodeset="/root/main/examcurelist/item" class="datagrid2" caption="순번 ^검사실코드^검사실명^실 그룹^개폐&#xA;여부^검사장비&#xA;가능코드^실 구분^접수화면&#xA;표시여부^자동방배정&#xA;여부^예약시간변경&#xA;통제여부^예약가용인원&#xA;통제여부^검통응급&#xA;표시여부^검통건진&#xA;표시여부^나이제한&#xA;연령^담당자^담당부서^집계부서^집계부서코드^SEQ^환자 가야할 곳^전광판 표시명칭^basecdflag^basesuppdeptcd" colsep="^" colwidth="38, 80, 187, 79, 39, 88, 89, 57, 67, 81, 81, 57, 58, 60, 75, 104, 100, 100, 100, 166, 150, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:2px; top:77px; width:1193px; height:665px; ">
  165. <col ref="sortno" type="input"/>
  166. <col ref="basecd" type="input" maxlength="12" _chartype="upper" _key="true"/>
  167. <col ref="basecdflagdesc" type="input"/>
  168. <col ref="basecdcnts" type="input"/>
  169. <col ref="baseroomopenyn" type="combo">
  170. <choices>
  171. <item>
  172. <label>Y</label>
  173. <value>Y</value>
  174. </item>
  175. <item>
  176. <label>N</label>
  177. <value>N</value>
  178. </item>
  179. </choices>
  180. </col>
  181. <col ref="excuposseqcd" type="inputbutton"/>
  182. <col ref="baseroomflag" type="combo">
  183. <choices>
  184. <itemset nodeset="/root/init/baseinfo/initexecbaseflag/A0074">
  185. <label ref="cdnm"/>
  186. <value ref="cdid"/>
  187. </itemset>
  188. </choices>
  189. </col>
  190. <col ref="rcptscrndispyn" type="combo">
  191. <choices>
  192. <item>
  193. <label>Y</label>
  194. <value>Y</value>
  195. </item>
  196. <item>
  197. <label>N</label>
  198. <value>N</value>
  199. </item>
  200. </choices>
  201. </col>
  202. <col ref="autroomassgyn" type="combo">
  203. <choices>
  204. <item>
  205. <label>Y</label>
  206. <value>Y</value>
  207. </item>
  208. <item>
  209. <label>N</label>
  210. <value>N</value>
  211. </item>
  212. </choices>
  213. </col>
  214. <col ref="rsrvtmcntlyn" type="combo">
  215. <choices>
  216. <item>
  217. <label>Y</label>
  218. <value>Y</value>
  219. </item>
  220. <item>
  221. <label>N</label>
  222. <value>N</value>
  223. </item>
  224. </choices>
  225. </col>
  226. <col ref="rsrvpsnnocntlyn" type="combo">
  227. <choices>
  228. <item>
  229. <label>Y</label>
  230. <value>Y</value>
  231. </item>
  232. <item>
  233. <label>N</label>
  234. <value>N</value>
  235. </item>
  236. </choices>
  237. </col>
  238. <col ref="sytserdispyn" type="combo">
  239. <choices>
  240. <item>
  241. <label>Y</label>
  242. <value>Y</value>
  243. </item>
  244. <item>
  245. <label>N</label>
  246. <value>N</value>
  247. </item>
  248. </choices>
  249. </col>
  250. <col ref="sytshealdispyn" type="combo">
  251. <choices>
  252. <item>
  253. <label>Y</label>
  254. <value>Y</value>
  255. </item>
  256. <item>
  257. <label>N</label>
  258. <value>N</value>
  259. </item>
  260. </choices>
  261. </col>
  262. <col ref="sonoage" type="input" format="999" style="left:1116px; top:32px; width:60px; height:23px; text-align:center; "/>
  263. <col ref="userid" type="input"/>
  264. <col ref="nextexcuroomcd" type="input"/>
  265. <col disabled="false" ref="execdeptnm" type="inputbutton"/>
  266. <col ref="execdeptcd"/>
  267. <col ref="seq" visibility="hidden"/>
  268. <col ref="smlstandnm" type="input" style="text-align:left; "/>
  269. <col ref="dispnm" type="input" style="text-align:left; "/>
  270. <col ref="basecdflag"/>
  271. <col ref="basesuppdeptcd" type="input"/>
  272. <script type="javascript" ev:event="onbuttonclick">
  273. <![CDATA[
  274. var colidx = grd_examcureroom.col;
  275. // 검사가능장비코드 가져오기.
  276. if( colidx == 6)
  277. {
  278. //alert('장비코드');
  279. setParameter("SPAEB00101_param_srcXpath1", "/root/main/examcurelist/item");
  280. setParameter("SPAEB00101_param_srcXgrid1", "grd_examcureroom");
  281. setParameter("SPAEB00101_param_srcXrow1", grd_examcureroom.row);
  282. setParameter("SPAEB00101_param_srcXnode1", "excuposseqcd");
  283. modal("SPAEB00101");
  284. grd_examcureroom.addStatus(grd_examcureroom.row,"update");
  285. }
  286. //집계부서 가져오기.
  287. if( colidx == 17)
  288. {
  289. var iRow = grd_examcureroom.row;
  290. var search_condition = "deptnm";
  291. var search_term = "";
  292. var receive_deptcd_path = "/root/temp/prestdeptcd";
  293. var receive_deptnm_path = "/root/temp/prestdeptnm";
  294. model.setValue(receive_deptcd_path, "");
  295. model.setValue(receive_deptnm_path, "");
  296. var standard_yn = null;
  297. var ord_deptflag = null;
  298. zbcfOpenInstDeptCodeList(
  299. search_condition,
  300. search_term,
  301. receive_deptcd_path,
  302. receive_deptnm_path,
  303. standard_yn,
  304. ord_deptflag,
  305. new Array("deptcd", "depthngnm")
  306. );
  307. model.setValue("/root/main/examcurelist/item[" + grd_examcureroom.row + "]/execdeptcd", model.getValue("/root/temp/prestdeptcd"));
  308. model.setValue("/root/main/examcurelist/item[" + grd_examcureroom.row + "]/execdeptnm", model.getValue("/root/temp/prestdeptnm"));
  309. if ( grd_examcureroom.rowstatus(grd_examcureroom.row) == 0 ) {
  310. //grd_examcureroom.cellStyle("background-image", grd_examcureroom.row, 0) = "../../../com/commonweb/images/icon_u.gif";
  311. grd_examcureroom.addStatus(grd_examcureroom.row,"update");
  312. }
  313. }
  314. ]]>
  315. </script>
  316. </datagrid>
  317. <button id="btn_selcalcscorcd" class="btn2_letter6" visibility="visible" style="left:997px; top:50px; width:86px; height:19px; ">
  318. <caption>부서코드조회</caption>
  319. <script type="javascript" ev:event="DOMActivate">
  320. <![CDATA[
  321. // modal("SPZSD00200", "", "200", "200", "SPZSD00200");
  322. var iRow = grd_examcureroom.row;
  323. var search_condition = "deptnm";
  324. var search_term = "";
  325. var receive_deptcd_path = "/root/temp/prestdeptcd";
  326. var receive_deptnm_path = "/root/temp/prestdeptnm";
  327. model.setValue(receive_deptcd_path, "");
  328. model.setValue(receive_deptnm_path, "");
  329. var standard_yn = null;
  330. var ord_deptflag = null;
  331. zbcfOpenInstDeptCodeList(
  332. search_condition,
  333. search_term,
  334. receive_deptcd_path,
  335. receive_deptnm_path,
  336. standard_yn,
  337. ord_deptflag,
  338. new Array("deptcd", "depthngnm")
  339. );
  340. // if( grd_examcureroom.selectedRows == 1 ) {
  341. // model.setValue("/root/main/examcurelist/item[" + grd_examcureroom.row + "]/basecd", model.getValue("/root/temp/prestdeptcd"));
  342. // model.setValue("/root/main/examcurelist/item[" + grd_examcureroom.row + "]/basecdflagdesc", model.getValue("/root/temp/prestdeptnm"));
  343. // alert( grd_examcureroom.row);
  344. // }else if (grd_examcureroom.selectedRows == 0 ) {
  345. grd_examcureroom.addRow();
  346. grd_examcureroom.row = grd_examcureroom.bottomRow;
  347. model.setValue("/root/main/examcurelist/item[" + grd_examcureroom.bottomRow + "]/basecd", model.getValue("/root/temp/prestdeptcd"));
  348. model.setValue("/root/main/examcurelist/item[" + grd_examcureroom.bottomRow + "]/basecdflagdesc", model.getValue("/root/temp/prestdeptnm"));
  349. model.setValue("/root/main/examcurelist/item["+grd_examcureroom.row+"]/basesuppdeptcd",model.getValue("/root/send/globalinstance/instance1"));
  350. model.setValue("/root/main/examcurelist/item["+grd_examcureroom.row+"]/rsrvtmcntlyn", "N");
  351. model.setValue("/root/main/examcurelist/item["+grd_examcureroom.row+"]/rsrvpsnnocntlyn", "N");
  352. model.setValue("/root/main/examcurelist/item["+grd_examcureroom.row+"]/autroomassgyn", "N");
  353. model.setValue("/root/main/examcurelist/item["+grd_examcureroom.row+"]/sytserdispyn", "N");
  354. model.setValue("/root/main/examcurelist/item["+grd_examcureroom.row+"]/sytshealdispyn", "N");
  355. // }
  356. ]]>
  357. </script>
  358. </button>
  359. </group>
  360. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  361. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  362. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:4px; width:56px; height:22px; ">
  363. <caption>저장</caption>
  364. <script type="javascript" ev:event="DOMActivate">
  365. <![CDATA[
  366. if ( messageBox("","Q002")==6 ) {
  367. if ( model.getValue("/root/send/roomflag") == "R" ) {
  368. //model.makeValue
  369. }else if ( model.getValue("/root/send/roomflag") == "Z" ) {
  370. }else {
  371. messageBox("검사실종류를 선택하여 주십시요", "E999", "");
  372. return;
  373. }
  374. var update = getGridUpdateData(grd_examcureroom);
  375. if(update == ""){
  376. messageBox("업데이트 정보가 없습니다.", "I");
  377. //return 0;
  378. } else {
  379. // alert(update);
  380. model.setValue("/root/send/req/data", update);
  381. submit("TXAEB00101");
  382. }
  383. }
  384. //20161110 kya 통계테이블에 insert
  385. if ( model.getValue("/root/send/globalinstance/instance1") == "2160000000" ) {
  386. submit("TXAEB00102");
  387. }
  388. submit("TRAEB00101");
  389. submit("TRAEB00102");
  390. ]]>
  391. </script>
  392. <script type="javascript" ev:event="DOMFocusIn">
  393. <![CDATA[
  394. checkKeyColumn("grd_examcureroom");
  395. ]]>
  396. </script>
  397. </button>
  398. </group>
  399. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  400. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">검사/치료실 관리</caption>
  401. </group>
  402. </xhtml:body>
  403. </xhtml:html>