123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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="">
- <main>
- <mhrcd>
- <mhrcdlist>
- <levl/>
- <displaynm/>
- <hardcdno/>
- <hardcdnm/>
- <suphardcdno/>
- <rmk/>
- </mhrcdlist>
- </mhrcd>
- <hardcdinfo>
- <mhrcdinfo>
- <hardcdno/>
- <hardcdnm/>
- <suphardcdno/>
- <rmk/>
- <authtype/>
- <status/>
- </mhrcdinfo>
- </hardcdinfo>
- <dhrcd>
- <dhrcdlist>
- <hardcdno/>
- <cdseqno/>
- <trgtcd/>
- <trgtcdnm/>
- <valifromdd/>
- <valitodd/>
- <valifromdt/>
- <valitodt/>
- <hardspec/>
- <trgtcdsnm/>
- </dhrcdlist>
- </dhrcd>
- <ahrcd>
- <ahrcdlist>
- <hardcdno/>
- <authclscd/>
- <authtypecd/>
- <authtrgtcd/>
- <authtrgtnm/>
- </ahrcdlist>
- </ahrcd>
- <cond>
- <deptcd/>
- <userid/>
- <hardcdno/>
- <hardcdnm/>
- </cond>
- </main>
- <send>
- <reqdata/>
- <savedata>
- <dhrcdlist/>
- <ahrcdlist/>
- <mhrcdinfo/>
- </savedata>
- </send>
- <recv>
- </recv>
- <hidden>
- </hidden>
- <init/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize_SMMMB08400();
- ]]>
- </script>
- <submission id="TRMMB08401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/mhrcd"/>
- <submission id="TRMMB08402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/recv"/>
- <submission id="TXMMB08401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TXMMB08402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TXMMB08403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- </model>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMB08400.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1020" pageheight="720" guideline="1,495;1,500;1,1000;2,699;" style="margin-left:8; margin-right:8; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:140px; height:13px; ">진료 공통코드 관리</caption>
- <group id="grp_left" style="left:5px; top:20px; width:490px; height:680px; ">
- <caption id="caption6" class="tit_2" style="left:0px; top:5px; width:220px; height:15px; text-align:left; ">진료 공통코드 항목</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:23px; x2:490px; y2:23px; "/>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:28px; width:490px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:35px; width:70px; height:17px; ">코드</caption>
- <input id="ipt_search_hardcdno" ref="/root/main/cond/hardcdno" class="input_search" style="left:71px; top:35px; width:79px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search_mhrcd", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption9" class="search_name" style="left:170px; top:35px; width:70px; height:17px; ">코드명</caption>
- <input id="ipt_search_hardcdnm" ref="/root/main/cond/hardcdnm" class="input_search" imemode="hangul" style="left:240px; top:36px; width:160px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search_mhrcd", "DOMActivate");
- ]]>
- </script>
- </input>
- <line id="line1" style="x1:419px; y1:32px; x2:419px; y2:60px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search_mhrcd" class="btn1_letter2" style="left:426px; top:34px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetMhrcdList();
- ]]>
- </script>
- </button>
- <datagrid id="grd_mhrcdlist" nodeset="/root/main/mhrcd/mhrcdlist" autoresize="false" caption="level^코드번호-코드명^코드^코드명^상위코드" colwidth="0, 470, 0, 0, 0" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" tooltip="true" style="left:0px; top:65px; width:490px; height:615px; ">
- <col ref="levl"/>
- <col ref="displaynm"/>
- <col ref="hardcdno" visibility="hidden"/>
- <col ref="hardcdnm" visibility="hidden"/>
- <col ref="suphardcdno" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetHrcdInfo();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_right_top" style="left:500px; top:20px; width:500px; height:140px; ">
- <caption id="caption3" class="tit_2" style="left:0px; top:5px; width:220px; height:13px; text-align:left; ">기본정보</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:23px; x2:500px; y2:23px; "/>
- <button id="button1" class="btn2_letter2" style="left:304px; top:3px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sHardCdNo = model.getValue("/root/main/hardcdinfo/mhrcdinfo/hardcdno");
- if(isNull(sHardCdNo)) {
- alert("선택 된 공통코드가 없습니다.");
- return;
- }
-
- var sStatus = model.getValue("/root/main/hardcdinfo/mhrcdinfo/status");
- if(sStatus == "u" || sStatus == "i" ) {
- alert("신규 또는 수정중인 코드는 삭제 할수 없습니다.");
- return;
- }
-
- var sAuthType = model.getValue("/root/main/hardcdinfo/mhrcdinfo/authtype");
- if(sAuthType == "A") {
- model.setValue("/root/main/hardcdinfo/mhrcdinfo/status", "d"); // 입력 설정
-
- fSaveMHrcdInfo();
- } else {
- alert("삭제 권한이 없습니다.");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter2" style="left:349px; top:3px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sStatus = model.getValue("/root/main/hardcdinfo/mhrcdinfo/status");
- if(sStatus == "u" || sStatus == "d" ) {
- alert("수정 또는 삭제 중인 코드는 신규입력 할수 없습니다.");
- return;
- }
-
- if(getUserInfo("userid") == "EMR") { // 일단 EMR 아이디로만 신규 등록 권한 부여
- model.resetInstanceNode("/root/main/hardcdinfo/mhrcdinfo");
- model.resetInstanceNode("/root/main/dhrcd/dhrcdlist");
- model.resetInstanceNode("/root/main/ahrcd/ahrcdlist");
- model.refresh();
-
- model.setValue("/root/main/hardcdinfo/mhrcdinfo/status", "i"); // 입력 설정
- model.setValue("/root/main/hardcdinfo/mhrcdinfo/authtype", "A"); // 저장 버튼을 사용할수 있도록 설정
- btn_SaveMhrcd.disabled = false; // 저장버튼 활성화
-
- ipt_hardcdno.disabled = false;
- ipt_hardcdnm.disabled = false;
- ipt_suphardcdno.disabled = false;
- txt_rmk.disabled = false;
- } else {
- alert("입력 권한이 없습니다.");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter2" style="left:394px; top:3px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sHardCdNo = model.getValue("/root/main/hardcdinfo/mhrcdinfo/hardcdno");
- if(isNull(sHardCdNo)) {
- alert("선택 된 공통코드가 없습니다.");
- return;
- }
-
- var sStatus = model.getValue("/root/main/hardcdinfo/mhrcdinfo/status");
- if(sStatus == "i" || sStatus == "d" ) {
- alert("신규 또는 삭제 중인 코드는 수정 할수 없습니다.");
- return;
- }
-
- var sAuthType = model.getValue("/root/main/hardcdinfo/mhrcdinfo/authtype");
-
- if(sAuthType == "A") {
- model.setValue("/root/main/hardcdinfo/mhrcdinfo/status", "u"); // 수정 설정
-
- ipt_hardcdno.disabled = true;
- ipt_hardcdnm.disabled = false;
- ipt_suphardcdno.disabled = false;
- txt_rmk.disabled = false;
- } else {
- alert("수정 권한이 없습니다.");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="btn_SaveMhrcd" class="btn4_letter2" style="left:441px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sAuthType = model.getValue("/root/main/hardcdinfo/mhrcdinfo/authtype");
- if(sAuthType == "A") {
- fSaveMHrcdInfo();
- } else {
- alert("저장 권한이 없습니다.");
- return;
- }
- ]]>
- </script>
- </button>
- <caption id="caption4" class="cell_1" style="left:0px; top:28px; width:55px; height:23px; vertical-align:middle; ">코드</caption>
- <input id="ipt_hardcdno" ref="/root/main/hardcdinfo/mhrcdinfo/hardcdno" class="input" imemode="disabled" style="left:57px; top:30px; width:203px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:273px; top:28px; width:61px; height:23px; vertical-align:middle; ">상위코드</caption>
- <input id="ipt_suphardcdno" ref="/root/main/hardcdinfo/mhrcdinfo/suphardcdno" class="input" imemode="disabled" style="left:341px; top:30px; width:159px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:53px; width:55px; height:23px; vertical-align:middle; ">코드명</caption>
- <input id="ipt_hardcdnm" ref="/root/main/hardcdinfo/mhrcdinfo/hardcdnm" class="input" style="left:57px; top:55px; width:443px; height:19px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:137px; x2:500px; y2:137px; "/>
- <caption id="caption8" class="cell_1" style="left:0px; top:78px; width:55px; height:57px; vertical-align:middle; ">비고</caption>
- <textarea id="txt_rmk" ref="/root/main/hardcdinfo/mhrcdinfo/rmk" disabled="true" style="left:57px; top:80px; width:443px; height:55px; "/>
- </group>
- <group id="grp_right_middle" style="left:500px; top:160px; width:500px; height:180px; ">
- <caption id="caption7" class="tit_2" style="left:0px; top:5px; width:220px; height:13px; text-align:left; ">권한정보</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:23px; x2:500px; y2:23px; "/>
- <button id="btn_SaveAhrcd" class="btn4_letter2" style="left:441px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sAuthType = model.getValue("/root/main/hardcdinfo/mhrcdinfo/authtype");
- if(sAuthType == "A" || getUserInfo("userid") == "EMR") {
- fSaveAHrcdList();
- } else {
- alert("저장 권한이 없습니다.");
- return;
- }
-
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter2" style="left:394px; top:3px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sHardCdNo = model.getValue("/root/main/hardcdinfo/mhrcdinfo/hardcdno");
- if(isNull(sHardCdNo)) {
- alert("선택 된 공통코드가 없습니다.");
- return;
- }
-
- var cur_row = grd_ahrcdlist.row; // 행 번호 가져오기
- var iStatus = grd_ahrcdlist.rowstatus(cur_row);
-
- if(cur_row<0) {
- alert("삭제할 조건행을 선택해주세요.");
- return;
- }
-
- if (iStatus == 1 || iStatus == 3) { // 새로 삽입된 행이면
- grd_ahrcdlist.deleteitem(cur_row);
- } else {
- grd_ahrcdlist.addStatus(grd_ahrcdlist.row,"delete");
- }
- ]]>
- </script>
- </button>
- <button id="button11" class="btn2_letter2" style="left:350px; top:3px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sHardCdNo = model.getValue("/root/main/hardcdinfo/mhrcdinfo/hardcdno");
- if(isNull(sHardCdNo)) {
- alert("선택 된 공통코드가 없습니다.");
- return;
- }
-
- grd_ahrcdlist.addItem();
- grd_ahrcdlist.editCell();
-
- var nRow = grd_ahrcdlist.row;
- model.setValue("/root/main/ahrcd/ahrcdlist["+nRow+"]/hardcdno", sHardCdNo);
- model.setValue("/root/main/ahrcd/ahrcdlist["+nRow+"]/authclscd", "P");
- model.setValue("/root/main/ahrcd/ahrcdlist["+nRow+"]/authtypecd", "R");
- ]]>
- </script>
- </button>
- <datagrid id="grd_ahrcdlist" nodeset="/root/main/ahrcd/ahrcdlist" caption="하드코드^구분^권한^부서코드/사번^부서명/사용자명" colsep="^" colwidth="0, 60, 60, 120, 215" ellipsis="true" explorerbar="sortshow" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:28px; width:500px; height:152px; ">
- <col ref="hardcdno" visibility="hidden"/>
- <col disabled="true" ref="authclscd" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>사용자</label>
- <value>P</value>
- </item>
- <item>
- <label>부서</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="authtypecd" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>관리</label>
- <value>A</value>
- </item>
- <item>
- <label>저장</label>
- <value>E</value>
- </item>
- <item>
- <label>조회</label>
- <value>R</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="authtrgtcd" type="input" maxbyte="10" style="text-align:center; "/>
- <col disabled="true" ref="authtrgtnm"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_ahrcdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_right_bottom" style="left:500px; top:343px; width:500px; height:356px; ">
- <caption id="caption11" class="tit_2" style="left:0px; top:5px; width:220px; height:13px; text-align:left; ">상세코드 리스트</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:23px; x2:500px; y2:23px; "/>
- <button id="btn_SaveDhrcd" class="btn4_letter2" style="left:441px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sAuthType = model.getValue("/root/main/hardcdinfo/mhrcdinfo/authtype");
- if(sAuthType == "A" || sAuthType == "E") {
- fSaveDHrcdList();
- } else {
- alert("저장 권한이 없습니다.");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button8" class="btn2_letter2" style="left:349px; top:3px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sHardCdNo = model.getValue("/root/main/hardcdinfo/mhrcdinfo/hardcdno");
- if(isNull(sHardCdNo)) {
- alert("선택 된 공통코드가 없습니다.");
- return;
- }
- grd_dhrcdlist.addItem();
- grd_dhrcdlist.editCell();
-
- var nRow = grd_dhrcdlist.row;
- model.setValue("/root/main/dhrcd/dhrcdlist["+nRow+"]/hardcdno", sHardCdNo);
- model.setValue("/root/main/dhrcd/dhrcdlist["+nRow+"]/valifromdd", getCurrentDate());
- model.setValue("/root/main/dhrcd/dhrcdlist["+nRow+"]/valitodd", "99991231");
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter2" style="left:393px; top:3px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sHardCdNo = model.getValue("/root/main/hardcdinfo/mhrcdinfo/hardcdno");
- if(isNull(sHardCdNo)) {
- alert("선택 된 공통코드가 없습니다.");
- return;
- }
-
- var cur_row = grd_dhrcdlist.row; // 행 번호 가져오기
- var iStatus = grd_dhrcdlist.rowstatus(cur_row);
-
- if(cur_row<0) {
- alert("삭제할 조건행을 선택해주세요.");
- return;
- }
-
- if (iStatus == 1 || iStatus == 3) { // 새로 삽입된 행이면
- grd_dhrcdlist.deleteitem(cur_row);
- } else {
- grd_dhrcdlist.addStatus(grd_dhrcdlist.row,"delete");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_dhrcdlist" nodeset="/root/main/dhrcd/dhrcdlist" autoresize="true" caption="하드코드^순번^코드^코드명^시작일자^종료일자^적용시작일시^적용종료일시^코드설명^코드별칭" colsep="^" colwidth="0, 30, 80, 180, 85, 85 ,100 ,100 ,200, 200" ellipsis="true" explorerbar="sortshow" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:28px; width:500px; height:327px; ">
- <col ref="hardcdno" visibility="hidden"/>
- <col disabled="true" ref="cdseqno" type="input" format="#####" maxlength="5" style="text-align:center; "/>
- <col disabled="true" ref="trgtcd" type="input" maxbyte="20" style="text-align:center; "/>
- <col ref="trgtcdnm" type="input" maxbyte="4000"/>
- <col ref="valifromdd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="valitodd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="valifromdt" type="input" maxbyte="14" style="text-align:center; "/>
- <col ref="valitodt" type="input" maxbyte="14" style="text-align:center; "/>
- <col ref="hardspec" type="input" maxbyte="4000" style="text-align:center; "/>
- <col ref="trgtcdsnm" type="input" maxbyte="1000" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dhrcdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|