123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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="">
- <main>
- <aprvlist>
- <aprvlist>
- <trgtcd/>
- <trgtnm/>
- <valifromdd/>
- <valitodd/>
- <trgtcdnm/>
- <cdseqno/>
- </aprvlist>
- </aprvlist>
- <aprvinfo>
- <trgtcd/>
- <valifromdd/>
- <valitodd/>
- <trgtcdnm/>
- </aprvinfo>
- <adminaprv/>
- </main>
- <send>
- </send>
- <temp>
- <aprvlist/>
- <aprvinfo/>
- </temp>
- <tempchkrec>
- <rtndata>
- <checkmsg/>
- </rtndata>
- </tempchkrec>
- <hardcode>
- </hardcode>
- <sendata>
- <endshowyn/>
- <aprvlist/>
- <aprvinfo/>
- </sendata>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 대출업무에 대한 접근권한을 팀장과 담당자만 가능하도록 권한 설정
- // 권한 부여및 변경은 의무기록팀장님 관리토록 설정
- // 의무기록실 요청사항.
-
- mmbfGetHardCodeInfo("/root/send","/root/hardcode","4200");
-
- if( model.getValue("/root/hardcode/hardcd/hardcd") != getUserInfo("userid") ){
- messageBox("대출승인 관리자가 아닙니다. 대출승인 접근자리스트 조회만 가능합니다.","E");
- group1.disabled = true;
- btn_save.disabled = true;
- btn_del.disabled = true;
- btn_set.disabled = true;
- grd_aprvlist.disabled = true;
- }
-
- model.setValue("/root/main/aprvinfo/valifromdd", getCurrentDate());
- model.setValue("/root/main/aprvinfo/valitodd", "999912312359");
-
- btn_srch.dispatch("DOMActivate"); //조회
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function mmbfGetHardCodeInfo(ref, rsltref, hardcd){
- var mmb_rsltref = "/root/hidden/mmb/hardcd";
- model.removeNode(mmb_rsltref);
- model.makeNode(mmb_rsltref);
- model.removeNode(ref);
- model.makeValue(ref + "/hardcd", hardcd);
- if(submit("TRMMB04103", "false", ref, mmb_rsltref)==true){
- model.copyNode(rsltref, mmb_rsltref);
- model.removeNode(mmb_rsltref);
- }
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRMRI04200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/sendata/endshowyn" resultref="/root/temp/aprvlist"/>
- <submission id="TRMRI04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/aprvinfo/trgtcd" resultref="/root/tempchkrec"/>
- <submission id="TXMRI04200" mediatype="application/x-www-form-urlencoded" ref="/root/sendata/aprvinfo" resultref="/root/main/aprvlist/aprvlist"/>
- <submission id="TXMRI04201" mediatype="application/x-www-form-urlencoded" ref="/root/sendata/aprvlist" resultref="/root/main/aprvlist/aprvlist"/>
- <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="850" pageheight="500">
- <caption id="caption1" class="tit_2" style="left:0px; top:10px; width:155px; height:13px; ">대출승인 접근권한등록</caption>
- <caption id="caption7" class="tit_2" style="left:0px; top:100px; width:191px; height:13px; ">대출승인 접근권한 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:115px; x2:810px; y2:115px; "/>
- <datagrid id="grd_aprvlist" nodeset="/root/main/aprvlist/aprvlist" autoresize="true" caption="ID^이름^적용시작일자^적용종료일자^비고^cdseqno^환자별seq^적용시작일자^적용마감일자" colsep="^" colwidth="60, 60, 90, 90, 465, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:120px; width:810px; height:365px; ">
- <col ref="trgtcd" style="text-align:center; "/>
- <col ref="trgtnm" style="text-align:center; "/>
- <col ref="valifromdd" type="inputdate" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="valitodd" type="inputdate" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="trgtcdnm" type="input"/>
- <col ref="cdseqno" visibility="hidden"/>
- </datagrid>
- <button id="btn_save" class="btn4_letter2" style="left:754px; top:3px; width:56px; height:22px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //저장항목 필수체크
- if( model.getValue("/root/main/aprvinfo/trgtcd") == ""){
- messageBox("ID는","I003"); //필수입력입니다.
- return;
- }else if( model.getValue("/root/main/aprvinfo/valifromdd") == "" ){
- messageBox("적용시작일자","I003");
- return;
- }else if( model.getValue("/root/main/aprvinfo/valitodd") == ""){
- messageBox("적용종료일자","I003");
- return;
- }else{
- if( messageBox("","Q002") == "6"){ //저장하시겠습니까? / 예
- submit("TRMRI04201"); // ID체크
-
- if( model.getValue("/root/tempchkrec/rtndata/checkmsg") != ''){
- messageBox(model.getValue("/root/tempchkrec/rtndata/checkmsg"),"E");
- return;
- }else{
- model.copyNode("/root/sendata/aprvinfo","/root/main/aprvinfo");
- submit("TXMRI04200");
- model.refresh();
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_set" class="btn4_letter2" style="left:698px; top:93px; width:56px; height:22px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/sendata/aprvlist","");
- model.setValue("/root/sendata/aprvlist", grd_aprvlist.getUpdateData());
- submit("TXMRI04201");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn4_letter2" style="left:755px; top:93px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_aprvlist.addStatus(grd_aprvlist.row, "delete");
- model.setValue("/root/sendata/aprvlist", grd_aprvlist.getUpdateData());
- submit("TXMRI04201");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_srch" class="btn1_letter2" style="left:640px; top:93px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRMRI04200");
- model.copyNode("/root/main/aprvlist","/root/temp/aprvlist");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select id="chk_endshowyn" ref="/root/sendata/endshowyn" visibility="visible" overflow="visible" appearance="full" style="left:536px; top:96px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>종료된사용자</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <line id="line4" class="line_3" style="x1:0px; y1:486px; x2:809px; y2:486px; "/>
- <group id="group1" style="left:0px; top:25px; width:810px; height:50px; ">
- <input id="ipt_hardspec" ref="/root/main/aprvinfo/trgtcdnm" style="left:100px; top:28px; width:708px; height:19px; "/>
- <input id="ipt_trgtcd" ref="/root/main/aprvinfo/trgtcd" class="input_essential" style="left:100px; top:5px; width:100px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:605px; top:5px; width:203px; height:20px; "/>
- <caption id="caption3" class="cell_1" style="left:-2px; top:5px; width:100px; height:20px; ">ID</caption>
- <caption id="caption4" class="cell_1" style="left:201px; top:5px; width:100px; height:20px; ">적용시작일자</caption>
- <input id="ipt_valifromdd" ref="/root/main/aprvinfo/valifromdd" class="input_essential" inputtype="date" style="left:302px; top:5px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/aprvinfo/valifromdd", model.getValue("/root/main/aprvinfo/valifromdd")+getCurrentTime().substr(0,4));
- ipt_valifromdd.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption5" class="cell_1" style="left:403px; top:5px; width:100px; height:20px; ">적용종료일자</caption>
- <caption id="caption6" class="cell_1" style="left:-2px; top:27px; width:100px; height:20px; ">비고</caption>
- <line id="line2" class="line_1" style="x1:-2px; y1:0px; x2:808px; y2:0px; "/>
- <line id="line3" class="line_2" style="x1:-2px; y1:25px; x2:807px; y2:25px; "/>
- <input id="ipt_valitodd" ref="/root/main/aprvinfo/valitodd" class="input_essential" inputtype="date" style="left:504px; top:5px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/aprvinfo/valitodd", model.getValue("/root/main/aprvinfo/valitodd")+getCurrentTime().substr(0,4));
- ipt_valitodd.refresh();
- ]]>
- </script>
- </input>
- <line id="line6" class="line_3" style="x1:-2px; y1:48px; x2:807px; y2:48px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|