SPMRI03200_응급의학과Staff관리.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>응급의학과 Staff관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <unpreperlist>
  12. <unprepdeptflag/>
  13. <unprepdeptcd/>
  14. <unprepdrnm/>
  15. <valifromdd/>
  16. <valitodd/>
  17. <lastupdtrnm/>
  18. <lastupdtdt/>
  19. <unprepdrid/>
  20. <unprepdeptnm/>
  21. </unpreperlist>
  22. </list>
  23. <seleteddept>
  24. <unprepdepter/>
  25. <unprepdeptpd/>
  26. </seleteddept>
  27. </main>
  28. <send>
  29. <reqdata/>
  30. <savedata>
  31. <unprepdeptflag/>
  32. <unprepdeptcd/>
  33. <unprepdrid/>
  34. <unprepdrnm/>
  35. <valifromdd/>
  36. <pdapplyflag/>
  37. <unprepsearchdeptflag/>
  38. <instcd/>
  39. </savedata>
  40. </send>
  41. <init>
  42. <deptlist>
  43. <dept>
  44. <deptcd/>
  45. <depthngnm/>
  46. </dept>
  47. </deptlist>
  48. <unprepdrinfo>
  49. <orddrid/>
  50. <orddrnm/>
  51. <unprepdeptflag>-</unprepdeptflag>
  52. </unprepdrinfo>
  53. </init>
  54. <result>
  55. <param/>
  56. </result>
  57. <temp>
  58. <userinfo>
  59. <usercombo/>
  60. </userinfo>
  61. </temp>
  62. <hidden>
  63. </hidden>
  64. </root>
  65. </instance>
  66. <script type="javascript" ev:event="xforms-ready">
  67. <![CDATA[
  68. fInitialize();
  69. /// fGetDeptCodeComboList("/root/send/reqdata", "/root/init/deptlist", "A", getCurrentDate());
  70. // fInitialize_SPMMO21000();
  71. ]]>
  72. </script>
  73. <script type="javascript" ev:event="xforms-close">
  74. <![CDATA[
  75. xforms_close();
  76. /*
  77. if (model.getValue("/root/init/rcnt") == "" || model.getValue("/root/init/closestat") != "Y") {
  78. opener.javascript.setParameter("SPMMO15600_addcnt", parseInt(opener.javascript.getParameter("SPMMO15600_srchRow")) );
  79. } else {
  80. opener.javascript.setParameter("SPMMO15600_addcnt", parseInt(model.getValue("/root/init/rcnt"))+parseInt(opener.javascript.getParameter("SPMMO15600_srchRow")) - 1);
  81. }
  82. */
  83. ]]>
  84. </script>
  85. <submission id="TRMRI02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/userinfo"/>
  86. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  87. <submission id="TXMRI03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  88. <submission id="TRMRI03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
  89. <submission id="TRMRI03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
  90. </model>
  91. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  95. <script type="javascript" src="../../../emr/unprepmngtweb/js/SPMRI03200.js"/>
  96. </xhtml:head>
  97. <xhtml:body pagewidth="660" pageheight="460" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  98. <line id="line2" class="line_1" style="x1:0px; y1:84px; x2:640px; y2:83px; "/>
  99. <caption id="caption1" class="tit_2" style="left:0px; top:67px; width:160px; height:13px; vertical-align:middle; ">응급실 미비 Staff 목록</caption>
  100. <datagrid id="grd_unpreplist" nodeset="/root/main/list/unpreperlist" autoresize="true" caption="미비부서구분^미비부서^미비의사^미비의사ID^적용시작일자^적용종료일자^최종수정일시^최종수정자" colsep="^" colwidth="83, 87, 63, 20, 79, 78, 119, 80" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:80px; width:640px; height:245px; ">
  101. <col ref="unprepdeptflag"/>
  102. <col ref="unprepdeptnm"/>
  103. <col ref="unprepdrnm" style="text-align:center; "/>
  104. <col ref="unprepdrid" visibility="hidden"/>
  105. <col ref="valifromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  106. <col ref="valitodd" format="yyyy-mm-dd" style="text-align:center; "/>
  107. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  108. <col ref="lastupdtrnm" style="text-align:center; "/>
  109. </datagrid>
  110. <group id="group1" style="left:0px; top:0px; width:640px; height:13px; ">
  111. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">응급실 미비 Staff 관리</caption>
  112. </group>
  113. <group id="group2" style="left:0px; top:18px; width:640px; height:35px; vertical-align:top; ">
  114. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:640px; height:35px; color:#3366ff; "/>
  115. <input id="ipt_InstCD" ref="/root/send/savedata/instcd" class="input_search" visibility="hidden" style="left:280px; top:8px; width:80px; height:19px; "/>
  116. <input id="input1" ref="/root/send/savedata/valifromdd" visibility="hidden" inputtype="date" style="left:375px; top:8px; width:90px; height:19px; "/>
  117. <select1 id="cmb_SearchDeptFlag" ref="/root/init/unprepdrinfo/unprepdeptflag" class="combo_s_essential" navindex="0" appearance="minimal" style="left:135px; top:8px; width:85px; height:19px; ">
  118. <choices>
  119. <item>
  120. <label>전체</label>
  121. <value>-</value>
  122. </item>
  123. <item>
  124. <label>응급의학과</label>
  125. <value>ER</value>
  126. </item>
  127. <item>
  128. <label>소아청소년과</label>
  129. <value>PD</value>
  130. </item>
  131. </choices>
  132. </select1>
  133. <caption id="caption9" class="search_name" style="left:18px; top:8px; width:117px; height:17px; ">미비부서구분 :</caption>
  134. <button id="btn_search" class="btn1_letter2" navindex="1" style="left:572px; top:7px; width:56px; height:22px; ">
  135. <caption>조회</caption>
  136. <script type="javascript" ev:event="DOMActivate">
  137. <![CDATA[
  138. fSearch();
  139. ]]>
  140. </script>
  141. </button>
  142. <button id="button1" class="btn1_letter2" visibility="hidden" style="left:470px; top:7px; width:56px; height:22px; ">
  143. <caption>배치</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. model.makeValue("/root/send/savedata/unprepdeptflag", "BATCH");
  147. fSaveData();
  148. ]]>
  149. </script>
  150. </button>
  151. </group>
  152. <button id="btn_ErStaff" class="btn_sw" group="tab" selected="true" style="left:0px; top:340px; width:110px; height:22px; ">
  153. <caption>응급의학과</caption>
  154. <toggle case="case1" ev:event="onclick"/>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. var vdrid = model.getValue("/root/send/savedata/unprepdrid");
  158. var vdrnm = model.getValue("/root/send/savedata/unprepdrnm");
  159. var vfromdd = model.getValue("/root/send/savedata/valifromdd");
  160. model.removeNodeset("/root/send/savedata");
  161. model.makeValue("/root/send/savedata/unprepdeptflag", "ER");
  162. model.makeValue("/root/send/savedata/unprepdeptcd", model.getValue("/root/main/seleteddept/unprepdepter"));
  163. model.makeValue("/root/send/savedata/unprepdrid", vdrid);
  164. model.makeValue("/root/send/savedata/unprepdrnm", vdrnm);
  165. model.makeValue("/root/send/savedata/valifromdd", vfromdd);
  166. model.makeValue("/root/send/savedata/instcd", ""); //임시
  167. fGetDeptCodeComboList("/root/send/reqdata", "/root/init/deptlist", "ED", getCurrentDate());
  168. cmb_deptcd.select(0);
  169. model.refresh();
  170. ]]>
  171. </script>
  172. </button>
  173. <switch id="switch1" style="left:0px; top:362px; width:640px; height:83px; ">
  174. <case id="case1" selected="true" style="left:0px; top:0px; width:638px; height:60px; ">
  175. <group id="group3" style="left:0px; top:5px; width:630px; height:50px; ">
  176. <input id="ipt_valiFromdd" ref="/root/send/savedata/valifromdd" navindex="5" inputtype="date" style="left:520px; top:21px; width:90px; height:19px; "/>
  177. <caption id="caption4" class="search_name" style="left:405px; top:21px; width:117px; height:17px; ">적용시작일자 :</caption>
  178. <select1 id="cmb_deptcd" ref="/root/main/seleteddept/unprepdepter" class="combo_s_essential" navindex="3" appearance="minimal" style="left:100px; top:21px; width:85px; height:19px; ">
  179. <choices>
  180. <itemset nodeset="/root/init/deptlist/dept">
  181. <label ref="depthngnm"/>
  182. <value ref="deptcd"/>
  183. </itemset>
  184. </choices>
  185. <script type="javascript" ev:event="xforms-value-changed">
  186. <![CDATA[
  187. model.makeValue("/root/send/savedata/unprepdeptcd", model.getValue("/root/main/seleteddept/unprepdepter"));
  188. model.refresh();
  189. ]]>
  190. </script>
  191. </select1>
  192. <input id="ipt_unprepdrnm" ref="/root/send/savedata/unprepdrnm" class="input_search" navindex="4" style="left:295px; top:21px; width:80px; height:19px; ">
  193. <script type="javascript" ev:event="onkeydown">
  194. <![CDATA[
  195. //enter입력시
  196. if(event.keyCode == 13 || event.keyCode == 0){
  197. model.removenode("root/send/savedata/unprepdrid");
  198. model.removenode("root/send/savedata/unprepdrnm");
  199. var unprepdrnm = ipt_unprepdrnm.currentText;
  200. if(isNumber(unprepdrnm.charAt(0))){
  201. fReqGetUnPrepDrSmplList("id", unprepdrnm);
  202. }else{
  203. fReqGetUnPrepDrSmplList("nm", unprepdrnm);
  204. }
  205. var nodelist = model.instances(0).selectNodes("/root/temp/userinfo/usercombo");
  206. if(nodelist.length == 0){
  207. messageBox("의사 정보가", "I004");
  208. return;
  209. }else if(nodelist.length == 1){
  210. model.makeValue("root/send/savedata/unprepdrid", model.getValue("/root/temp/userinfo/usercombo/userid"));
  211. model.makeValue("root/send/savedata/unprepdrnm", model.getValue("/root/temp/userinfo/usercombo/usernm"));
  212. }else if(nodelist.length > 1){
  213. setParameter("SPMRI02900_stnddd" , getCurrentDate());
  214. setParameter("SPMRI02900_orddrnm", unprepdrnm);
  215. modal("SPMRI02900");
  216. if(getParameter("SPMRI02900_useyn")=="Y"){
  217. var doctinfo = getParameter("SPMRI02900_rtnparam");
  218. doctinfo = doctinfo.split("^");
  219. model.makeValue("root/send/savedata/unprepdrid", doctinfo[3]);
  220. model.makeValue("root/send/savedata/unprepdrnm", doctinfo[4]);
  221. }
  222. }else{
  223. model.makeValue("root/send/savedata/unprepdrid", model.getValue("/root/init/unprepdrinfo/orddrid"));
  224. model.makeValue("root/send/savedata/unprepdrnm", model.getValue("/root/init/unprepdrinfo/orddrnm"));
  225. }
  226. model.refresh();
  227. }
  228. ]]>
  229. </script>
  230. </input>
  231. <caption id="caption7" class="search_name" style="left:203px; top:21px; width:90px; height:17px; ">미비의사 :</caption>
  232. <caption id="caption10" class="search_name" style="left:8px; top:21px; width:92px; height:17px; ">미비부서 :</caption>
  233. <button id="btn_patreq" class="icon_search" visibility="visible" style="left:380px; top:21px; width:16px; height:16px; ">
  234. <caption/>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. ipt_unprepdrnm.dispatch("onkeydown");
  238. ]]>
  239. </script>
  240. </button>
  241. </group>
  242. </case>
  243. <case id="case2">
  244. <group id="group4" style="left:0px; top:5px; width:630px; height:50px; ">
  245. <caption id="caption2" class="search_name" style="left:230px; top:21px; width:95px; height:17px; ">적용구분 :</caption>
  246. <select1 id="cmb_deptcdPD" ref="/root/main/seleteddept/unprepdeptpd" class="combo_s_essential" navindex="3" appearance="minimal" style="left:100px; top:21px; width:100px; height:19px; ">
  247. <choices>
  248. <itemset nodeset="/root/init/deptlist/dept">
  249. <label ref="depthngnm"/>
  250. <value ref="deptcd"/>
  251. </itemset>
  252. </choices>
  253. <script type="javascript" ev:event="xforms-value-changed">
  254. <![CDATA[
  255. model.setValue("/root/send/savedata/unprepdeptcd", model.getValue("/root/main/selecteddept/unprepdeptpd"));
  256. model.refresh();
  257. ]]>
  258. </script>
  259. </select1>
  260. <caption id="caption5" class="search_name" style="left:8px; top:21px; width:92px; height:17px; ">미비부서 :</caption>
  261. <select1 id="rdo_PDApplyFlag" ref="/root/send/savedata/pdapplyflag" class="radio_search" navindex="4" appearance="full" cols="2" overflow="visible" style="left:320px; top:20px; width:210px; height:20px; border-style:none; ">
  262. <choices>
  263. <item>
  264. <label>적용</label>
  265. <value>Y</value>
  266. </item>
  267. <item>
  268. <label>미적용</label>
  269. <value>N</value>
  270. </item>
  271. </choices>
  272. <script type="javascript" ev:event="onclick">
  273. <![CDATA[
  274. ]]>
  275. </script>
  276. </select1>
  277. </group>
  278. </case>
  279. </switch>
  280. <button id="btn_PDStaff" class="btn_sw" group="tab" selected="true" style="left:110px; top:340px; width:110px; height:22px; ">
  281. <caption>소아청소년과</caption>
  282. <toggle case="case2" ev:event="onclick"/>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. var vdrid = model.getValue("/root/send/savedata/unprepdrid");
  286. var vdrnm = model.getValue("/root/send/savedata/unprepdrnm");
  287. var vfromdd = model.getValue("/root/send/savedata/valifromdd");
  288. model.removeNodeset("/root/send/savedata");
  289. model.makeValue("/root/send/savedata/unprepdeptflag", "PD");
  290. model.makeValue("/root/send/savedata/pdapplyflag","Y");
  291. model.makeValue("/root/send/savedata/unprepdeptcd", model.getValue("/root/main/seleteddept/unprepdeptpd"));
  292. model.makeValue("/root/send/savedata/unprepdrid", vdrid);
  293. model.makeValue("/root/send/savedata/unprepdrnm", vdrnm);
  294. model.makeValue("/root/send/savedata/valifromdd", vfromdd);
  295. fGetDeptCodeComboList("/root/send/reqdata", "/root/init/deptlist", "PD", getCurrentDate());
  296. cmb_deptcdPD.select(0);
  297. model.refresh();
  298. ]]>
  299. </script>
  300. </button>
  301. <button id="btn_Save" class="btn4_letter2" navindex="6" style="left:585px; top:338px; width:56px; height:22px; ">
  302. <caption>저장</caption>
  303. <script type="javascript" ev:event="DOMActivate">
  304. <![CDATA[
  305. fSaveData();
  306. ]]>
  307. </script>
  308. </button>
  309. </xhtml:body>
  310. </xhtml:html>