123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- <?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>
- <cond>
- <cpgno/>
- <cpghistseq/>
- <stepnm/>
- <formseq/>
- <formcd/>
- <formwritflag/>
- <cnstflag/>
- <cnstclsnm/>
- <recvdeptcd/>
- <recvuserid/>
- <cnstcnts/>
- <recvdeptnm/>
- </cond>
- <cnstforminfo>
- <cnstformlist/>
- </cnstforminfo>
- </main>
- <hidden/>
- <send>
- <reqdata/>
- </send>
- <init>
- <userlist/>
- <stepinfo/>
- <orddept/>
- </init>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- copyNodeListType("/root/init/stepinfo", "root/temp/steplist/stepinfo", "after", model, opener.model);
- var stepno = opener.model.getValue("/root/send/reqdata/stepno");
- model.setValue("/root/main/cond/stepnm", model.getValue("/root/init/stepinfo/stepinfo[stepno= " + "'" + stepno+ "'" + "]/stepnm"));
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A"); //부서코드 콤보
- var editmode = opener.javascript.getParameter("SPMQP03700_edit");
- if (isNull(editmode)) {
- model.setValue("/root/main/cond/cnstflag" , "1");
- model.toggle("case1");
- } else {
- var cnstflag = opener.javascript.getParameter("SPMQP03700_cnstflag");
- model.setValue("/root/main/cond/cnstflag" , cnstflag);
- model.setValue("/root/main/cond/formcd" , opener.javascript.getParameter("SPMQP03700_formcd"));
- model.setValue("/root/main/cond/cnstclsnm" , opener.javascript.getParameter("SPMQP03700_cnstclsnm"));
- model.setValue("/root/main/cond/recvdeptcd" , opener.javascript.getParameter("SPMQP03700_recvdeptcd"));
-
- model.setValue("/root/main/cond/cnstcnts" , opener.javascript.getParameter("SPMQP03700_cnstcnts"));
- if (cnstflag ="1" ) {
- cmb_user.disabled = false;
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", model.getValue("/root/main/cond/recvdeptcd"), "0330");
- model.setValue("/root/main/cond/recvuserid" , opener.javascript.getParameter("SPMQP03700_recvuserid"));
- model.toggle("case1");
- } else {
- model.toggle("case2");
- cmb_user.disabled = true;
- }
- }
- fGetCnstFormList() ;
- model.makeNode("/root/temp/cond");
- model.copyNode("/root/temp/cond", "/root/main/cond");
- ]]>
- </script>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMQP03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cnstforminfo"/>
- </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/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
- var sCNSTFORMLIST_PATH = "/root/main/cnstforminfo/cnstformlist";
- function fGetCnstFormList() {
- model.removenode("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/cnstflag", model.getValue("/root/main/cond/cnstflag"));
- submit("TRMQP03701");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="645" pageheight="535" guideline="1,1194;1,628;2,515;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <button id="button38" class="btn_sw" group="tab" selected="true" style="left:0px; top:3px; width:65px; height:22px; ">
- <caption>진료의뢰</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/cond/cnstflag" , "1");
- model.toggle("case1");
- fGetCnstFormList() ;
- ]]>
- </script>
- </button>
- <button id="button40" class="btn_sw" group="tab" style="left:66px; top:3px; width:84px; height:22px; ">
- <caption>지원부서의뢰</caption>
- <toggle case="Action" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/cond/cnstflag" , "3");
- model.toggle("case2");
- fGetCnstFormList() ;
- ]]>
- </script>
- </button>
- <caption id="cap_outlineinfo" class="tit_2" style="left:252px; top:10px; width:105px; height:13px; ">컨설트 등록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:240px; y2:25px; "/>
- <line id="line2" class="line_1" style="x1:243px; y1:25px; x2:625px; y2:25px; "/>
- <line id="line13" class="line_2" style="x1:240px; y1:78px; x2:625px; y2:78px; "/>
- <caption id="cap_slipnm2" class="cell_1" style="left:243px; top:54px; width:85px; height:23px; ">제목</caption>
- <line id="line3" class="line_2" style="x1:240px; y1:101px; x2:625px; y2:101px; "/>
- <caption id="caption1" class="cell_1" style="left:243px; top:78px; width:85px; height:23px; ">수신과</caption>
- <caption id="caption2" class="cell_1" style="left:243px; top:103px; width:85px; height:23px; ">수신자</caption>
- <line id="line7" class="line_2" style="x1:240px; y1:126px; x2:625px; y2:126px; "/>
- <caption id="caption3" class="cell_1" style="left:243px; top:128px; width:85px; height:362px; ">의뢰 내용</caption>
- <textarea id="textarea1" ref="/root/main/cond/cnstcnts" scroll="autovscroll" style="left:330px; top:129px; width:295px; height:362px; "/>
- <line id="line4" class="line_2" style="x1:240px; y1:52px; x2:625px; y2:52px; "/>
- <caption id="caption4" class="cell_1" style="left:243px; top:30px; width:85px; height:23px; ">스텝명</caption>
- <input id="ipt_cnstclsnm" ref="/root/main/cond/cnstclsnm" editable="false" appearance="input" style="left:330px; top:56px; width:295px; height:19px; "/>
- <switch id="switch1" style="left:0px; top:30px; width:240px; height:485px; ">
- <case id="case1" selected="true">
- <datagrid id="grd_cnstlist" nodeset="/root/main/cnstforminfo/cnstformlist" caption="진료과^caption2^caption3^caption1^caption4^caption5^caption6" colsep="^" colwidth="211, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:235px; height:480px; ">
- <col ref="cnstdeptnm"/>
- <col ref="cnstdeptcd" visibility="hidden"/>
- <col ref="formcd" visibility="hidden"/>
- <col ref="formnm" visibility="hidden"/>
- <col ref="cnstflag" visibility="hidden"/>
- <col ref="cnstclsnm" visibility="hidden"/>
- <col ref="replflag" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var recvdeptnm = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist.row + "]/cnstdeptnm");
- var recvdeptcd = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist.row + "]/cnstdeptcd");
- if( model.getValue("/root/main/cond/cnstflag") == "1" ){
- var cnstclsnm = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist.row + "]/cnstclsnm") + "(" + recvdeptnm + ")";
- }else{
- var cnstclsnm = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist.row + "]/cnstclsnm");
- }
- var formcd = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist.row + "]/formcd");
- model.setValue("/root/main/cond/recvdeptnm" , recvdeptnm);
- model.setValue("/root/main/cond/recvdeptcd" , recvdeptcd);
- model.setValue("/root/main/cond/cnstclsnm" , cnstclsnm);
- model.setValue("/root/main/cond/cnstcnts" , "");
- model.setValue("/root/main/cond/formcd" , formcd);
- var cnstflag = model.getValue("/root/main/cond/cnstflag");
- if (cnstflag ="1" ) {
- cmb_user.disabled = false;
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", model.getValue("/root/main/cond/recvdeptcd"), "0330");
- } else {
- cmb_user.disabled = true;
- }
- cmb_user.select(0);
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="grd_cnstlist2" nodeset="/root/main/cnstforminfo/cnstformlist" scroll="autovscroll" caption="분류^caption2^caption3^상세^caption4^caption5^caption6" colsep="^" colwidth="79, 0, 0, 142, 0, 0, 0" mergecells="bycol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:235px; height:480px; ">
- <col ref="cnstclsnm"/>
- <col ref="cnstdeptcd" visibility="hidden"/>
- <col ref="formcd" visibility="hidden"/>
- <col ref="formnm"/>
- <col ref="cnstflag" visibility="hidden"/>
- <col ref="cnstdeptnm" visibility="hidden"/>
- <col ref="replflag" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var recvdeptnm = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist2.row + "]/cnstdeptnm");
- var recvdeptcd = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist2.row + "]/cnstdeptcd");
- var cnstclsnm = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist2.row + "]/formnm");
- var formcd = model.getValue(sCNSTFORMLIST_PATH + "[" + grd_cnstlist2.row + "]/formcd");
- model.setValue("/root/main/cond/recvdeptnm" , recvdeptnm);
- model.setValue("/root/main/cond/recvdeptcd" , recvdeptcd);
- model.setValue("/root/main/cond/cnstclsnm" , cnstclsnm);
- model.setValue("/root/main/cond/formcd" , formcd);
-
- cmb_user.disabled = true;
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <select1 id="cmb_user" ref="/root/main/cond/recvuserid" appearance="minimal" style="left:330px; top:105px; width:295px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line5" class="line_2" style="x1:240px; y1:491px; x2:625px; y2:491px; "/>
- <button id="btn_attrapp" class="btn4_letter2" navindex="6" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:569px; top:492px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var formcd = model.getValue("/root/main/cond/formcd");
- var cnstflag = model.getValue("/root/main/cond/cnstflag");
- var cnstclsnm = model.getValue("/root/main/cond/cnstclsnm");
- var recvdeptcd = model.getValue("/root/main/cond/recvdeptcd");
- var recvuserid = model.getValue("/root/main/cond/recvuserid");
- var cnstcnts = model.getValue("/root/main/cond/cnstcnts");
-
- if (isNull(formcd)) {
- messageBox("진료과는 필수입니다.","");
- return;
- }
- if (isNull(cnstclsnm)) {
- messageBox("제목은 필수입니다.","");
- model.setFocus("ipt_cnstclsnm");
- return;
- }
- if (isNull(recvdeptcd)) {
- messageBox("수신과는 필수입니다.","");
- model.setFocus("cmb_orddept");
- return;
- }
- if (isNull(cnstcnts)) {
- messageBox("의뢰내용은 필수입니다.","");
- model.setFocus("textarea1");
- return;
- }
- var updateflag = compareNodeVal("/root/main/cond", "/root/temp/cond");
- if (updateflag == true) {
- opener.javascript.setParameter("SPMQP03700_rtn" , "Y");
- }
- opener.javascript.setParameter("SPMQP03700_formcd" , formcd);
- opener.javascript.setParameter("SPMQP03700_cnstflag" , cnstflag);
- opener.javascript.setParameter("SPMQP03700_cnstclsnm" , cnstclsnm);
- opener.javascript.setParameter("SPMQP03700_recvdeptcd" , recvdeptcd);
- opener.javascript.setParameter("SPMQP03700_recvuserid" , recvuserid);
- opener.javascript.setParameter("SPMQP03700_cnstcnts" , cnstcnts);
-
- model.close();
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/main/cond/stepnm" style="left:330px; top:31px; width:295px; height:19px; "/>
- <select1 id="cmb_orddept" ref="/root/main/cond/recvdeptcd" disabled="true" appearance="minimal" style="left:330px; top:81px; width:295px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </select1>
- </xhtml:body>
- </xhtml:html>
|