123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- <?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>
- <AbbrList>
- <check/>
- <orddept/>
- <userid/>
- <usernm/>
- <doctabbr/>
- <licnsno/>
- <specordyn/>
- <lastupdtrid/>
- </AbbrList>
- </main>
- <send>
- <choisflag/>
- <orddeptcd/>
- <usernm/>
- <userid/>
- <updatedata/>
- </send>
- <init>
- <P0037list>
- <P0037>
- <cdnm/>
- <cdid/>
- </P0037>
- </P0037list>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddridlist>
- </orddrid>
- <P0316list>
- <P0316>
- <cdnm/>
- <cdid/>
- </P0316>
- </P0316list>
- </init>
- <hidden>
- <tmp/>
- </hidden>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- pamGetDeptCDDrIDList();
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPMB02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TXPMB02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
- <submission id="TXPMB02603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
- <submission id="TXPMB02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fChoiValue(choiflag){
- //진료과별/의사명/의사ID
- if (choiflag == '1' ) {
- cmb_orddeptcd.attribute("left") = "235px";
- cmb_orddeptcd.visible = true;
- ipt_usernm.visible = false;
- ipt_userid.visible = false;
- model.setValue("/root/send/usernm", "");
- model.setValue("/root/send/userid", "");
- } else if (choiflag == '2') {
- ipt_usernm.attribute("left") = "235px";
- cmb_orddeptcd.visible = false;
- ipt_usernm.visible = true;
- ipt_userid.visible = false;
- model.setValue("/root/send/orddeptcd", "");
- model.setValue("/root/send/userid", "");
- model.setFocus("ipt_usernm");
- } else if (choiflag == '3') {
- ipt_userid.attribute("left") = "235px";
- cmb_orddeptcd.visible = false;
- ipt_usernm.visible = false;
- ipt_userid.visible = true;
- model.setValue("/root/send/orddeptcd", "");
- model.setValue("/root/send/usernm", "");
- model.setFocus("ipt_userid");
- }
- }//fChoiValue() end
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1136;2,49;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:800px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">의사약어관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:800px; height:662px; ">
- <group id="group4" style="left:0px; top:10px; width:800px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:800px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="5" style="left:732px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var choiflag = model.getValue("/root/send/choisflag");
- if(choiflag == '1' && cmb_orddeptcd.value == ""){
- messageBox("진료과를 선택하지","E007");
- return false;
- }else if(choiflag == '2' && ipt_usernm.value =="" ){
- messageBox("의사명을 입력하지","E007");
- return false;
- }else if(choiflag == '3' && ipt_userid.value =="" ){
- messageBox("의사ID을 입력하지","E007");
- return false;
- }else{
- submit("TRPMB02601");
- }// if end
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:716px; y1:7px; x2:716px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:235px; top:7px; width:198px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">구분 :</caption>
- <input id="ipt_usernm" ref="/root/send/usernm" navindex="3" visibility="hidden" style="left:245px; top:7px; width:198px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_userid" ref="/root/send/userid" navindex="4" visibility="hidden" style="left:255px; top:7px; width:198px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption4" class="tit_2" style="left:6px; top:55px; width:139px; height:13px; ">의사약어관리</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:800px; y2:70px; "/>
- <datagrid id="grd_doctabbrlist" nodeset="/root/main/AbbrList" caption="체크^진료과/진료과약어명^의사ID^의사명^의사약어^의사면허번호^선택진료여부^최종수정자ID" colsep="^" colwidth="47, 140, 85, 98, 108, 107, 111, 100" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:800px; height:581px; vertical-align:middle; ">
- <col checkvalue="true,false" ref="check" type="checkbox"/>
- <col ref="orddept" type="output" style="text-align:center; vertical-align:middle; "/>
- <col ref="userid" type="output" style="text-align:center; vertical-align:middle; "/>
- <col ref="usernm" type="output" style="text-align:center; vertical-align:middle; "/>
- <col imemode="disabled" ref="doctabbr" type="input" maxlength="5" style="text-align:center; vertical-align:middle; "/>
- <col ref="licnsno" type="output" style="text-align:center; vertical-align:middle; "/>
- <col ref="specordyn" type="output" style="text-align:center; vertical-align:middle; "/>
- <col ref="lastupdtrid" type="output" style="text-align:center; vertical-align:middle; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var col = grd_doctabbrlist.col;
- var row = grd_doctabbrlist.row;
- var title = grd_doctabbrlist.labelMatrix(0,col);
- // //체크박스 자동체크
- // if(title == "의사약어"){
- // model.setValue("/root/main/AbbrList["+row+"]/check","true");
- // }else{
- // model.setValue("/root/main/AbbrList["+row+"]/check","false");
- // }// if end
-
- //의사약어 대문자로 변환
- if(title == "의사약어"){
- var tempabbr = model.getValue("/root/main/AbbrList["+row+"]/doctabbr");
- model.resetInstanceNode("/root/main/AbbrList["+row+"]/doctabbr");
- model.setValue("/root/main/AbbrList["+row+"]/doctabbr", tempabbr.toUpperCase());
- model.refresh();
- }// if end
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var col = grd_doctabbrlist.col;
- var row = grd_doctabbrlist.row;
- var title = grd_doctabbrlist.labelMatrix(0,col);
- if(title == "의사약어" && model.getValue("root/main/AbbrListt["+row+"]/doctabbr") != null){
- btn_save.disabled = "true";
- btn_update.disabled = "false";
- }else{
- btn_save.disabled = "false";
- btn_update.disabled = "true";
- }// if end
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:675px; width:800px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:800px; y2:0px; "/>
- </group>
- <select1 id="cmb_choiflag" ref="/root/send/choisflag" class="combo_s_essential" navindex="1" appearance="minimal" style="left:80px; top:30px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>진료과별</label>
- <value>1</value>
- </item>
- <item>
- <label>의사명</label>
- <value>2</value>
- </item>
- <item>
- <label>의사ID</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var choiflag = model.getValue("/root/send/choisflag");
- //검색조건
- fChoiValue(choiflag);
- ]]>
- </script>
- </select1>
- <button id="btn_update" class="btn4_letter2" navindex="7" visibility="hidden" style="left:571px; top:680px; width:56px; height:22px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //체크된 데이터만 가져온다.
- var nodeList = instance1.selectNodes("/root/main/AbbrList[check='true']");
- var rCSV = getNodeListCSV(nodeList);
-
- if( rCSV == "" || rCSV == null || rCSV == undefined){
- //messageBox("미예약 항목이 선택되지 않았습니다.", "E999", "");
- messageBox("수정할 항목이 선택되지", "E007");
- return false;
- }// if end
-
- if(messageBox("수정된 내용을 반영하시겠습니까?", "Q999") != 6) return false;
-
- model.resetInstanceNode("/root/send/updatedata");
- //model.setValue("/root/send/updatedata/datalist", rCSV);
- setCSVToNode("/root/temp", rCSV);
- instance1.selectSingleNode("/root/temp").xml;
-
- model.copyNode("/root/send/updatedata", "/root/temp");
-
- if(submit("TXPMB02602")){
- //정상적으로 처리되었습니다.
- messageBox("정상적으로 ","I001");
- var rows = grd_doctabbrlist.rows;
- var fixedRows = grd_doctabbrlist.fixedRows;
- var dataRows = rows - fixedRows;
-
- for (var i = dataRows ; i>0; i--){
- if (model.getValue("/root/main/AbbrList["+i+"]/check") == "true"){
- model.setValue("/root/main/AbbrList["+i+"]/check","false");
- }
- }//for end
-
- model.removenode("/root/temp");
- model.makeNode("/root/temp");
- }//if end
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter4" navindex="6" visibility="hidden" style="left:489px; top:680px; width:80px; height:22px; ">
- <caption>신규저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //체크된 데이터만 가져온다.
- var nodeList = instance1.selectNodes("/root/main/AbbrList[check='true']");
- var rCSV = getNodeListCSV(nodeList);
-
- if( rCSV == "" || rCSV == null || rCSV == undefined){
- //messageBox("미예약 항목이 선택되지 않았습니다.", "E999", "");
- messageBox("신규입력할 항목이 선택되지", "E007");
- return false;
- }// if end
-
- if(messageBox("신규입력된 내용을 반영하시겠습니까?", "Q999") != 6) return false;
-
- model.resetInstanceNode("/root/send/updatedata");
- //model.setValue("/root/send/updatedata/datalist", rCSV);
- setCSVToNode("/root/temp", rCSV);
- instance1.selectSingleNode("/root/temp").xml;
-
- model.copyNode("/root/send/updatedata", "/root/temp");
-
- if(submit("TXPMB02603")){
- //정상적으로 처리되었습니다.
- messageBox("정상적으로 ","I001");
- var rows = grd_doctabbrlist.rows;
- var fixedRows = grd_doctabbrlist.fixedRows;
- var dataRows = rows - fixedRows;
-
- for (var i = dataRows ; i>0; i--){
- if (model.getValue("/root/main/AbbrList["+i+"]/check") == "true"){
- model.setValue("/root/main/AbbrList["+i+"]/check","false");
- }
- }//for end
-
- model.removenode("/root/temp");
- model.makeNode("/root/temp");
- }//if end
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" navindex="8" style="left:729px; top:680px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //화면 초기화
- model.resetInstanceNode("/root/main/AbbrList");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/temp");
- model.resetInstanceNode("/root/hidden");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" navindex="7" visibility="visible" style="left:673px; top:680px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //체크된 데이터만 가져온다.
- var nodeList = instance1.selectNodes("/root/main/AbbrList[check='true']");
- var rCSV = getNodeListCSV(nodeList);
-
- if( rCSV == "" || rCSV == null || rCSV == undefined){
- //messageBox("미예약 항목이 선택되지 않았습니다.", "E999", "");
- messageBox("수정할 항목이 선택되지", "E007");
- return false;
- }// if end
-
- if(messageBox("선택한 내용을 반영하시겠습니까?", "Q999") != 6) return false;
-
- model.resetInstanceNode("/root/send/updatedata");
- //model.setValue("/root/send/updatedata/datalist", rCSV);
- setCSVToNode("/root/temp", rCSV);
- instance1.selectSingleNode("/root/temp").xml;
-
- model.copyNode("/root/send/updatedata", "/root/temp");
-
- if(submit("TXPMB02604")){
- //정상적으로 처리되었습니다.
- messageBox("정상적으로 ","I001");
- var rows = grd_doctabbrlist.rows;
- var fixedRows = grd_doctabbrlist.fixedRows;
- var dataRows = rows - fixedRows;
-
- for (var i = dataRows ; i>0; i--){
- if (model.getValue("/root/main/AbbrList["+i+"]/check") == "true"){
- model.setValue("/root/main/AbbrList["+i+"]/check","false");
- }
- }//for end
-
- model.removenode("/root/temp");
- model.makeNode("/root/temp");
- submit("TRPMB02601");
- }//if end
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|