SMAHB01300_검사실별검사자관리.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. <roomlst>
  11. <itemroom>
  12. <testroomcd/>
  13. <testroomnm/>
  14. </itemroom>
  15. </roomlst>
  16. <dutplst>
  17. <item>
  18. <seqno/>
  19. <basenm/>
  20. <basecd/>
  21. <orgbasecd/>
  22. </item>
  23. </dutplst>
  24. </main>
  25. <send>
  26. <testroomcd/>
  27. <srchinstcd/>
  28. <save>
  29. <testroomcd/>
  30. <instcd/>
  31. <dutpinfo/>
  32. </save>
  33. </send>
  34. <init>
  35. <dutplst>
  36. <item/>
  37. </dutplst>
  38. <deptcd/>
  39. </init>
  40. <hidden>
  41. <srchinstcd/>
  42. <srchtestroomcd/>
  43. </hidden>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. fSetSuppDeptcd();
  49. model.removeNodeset("/root/main/testroomlst/iem");
  50. model.removeNodeset("/root/main/dutplst/item");
  51. submit("TRAHB01201");
  52. //검사실 코드조회
  53. model.setValue("/root/hidden/srchinstcd" , getUserInfo("dutplceinstcd"));
  54. submit("TRAHB01302");
  55. ]]>
  56. </script>
  57. <script type="javascript">
  58. <![CDATA[
  59. /*********************************************************************************************
  60. * 부서코드 셋팅
  61. **********************************************************************************************/
  62. function fSetSuppDeptcd() {
  63. var dutplcecd = getUserInfo("dutplcecd");
  64. //var selectplcecd = getScreenPrestDeptCd();
  65. model.setValue("/root/init/deptcd" , dutplcecd);
  66. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
  67. }
  68. /*********************************************************************************************
  69. * 검사코드 셋팅
  70. **********************************************************************************************/
  71. function fSetExecrCode(vRow) {
  72. var baseCd = grd_execrlst.valueMatrix(vRow,grd_execrlst.colRef("basenm"));
  73. var nodeList = instance1.selectNodes("/root/init/dutplst/item");
  74. for(var i=1; i <=nodeList.length; i++) {
  75. var com_baseCd = model.getValue("/root/init/dutplst/item[" + i + "]/basecd");
  76. if(com_baseCd == baseCd) {
  77. grd_execrlst.valueMatrix(vRow,grd_execrlst.colRef("seqno")) = model.getValue("/root/init/dutplst/item[" + i + "]/seqno");
  78. grd_execrlst.valueMatrix(vRow,grd_execrlst.colRef("basecd")) = model.getValue("/root/init/dutplst/item[" + i + "]/basecd");
  79. }
  80. }
  81. }
  82. /*********************************************************************************************
  83. * 검사실코드 조회
  84. **********************************************************************************************/
  85. function fGetRoomList() {
  86. model.setValue("/root/hidden/srchinstcd" , getUserInfo("dutplceinstcd"));
  87. var ret = submit("TRAHB01302");
  88. if(ret) {
  89. model.removeNodeset(grd_execrlst.nodeset);
  90. grd_execrlst.refresh();
  91. }
  92. }
  93. /*********************************************************************************************
  94. * 검사실별 근무자 저장
  95. **********************************************************************************************/
  96. function fSaveTestDutp() {
  97. var row = grd_testroomlst.row;
  98. if(row > 0) {
  99. var testroomcd = grd_testroomlst.valueMatrix(row,grd_testroomlst.colRef("testroomcd"));
  100. var save = getGridUpdateData(grd_execrlst);
  101. model.setValue("/root/send/save/instcd" , model.getValue("/root/send/srchinstcd"));
  102. model.setValue("/root/send/save/dutpinfo" , save);
  103. model.setValue("/root/send/save/testroomcd", testroomcd);
  104. submit("TXAHB01301");
  105. }
  106. }
  107. ]]>
  108. </script>
  109. <submission id="TRAHB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/dutplst"/>
  110. <submission id="TRAHB01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dutplst"/>
  111. <submission id="TXAHB01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/main/dutplst"/>
  112. <submission id="TRAHB01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/main/roomlst"/>
  113. </model>
  114. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  116. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  118. </xhtml:head>
  119. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  120. <group id="group1" style="left:0px; top:0px; width:580px; height:13px; ">
  121. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:235px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">검사/치료실별 근무자관리</caption>
  122. </group>
  123. <group id="group3" scroll="auto" style="left:0px; top:13px; width:580px; height:442px; ">
  124. <group id="grp_btn" scroll="auto" style="left:0px; top:415px; width:580px; height:27px; ">
  125. <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:523px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  126. <caption>저장</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. fSaveTestDutp();
  130. ]]>
  131. </script>
  132. </button>
  133. </group>
  134. <group id="group2" style="left:0px; top:7px; width:580px; height:35px; vertical-align:top; ">
  135. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:578px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  136. <line id="line13" style="x1:499px; y1:7px; x2:499px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  137. <button id="btn_sea" class="btn1_letter2" style="left:515px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  138. <caption>조회</caption>
  139. <script type="javascript" ev:event="DOMActivate">
  140. <![CDATA[
  141. fGetRoomList();
  142. ]]>
  143. </script>
  144. </button>
  145. <caption id="caption3" class="search_name" style="left:11px; top:8px; width:106px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검사/치료실 :</caption>
  146. <input id="input2" ref="/root/hidden/srchtestroomcd" class="input_search" style="left:122px; top:8px; width:130px; height:19px; ">
  147. <script type="javascript" ev:event="onkeydown">
  148. <![CDATA[
  149. inputEnterKey("btn_sea","DOMActivate");
  150. ]]>
  151. </script>
  152. </input>
  153. </group>
  154. <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:120px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">검사/치료실 현황</caption>
  155. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:290px; y2:70px; "/>
  156. <caption id="caption2" class="tit_2" style="left:300px; top:53px; width:133px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">근무자 현황</caption>
  157. <line id="line2" class="line_1" style="x1:295px; y1:69px; x2:577px; y2:69px; "/>
  158. <button id="btn_grdadd" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:464px; top:46px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  159. <caption>행추가</caption>
  160. <script type="javascript" ev:event="DOMActivate">
  161. <![CDATA[
  162. grd_execrlst.addRow();
  163. ]]>
  164. </script>
  165. </button>
  166. <button id="btn_grddel" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:524px; top:46px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  167. <caption>행삭제</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. var row = grd_execrlst.row;
  171. var rowStat = grd_execrlst.rowStatus(row);
  172. if(rowStat == 1 || rowStat == 3) {
  173. grd_execrlst.deleteRow(row);
  174. }else {
  175. grd_execrlst.rowStatus(row) = 4;
  176. }
  177. ]]>
  178. </script>
  179. </button>
  180. <datagrid id="grd_execrlst" nodeset="/root/main/dutplst/item" caption="순번^이름^사번^원본사번" colsep="^" colwidth="43, 105, 95, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:296px; top:75px; width:280px; height:338px; ">
  181. <col ref="seqno"/>
  182. <col disabled="true" ref="basenm" type="combo" _key="true">
  183. <choices>
  184. <itemset nodeset="/root/init/dutplst/item">
  185. <label ref="basenm"/>
  186. <value ref="basecd"/>
  187. </itemset>
  188. </choices>
  189. </col>
  190. <col ref="basecd"/>
  191. <col ref="orgbasecd" visibility="hidden"/>
  192. <script type="javascript" ev:event="xforms-select">
  193. <![CDATA[
  194. var row = grd_execrlst.row;
  195. var col = grd_execrlst.col;
  196. if(col == grd_execrlst.colRef("basenm")) {
  197. var count = -1;
  198. var chkRow = 0;
  199. // 선택한 성명 셋팅
  200. fSetExecrCode(row);
  201. var baseCd = grd_execrlst.valueMatrix(row,grd_execrlst.colRef("basecd"));
  202. //선행검사 중복체크
  203. while(chkRow >= 0) {
  204. chkRow = grd_execrlst.findRow(baseCd,chkRow+1,grd_execrlst.colRef("basecd"),false,true);
  205. count++;
  206. }
  207. if(count >= 2) {
  208. messageBox("사번이 ","E006");
  209. model.resetInstanceNode(grd_execrlst.nodeset + "[" + row + "]");
  210. return;
  211. }
  212. }
  213. ]]>
  214. </script>
  215. </datagrid>
  216. </group>
  217. <datagrid id="grd_testroomlst" nodeset="/root/main/roomlst/itemroom" caption="코드^검사/치료실" colsep="^" colwidth="71, 202" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:87px; width:291px; height:338px; ">
  218. <col ref="testroomcd"/>
  219. <col ref="testroomnm"/>
  220. <script type="javascript" ev:event="onclick">
  221. <![CDATA[
  222. var row = grd_testroomlst.row;
  223. if(row > 0) {
  224. var testroomcd = grd_testroomlst.valueMatrix(row , grd_testroomlst.colRef("testroomcd"));
  225. model.setValue("/root/send/testroomcd" , testroomcd);
  226. submit("TRAHB01301");
  227. }
  228. ]]>
  229. </script>
  230. </datagrid>
  231. </xhtml:body>
  232. </xhtml:html>