123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>의사임상권한조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <orddept/>
- <userlist/>
- </init>
- <send>
- <reqdata>
- <orddeptcd/>
- <orddrid/>
- <delyn/>
- <viewyn/>
- <newyn/>
- <authno/>
- <fileseq/>
- </reqdata>
- </send>
- <main>
- <cond>
- <orddeptcd/>
- <orddrid/>
- <delyn/>
- </cond>
- <clinicauth>
- <authitem/>
- </clinicauth>
- <attach>
- <imgedata/>
- <beforeseq/>
- <nextseq/>
- <fileseq/>
- <authno/>
- </attach>
- </main>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
- function fClinicAuthSearch() {
-
- var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
- if ( orddeptcd == null || orddeptcd == "" ) {
- //return;
- }
-
- img1.src = "";
- img1.refresh();
- button3.visible = false;
- button4.visible = false;
-
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- model.makeValue("/root/send/reqdata/authno", "");
-
- submit("TRMRJ00801");
- model.refresh();
-
- }
-
- function fAttachView() {
-
- var authno = model.getValue("/root/send/reqdata/authno");
- var fileseq = model.getValue("/root/send/reqdata/fileseq");
-
- img1.src = "";
- img1.refresh();
- button3.visible = false;
- button4.visible = false;
- if ( fileseq == "" ) return;
-
- img1.src = "/himed/webapps/cmc/web/xrw/.live?submit_id=TRMRJ00803&business_id=emr&screen_id=SMMRJ00300&macaddr=123456798&authno=" + authno + "&fileseq=" + fileseq;
- img1.refresh();
-
- submit("TRMRJ00804");
-
- var beforeseq = model.getValue("/root/main/attach/beforeseq");
- var nextseq = model.getValue("/root/main/attach/nextseq");
-
- if ( beforeseq != null && beforeseq != "" ) {
- button3.visible = true;
- } else {
- button3.visible = false;
- }
-
- if ( nextseq != null && nextseq != "" ) {
- button4.visible = true;
- } else {
- button4.visible = false;
- }
-
- model.refresh();
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 초기화 함수 추가 예정
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A");
- mmbfGetUserComboList("/root/send/reqdata" , "/root/init/userlist" , getUserInfo("dutplcecd"), "0330");
-
- addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "^전체", "dept"); //부서코드 콤보 전체 instance추가
- addComboInstance("/root/init/userlist", "userid^usernm", "^전체" , "usercombo"); //의사콤보 전체 instance추가
-
- model.setValue("/root/main/cond/delyn", "N");
-
- cmb_orddept.select(0);
- cmb_orddrid.select(0);
-
- // 인사팀('4020500000') 이 아닌 경우 부서및 진료의 명 자동설정 후 불능처리
- var dutplcecd = getUserInfo("dutplcecd");
-
- if ( dutplcecd != "4020500000" ) {
- button1.visible = false;
- button2.visible = false;
- //btn_search.attribute("left") = "1120px";
- // 부서설정
- var depthRows = cmb_orddept.length + 1;
- var deptcd = "";
- for ( var i=1 ; i<depthRows ; i++ ) {
- deptcd = model.getValue("/root/init/orddept/dept[" + i + "]/deptcd");
- if ( deptcd == dutplcecd ) {
- // 부서 콤보박스 세팅
- cmb_orddept.select(i-1);
- // 부서에 해당하는 사용자 세팅
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
-
- if(cmb_orddept.value == ""){
- model.removeNode("/root/init/userlist/usercombo");
- model.makeValue("/root/init/userlist/usercombo/userid", "");
- model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
- }else{
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330"); //진료과 의사콤보 조회
- addComboInstance("/root/init/userlist", "userid^usernm", "^전체", "usercombo"); //의사콤보 전체항목 추가
- }
-
- // 부서의 사용자와 진료의 세팅
- var userRows = cmb_orddrid.length + 1;
- var userid = "";
- var sessUserid = getUserInfo("userid");
- for ( var j=1 ; j<userRows ; j++ ) {
- userid = model.getValue("/root/init/userlist/usercombo[" + j + "]/userid");
- if ( userid == sessUserid ) {
- cmb_orddrid.select(j-1);
- }
- }
-
- // 부서콤보, 진료의 콤보 불능 처리
- cmb_orddept.disabled = true;
- cmb_orddrid.disabled = true;
-
- }
-
- }
-
- }
-
- ]]>
- </script>
- <!-- SUBMISSION 시작 -->
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMRJ00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/clinicauth"/>
- <submission id="TRMRJ00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/attach"/>
- <submission id="TRMRJ00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/attach"/>
- <!-- SUBMISSION 종료 -->
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,5;2,-3;" style="text-align:center; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1164px; height:767px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:494px; height:13px; ">의사임상권한목록조회</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:15px; width:629px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_orddept" class="search_name" style="left:6px; top:25px; width:80px; height:17px; ">진료과 :</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
-
- if(cmb_orddept.value == ""){
- model.removeNode("/root/init/userlist/usercombo");
- model.makeValue("/root/init/userlist/usercombo/userid", "");
- model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
- }else{
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330"); //진료과 의사콤보 조회
- addComboInstance("/root/init/userlist", "userid^usernm", "^전체", "usercombo"); //의사콤보 전체항목 추가
- }
- model.setValue("/root/main/cond/orddrid", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:206px; top:25px; width:94px; height:17px; ">진료의 :</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:6px; top:55px; width:94px; height:17px; ">삭제포함 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:564px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClinicAuthSearch();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn1_letter2" style="left:507px; top:25px; width:56px; height:22px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 인사팀 확인
- //if ( "4020500000" != getUserInfo("dutplcecd") ) return;
-
- // 조회값 인스턴스 세팅
- var row = grd_clinicauth.row;
-
- if ( row < 1 ) {
- messageBox("수정할 임상권한 건을", "C002");
- return;
- }
-
- var authno = grd_clinicauth.valueMatrix(grd_clinicauth.row, grd_clinicauth.colRef("authno"));
-
- model.makeValue("/root/send/reqdata/authno", authno);
- model.makeValue("/root/send/reqdata/newyn", "N");
- model.makeValue("/root/send/reqdata/viewyn", "Y");
- modal("SPMRJ00800");
-
- ]]>
- </script>
- </button>
- <button id="button1" class="btn1_letter4" style="left:425px; top:25px; width:80px; height:22px; ">
- <caption>신규등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 인사팀 확인
- //if ( "4020500000" != getUserInfo("dutplcecd") ) return;
-
- model.makeValue("/root/send/reqdata/newyn", "Y");
- model.makeValue("/root/send/reqdata/viewyn", "N");
- modal("SPMRJ00800");
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="delyn" style="text-align:center; "/>
- <col ref="orddrid" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="position" style="text-align:center; "/>
- <col ref="valiperiod" style="text-align:center; "/>
- <col ref="attachcnt" style="text-align:center; "/>
- <col ref="authno" visibility="hidden"/>
- <col ref="attfileseq" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = grd_clinicauth.row;
-
- // 그리드 헤드 클릭시, break처리
- if ( row == 0 ) return;
-
- var authno = grd_clinicauth.valueMatrix(row, grd_clinicauth.colRef("authno"));
- var fileseq = grd_clinicauth.valueMatrix(row, grd_clinicauth.colRef("attfileseq"));
- model.removenode("/root/main/attach");
- model.makeValue("/root/send/reqdata/authno", authno);
- model.makeValue("/root/send/reqdata/fileseq", fileseq);
-
- fAttachView();
- ]]>
- </script>
- </datagrid>
- <group id="group1" style="left:645px; top:0px; width:515px; height:765px; ">
- <caption id="caption20" class="tit_2" style="left:3px; top:1px; width:118px; height:13px; ">신청서 조회화면</caption>
- <line id="line7" style="x1:3px; y1:15px; x2:3px; y2:730px; background-color:#99ccff; border-color:#99ccff; "/>
- <line id="line1" style="x1:511px; y1:15px; x2:511px; y2:730px; background-color:#99ccff; border-color:#99ccff; "/>
- <line id="line2" style="x1:3px; y1:15px; x2:511px; y2:15px; background-color:#99ccff; border-color:#99ccff; "/>
- <line id="line3" style="x1:3px; y1:730px; x2:511px; y2:730px; background-color:#99ccff; border-color:#99ccff; "/>
- <img id="img1" style="left:5px; top:18px; width:503px; height:712px; background-stretch:stretch; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 임상권한 승인번호와, 파일 순번 데이터가 있을 때만 팝업창을 띄운다
- var authno = model.getValue("/root/send/reqdata/authno");
- var fileseq = model.getValue("/root/send/reqdata/fileseq");
-
- if ( authno != "" && fileseq != "" ) {
- modal("SPMRJ00900");
- }
- ]]>
- </script>
- </img>
- </group>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/delyn" style="left:90px; top:55px; width:30px; height:20px; ">
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/main/cond/delyn", "Y");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- model.setValue("/root/main/cond/delyn", "N");
- ]]>
- </script>
- </bool>
- <button id="button3" class="btn3_letter2" visibility="hidden" style="left:860px; top:740px; width:56px; height:22px; ">
- <caption>이전</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileseq = model.getValue("/root/main/attach/beforeseq");
-
- if ( fileseq != null && fileseq != "" ) {
- model.makeValue("/root/send/reqdata/fileseq", fileseq);
- fAttachView();
- }
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" visibility="hidden" style="left:920px; top:740px; width:56px; height:22px; ">
- <caption>다음</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileseq = model.getValue("/root/main/attach/nextseq");
-
- if ( fileseq != null && fileseq != "" ) {
- model.makeValue("/root/send/reqdata/fileseq", fileseq);
- fAttachView();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|