1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <prmsprcpsetinfo>
- <prmsprcpsetlist>
- <levl/>
- <setno/>
- <supsetno/>
- <sortno/>
- <setkindcd/>
- <setclscd/>
- <settrgtcd/>
- <setnm/>
- <settypecd/>
- <prtlno/>
- <ioflag/>
- </prmsprcpsetlist>
- </prmsprcpsetinfo>
- <iptbox>
- <setnm/>
- </iptbox>
- <prcp>
- <prcplist/>
- <status/>
- </prcp>
- <cond>
- <deptcd/>
- <setnm/>
- </cond>
- <steplist>
- <!--
- <stepinfo>
- <stepno>0</stepno>
- <setno/>
- <setnm/>
- <stepnm>전체</stepnm>
- <times/>
- </stepinfo>
- -->
- </steplist>
- <stepcond>
- <status/>
- <setnm/>
- <issneedyn/>
- <fromstepno/>
- <tostepno/>
- <setno/>
- <settypecd/>
- <cpgno/>
- <cpghistseq/>
- <setattrno/>
- <setattrhistno/>
- <steplistno/>
- <inqrno/>
- <qestno/>
- </stepcond>
- <essprcpsetinfo/>
- <pop_steplist>
- <pop_steplistno/>
- <pop_steplistnm/>
- </pop_steplist>
- </main>
- <init>
- <detlvw>p</detlvw>
- <msrght>
- <mouserghtprcp>
- <label>삭제</label>
- <func>fDelPrmsPrcp</func>
- </mouserghtprcp>
- <mouserghtprcp>
- <label>대체약 일괄변경</label>
- <func>fAltDrugAll</func>
- </mouserghtprcp>
- <mouserghtprcp>
- <label>대체약 선택폴더내 변경</label>
- <func>fAltDrugFolder</func>
- </mouserghtprcp>
- <mouserghtset>
- <label>새폴더</label>
- <func>fAddPrmsDiagSet</func>
- </mouserghtset>
- <mouserghtset>
- <label>이름바꾸기</label>
- <func>fUpdtPrmsDiagSet_INF</func>
- </mouserghtset>
- <mouserghtset>
- <label>삭제</label>
- <func>fDelPrmsDiagSet</func>
- </mouserghtset>
- <mouserghtset>
- <label/>
- <func/>
- </mouserghtset>
- <mouserghtset>
- <label>폴더복사</label>
- <func>fFolderCopy</func>
- </mouserghtset>
- <mouserghtset>
- <label>폴더붙여넣기</label>
- <func>fFolderPaste</func>
- </mouserghtset>
- <mouserghtset>
- <label/>
- <func/>
- </mouserghtset>
- <mouserghtset>
- <label>폴더순서변경</label>
- <func>fOpenPrmsSetFolderOrderChng</func>
- </mouserghtset>
- <mouserghtset2>
- <label>폴더복사</label>
- <func>fFolderCopy</func>
- </mouserghtset2>
- <mouserghtset2>
- <label>폴더붙여넣기</label>
- <func>fFolderPaste</func>
- </mouserghtset2>
- <mouserghtset3>
- <label>폴더복사</label>
- <func>fFolderCopy</func>
- </mouserghtset3>
- </msrght>
- <srchcond1/>
- <srchcond2>1</srchcond2>
- <srchcond3>P</srchcond3>
- <srchcond4>O</srchcond4>
- <payflagcd/>
- <grdwd>200</grdwd>
- <extngrdwd>718</extngrdwd>
- <grdnm>grd_promprcplist</grdnm>
- <orddept/>
- <autoflag/>
- </init>
- <hidden>
- <prmsprcpsetinfo>
- <prmsprcpsetlist>
- <status/>
- <levl/>
- <setno/>
- <supsetno/>
- <sortno/>
- <setkindcd/>
- <setclscd/>
- <settrgtcd/>
- <setnm/>
- <settypecd/>
- <prtlno/>
- <ioflag/>
- </prmsprcpsetlist>
- </prmsprcpsetinfo>
- <trv_value/>
- </hidden>
- <send>
- <reqdata/>
- <savedata/>
- <cond1/>
- <cond2/>
- <cond3/>
- <cond4/>
- <cond5/>
- <cond6/>
- <cond99/>
- </send>
- <result>
- <prcperrlist/>
- </result>
- <prcpdirec/>
- <prcpgroup/>
- <save>
- <prcp/>
- </save>
- <temp>
- <copy>
- <setno/>
- <settypecd/>
- <setkindcd/>
- <setclscd/>
- <settrgtcd/>
- <setnm/>
- <supsetno/>
- <trgtsettypecd/>
- <trgtsetkindcd/>
- <trgtsettrgtcd/>
- <trgtsetclscd/>
- <trgtioflag/>
- <ioflag/>
- </copy>
- </temp>
- <param>
- <prcpdd/>
- <insukind/>
- </param>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/prmsprcpsetinfo"/>
- <submission id="TXMMB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/prmsprcpsetinfo"/>
- <submission id="TRMMB00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prcp"/>
- <submission id="TXMMB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond1" resultref="/root/main/prcp"/>
- <submission id="TRMMB00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/deptlist"/>
- <submission id="TRMMB00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
- <submission id="TXMMB00607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/prmsprcpsetinfo"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcpgroup"/>
- <submission id="TRMMO00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcpdirec"/>
- <submission id="TRMMO00207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/addsetprcp"/>
- <submission id="TRMMO15701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/temp/patsupkind"/>
- <submission id="TRMQP03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/stepcond" resultref="/root/main/essprcpsetinfo"/>
- <submission id="TXMQP03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/essprcpsetinfo" resultref="/root/main/essprcpsetinfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if( opener.model.getValue ( "/root/cp" ) == "S" || opener.model.getValue ( "/root/cp" ) == "D" ){
- line8.attribute("x2") = "377px";
- trv_promprcpset.attribute("height") = "520px";
- grd_promprcplist.attribute("width") = "200px";
- grd_promprcplist.attribute("height") = "343px";
-
- }else if ( opener.model.getValue ( "/root/cp" ) == "Y" ) {
- //CP일 경우, viewer안의 컨트롤 height 사이즈를 모두 조정해야 함 (2008.08.28 JJE)
- opener.window.javascript.fResizeControls();
- }
-
- group1.attribute("height") = 0;
- model.removeNodeset ("/root/main/prcp/prcplist");
- model.setValue("/root/init/srchcond1", "P");
- model.setValue("/root/init/srchcond4", "O");
- model.makeValue("/root/send/reqdata/settypecd", opener.javascript.ivwPrcpUseFlag); //@@필수처방/약속처방모니터링
- model.makeValue("/root/send/reqdata/setkindcd", "D"); //@@P는 개인, D는 부서
- model.makeValue("/root/send/reqdata/setclscd" , "D"); //의사 SET
- model.makeValue("/root/send/reqdata/ioflag", "O"); //외래입원구분
- model.makeValue("/root/send/reqdata/procflag", "D"); //@@타과 악속SET 조회
- model.makeValue("/root/send/reqdata/deptcd", "1000000000"); //@@타과 악속SET 조회
- model.makeValue("/root/send/reqdata/deptnm", "병원"); //@@타과 악속SET 조회
-
- model.makeValue("/root/main/prmsprcpsetinfo/prmsprcpsetlist/procflag", "D"); //@@타과 악속SET 조회
- model.makeValue("/root/main/prmsprcpsetinfo/prmsprcpsetlist/deptcd", "1000000000"); //@@타과 악속SET 조회
- model.makeValue("/root/main/prmsprcpsetinfo/prmsprcpsetlist/deptnm", "병원"); //@@타과 악속SET 조회
-
- if ( opener.model.getValue("/root/initsrch/envinfo[qestcd='009']/answvalnm") == "입원") {
- model.setValue("/root/init/srchcond4", "I");
- model.makeValue("/root/send/reqdata/ioflag", "I"); //외래입원구분
- }
-
- if ( opener.model.getValue("/root/initsrch/envinfo[qestcd='010']/answvalnm") == "과") {
- model.setValue("/root/init/srchcond1", "D");
- model.makeValue("/root/send/reqdata/setkindcd", "D"); //P는 개인, D는 부서
- }
-
- if ( opener.model.getValue("/root/initsrch/envinfo[qestcd='010']/answvalnm") == "타과") {
- model.setValue("/root/init/srchcond1", "T");
- model.makeValue("/root/send/reqdata/setkindcd", "T"); //P는 개인, D는 부서
- }
-
- if(submit("TRMMB00601")){
- zbcfGetCodeList(new Array("M0029" ), new Array("/root/init/payflagcd"));
- //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/init/orddept", "depthngnm"); //부서코드 콤보 조회
- //2008. 06. 04 오지훈 진료부서 콤보 조회는 mmbfGetDeptCodeComboList로 변경
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "O");
- }
- trv_promprcpset.rebuild();
- cmb_deptset.disabled = true;
-
- model.refresh();
-
- //2008. 06. 12. 약속처방 재선택시, 기존의 조회내용 자동 선택기능
- //자동저장시에는 기존의 조회내용 자동선택 기능을 해제한다.
- if(opener.model.getValue("/root/init/prmsautoflag") != "Y"){
- var selectval = opener.javascript.getParameter("SMMMO02300_selectindex");
- var scrnopenflag = opener.javascript.getParameter("SMMMO02300_scrnopenflag")
- }else{
- var selectval = 0;
- var scrnopenflag = "Y";
- opener.model.setValue("/root/init/prmsautoflag", "N");
- }
-
- if(scrnopenflag == "Y"){
- var path = trv_promprcpset.getItemPath(selectval, "/");
- var curindex = 0;
- var node;
- for(var j = 0; j < path.length; j++){
- if(path.charAt(j) == '/'){
- node = path.substring(curindex, j);
- curindex = j+1;
- trv_promprcpset.expand(labelToIndex(node, trv_promprcpset), true);
- }
- }
- trv_promprcpset.select(selectval);
- }
-
- //자동저장시 처리 완료 이후에는 처방의 자동저장구분을 N으로 처리, 추후 탭변경시, 자동선택 기능 해제되는 것을 방지함
- opener.model.setValue("/root/init/prmsautoflag", "N");
-
- fInitSetAttrData();
-
- model.setValue("/root/main/stepcond/fromstepno", opener.javascript.stepNo);
- model.setValue("/root/main/stepcond/tostepno", opener.javascript.stepNo);
- model.setValue("/root/main/stepcond/cpgno", opener.javascript.cpgNo);
- model.setValue("/root/main/stepcond/cpghistseq", opener.javascript.cpgHistSeq);
-
- submit("TRMQP03801");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //스텝 리스트를 콤보박스 컴트롤에 mapping, 현재 선택된 스텝에 focusing
- function fInitSetAttrData(){
- //model.removeNodeset("/root/main/steplist/steplist");
- copyNodesetType ( "/root/main/steplist", "/root/temp/sortedsteplist" , "replace", model, opener.model);
- chk_steplistno1.refresh();
- chk_steplistno2.refresh();
-
- }
-
- //처방복사, CHC, 2009-06-22
- function fCopyPrcpSets(){
- var ndlst = instance1.selectNodes ( "/root/main/prcp/prcplist[ status='I' and prcpclscd='04']");
- if(ndlst != null && ndlst.length > 0 ){
- //20090209 마정민 수정. 홍은영선생님 요청 약속처방 저장 가능
- //messageBox("BMT지시처방은 지시처방검색을 통해서만 가능합니다", "I");
- //return ;
- }
- addPrcp ( "child", "/root/main/prcp/prcplist", "/root/main/prcp", "Y", "status", "I", grd_promprcplist, "N", "02");
- }
-
- function fSaveEssPrmsPrcpInfo(){
- var sCpgNo = model.getValue("/root/main/stepcond/cpgno");
- var sCpgHistSeq = model.getValue("/root/main/stepcond/cpghistseq");
- var sSetNo = model.getValue("/root/hidden/prmsprcpsetinfo/prmsprcpsetlist/setno");
- var sSetNm = model.getValue("/root/hidden/prmsprcpsetinfo/prmsprcpsetlist/setnm");
- var sSetSetTypeCd = model.getValue("/root/hidden/prmsprcpsetinfo/prmsprcpsetlist/settypecd");
-
- //저장 후 조회할 조건 정보
- model.makeValue("/root/send/essprcpsetinfo/condcpgno", sCpgNo);
- model.makeValue("/root/send/essprcpsetinfo/condcpghistseq", sCpgHistSeq);
- model.makeValue("/root/send/essprcpsetinfo/condfromstepno", model.getValue("/root/main/stepcond/fromstepno"));
- model.makeValue("/root/send/essprcpsetinfo/condtostepno", model.getValue("/root/main/stepcond/tostepno"));
-
- if( !submit("TXMQP03801", true) ){
- }
- }
-
- function fSizeControl_SetArray(){
- if( btn_sizecntl.attribute("class") == "icon_left"){
- btn_sizecntl.attribute("class") = "icon_right";
- trv_promprcpset.attribute("height") = "318px";
- grd_promprcpset.attribute("height") = "318px";
- grp_dummy2.attribute("left") = "0";
- grp_dummy2.attribute("width") = "387";
- grd_esslist.attribute("width") = "386";
- //grd_esslist.extendlastcol = "scroll";
- grd_esslist.colWidth(grd_esslist.colRef("steplistnm")) = parseInt(grd_esslist.colWidth(grd_esslist.colRef("steplistnm"))) + 100;
- }else{
- btn_sizecntl.attribute("class") = "icon_left";
- trv_promprcpset.attribute("height") = "545px";
- grd_promprcpset.attribute("height") = "545px";
-
- grp_dummy2.attribute("left") = "177";
- grp_dummy2.attribute("width") = "200";
- grd_esslist.attribute("width") = "199";
- //grd_esslist.extendlastcol = "";
- grd_esslist.colWidth(grd_esslist.colRef("steplistnm")) = parseInt(grd_esslist.colWidth(grd_esslist.colRef("steplistnm"))) - 100;
- }
- btn_sizecntl.refresh();
- grd_esslist.refresh();
-
- }
-
- function fUpdtPrmsDiagSet_INF(){
- var item = trv_promprcpset.item(trv_promprcpset.selectedIndex);
- if(item == null){return;}
- var currow = item.index + 1;
- var indx = trv_promprcpset.selectedIndex;
- var foldernm = model.getValue(sPRMSPRCPSETLIST + "[" + currow + "]/setnm");
- model.setValue("/root/main/iptbox/setnm", foldernm);
- model.refresh();
-
- fUpdtPrmsDiagSet();
- }
- ]]>
- </script>
- </model>
- <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/tfHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO02300.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- </xhtml:head>
- <xhtml:body overflow="hidden" guideline="1,890;2,636;">
- <group id="grp_dummy1" style="left:177px; top:402px; width:200px; height:225px; ">
- <datagrid id="datagrid1" caption="모니터링" colsep="^" colwidth="176" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:199px; height:225px; ">
- <col/>
- </datagrid>
- </group>
- <group id="grp_dummy2" style="left:177px; top:402px; width:200px; height:225px; ">
- <caption id="cap_slipnm2" class="cell_1" style="left:0px; top:0px; width:70px; height:23px; ">스텝구간</caption>
- <select1 id="combo2" ref="/root/main/stepcond/tostepno" visibility="hidden" appearance="minimal" style="left:90px; top:180px; width:23px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/steplist/info">
- <label ref="stepnm"/>
- <value ref="stepno"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRMQP03801");
- ]]>
- </script>
- </select1>
- <select1 id="combo1" ref="/root/main/stepcond/tostepno" visibility="hidden" appearance="minimal" style="left:70px; top:180px; width:23px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/steplist/info">
- <label ref="stepnm"/>
- <value ref="stepno"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRMQP03801");
- ]]>
- </script>
- </select1>
- <button id="button5" class="btn2_letter2" style="left:112px; top:180px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var selectedRows = instance1.selectNodes("/root/main/essprcpsetinfo/essprcpsetlist[status='U']");
- if( selectedRows.length > 0 ){
- //if( messageBox("선택한 선택필수 정보를", "Q001") == 6 ){
- model.makeNode("/root/send/essprcpsetinfo");
- copyNodeListType( "/root/send/essprcpsetinfo", "/root/main/essprcpsetinfo/essprcpsetlist[status='U']", "replace", model, model );
-
- fSaveEssPrmsPrcpInfo();
-
- model.removeNodeset("/root/send/essprcpsetinfo");
- //}
- }else{
- messageBox("수정된 데이터가", "I004");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter2" visibility="hidden" style="left:29px; top:179px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRMQP03801");
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter2" style="left:156px; top:180px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var selectedRows = grd_esslist.selectedRows;
- if( selectedRows > 0 ){
- if( messageBox("선택한 선택필수 정보를", "Q001") == 6 ){
- model.makeNode("/root/send/essprcpsetinfo");
-
- for (var i=selectedRows-1; i>=0; i--) {
- if ( model.getValue("/root/main/essprcpsetinfo/essprcpsetlist[" + grd_esslist.selectedrow(i) + "]/status") == "I" ) {
- model.removeNodeset("/root/main/essprcpsetinfo/essprcpsetlist[" + grd_esslist.selectedrow(i) + "]"); //remove
- }else if ( model.getValue("/root/main/essprcpsetinfo/essprcpsetlist[" + grd_esslist.selectedrow(i) + "]/status") == "I" ) {
- model.setValue("/root/main/essprcpsetinfo/essprcpsetlist[" + grd_esslist.selectedrow(i) + "]/status", "-");
- }else{
- model.setValue("/root/main/essprcpsetinfo/essprcpsetlist[" + grd_esslist.selectedrow(i) + "]/status", "D");
- }
- }
- copyNodeListType("/root/send/essprcpsetinfo", "/root/main/essprcpsetinfo/essprcpsetlist[status='D']", "replace", model, model);
-
- fSaveEssPrmsPrcpInfo();
-
- model.removeNodeset("/root/send/essprcpsetinfo");
- }
- }else{
- messageBox("선택된 데이터가", "I004");
- return;
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_esslist" nodeset="/root/main/essprcpsetinfo/essprcpsetlist" caption="^선택필수명^발행필^시작^종료^setno^settypecd^cpgno^cpghistseq^setattrno^setattrhistno^steplistno^스텝구간^inqrno^qestno" colsep="^" colwidth="18, 125, 42, 40, 40, 0, 0, 0, 0, 0, 0, 43, 80,0,0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:48px; width:199px; height:130px; ">
- <col disabled="true" ref="status" type="combo">
- <choices>
- <item>
- <label/>
- <value>-</value>
- </item>
- <item>
- <label>I</label>
- <value>I</value>
- </item>
- <item>
- <label>U</label>
- <value>U</value>
- </item>
- <item>
- <label>D</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="setnm" type="output"/>
- <col checkvalue="Y,N" ref="issneedyn" type="checkbox"/>
- <col ref="fromstepno" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/main/steplist/info">
- <label ref="stepnm"/>
- <value ref="stepno"/>
- </itemset>
- </choices>
- </col>
- <col ref="tostepno" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/main/steplist/info">
- <label ref="stepnm"/>
- <value ref="stepno"/>
- </itemset>
- </choices>
- </col>
- <col ref="setno"/>
- <col ref="settypecd"/>
- <col ref="cpgno"/>
- <col ref="cpghistseq"/>
- <col ref="setattrno"/>
- <col ref="setattrhistno"/>
- <col ref="steplistno" visibility="hidden"/>
- <col ref="steplistnm" type="inputbutton"/>
- <col ref="inqrno" visibility="hidden"/>
- <col ref="qestno" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var iRow = grd_esslist.row;
- if(iRow>0 && iRow <= grd_esslist.rows){
- var statusNode = instance1.selectSingleNode("/root/main/essprcpsetinfo/essprcpsetlist["+iRow+"]/status");
- if( statusNode != null && statusNode.text != "I" ) model.setValue(statusNode, "U");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var iRow = grd_esslist.row;
- if(iRow>0 && iRow <= grd_esslist.rows){
- opener.model.makeNode("/root/send/essprmsdata");
- opener.model.makeValue("/root/send/essprmsdata/cond1", model.getValue("/root/main/essprcpsetinfo/essprcpsetlist["+iRow+"]/setno"));
- opener.model.makeValue("/root/send/essprmsdata/cond2", model.getValue("/root/main/essprcpsetinfo/essprcpsetlist["+iRow+"]/settypecd"));
- opener.model.makeValue("/root/send/essprmsdata/cpyn", "N");
-
- opener.window.javascript.fGetEssPrmsPrcpList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var iRow = grd_esslist.row;
- model.setValue("/root/main/pop_steplist/pop_steplistno", model.getValue("/root/main/essprcpsetinfo/essprcpsetlist["+iRow+"]/steplistno"));
- model.setValue("/root/main/pop_steplist/pop_steplistnm", model.getValue("/root/main/essprcpsetinfo/essprcpsetlist["+iRow+"]/steplistnm"));
- pop_steplistno.attribute("left") = parseInt(grd_esslist.attribute("width")) - 122;
- btn_steplistno.attribute("left") = parseInt(grd_esslist.attribute("width")) - 15;
- pop_steplistno.visible = true;
- btn_steplistno.visible = true;
- btn_steplistno.refresh();
- chk_steplistno2.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="button8" class="btn2_letter2" style="left:157px; top:26px; width:42px; height:19px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sCpgNo = model.getValue("/root/main/stepcond/cpgno");
- var sCpgHistSeq = model.getValue("/root/main/stepcond/cpghistseq");
- var sSetNo = model.getValue("/root/hidden/prmsprcpsetinfo/prmsprcpsetlist/setno");
- var sSetNm = model.getValue("/root/hidden/prmsprcpsetinfo/prmsprcpsetlist/setnm");
- var sSetSetTypeCd = model.getValue("/root/hidden/prmsprcpsetinfo/prmsprcpsetlist/settypecd");
-
- //폴더 선택 했는지 체크
- if( isNull(trv_promprcpset.value) || isNull(sSetNo) ){
- messageBox("등록할 선택필수 폴더를", "C002");
- return;
- }
-
- model.setValue("/root/main/stepcond/status", "I");
- model.setValue("/root/main/stepcond/cpgno", sCpgNo);
- model.setValue("/root/main/stepcond/cpghistseq", sCpgHistSeq);
- model.setValue("/root/main/stepcond/setno", sSetNo);
- model.setValue("/root/main/stepcond/settypecd", sSetSetTypeCd);
- model.setValue("/root/main/stepcond/inqrno", "0");
- model.setValue("/root/main/stepcond/qestno", "0");
- model.setValue("/root/main/stepcond/setnm", sSetNm);
-
- //저장할 정보
- model.makeNode("/root/send/essprcpsetinfo");
- model.copyNode("/root/send/essprcpsetinfo", "/root/main/stepcond");
-
- fSaveEssPrmsPrcpInfo();
-
- model.removeNodeset("/root/send/essprcpsetinfo");
-
- opener.window.javascript.fInitMainAttList("D"); //"필수처방 미발행사유 문진" 추가에 따른 재조회
- ]]>
- </script>
- </button>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/stepcond/issneedyn" style="left:74px; top:27px; width:20px; height:20px; ">
- <hint>
- <![CDATA[발행필수여부]]>
- </hint>
- </bool>
- <caption id="caption3" class="cell_1" style="left:0px; top:24px; width:70px; height:23px; ">발행필수</caption>
- <button id="btn_sizecntl" class="icon_left" style="left:0px; top:179px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSizeControl_SetArray(); //btn_sizecntl.attribute("class") = "icon_right";
- ]]>
- </script>
- </button>
- <group id="grp_steplistno" style="left:75px; top:5px; width:120px; height:19px; ">
- <select id="chk_steplistno1" ref="/root/main/stepcond/steplistno" overflow="visible" appearance="full" rows="100" sep="," style="left:0px; top:0px; width:100px; height:90px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/main/steplist/info">
- <label ref="stepnm"/>
- <value ref="stepno"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*var steplistno = model.getValue("/root/main/stepcond/steplistno");
- if(!isNull(steplistno)){
- if( steplistno.substr(0, 1) == "0" ){
- }else{
- }
- }*/
- ]]>
- </script>
- </select>
- </group>
- <group id="pop_steplistno" visibility="hidden" style="left:76px; top:70px; width:120px; height:105px; border-style:solid; ">
- <select id="chk_steplistno2" ref="/root/main/pop_steplist/pop_steplistno" overflow="visible" appearance="full" rows="100" sep="," style="left:0px; top:0px; width:100px; height:99px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/main/steplist/info">
- <label ref="stepnm"/>
- <value ref="stepno"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var deptcd_tmp = model.getValue("/root/main/pop_steplist/pop_steplistno").split(",");
- var deptnm_tmp = "";
- var multideptnmlist = "";
- for(var i=0; i < deptcd_tmp.length; i++){
- deptnm_tmp = model.getValue( "/root/main/steplist/info[stepno='"+deptcd_tmp[i]+"']/stepnm" );
- multideptnmlist = multideptnmlist + deptnm_tmp + ",";
- }
- multideptnmlist = multideptnmlist.substr(0, multideptnmlist.length-1);
- model.setValue("/root/main/pop_steplist/pop_steplistnm", multideptnmlist);
- ]]>
- </script>
- </select>
- </group>
- <button id="btn_steplistno" class="icon_minus" visibility="hidden" style="left:184px; top:53px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_steplistno.visible = false;
- pop_steplistno.visible = false;
-
- var iRow = grd_esslist.row;
- if( iRow > 0 ){
- model.setValue("/root/main/essprcpsetinfo/essprcpsetlist["+iRow+"]/steplistno", model.getValue("/root/main/pop_steplist/pop_steplistno"));
- model.setValue("/root/main/essprcpsetinfo/essprcpsetlist["+iRow+"]/steplistnm", model.getValue("/root/main/pop_steplist/pop_steplistnm"));
- model.setValue("/root/main/essprcpsetinfo/essprcpsetlist["+iRow+"]/status", "U");
- }
- grd_esslist.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_stepscop" class="icon_plus" style="left:55px; top:5px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( btn_stepscop.attribute("class") == "icon_minus" ){
- grp_steplistno.attribute("height") = "19px";
- btn_stepscop.attribute("class") = "icon_plus";
- //btn_stepscop.refresh();
- }else{
- grp_steplistno.attribute("height") = "120px";
- btn_stepscop.attribute("class") = "icon_minus";
- }
- ]]>
- </script>
- </button>
- </group>
- <select1 id="rdo_srchcond3" ref="/root/init/srchcond3" visibility="hidden" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:11px; top:27px; width:155px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>약속처방</label>
- <value>P</value>
- </item>
- <item>
- <label>프로토콜</label>
- <value>C</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.resetInstanceNode("/root/temp/copy");
- var srchcond3 = model.getValue("/root/init/srchcond3");
- if(srchcond3 == "P"){
- model.setValue("/root/init/srchcond1", "P"); //개인으로 설정
- cmb_deptset.disabled = true;
- rdo_srchcond1.disabled = false;
- radio1.disabled = false;
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/settypecd", "P"); //P는 의사, C는 프로토콜
- model.makeValue("/root/send/reqdata/setkindcd", "P"); //P는 개인, D는 부서
- model.makeValue("/root/send/reqdata/setclscd" , "D"); //의사 SET
- model.makeValue("/root/send/reqdata/ioflag", model.getValue("/root/init/srchcond4")); //외래입원구분
- model.setValue("/root/main/cond/deptcd", "");
- submit("TRMMB00601", false);
- }else if(srchcond3 == "C"){
- model.setValue("/root/init/srchcond1", "T"); //타과로 설정
- cmb_deptset.disabled = false;
- rdo_srchcond1.disabled = true;
- radio1.disabled = true;
- model.makeValue("/root/send/reqdata/setkindcd", "D"); //부서
- model.makeValue("/root/send/reqdata/setclscd" , "D"); //의사
- model.makeValue("/root/send/reqdata/settypecd", srchcond3); //처방, 프로토콜
- model.makeValue("/root/send/reqdata/procflag", "D"); //처리구분(D: 부서SET을 조회)
- model.makeValue("/root/send/reqdata/deptcd", getUserInfo("dutplcecd"));
- model.makeValue("/root/send/reqdata/deptnm", cmb_deptset.label);
- model.makeValue("/root/send/reqdata/ioflag", model.getValue("/root/init/srchcond4")); //외래입원구분
- submit("TRMMB00601");
- }
- model.refresh();
- model.setValue(trv_promprcpset.attribute("ref"), "");
- trv_promprcpset.rebuild();
- ]]>
- </script>
- </select1>
- <line id="line8" class="line_1" style="x1:0px; y1:53px; x2:375px; y2:53px; "/>
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:375px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <datagrid id="grd_promprcplist" nodeset="/root/main/prcp/prcplist" scroll="auto" caption="^처방명^처방코드^총용량^총용량^수량^수량^횟수^일수^급비^용법검체^MIX^전달" colsep="^" colwidth="20, 176, 25, 40, 27, 37, 27, 40, 37, 70, 140, 38, 30" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:177px; top:58px; width:199px; height:343px; text-align:center; ">
- <col checkvalue="I,-" ref="status" type="checkbox"/>
- <col ref="prcpnm" style="text-align:left; "/>
- <col ref="prcpcd" visibility="hidden"/>
- <col ref="prcpvol"/>
- <col ref="prcpvolunitnm"/>
- <col ref="prcpqty"/>
- <col ref="prcpqtyunitnm"/>
- <col ref="prcptims"/>
- <col ref="prcpdayno"/>
- <col disabled="true" ref="payflagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/payflagcd/M0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="drugmthdspccdnm" style="text-align:left; "/>
- <col ref="prcpmixno"/>
- <col ref="prcpdelivefact"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fMouseRghtBtnPopupPrcp()
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //if( grd_promprcplist.isCell(event.target) && grd_promprcplist.row >= grd_promprcplist.fixedRows ){
- if(isDataCell()){
- //hsct지시처방일 경우 약속set에서 copy되지 않도록. by sonjy 2008-08-29
- if( model.getValue ( "/root/main/prcp/prcplist[" + grd_promprcplist.row + "]/prcpclscd" ) == "04" ) {
- //messageBox("BMT지시처방은 지시처방검색을 통해서만 가능합니다", "I");
- //return ;
- }
-
- model.setValue ( "/root/main/prcp/prcplist[" + grd_promprcplist.row + "]/status", "I" );
- //model.refresh();
- addPrcp( "child", "/root/main/prcp/prcplist", "/root/main/prcp", "N", "status", "I", grd_promprcplist, "N", "02");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( grd_promprcplist.isCell(event.target) && grd_promprcplist.row >= grd_promprcplist.fixedRows ){
- if ( grd_promprcplist.col != 0 ) {
- if ( model.getValue ( "/root/main/prcp/prcplist["+ grd_promprcplist.row +"]/status" ) == "-" ) {
- model.setValue ( "/root/main/prcp/prcplist["+ grd_promprcplist.row +"]/status", "I" );
- } else {
- model.setValue ( "/root/main/prcp/prcplist["+ grd_promprcplist.row +"]/status", "-" );
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_promprcpset" nodeset="/root/main/set/promprcpset" caption="SET" colsep="^" colwidth="149" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:0px; top:58px; width:178px; height:403px; text-align:center; ">
- <col ref="setnm"/>
- </datagrid>
- <treeview id="trv_promprcpset" ref="/root/hidden/trv_value" dragmode="true" dropmode="true" expanddepth="1" fullrowselect="false" image="../../../com/commonweb/images/icon_folder_close.gif" itemsettype="depth" selectedimage="../../../com/commonweb/images/icon_folder_open.gif" style="left:0px; top:82px; width:177px; height:545px; border-color:#c7a3cf; border-style:solid; ">
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fMouseRghtBtnPopupSet();
- ]]>
- </script>
- <itemset nodeset="/root/main/prmsprcpsetinfo/prmsprcpsetlist">
- <label ref="setnm"/>
- <value ref="setno"/>
- <depth ref="levl"/>
- </itemset>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //db click시 treeview 펼치기
- var indx = trv_promprcpset.selectedIndex;
- fReqPrmsDetlSet();
-
- model.makeValue("/root/hidden/prmsprcpsetinfo/prmsprcpsetlist/procflag", "D"); //@@타과 악속SET 조회
- model.makeValue("/root/hidden/prmsprcpsetinfo/prmsprcpsetlist/deptcd", "1000000000"); //@@타과 악속SET 조회
- model.makeValue("/root/hidden/prmsprcpsetinfo/prmsprcpsetlist/deptnm", "병원"); //@@타과 악속SET 조회
-
- trv_promprcpset.expand(indx, true);
- trv_promprcpset.refresh();
-
- opener.javascript.setParameter("SMMMO02300_selectindex" , trv_promprcpset.selectedIndex);
- opener.javascript.setParameter("SMMMO02300_scrnopenflag", "Y");
-
-
- if ( opener.model.getValue("/root/initsrch/envinfo[qestcd='008']/answvalnm") == "Y") {
- fCopyPrcpSets();
- }
- ]]>
- </script>
- </treeview>
- <group id="group1" style="left:6px; top:175px; width:164px; height:55px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
- <caption id="caption4" style="left:5px; top:5px; width:41px; height:20px; font-weight:bold; vertical-align:middle; ">폴더명</caption>
- <input id="ipt_setnm" ref="/root/main/iptbox/setnm" class="input_default" style="left:55px; top:5px; width:104px; height:19px; border-color:#3366ff; border-style:solid; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_cnfm", "DOMActivate");
- var keycode = event.keyCode;
- if(keycode == 27){
- group1.attribute("height") = 0;
- model.setFocus("trv_promprcpset");
- return;
- }
- ]]>
- </script>
- </input>
- <button id="btn_cnfm" class="btn2_letter2" style="left:73px; top:26px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var indx = trv_promprcpset.selectedIndex;
- group1.attribute("height") = 0;
- model.setFocus("trv_promprcpset");
- model.refresh();
-
- fSavePrmsDiagSet();
-
- //폴더 저장 이후, 저장된 폴더에 focus를 주기
- //indx == 0인 경우는 최상위 폴더, treeview의 맨 마지막 폴더가 신규로 생성된 폴더이다.
- if(indx == 0){
- trv_promprcpset.select(trv_promprcpset.length - 1);
- //하위 폴더의 경우, 신규로 생성될 폴더의 부모폴더를 찾고 폴더를 펼친다.
- //하위 폴더의 마지막 폴더가 신규로 생성된 폴더(+haschilditem())이다.
- }else{
- var path = trv_promprcpset.getItemPath(indx, "/");
- var curindex = 0;
- var node;
- for(var j = 0; j < path.length; j++){
- if(path.charAt(j) == '/'){
- node = path.substring(curindex, j);
- curindex = j+1;
- trv_promprcpset.expand(labelToIndex(node, trv_promprcpset), true);
- }
- }
- var treeitem = trv_promprcpset.item(indx);
- trv_promprcpset.select(indx + treeitem.haschilditem());
- trv_promprcpset.expand(indx , true);
- }
- trv_promprcpset.refresh();
-
- //처방화면에서 폴더선택하지 않고 바로 등록을 처리한 경우(autoflag:Y)
- //신규로 생성된 폴더에 처방을 등록함
- if(model.getValue("/root/init/autoflag") == "Y"){
- fPrmsSave();
- model.setValue("/root/init/autoflag", "N");
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter2" style="left:117px; top:26px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group1.attribute("height") = 0;
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_srchprcp" class="btn1_letter2" style="left:309px; top:4px; width:56px; height:22px; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var setnm = model.getValue("/root/main/cond/setnm");
- for(var i = 1; i <= trv_promprcpset.length; i++){
- var cmpsetnm = model.getValue("/root/main/prmsprcpsetinfo/prmsprcpsetlist[" + i + "]/setnm");
- if(setnm == cmpsetnm){
- break;
- }
- }
- var path = trv_promprcpset.getItemPath(i-1, "/");
- var curindex = 0;
- var node;
- for(var j = 0; j < path.length; j++){
- if(path.charAt(j) == '/'){
- node = path.substring(curindex, j);
- curindex = j+1;
- trv_promprcpset.expand(labelToIndex(node, trv_promprcpset), true);
- }
- }
- trv_promprcpset.select(i-1);
- ]]>
- </script>
- </button>
- <input id="ipt_srchsetnm" ref="/root/main/cond/setnm" style="left:135px; top:6px; width:156px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_srchprcp", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="rdo_srchcond1" ref="/root/init/srchcond1" visibility="hidden" appearance="full" cellspacing="8" cols="3" overflow="visible" style="left:0px; top:30px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>개인</label>
- <value>P</value>
- </item>
- <item>
- <label>과</label>
- <value>D</value>
- </item>
- <item>
- <label>타과</label>
- <value>T</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- radio1.disabled = false;
- var srchcond1 = model.getValue ( "/root/init/srchcond1" ); //P는 의사, D는 부서, C는 프로토콜(부서);
- if ( srchcond1 == "P" ) { //의사차벙(개인)
- cmb_deptset.disabled = true;
- model.setValue("/root/main/cond/deptcd", "");
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/settypecd", "P"); //P는 의사, C는 프로토콜
- model.makeValue("/root/send/reqdata/setkindcd", "P"); //P는 개인, D는 부서
- model.makeValue("/root/send/reqdata/setclscd" , "D"); //의사 SET
- model.makeValue("/root/send/reqdata/ioflag", model.getValue("/root/init/srchcond4")); //외래입원구분
- submit("TRMMB00601", false);
- } else if ( srchcond1 == "D" ) { //의사처방(부서)
- cmb_deptset.disabled = true;
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/settypecd", "P"); //P는 의사, C는 프로토콜
- model.makeValue("/root/send/reqdata/setkindcd", "D"); //P는 개인, D는 부서
- model.makeValue("/root/send/reqdata/setclscd" , "D"); //의사 SET
- model.makeValue("/root/send/reqdata/ioflag", model.getValue("/root/init/srchcond4")); //외래입원구분
- submit("TRMMB00601", false);
- } else if ( srchcond1 == "C" ) { //프로토콜 처방(부서)
- cmb_deptset.disabled = false;
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/settypecd", "C"); //P는 의사, C는 프로토콜
- model.makeValue("/root/send/reqdata/setkindcd", "D"); //P는 개인, D는 부서
- model.makeValue("/root/send/reqdata/setclscd" , "D"); //의사 SET
- submit("TRMMB00601", false);
- } else if ( srchcond1 == "T" ) { //타과
- cmb_deptset.disabled = false;
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/setkindcd", "D"); //부서
- model.makeValue("/root/send/reqdata/setclscd" , "D"); //의사
- model.makeValue("/root/send/reqdata/settypecd", "P"); //처방
- model.makeValue("/root/send/reqdata/ioflag", model.getValue("/root/init/srchcond4")); //외래입원구분
- model.removeNodeset("/root/main/prmsprcpsetinfo/prmsprcpsetlist");
- }
- model.removeNodeset ( "/root/main/prcp/prcplist" );
- model.refresh();
- model.setValue(trv_promprcpset.attribute("ref"), "");
- trv_promprcpset.rebuild();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_deptset" ref="/root/main/cond/deptcd" visibility="hidden" appearance="minimal" style="left:11px; top:30px; width:155px; 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[
- var srchcond3 = model.getValue("/root/init/srchcond3");
- var deptcd = model.getValue("/root/main/prmsprcp/cond/deptcd");
- if(deptcd != "-"){
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/setkindcd", "D"); //부서
- model.makeValue("/root/send/reqdata/setclscd" , "D"); //의사
- model.makeValue("/root/send/reqdata/settypecd", srchcond3); //처방, 프로토콜
- model.makeValue("/root/send/reqdata/procflag", "D"); //처리구분(D: 부서SET을 조회)
- model.makeValue("/root/send/reqdata/deptcd", model.getValue("/root/main/cond/deptcd"));
- model.makeValue("/root/send/reqdata/deptnm", cmb_deptset.label);
- model.makeValue("/root/send/reqdata/ioflag", model.getValue("/root/init/srchcond4"));
- submit("TRMMB00601");
- }
- model.setValue(trv_promprcpset.attribute("ref"), "");
- trv_promprcpset.rebuild();
- ]]>
- </script>
- </select1>
- <select1 id="radio1" ref="/root/init/srchcond4" appearance="full" cellspacing="8" cols="3" overflow="visible" style="left:10px; top:5px; width:110px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var setkindcd = model.getValue("/root/init/srchcond1");
- if(setkindcd == "T"){
- setkindcd = "D";
- }
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/settypecd", opener.javascript.ivwPrcpUseFlag); //@@필수처방/약속처방모니터링
- model.makeValue("/root/send/reqdata/setkindcd", "D"); //@@P는 개인, D는 부서
- model.makeValue("/root/send/reqdata/setclscd" , "D"); //의사 SET
- model.makeValue("/root/send/reqdata/procflag", "D"); //처리구분(D: 부서SET을 조회)
- model.makeValue("/root/send/reqdata/deptcd", "1000000000");
- model.makeValue("/root/send/reqdata/deptnm", "병원");
-
- model.makeValue("/root/send/reqdata/ioflag", radio1.value); //외래입원구분
- model.removeNodeset("/root/main/prmsprcpsetinfo/prmsprcpsetlist");
- submit("TRMMB00601", false);
- model.setValue(trv_promprcpset.attribute("ref"), "");
- trv_promprcpset.rebuild();
- ]]>
- </script>
- </select1>
- <shape id="rectangle1" visibility="hidden" appearance="rectangle" style="left:5px; top:243px; width:165px; height:52px; color:#99ccff; background-color:#99ccff; "/>
- <button id="button2" class="btn2_letter2" visibility="hidden" style="left:78px; top:270px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var indx = trv_promprcpset.selectedIndex;
- rectangle1.attribute("visibility") = "hidden";
- caption1.attribute("visibility") = "hidden";
- input1.attribute("visibility") = "hidden";
- button2.attribute("visibility") = "hidden";
- button4.attribute("visibility") = "hidden";
- model.setFocus("trv_promprcpset");
- model.refresh();
-
- //약속처방 자동 저장시 부모폴더 번호 1을 설정해줘야함
- model.setValue(sPRMSPRCPSETLIST_HIDDEN + "/status" , "i");
- model.setValue(sPRMSPRCPSETLIST_HIDDEN + "/supsetno", 1);
-
- fSavePrmsDiagSet();
-
- //폴더 저장 이후, 저장된 폴더에 focus를 주기
- //indx == 0인 경우는 최상위 폴더, treeview의 맨 마지막 폴더가 신규로 생성된 폴더이다.
- if(indx == 0){
- trv_promprcpset.select(trv_promprcpset.length - 1);
- //하위 폴더의 경우, 신규로 생성될 폴더의 부모폴더를 찾고 폴더를 펼친다.
- //하위 폴더의 마지막 폴더가 신규로 생성된 폴더(+haschilditem())이다.
- }else{
- var path = trv_promprcpset.getItemPath(indx, "/");
- var curindex = 0;
- var node;
- for(var j = 0; j < path.length; j++){
- if(path.charAt(j) == '/'){
- node = path.substring(curindex, j);
- curindex = j+1;
- trv_promprcpset.expand(labelToIndex(node, trv_promprcpset), true);
- }
- }
- var treeitem = trv_promprcpset.item(indx);
- trv_promprcpset.select(indx + treeitem.haschilditem());
- trv_promprcpset.expand(indx , true);
- }
- trv_promprcpset.refresh();
-
- //처방화면에서 폴더선택하지 않고 바로 등록을 처리한 경우(autoflag:Y)
- //신규로 생성된 폴더에 처방을 등록함
- if(model.getValue("/root/init/autoflag") == "Y"){
- fPrmsSave();
- model.setValue("/root/init/autoflag", "N");
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter2" visibility="hidden" style="left:122px; top:270px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rectangle1.attribute("visibility") = "hidden";
- caption1.attribute("visibility") = "hidden";
- input1.attribute("visibility") = "hidden";
- button2.attribute("visibility") = "hidden";
- button4.attribute("visibility") = "hidden";
- model.setValue("/root/init/autoflag", "N");
- trv_promprcpset.deselect();
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption1" visibility="hidden" style="left:11px; top:250px; width:41px; height:20px; font-weight:bold; vertical-align:middle; ">폴더명</caption>
- <input id="input1" ref="/root/main/iptbox/setnm" class="input_default" visibility="hidden" style="left:62px; top:248px; width:104px; height:19px; border-color:#3366ff; border-style:solid; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("button2", "DOMActivate");
- var keycode = event.keyCode;
- if(keycode == 27){
- rectangle1.attribute("visibility") = "hidden";
- caption1.attribute("visibility") = "hidden";
- input1.attribute("visibility") = "hidden";
- button2.attribute("visibility") = "hidden";
- button4.attribute("visibility") = "hidden";
- model.setFocus("trv_promprcpset");
- return;
- }
- ]]>
- </script>
- </input>
- <button id="button26" class="btn2_letter4" style="left:177px; top:32px; width:64px; height:19px; ">
- <caption>선택취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for ( i = 1; i < grd_promprcplist.rows; i++ ) {
- model.setValue( "/root/main/prcp/prcplist[" + i + "]/status" ,"-");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter4" style="left:244px; top:32px; width:64px; height:19px; ">
- <caption>상세보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fIvwDetlVwCom("prms");
- ]]>
- </script>
- </button>
- <button id="btn_copy" class="btn5_letter4" style="left:311px; top:32px; width:64px; height:19px; ">
- <caption>처방복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCopyPrcpSets();
- ]]>
- </script>
- </button>
- <button id="button31" class="btn2_letter4" style="left:110px; top:32px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for ( i = 1; i < grd_promprcplist.rows; i++ ) {
- model.setValue( "/root/main/prcp/prcplist[" + i + "]/status" ,"I");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|