123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <orddeptlist>
- <item>
- <orddeptcd/>
- <orddeptnm/>
- </item>
- </orddeptlist>
- <subjlist>
- <item>
- <subjno/>
- <stdysubjnm/>
- </item>
- </subjlist>
- <prtllist>
- <itemin>
- <prtlcd/>
- <prtlnm/>
- <drugprid/>
- <insuqualid/>
- <insuqualdt/>
- <ordqualid/>
- <ordqualdt/>
- <pharmqualid/>
- <pharmqualdt/>
- <remark/>
- <drugstage/>
- <drugcycle/>
- </itemin>
- <itemout>
- <prtlcd/>
- <prtlnm/>
- <drugprid/>
- <insuqualid/>
- <insuqualdt/>
- <ordqualid/>
- <ordqualdt/>
- <pharmqualid/>
- <pharmqualdt/>
- <remark/>
- <drugstage/>
- <drugcycle/>
- </itemout>
- </prtllist>
- <prtlprcplist>
- <item>
- <drugseq/>
- <drugtt/>
- <prcpmixno/>
- <prcpcd/>
- <prcpnm/>
- <payflagcd/>
- <volkind/>
- <bsavol/>
- <kgvol/>
- <prcpvol/>
- <prcpvolunitnm/>
- <prcpqty/>
- <prcpqtyunitnm/>
- <drugspd/>
- <drugspdunitnm/>
- <prcptims/>
- <drugmthdspccd/>
- <prnprcpflag/>
- <remark/>
- <nursrem/>
- <prcpexecdeptcd/>
- <ordseqno/>
- <prcpvolunitflag/>
- <prcpqtyunitflag/>
- <drugspdunitflag/>
- <volrate/>
- </item>
- </prtlprcplist>
- <prtlinfo>
- <item>
- <fromday/>
- <prtlterm/>
- <rgstdd/>
- </item>
- </prtlinfo>
- </main>
- <send>
- <srchdata>
- <srchsubjno/>
- <srchflag>1</srchflag>
- <srchsubjendyn>A</srchsubjendyn>
- <subjno/>
- <ioflag>I</ioflag>
- <orddeptcd/>
- <sickclscd/>
- <prtlcd/>
- <cnfmyn/>
- <prtldg/>
- </srchdata>
- <prtlinfo>
- <item/>
- </prtlinfo>
- <req>
- <prtlprcpdata/>
- </req>
- <prcpdata>
- <cond1/>
- <cond2/>
- <cond3/>
- <cond4>11</cond4>
- </prcpdata>
- </send>
- <init>
- <comboitem>
- <payflagcd>
- <P0104>
- <cdid/>
- <cdnm/>
- </P0104>
- </payflagcd>
- </comboitem>
- </init>
- <hidden>
- <ret>
- <item/>
- </ret>
- <receivemthd>/root/hidden/mthdcd</receivemthd>
- <receivedrugcd>/root/hidden/drugcd</receivedrugcd>
- <drugcd/>
- <mthdcd/>
- <prcpinfo/>
- </hidden>
- <temp>
- <receivedata>
- <receiveref/>
- <srchflag/>
- <srchcnts/>
- <drugkind/>
- </receivedata>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList( new Array("P0104"), new Array("/root/init/comboitem/payflagcd") );
- submit("TRATR00101");
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRADB00803" ref="/root/send/srchdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/prtllist"/>
- <submission id="TRADB00804" ref="/root/send/srchdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/prtlinfo"/>
- <submission id="TRADB00805" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/prtlprcplist"/>
- <submission id="TRADB00806" ref="/root/send/prcpdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden/prcpinfo"/>
- <submission id="TRADB00807" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TXADB00801" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TXADB00802" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TXADB00803" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TRATR00101" ref="/root/send/srchdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/subjlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- function DOMActivate(){
- //event.stopPropagation();
- var controlObj = document.controls(event.currentTarget);
- if (controlObj != null){
- var btn_text =controlObj.text;
- if ( btn_text.substring(0,1)=="D" ){
- model.setValue( "/root/send/srchdata/prtldg" ,btn_text.substring(1, btn_text.length) );
- submit("TRADB00805");
- /*if (grd_prtlprcp.rows<20){
- for ( var i = 0; i< 20-grd_prtlprcp.rows; i++){
- grd_prtlprcp.addItem();
- }
- grd_prtlprcp.refresh();
- }*/
- }
- }
- return;
- }
-
- function fSaveData(){
- model.copyNode( "/root/send/prtlinfo/item","root/main/prtlinfo/item");
- model.setValue("/root/send/req/prtlprcpdata",grd_prtlprcp.getUpdateData());
- submit("TXADB00801");
- submit("TXADB00802");
- submit("TRADB00805");
- }
-
- function fSetTab(){
- var fromday = model.getValue("/root/main/prtlinfo/item/fromday");
- var terms = model.getValue("/root/main/prtlinfo/item/prtlterm");
- if (fromday=="") {
- return false;
- }
- for ( var i =0; i<27 ; i++){
- (document.controls("btn_d" +(i+1))).visible=false;
- }
- for ( var i =0; i<terms ; i++){
- (document.controls("btn_d" +(i+1))).text = "D" + (parseInt(fromday,10)+i);
- (document.controls("btn_d" +(i+1))).visible=true;
- }
-
- }
-
- function fSetPrcpCd(){
- /* 수가조회 */
- model.setValue("/root/send/prcpdata/cond1",model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpcd"));
- model.setValue("/root/send/prcpdata/cond2","-");
- model.setValue("/root/send/prcpdata/cond3", getCurrentDate() );
- submit("TRADB00806");
-
- if (model.getValue("/root/hidden/prcpinfo/prcplist/prcpcd")=="" ) {
- return;
- }
- /* 수가조회후 정보 셋팅 */
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpcd", model.getValue("/root/hidden/prcpinfo/prcplist/prcpcd"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpnm", model.getValue("/root/hidden/prcpinfo/prcplist/prcpnm"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/payflagcd", model.getValue("/root/hidden/prcpinfo/prcplist/payflagcd"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpvol", model.getValue("/root/hidden/prcpinfo/prcplist/prcpvol"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpqty", model.getValue("/root/hidden/prcpinfo/prcplist/prcpqty"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcptims", model.getValue("/root/hidden/prcpinfo/prcplist/prcptims"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/drugmthdspccd", model.getValue("/root/hidden/prcpinfo/prcplist/drugmthdspccd"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpvolunitnm", model.getValue("/root/hidden/prcpinfo/prcplist/prcpvolunitnm"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpvolunitflag", model.getValue("/root/hidden/prcpinfo/prcplist/prcpvolunitflag"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpqtyunitnm", model.getValue("/root/hidden/prcpinfo/prcplist/prcpqtyunitnm"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpqtyunitflag", model.getValue("/root/hidden/prcpinfo/prcplist/prcpqtyunitflag"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/drugspdunitnm", model.getValue("/root/hidden/prcpinfo/prcplist/drugspdunitnm"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/drugspdunitflag", model.getValue("/root/hidden/prcpinfo/prcplist/drugspdunitflag"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpexecdeptcd", model.getValue("/root/hidden/prcpinfo/prcplist/prcpexecdeptcd"));
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/volrate", model.getValue("/root/hidden/prcpinfo/prcplist/drugcntsvol"));
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">임상 프로토콜 내역 등록</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <input id="input7" ref="/root/main/prtlinfo/item/rgstdd" class="input_default" inputtype="date" style="left:360px; top:261px; width:100px; height:19px; "/>
- <button id="button1" class="btn5_letter4" visibility="visible" style="left:972px; top:265px; width:64px; height:19px; ">
- <caption>전체복사</caption>
- </button>
- <button id="button2" class="btn2_letter5" visibility="visible" style="left:777px; top:265px; width:75px; height:19px; ">
- <caption>처방별 조회</caption>
- </button>
- <button id="button3" class="btn5_letter4" visibility="visible" style="left:1040px; top:265px; width:64px; height:19px; ">
- <caption>일자복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group5.visible= true;
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter6" visibility="visible" style="left:575px; top:265px; width:86px; height:19px; ">
- <caption>프로토콜 조회</caption>
- </button>
- <button id="button5" class="btn5_letter6" visibility="visible" style="left:1108px; top:265px; width:86px; height:19px; ">
- <caption>외래입원복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("외래입원복사를 ","Q004")==6 ) {
- submit("TXADB00803");
- }
- ]]>
- </script>
- </button>
- <group id="group2" style="left:0px; top:5px; width:1195px; height:230px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:225px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:675px; top:11px; width:130px; height:17px; ">프로토콜정보 :</caption>
- <caption id="caption2" class="search_name" style="left:10px; top:11px; width:91px; height:17px; ">과제정보 :</caption>
- <switch id="switch1" style="left:675px; top:55px; width:510px; height:165px; ">
- <case id="case1" selected="true">
- <datagrid id="grd_prtlin" nodeset="/root/main/prtllist/itemin" caption="코드^코드명^시행차수" colwidth="76, 343, 62" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:0px; width:505px; height:160px; ">
- <col ref="prtlcd"/>
- <col ref="prtlnm"/>
- <col ref="ordqualid"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/srchdata/ioflag","I");
- model.setValue("/root/send/srchdata/prtlcd",model.getValue("/root/main/prtllist/itemin["+grd_prtlin.row+"]/prtlcd"));
-
- submit("TRADB00804");
- model.removeNodeset("/root/main/prtlprcplist/item");
- model.setValue("/root/send/srchdata/prtldg","");
- model.refresh();
- fSetTab();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="grd_prtlout" nodeset="/root/main/prtllist/itemout" caption="코드^코드명^투여주기^보험팀확인^보험팀확인일시^진료확인^진료확인일시^약제팀확인^약제팀확인일시^Remark^투여단계^Cycle" colwidth="76, 208, 60, 83, 100, 62, 100, 77, 100, 100, 61, 57" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:0px; width:905px; height:160px; ">
- <col ref="prtlcd"/>
- <col ref="prtlnm"/>
- <col ref="drugprid"/>
- <col ref="insuqualid"/>
- <col ref="insuqualdt"/>
- <col ref="ordqualid"/>
- <col ref="ordqualdt"/>
- <col ref="pharmqualid"/>
- <col ref="pharmqualdt"/>
- <col ref="remark"/>
- <col ref="drugstage"/>
- <col ref="drugcycle"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/srchdata/ioflag","O");
- model.setValue("/root/send/srchdata/prtlcd",model.getValue("/root/main/prtllist/itemout["+grd_prtlout.row+"]/prtlcd"));
- submit("TRADB00804");
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="button11" class="btn_sw" group="iotab" selected="true" style="left:676px; top:34px; width:60px; height:22px; ">
- <caption>입원</caption>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <button id="button12" class="btn_sw" group="iotab" style="left:735px; top:34px; width:60px; height:22px; ">
- <caption>외래</caption>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- <button id="button14" class="btn2_letter2" visibility="visible" style="left:1100px; top:35px; width:42px; height:19px; ">
- <caption>추가</caption>
- </button>
- <button id="button19" class="btn2_letter2" visibility="visible" style="left:1143px; top:35px; width:42px; height:19px; ">
- <caption>삭제</caption>
- </button>
- <datagrid id="grd_subjlist" nodeset="/root/main/subjlist/item" caption="과제코드^과제명" colwidth="100, 531" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:10px; top:55px; width:660px; height:160px; ">
- <col ref="subjno"/>
- <col ref="stdysubjnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( grd_subjlist.row>0){
- model.setValue("/root/send/srchdata/sickclscd",model.getValue("/root/main/sicklist/item["+grd_subjlist.row+"]/sickclscd"));
- submit("TRADB00803");
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <caption id="caption12" class="cell_1" style="left:0px; top:260px; width:55px; height:23px; vertical-align:middle; ">시작일</caption>
- <button id="button52" class="btn2_letter3" style="left:1031px; top:299px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_prtlprcp.addItem();
-
- /* 투약순서 셋팅 */
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/drugseq", grd_prtlprcp.rows-1);
- ]]>
- </script>
- </button>
- <line id="line1" class="line_2" style="x1:0px; y1:285px; x2:1195px; y2:285px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:239px; width:135px; height:13px; ">프로토콜 내역</caption>
- <button id="button53" class="btn2_letter3" visibility="visible" style="left:1141px; top:299px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_prtlprcp.addStatus(grd_prtlprcp.row,"delete");
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/prtlinfo/item/prtlterm" class="input_search" maxlength="2" style="left:215px; top:261px; width:40px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTab();
- ]]>
- </script>
- </input>
- <caption id="caption6" class="cell_1" style="left:115px; top:260px; width:95px; height:23px; vertical-align:middle; ">프로토콜 기간</caption>
- <button id="button10" class="btn2_letter8" visibility="visible" style="left:665px; top:265px; width:108px; height:19px; ">
- <caption>신규프로토콜 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMADB00900", 0,20,10,"SMADB00900");
- ]]>
- </script>
- </button>
- <button id="button54" class="btn2_letter3" visibility="visible" style="left:1086px; top:299px; width:53px; height:19px; ">
- <caption>행복사</caption>
- </button>
- <caption id="caption7" class="cell_1" style="left:260px; top:260px; width:95px; height:23px; vertical-align:middle; ">등록일자</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:255px; x2:1195px; y2:255px; "/>
- <input id="input2" ref="/root/main/prtlinfo/item/fromday" class="input_search" maxlength="3" style="left:60px; top:261px; width:45px; height:19px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:742px; x2:1195px; y2:742px; "/>
- <button id="btn_d1" class="btn_sw" visibility="hidden" group="tab" style="left:3px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d2" class="btn_sw" visibility="hidden" group="tab" style="left:40px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d3" class="btn_sw" visibility="hidden" group="tab" style="left:77px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d4" class="btn_sw" visibility="hidden" group="tab" style="left:114px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d5" class="btn_sw" visibility="hidden" group="tab" style="left:151px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d6" class="btn_sw" visibility="hidden" group="tab" style="left:188px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d7" class="btn_sw" visibility="hidden" group="tab" style="left:225px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d8" class="btn_sw" visibility="hidden" group="tab" style="left:262px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d9" class="btn_sw" visibility="hidden" group="tab" style="left:299px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d10" class="btn_sw" visibility="hidden" group="tab" style="left:336px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d11" class="btn_sw" visibility="hidden" group="tab" style="left:373px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d12" class="btn_sw" visibility="hidden" group="tab" style="left:410px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d13" class="btn_sw" visibility="hidden" group="tab" style="left:447px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d14" class="btn_sw" visibility="hidden" group="tab" style="left:484px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d15" class="btn_sw" visibility="hidden" group="tab" style="left:521px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d16" class="btn_sw" visibility="hidden" group="tab" style="left:558px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d17" class="btn_sw" visibility="hidden" group="tab" style="left:595px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d18" class="btn_sw" visibility="hidden" group="tab" style="left:632px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d19" class="btn_sw" visibility="hidden" group="tab" style="left:669px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d20" class="btn_sw" visibility="hidden" group="tab" style="left:706px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d21" class="btn_sw" visibility="hidden" group="tab" style="left:743px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d22" class="btn_sw" visibility="hidden" group="tab" style="left:780px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d23" class="btn_sw" visibility="hidden" group="tab" style="left:817px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d24" class="btn_sw" visibility="hidden" group="tab" style="left:854px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d25" class="btn_sw" visibility="hidden" group="tab" style="left:891px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d26" class="btn_sw" visibility="hidden" group="tab" style="left:928px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <button id="btn_d27" class="btn_sw" visibility="hidden" group="tab" style="left:965px; top:298px; width:37px; height:22px; ">
- <caption/>
- </button>
- <datagrid id="grd_prtlprcp" nodeset="/root/main/prtlprcplist/item" class="datagrid2" caption="투약순서^투약시간^MIX^코드^처방명^급여^1일용량^단위^1일수량^단위^투여속도^단위^횟수^복용법/검체^PRN^전달사항^간호^실행부서^^처방순번^^^" colwidth="37, 36, 36, 104, 220, 51, 51, 37, 56, 34, 56, 33, 36, 74, 40, 66, 42, 59, 1, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" selectionmode="listbox" rowsep="|" colsep="^" style="left:0px; top:320px; width:1194px; height:420px; ">
- <col ref="drugseq" type="input" style="text-align:right; "/>
- <col ref="drugtt" type="input"/>
- <col ref="prcpmixno" type="input"/>
- <col ref="prcpcd" type="inputbutton" imemode="alpha"/>
- <col ref="prcpnm" type="input"/>
- <col ref="payflagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/comboitem/payflagcd/P0104">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpvol" type="input" style="text-align:right; "/>
- <col ref="prcpvolunitnm"/>
- <col ref="prcpqty" type="input" style="text-align:right; "/>
- <col ref="prcpqtyunitnm"/>
- <col ref="drugspd" style="text-align:right; "/>
- <col ref="drugspdunitnm"/>
- <col ref="prcptims" type="input" style="text-align:right; "/>
- <col ref="drugmthdspccd" type="inputbutton"/>
- <col ref="prnprcpflag" type="checkbox" checkvalue="Y,N"/>
- <col ref="remark" type="inputbutton"/>
- <col ref="nursrem" type="inputbutton"/>
- <col ref="prcpexecdeptcd" type="inputbutton"/>
- <col ref="ordseqno"/>
- <col ref="prcpvolunitflag"/>
- <col ref="prcpqtyunitflag"/>
- <col ref="drugspdunitflag"/>
- <col ref="volrate"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( grd_prtlprcp.col== grd_prtlprcp.colRef("drugmthdspccd") ){
- //grd_prtlprcp.editCell();
- modal("SPADB61200",0,600,150,"SPADB61200","/root/hidden/receivemthd","/root/hidden/receiveref");
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/drugmthdspccd", model.getValue("/root/hidden/mthdcd"));
- //grd_prtlprcp.endEditCell();
-
- grd_prtlprcp.addStatus(grd_prtlprcp.row,"update");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode==13){
- //grd_prtlprcp.endEditCell();
- if ( grd_prtlprcp.col== grd_prtlprcp.colRef("prcpcd") ){
-
- fSetPrcpCd();
-
- }
- if ( grd_prtlprcp.col== grd_prtlprcp.colRef("prcpcd") ){
- if (model.getValue("/root/hidden/prcpinfo/prcplist/prcpcd")=="" ) {
- grd_prtlprcp.editCell();
- return;
- }
- /* 커서 이동 */
- grd_prtlprcp.col = grd_prtlprcp.colRef("prcpvol");
- grd_prtlprcp.editCell();
- return;
- }
- if ( grd_prtlprcp.col== grd_prtlprcp.colRef("drugseqno") ){
- /* 커서 이동 */
- grd_prtlprcp.col = grd_prtlprcp.colRef("prcpcd");
- grd_prtlprcp.editCell();
- return;
- }
- if ( grd_prtlprcp.col== grd_prtlprcp.colRef("bsavol") ){
- /*적용구분을 BSA로 셋팅 */
- if (model.getValue( "/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/bsavol")!="") {
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/volkind","1");
- }
-
- }
-
- if ( grd_prtlprcp.col== grd_prtlprcp.colRef("prcpvol") ){
-
- /* 커서 이동 */
- grd_prtlprcp.col = grd_prtlprcp.colRef("prcptims");
- grd_prtlprcp.editCell();
- return;
- }
-
-
- if ( grd_prtlprcp.col== grd_prtlprcp.colRef("kgvol") ){
- /*적용구분을 KG로 셋팅 */
- if (model.getValue( "/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/kgvol")!="") {
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/volkind","2");
- }
- }
-
- if ( grd_prtlprcp.col== grd_prtlprcp.colRef("prcpvol") ){
- /* 수량재계산 */
- var volrate = model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/volrate");
- var prcpvol = model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpvol");
- var prcpqty = model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpqty");
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpqty", parseFloat(prcpvol)/parseFloat(volrate));
- return;
- }
-
- if ( grd_prtlprcp.col== grd_prtlprcp.colRef("prcpqty") ){
- /* 용량량재계산 */
- var volrate = model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/volrate");
- var prcpvol = model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpvol");
- var prcpqty = model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpqty");
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpvol", parseFloat(prcpqty)*parseFloat(volrate));
- return;
- }
-
- if ( grd_prtlprcp.col== grd_prtlprcp.colRef("prcptims") ){
- /* 커서 이동 */
- if (model.getValue("/root/main/prtlprcplist/item["+(grd_prtlprcp.rows-1)+"]/prcpcd") != ""){
- grd_prtlprcp.addItem();
- /* 투약순서 셋팅 */
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/drugseq", grd_prtlprcp.rows-1);
- } else {
- if (grd_prtlprcp.row!= grd_prtlprcp.rows){
- grd_prtlprcp.row = grd_prtlprcp.row+1;
- }
- }
-
- //grd_prtlprcp.row = grd_prtlprcp.row+1;
- grd_prtlprcp.col = grd_prtlprcp.colRef("prcpcd");
- grd_prtlprcp.editCell();
- return;
- }
-
- }
- ]]>
- </script>
- </datagrid>
- <button id="button13" class="btn5_letter2" visibility="visible" style="left:975px; top:299px; width:42px; height:19px; ">
- <caption>Mix</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var mixno=0;
-
- for ( var i =0 ; i< grd_prtlprcp.rows;i++){
- if (model.getValue("/root/main/prtlprcplist/item["+i+"]/prcpmixno")!=""){
- if (parseInt( (model.getValue("/root/main/prtlprcplist/item["+i+"]/prcpmixno")).substring(1,2))> mixno ){
- mixno = parseInt((model.getValue("/root/main/prtlprcplist/item["+i+"]/prcpmixno")).substring(1,2));
- }
- }
- }
-
- for ( var i =0 ; i< grd_prtlprcp.selectedRows;i++){
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.selectedRow(i)+"]/prcpmixno", "M"+ (mixno+1));
- }
- grd_prtlprcp.refresh();
- ]]>
- </script>
- </button>
- <button id="button15" class="btn2_letter4" visibility="visible" style="left:855px; top:265px; width:75px; height:19px; ">
- <caption>처방검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
- model.setValue("/root/temp/receivedata/srchflag", "");
- model.setValue("/root/temp/receivedata/srchcnts", "");
- model.setValue("/root/temp/receivedata/drugkind","");
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
-
- if ( model.getValue("/root/hidden/drugcd") ==""){
- return;
- }
-
- if ( (model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpcd")).trim !=""){
- grd_prtlprcp.addItem();
- }
-
- model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpcd", model.getValue("/root/hidden/drugcd") );
- fSetPrcpCd();
- ]]>
- </script>
- </button>
- <button id="button16" class="icon_search" style="left:463px; top:264px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //window.load("SPADB60100_약품검색.xrw","modal","code", "left:100px; top:150px; width:850px; height:730px;min:hidden;max:hidden;resize:false;");
- modal("SPADB60100",0,100,150,"SPADB60100","/root/hidden/receivedrugcd","/root/hidden/receiveref");
- //modal("SPADB60100");
- fGetDrugCode();
- ]]>
- </script>
- </button>
- <group id="group5" visibility="hidden" style="left:885px; top:285px; width:305px; height:105px; border-color:#000080; border-width:2; border-style:solid; ">
- <button id="button17" class="btn4_letter4" visibility="visible" style="left:83px; top:73px; width:80px; height:22px; ">
- <caption>복사실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdata/cnfmyn", "N");
- fSaveData();
- ]]>
- </script>
- </button>
- <button id="button18" class="btn4_letter2" visibility="visible" style="left:168px; top:73px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group5.visible= false;
- ]]>
- </script>
- </button>
- <select id="chk_d" overflow="visible" appearance="full" style="left:18px; top:13px; width:100px; height:20px; border-style:none; ">
- <choices/>
- </select>
- </group>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button6" class="btn4_letter4" visibility="visible" style="left:990px; top:5px; width:80px; height:22px; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdata/cnfmyn", "N");
- fSaveData();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn4_letter2" visibility="visible" style="left:1076px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdata/cnfmyn", "Y");
- fSaveData();
- ]]>
- </script>
- </button>
- <button id="button8" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|