123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338 |
- <?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>
- <envinfo>
- <envestbansw>
- <envestbanswlist/>
- </envestbansw>
- <userenvestbinfo>
- <qestcd/>
- <qestnm/>
- <supqestcd/>
- <rmk/>
- <helpfile/>
- <sortseq/>
- <status/>
- </userenvestbinfo>
- </envinfo>
- <cond>
- <qestcd/>
- <qestnm/>
- </cond>
- <interface>
- <answval/>
- <qestcd/>
- <baseanswvalflag/>
- <answvalnm/>
- </interface>
- <admininfo/>
- <init>
- </init>
- <userenvestb>
- <userenvestblist/>
- </userenvestb>
- </main>
- <send>
- <qestcd/>
- <userid/>
- <deptcd/>
- <hardcodeno/>
- <savedata>
- <userenvestbinfo/>
- </savedata>
- </send>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize_SMMMB01100();
-
- //alert(opener.model.getValue(opener.root.properties.actscreen));
- ]]>
- </script>
- <submission id="TRMMB01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/userenvestb/userenvestblist"/>
- <submission id="TRMMB01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/envinfo"/>
- <submission id="TRMMB01104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/interface"/>
- <submission id="TRMMB01105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/hardcode"/>
- <submission id="TXMMB01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/envinfo"/>
- <submission id="TXMMB01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXMMB01104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TXMMB01105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <bind id="bind1" ref="/root/main/envinfo/envestbansw/envestbanswlist/hostyn" readonly="(/root/main/admininfo != "Y")"/>
- <bind id="bind2" ref="/root/main/envinfo/envestbansw/envestbanswlist/answval" readonly="(/root/main/admininfo != "Y")"/>
- <bind id="bind3" ref="/root/main/envinfo/envestbansw/envestbanswlist/answvalnm" readonly="(/root/main/admininfo != "Y")"/>
- </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="../../../emr/prcpmngtweb/js/SMMMB01100.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1060" pageheight="820" guideline="2,2;1,1030;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:45px; width:520px; height:30px; color:#3366ff; "/>
- <caption id="caption22" class="tit_2" style="left:1px; top:22px; width:144px; height:13px; ">환경설정 질문 리스트</caption>
- <button id="btn_onlinehelp" class="btn4_letter5" visibility="hidden" style="left:427px; top:15px; width:92px; height:22px; ">
- <caption>사용법등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sAdminInfo = model.getValue( "/root/main/admininfo");
- if(sAdminInfo == "Y") {
- open("SMMNB03200");
- } else {
- alert("사용 권한이 없습니다.");
- return;
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:40px; x2:520px; y2:39px; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">환경설정</caption>
- <datagrid id="grd_userenvestblist" nodeset="/root/main/userenvestb/userenvestblist" autoresize="true" caption="level^질문코드 - 질문내용^질문코드^질문내용^상위질문코드^비고" colsep="^" colwidth="0, 500, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:77px; width:520px; height:703px; text-align:center; ">
- <col ref="levl"/>
- <col ref="displaynm" style="text-align:left; "/>
- <col ref="qestcd"/>
- <col ref="qestnm"/>
- <col ref="supqestcd"/>
- <col ref="rmk"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isDataCell() == true) {
- fGetQestcdInfo();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line2" style="x1:875px; y1:23px; x2:875px; y2:48px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_search_qestnm" ref="/root/main/cond/qestnm" class="input_search" imemode="hangul" style="left:300px; top:51px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search_qestcd", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_search_qestcd" ref="/root/main/cond/qestcd" class="input_search" style="left:96px; top:50px; width:84px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search_qestcd", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:230px; top:50px; width:70px; height:17px; ">질문명</caption>
- <button id="btn_search_qestcd" class="btn1_letter2" style="left:451px; top:49px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetQestcdList();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:10px; top:50px; width:90px; height:17px; ">질문코드</caption>
- <line id="line4" style="x1:444px; y1:47px; x2:444px; y2:75px; border-color:#ffe4bb; border-left-style:solid; "/>
- <group id="grp_right_top" style="left:530px; top:15px; width:500px; height:180px; ">
- <caption id="caption2" 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="btn_info_del" class="btn2_letter2" visibility="hidden" style="left:304px; top:3px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sQestCd = model.getValue("/root/main/envinfo/userenvestbinfo/qestcd");
- if(isNull(sQestCd)) {
- alert("선택 된 코드가 없습니다.");
- return;
- }
-
- var sStatus = model.getValue("/root/main/envinfo/userenvestbinfo/status");
- if(sStatus == "u" || sStatus == "i" ) {
- alert("신규 또는 수정중인 코드는 삭제 할수 없습니다.");
- return;
- }
-
- var sAdminInfo = model.getValue( "/root/main/admininfo");
- if(sAdminInfo == "Y") {
- model.setValue("/root/main/envinfo/userenvestbinfo/status", "d"); // 삭제 설정
-
- fSaveQestInfo();
- } else {
- alert("삭제 권한이 없습니다.");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="btn_info_new" class="btn2_letter2" visibility="hidden" style="left:349px; top:3px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sStatus = model.getValue("/root/main/envinfo/userenvestbinfo/status");
- if(sStatus == "u" || sStatus == "d" ) {
- alert("수정 또는 삭제 중인 코드는 신규입력 할수 없습니다.");
- return;
- }
-
- var sAdminInfo = model.getValue( "/root/main/admininfo");
- if(sAdminInfo == "Y") { //
- model.resetInstanceNode("/root/main/envinfo/userenvestbinfo");
- model.resetInstanceNode("/root/main/envestbansw/envestbanswlist");
-
- model.setValue("/root/main/envinfo/userenvestbinfo/status", "i"); // 입력 설정
- model.setValue("/root/main/envinfo/userenvestbinfo/supqestcd", "ROT"); // 기본 최상위
- model.refresh();
-
- ipt_qestcd.disabled = false;
- ipt_supqestcd.disabled = false;
- ipt_qestnm.disabled = false;
- ipt_sortseq.disabled = false;
- txt_rmk.disabled = false;
- } else {
- alert("입력 권한이 없습니다.");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="btn_info_udt" class="btn2_letter2" visibility="hidden" style="left:394px; top:3px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sQestCd = model.getValue("/root/main/envinfo/userenvestbinfo/qestcd");
- if(isNull(sQestCd)) {
- alert("선택 된 코드가 없습니다.");
- return;
- }
-
- var sStatus = model.getValue("/root/main/envinfo/userenvestbinfo/status");
- if(sStatus == "i" || sStatus == "d" ) {
- alert("신규 또는 삭제 중인 코드는 수정 할수 없습니다.");
- return;
- }
-
- var sAdminInfo = model.getValue( "/root/main/admininfo");
- if(sAdminInfo == "Y") {
- model.setValue("/root/main/envinfo/userenvestbinfo/status", "u"); // 수정 설정
-
- ipt_qestcd.disabled = true;
- ipt_supqestcd.disabled = false;
- ipt_qestnm.disabled = false;
- ipt_sortseq.disabled = false;
- txt_rmk.disabled = false;
- } else {
- alert("수정 권한이 없습니다.");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="btn_info_sav" class="btn4_letter2" visibility="hidden" style="left:441px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sAdminInfo = model.getValue( "/root/main/admininfo");
- if(sAdminInfo == "Y") {
- fSaveQestInfo();
- } else {
- alert("저장 권한이 없습니다.");
- return;
- }
- ]]>
- </script>
- </button>
- <caption id="caption8" class="cell_1" style="left:0px; top:28px; width:55px; height:23px; vertical-align:middle; ">질문코드</caption>
- <input id="ipt_qestcd" ref="/root/main/envinfo/userenvestbinfo/qestcd" class="input" imemode="disabled" maxlength="3" style="left:57px; top:30px; width:103px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:173px; top:28px; width:61px; height:23px; vertical-align:middle; ">상위코드</caption>
- <input id="ipt_supqestcd" ref="/root/main/envinfo/userenvestbinfo/supqestcd" class="input" imemode="disabled" maxlength="3" style="left:236px; top:30px; width:94px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:0px; top:53px; width:55px; height:23px; vertical-align:middle; ">질문명</caption>
- <input id="ipt_qestnm" ref="/root/main/envinfo/userenvestbinfo/qestnm" class="input" style="left:57px; top:55px; width:443px; height:19px; "/>
- <line id="line6" class="line_3" style="x1:0px; y1:177px; x2:500px; y2:177px; "/>
- <caption id="caption11" class="cell_1" style="left:0px; top:78px; width:55px; height:74px; vertical-align:middle; ">비고</caption>
- <textarea id="txt_rmk" ref="/root/main/envinfo/userenvestbinfo/rmk" disabled="true" style="left:57px; top:80px; width:443px; height:70px; "/>
- <caption id="caption12" class="cell_1" style="left:340px; top:28px; width:61px; height:23px; vertical-align:middle; ">정렬순서</caption>
- <input id="ipt_sortseq" ref="/root/main/envinfo/userenvestbinfo/sortseq" class="input" imemode="disabled" style="left:405px; top:30px; width:94px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:153px; width:55px; height:23px; vertical-align:middle; ">사용법</caption>
- <input id="ipt_helpfile" ref="/root/main/envinfo/userenvestbinfo/helpfile" disabled="true" style="left:57px; top:155px; width:425px; height:19px; "/>
- <button id="button9" class="icon_list" style="left:486px; top:156px; width:14px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sHelpFile = model.getValue("/root/main/envinfo/userenvestbinfo/helpfile");
- if(!isNull(sHelpFile)) {
- model.property("divsflag") = "6"; // 온라인 도움말 분류 6:개인설정화면
- model.property("scnid") = "UEA" + model.getValue("/root/main/envinfo/userenvestbinfo/qestcd");
-
- var curOnLineHelpObj = getOpenWindow("SPMNZ01000");
- if(curOnLineHelpObj != null){// 온라인 도움말이 열려 있으면 재조회
- curOnLineHelpObj.javascript.fInit();
- } else {
- open("SPMNZ01000");
- }
- } else {
- alert("등록된 사용법이 없습니다.");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_right_bottom" style="left:530px; top:200px; width:500px; height:580px; ">
- <caption id="caption1" style="left:0px; top:8px; width:345px; height:15px; font-weight:bold; ">
- <![CDATA[▣ 답변값은 개인 > 부서 > 병원 순으로 우선 적용 됩니다.]]>
- </caption>
- <caption id="caption3" style="left:0px; top:27px; width:345px; height:15px; font-weight:bold; ">
- <![CDATA[▣ 환경설정값은 변경 후 다시 로그인 하여야 적용 됩니다.]]>
- </caption>
- <caption id="caption5" class="tit_2" style="left:0px; top:52px; width:87px; height:13px; ">답안 리스트</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:500px; y2:70px; "/>
- <button id="btn_answ_del" class="btn2_letter2" visibility="hidden" style="left:348px; top:49px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelAnswGrid();
- ]]>
- </script>
- </button>
- <button id="btn_answ_add" class="btn2_letter2" visibility="hidden" style="left:393px; top:49px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddAnswGrid();
- ]]>
- </script>
- </button>
- <button id="button10" class="btn4_letter2" style="left:442px; top:47px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fAnswSave();
- ]]>
- </script>
- </button>
- <datagrid id="grd_envestbanswlist" nodeset="/root/main/envinfo/envestbansw/envestbanswlist" autoresize="true" caption="질문코드^개인^부서^병원^답안코드^답안 값" colsep="^" colwidth="0, 35, 35, 35, 54, 294" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:500px; height:505px; ">
- <col ref="qestcd" visibility="hidden"/>
- <col checkvalue="Y,N" ref="useryn" type="radio"/>
- <col checkvalue="Y,N" ref="deptyn" type="radio"/>
- <col checkvalue="Y,N" ref="hostyn" type="radio"/>
- <col ref="answval" type="input" style="text-align:center; "/>
- <col ref="answvalnm" type="input" style="text-align:left; "/>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(grd_envestbanswlist.col == grd_envestbanswlist.colRef("answval")){
- var nRow = grd_envestbanswlist.row;
- nStatus = grd_envestbanswlist.rowstatus(nRow);
- if (nStatus != 1 && nStatus != 3) { // 신규데이터 가 아니면 답안 코드는 수정 할수 없음.
- messageBox ( "답안코드는 수정 할 수 없습니다.", "I999" );
- return;
- }
- }
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|