SMMRJ00300_의사임상권한관리.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <init>
  10. <orddept/>
  11. <userlist/>
  12. </init>
  13. <send>
  14. <reqdata>
  15. <orddeptcd/>
  16. <orddrid/>
  17. <delyn/>
  18. <viewyn/>
  19. <newyn/>
  20. <authno/>
  21. <fileseq/>
  22. </reqdata>
  23. </send>
  24. <main>
  25. <cond>
  26. <orddeptcd/>
  27. <orddrid/>
  28. <delyn/>
  29. </cond>
  30. <clinicauth>
  31. <authitem/>
  32. </clinicauth>
  33. <attach>
  34. <imgedata/>
  35. <beforeseq/>
  36. <nextseq/>
  37. <fileseq/>
  38. <authno/>
  39. </attach>
  40. </main>
  41. </root>
  42. </instance>
  43. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  47. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  48. <script type="javascript">
  49. <![CDATA[
  50. function fClinicAuthSearch() {
  51. var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
  52. if ( orddeptcd == null || orddeptcd == "" ) {
  53. //return;
  54. }
  55. img1.src = "";
  56. img1.refresh();
  57. button3.visible = false;
  58. button4.visible = false;
  59. model.copyNode("/root/send/reqdata", "/root/main/cond");
  60. model.makeValue("/root/send/reqdata/authno", "");
  61. submit("TRMRJ00801");
  62. model.refresh();
  63. }
  64. function fAttachView() {
  65. var authno = model.getValue("/root/send/reqdata/authno");
  66. var fileseq = model.getValue("/root/send/reqdata/fileseq");
  67. img1.src = "";
  68. img1.refresh();
  69. button3.visible = false;
  70. button4.visible = false;
  71. if ( fileseq == "" ) return;
  72. img1.src = "/himed/webapps/cmc/web/xrw/.live?submit_id=TRMRJ00803&business_id=emr&screen_id=SMMRJ00300&macaddr=123456798&authno=" + authno + "&fileseq=" + fileseq;
  73. img1.refresh();
  74. submit("TRMRJ00804");
  75. var beforeseq = model.getValue("/root/main/attach/beforeseq");
  76. var nextseq = model.getValue("/root/main/attach/nextseq");
  77. if ( beforeseq != null && beforeseq != "" ) {
  78. button3.visible = true;
  79. } else {
  80. button3.visible = false;
  81. }
  82. if ( nextseq != null && nextseq != "" ) {
  83. button4.visible = true;
  84. } else {
  85. button4.visible = false;
  86. }
  87. model.refresh();
  88. }
  89. ]]>
  90. </script>
  91. <script type="javascript" ev:event="xforms-ready">
  92. <![CDATA[
  93. // 초기화 함수 추가 예정
  94. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A");
  95. mmbfGetUserComboList("/root/send/reqdata" , "/root/init/userlist" , getUserInfo("dutplcecd"), "0330");
  96. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "^전체", "dept"); //부서코드 콤보 전체 instance추가
  97. addComboInstance("/root/init/userlist", "userid^usernm", "^전체" , "usercombo"); //의사콤보 전체 instance추가
  98. model.setValue("/root/main/cond/delyn", "N");
  99. cmb_orddept.select(0);
  100. cmb_orddrid.select(0);
  101. // 인사팀('4020500000') 이 아닌 경우 부서및 진료의 명 자동설정 후 불능처리
  102. var dutplcecd = getUserInfo("dutplcecd");
  103. if ( dutplcecd != "4020500000" ) {
  104. button1.visible = false;
  105. button2.visible = false;
  106. //btn_search.attribute("left") = "1120px";
  107. // 부서설정
  108. var depthRows = cmb_orddept.length + 1;
  109. var deptcd = "";
  110. for ( var i=1 ; i<depthRows ; i++ ) {
  111. deptcd = model.getValue("/root/init/orddept/dept[" + i + "]/deptcd");
  112. if ( deptcd == dutplcecd ) {
  113. // 부서 콤보박스 세팅
  114. cmb_orddept.select(i-1);
  115. // 부서에 해당하는 사용자 세팅
  116. model.removeNodeset("/root/init/userlist");
  117. model.makeNode("/root/init/userlist/usercombo");
  118. if(cmb_orddept.value == ""){
  119. model.removeNode("/root/init/userlist/usercombo");
  120. model.makeValue("/root/init/userlist/usercombo/userid", "");
  121. model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
  122. }else{
  123. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330"); //진료과 의사콤보 조회
  124. addComboInstance("/root/init/userlist", "userid^usernm", "^전체", "usercombo"); //의사콤보 전체항목 추가
  125. }
  126. // 부서의 사용자와 진료의 세팅
  127. var userRows = cmb_orddrid.length + 1;
  128. var userid = "";
  129. var sessUserid = getUserInfo("userid");
  130. for ( var j=1 ; j<userRows ; j++ ) {
  131. userid = model.getValue("/root/init/userlist/usercombo[" + j + "]/userid");
  132. if ( userid == sessUserid ) {
  133. cmb_orddrid.select(j-1);
  134. }
  135. }
  136. // 부서콤보, 진료의 콤보 불능 처리
  137. cmb_orddept.disabled = true;
  138. cmb_orddrid.disabled = true;
  139. }
  140. }
  141. }
  142. ]]>
  143. </script>
  144. <!-- SUBMISSION 시작 -->
  145. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  146. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  147. <submission id="TRMRJ00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/clinicauth"/>
  148. <submission id="TRMRJ00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/attach"/>
  149. <submission id="TRMRJ00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/attach"/>
  150. <!-- SUBMISSION 종료 -->
  151. </model>
  152. </xhtml:head>
  153. <xhtml:body guideline="1,5;2,-3;" style="text-align:center; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  154. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1164px; height:767px; ">
  155. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:494px; height:13px; ">의사임상권한목록조회</caption>
  156. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:15px; width:629px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
  157. <caption id="cap_orddept" class="search_name" style="left:6px; top:25px; width:80px; height:17px; ">진료과 :</caption>
  158. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" appearance="minimal" editmode="inputsearch" style="left:85px; top:25px; width:115px; height:19px; text-align:left; ">
  159. <choices>
  160. <itemset nodeset="/root/init/orddept/dept">
  161. <label ref="depthngnm"/>
  162. <value ref="deptcd"/>
  163. </itemset>
  164. </choices>
  165. <script type="javascript" ev:event="xforms-value-changed">
  166. <![CDATA[
  167. model.removeNodeset("/root/init/userlist");
  168. model.makeNode("/root/init/userlist/usercombo");
  169. if(cmb_orddept.value == ""){
  170. model.removeNode("/root/init/userlist/usercombo");
  171. model.makeValue("/root/init/userlist/usercombo/userid", "");
  172. model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
  173. }else{
  174. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330"); //진료과 의사콤보 조회
  175. addComboInstance("/root/init/userlist", "userid^usernm", "^전체", "usercombo"); //의사콤보 전체항목 추가
  176. }
  177. model.setValue("/root/main/cond/orddrid", "");
  178. model.refresh();
  179. ]]>
  180. </script>
  181. </select1>
  182. <caption id="caption2" class="search_name" style="left:206px; top:25px; width:94px; height:17px; ">진료의 :</caption>
  183. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" appearance="minimal" editmode="inputsearch" style="left:285px; top:25px; width:115px; height:19px; text-align:left; ">
  184. <choices>
  185. <itemset nodeset="/root/init/userlist/usercombo">
  186. <label ref="usernm"/>
  187. <value ref="userid"/>
  188. </itemset>
  189. </choices>
  190. </select1>
  191. <caption id="caption3" class="search_name" style="left:6px; top:55px; width:94px; height:17px; ">삭제포함 :</caption>
  192. <button id="btn_search" class="btn1_letter2" style="left:564px; top:25px; width:56px; height:22px; ">
  193. <caption>조회</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. fClinicAuthSearch();
  197. ]]>
  198. </script>
  199. </button>
  200. <button id="button2" class="btn1_letter2" style="left:507px; top:25px; width:56px; height:22px; ">
  201. <caption>수정</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. // 인사팀 확인
  205. //if ( "4020500000" != getUserInfo("dutplcecd") ) return;
  206. // 조회값 인스턴스 세팅
  207. var row = grd_clinicauth.row;
  208. if ( row < 1 ) {
  209. messageBox("수정할 임상권한 건을", "C002");
  210. return;
  211. }
  212. var authno = grd_clinicauth.valueMatrix(grd_clinicauth.row, grd_clinicauth.colRef("authno"));
  213. model.makeValue("/root/send/reqdata/authno", authno);
  214. model.makeValue("/root/send/reqdata/newyn", "N");
  215. model.makeValue("/root/send/reqdata/viewyn", "Y");
  216. modal("SPMRJ00800");
  217. ]]>
  218. </script>
  219. </button>
  220. <button id="button1" class="btn1_letter4" style="left:425px; top:25px; width:80px; height:22px; ">
  221. <caption>신규등록</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. // 인사팀 확인
  225. //if ( "4020500000" != getUserInfo("dutplcecd") ) return;
  226. model.makeValue("/root/send/reqdata/newyn", "Y");
  227. model.makeValue("/root/send/reqdata/viewyn", "N");
  228. modal("SPMRJ00800");
  229. ]]>
  230. </script>
  231. </button>
  232. <datagrid id="grd_clinicauth" nodeset="/root/main/clinicauth/authitem" caption="상태^사번^의사명^소속과^직위^유효기간^파일^승인번호^첨부파일순번" colsep="^" colwidth="72, 79, 80, 110, 83, 164, 38, 1, 1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:95px; width:628px; height:635px; ">
  233. <col ref="delyn" style="text-align:center; "/>
  234. <col ref="orddrid" style="text-align:center; "/>
  235. <col ref="orddrnm" style="text-align:center; "/>
  236. <col ref="orddeptnm" style="text-align:center; "/>
  237. <col ref="position" style="text-align:center; "/>
  238. <col ref="valiperiod" style="text-align:center; "/>
  239. <col ref="attachcnt" style="text-align:center; "/>
  240. <col ref="authno" visibility="hidden"/>
  241. <col ref="attfileseq" visibility="hidden"/>
  242. <script type="javascript" ev:event="ondblclick">
  243. <![CDATA[
  244. var row = grd_clinicauth.row;
  245. // 그리드 헤드 클릭시, break처리
  246. if ( row == 0 ) return;
  247. var authno = grd_clinicauth.valueMatrix(row, grd_clinicauth.colRef("authno"));
  248. var fileseq = grd_clinicauth.valueMatrix(row, grd_clinicauth.colRef("attfileseq"));
  249. model.removenode("/root/main/attach");
  250. model.makeValue("/root/send/reqdata/authno", authno);
  251. model.makeValue("/root/send/reqdata/fileseq", fileseq);
  252. fAttachView();
  253. ]]>
  254. </script>
  255. </datagrid>
  256. <group id="group1" style="left:645px; top:0px; width:515px; height:765px; ">
  257. <caption id="caption20" class="tit_2" style="left:3px; top:1px; width:118px; height:13px; ">신청서 조회화면</caption>
  258. <line id="line7" style="x1:3px; y1:15px; x2:3px; y2:730px; background-color:#99ccff; border-color:#99ccff; "/>
  259. <line id="line1" style="x1:511px; y1:15px; x2:511px; y2:730px; background-color:#99ccff; border-color:#99ccff; "/>
  260. <line id="line2" style="x1:3px; y1:15px; x2:511px; y2:15px; background-color:#99ccff; border-color:#99ccff; "/>
  261. <line id="line3" style="x1:3px; y1:730px; x2:511px; y2:730px; background-color:#99ccff; border-color:#99ccff; "/>
  262. <img id="img1" style="left:5px; top:18px; width:503px; height:712px; background-stretch:stretch; ">
  263. <script type="javascript" ev:event="ondblclick">
  264. <![CDATA[
  265. // 임상권한 승인번호와, 파일 순번 데이터가 있을 때만 팝업창을 띄운다
  266. var authno = model.getValue("/root/send/reqdata/authno");
  267. var fileseq = model.getValue("/root/send/reqdata/fileseq");
  268. if ( authno != "" && fileseq != "" ) {
  269. modal("SPMRJ00900");
  270. }
  271. ]]>
  272. </script>
  273. </img>
  274. </group>
  275. <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/delyn" style="left:90px; top:55px; width:30px; height:20px; ">
  276. <script type="javascript" ev:event="xforms-select">
  277. <![CDATA[
  278. model.setValue("/root/main/cond/delyn", "Y");
  279. ]]>
  280. </script>
  281. <script type="javascript" ev:event="xforms-deselect">
  282. <![CDATA[
  283. model.setValue("/root/main/cond/delyn", "N");
  284. ]]>
  285. </script>
  286. </bool>
  287. <button id="button3" class="btn3_letter2" visibility="hidden" style="left:860px; top:740px; width:56px; height:22px; ">
  288. <caption>이전</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. var fileseq = model.getValue("/root/main/attach/beforeseq");
  292. if ( fileseq != null && fileseq != "" ) {
  293. model.makeValue("/root/send/reqdata/fileseq", fileseq);
  294. fAttachView();
  295. }
  296. ]]>
  297. </script>
  298. </button>
  299. <button id="button4" class="btn4_letter2" visibility="hidden" style="left:920px; top:740px; width:56px; height:22px; ">
  300. <caption>다음</caption>
  301. <script type="javascript" ev:event="DOMActivate">
  302. <![CDATA[
  303. var fileseq = model.getValue("/root/main/attach/nextseq");
  304. if ( fileseq != null && fileseq != "" ) {
  305. model.makeValue("/root/send/reqdata/fileseq", fileseq);
  306. fAttachView();
  307. }
  308. ]]>
  309. </script>
  310. </button>
  311. </group>
  312. </xhtml:body>
  313. </xhtml:html>