123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565 |
- <?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>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <tempanad>
- <row>
- <genrdd/>
- <genrno/>
- <histno/>
- <instcd/>
- <pid/>
- <orddd/>
- <cretno/>
- <genrflagcd/>
- <histcd/>
- <prcpdd/>
- <drugthrpcd/>
- <drugtims/>
- <drugpridstartno/>
- <drugpridstartdayno/>
- <drugpridendno/>
- <drugpridenddayno/>
- <rgstdeptcd/>
- <rgstdd/>
- <rgsttm/>
- <rgstrid/>
- <updtdeptcd/>
- <updtdd/>
- <updttm/>
- <updtrid/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <tempcol1/>
- <tempcol2/>
- <tempcol3/>
- <status/>
- <rgstrnm/>
- <updtrnm/>
- </row>
- </tempanad>
- <tempstnm>
- <row>
- <genrdd/>
- <genrno/>
- <histno/>
- <instcd/>
- <histcd/>
- <pid/>
- <orddd/>
- <cretno/>
- <orddeptcd/>
- <genrflagcd/>
- <icd10cd/>
- <diagcd/>
- <stagecd/>
- <tnmcd1/>
- <tnmcd2/>
- <tnmcd3/>
- <stageflag/>
- <cncrflag1/>
- <cncrflagkind1/>
- <cncrflag2/>
- <cncrflagkind2/>
- <inptimpsiflag/>
- <inptimpsiresncd/>
- <rgstdeptcd/>
- <rgstdd/>
- <rgsttm/>
- <rgstrid/>
- <updtdeptcd/>
- <updtdd/>
- <updttm/>
- <updtrid/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <inptimpsietcresnnm/>
- <mataflag/>
- <cncrflag/>
- <diagnm/>
- <attackflag/>
- <tempcol1/>
- <tempcol2/>
- <tempcol3/>
- <status/>
- <displaystage/>
- <rgstrnm/>
- <updtrnm/>
- </row>
- </tempstnm>
- </main>
- <send>
- <param>
- <srchcond/>
- <hngnm/>
- </param>
- </send>
- <hidden/>
- <init>
- <srchcond>
- <pid/>
- <fromdd/>
- <todd/>
- <dcsrch>false</dcsrch>
- <hngnm/>
- <sa/>
- <serdiagno/>
- <serdiagfromdd/>
- <serdiagtodd/>
- </srchcond>
- <genrflagcd/>
- <inptimpsiresncd/>
- <cncrflagkind2/>
- <cncrflagkind1/>
- <stageflag/>
- <drugthrpcd/>
- </init>
- <result>
- <savetnmlist/>
- <savecncrlist/>
- </result>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var dd = getCurrentDate();
- model.setValue("/root/init/srchcond/fromdd", (dd.toDate().getAddDate(-6, "M")).getDateFormat() );
- model.setValue("/root/init/srchcond/todd", dd);
- if ( getPatientInfo("pid") != '' ) {
- model.setValue("/root/init/srchcond/pid", getPatientInfo("pid") );
- model.setValue("/root/init/srchcond/hngnm", getPatientInfo("hngnm") );
- model.setValue("/root/init/srchcond/sa", getPatientInfo("sex") + '/' + getPatientInfo("age") );
-
- submit("TRMMO08502", false);
- submit("TRMMO08501", false)
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO08501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/srchcond" resultref="/root/main"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- zbcfGetCodeList(new Array( "M0010","M0326","M0327","M0328","M0329", "M0331" ),
- new Array("/root/init/genrflagcd", "/root/init/inptimpsiresncd", "/root/init/cncrflagkind2", "/root/init/cncrflagkind1","/root/init/stageflag", "/root/init/drugthrpcd"));
- ]]>
- </script>
- <submission id="TRMMO08502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/srchcond" resultref="/root/init/srchcond"/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1080" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1050px; height:64px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:12px; top:12px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="caption2" class="search_name" style="left:528px; top:12px; width:86px; height:17px; ">내원일 :</caption>
- <caption id="caption3" class="tit_2" style="left:0px; top:79px; width:113px; height:13px; vertical-align:middle; ">Stage 분류</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1050px; y2:95px; "/>
- <input id="ipt_pid" ref="/root/init/srchcond/pid" class="input_search" style="left:104px; top:10px; width:66px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("button1", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption4" style="left:702px; top:5px; width:15px; height:30px; ">~</caption>
- <caption id="caption6" class="tit_2" style="left:0px; top:445px; width:118px; height:13px; vertical-align:middle; ">투여단계 및 주기</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:460px; x2:1050px; y2:460px; "/>
- <input id="ipt_fromprcpdd" ref="/root/init/srchcond/fromdd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:608px; top:10px; width:90px; height:19px; "/>
- <input id="ipt_toprcpdd" ref="/root/init/srchcond/todd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:720px; top:10px; width:90px; height:19px; "/>
- <button id="btn_srch" class="btn1_letter4" style="left:939px; top:22px; width:80px; height:22px; ">
- <caption>이력조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit ( "TRMMO08501" , true);
- ]]>
- </script>
- </button>
- <output id="opt_sa" ref="/root/init/srchcond/sa" class="output_search" style="left:423px; top:10px; width:51px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:11px; top:39px; width:117px; height:17px; ">중증등록번호 :</caption>
- <bool id="bool1" ref="/root/init/srchcond/dcsrch" style="left:609px; top:37px; width:25px; height:20px; "/>
- <caption id="caption7" style="left:630px; top:37px; width:55px; height:20px; ">
- <![CDATA[삭제포함]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( model.getValue("/root/init/srchcond/dcsrch") == "true" )
- model.setValue("/root/init/srchcond/dcsrch", "false");
- else
- model.setValue("/root/init/srchcond/dcsrch", "true");
- model.refresh();
- ]]>
- </script>
- </caption>
- <output id="output1" ref="/root/init/srchcond/serdiagno" class="output_search" style="left:128px; top:37px; width:132px; height:19px; "/>
- <input id="ipt_hngnm" ref="/root/init/srchcond/hngnm" class="input_search" style="left:312px; top:10px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_patsrch", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:231px; top:12px; width:86px; height:17px; ">환자명 :</caption>
- <button id="btn_patsrch" class="icon_search" navindex="3" style="left:396px; top:13px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/main/patinfo/patinfolist");
- model.setValue("/root/send/param/srchcond", "2");
- model.setValue("/root/send/param/hngnm", model.getValue("/root/init/srchcond/hngnm") );
- modal("SPPMC02500", "", "", "", "", "/root/send/param", "/root/send");
-
- model.setValue("/root/init/srchcond/pid", model.getValue("/root/main/patinfo/patinfolist/pid") );
- submit("TRMMO08502", true);
-
- ]]>
- </script>
- </button>
- <caption id="caption9" class="search_name" style="left:283px; top:39px; width:92px; height:17px; ">중증기간 :</caption>
- <output id="output2" ref="/root/init/srchcond/serdiagfromdd" class="output_search" format="yyyy-mm-dd" style="left:377px; top:37px; width:85px; height:19px; "/>
- <output id="output3" ref="/root/init/srchcond/serdiagtodd" class="output_search" format="yyyy-mm-dd" style="left:487px; top:37px; width:85px; height:19px; "/>
- <caption id="caption10" style="left:470px; top:38px; width:15px; height:20px; ">~</caption>
- <datagrid id="grd_stnm" nodeset="/root/main/tempstnm/row" caption="I/O^진단코드^진단명^구분^T^N^M^Stage^입력불가^입력불가사유^소세포암^난소암^입력부서^입력자^입력일시^수정부서^수정자^수정일시^삭제여부" colsep="^" colwidth="35, 55, 190, 55, 30, 30, 30, 43, 100, 80, 55, 49, 80, 60, 100, 80, 60, 100, 70" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" style="left:0px; top:99px; width:1050px; height:333px; ">
- <col disabled="true" ref="genrflagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/genrflagcd/M0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="icd10cd"/>
- <col ref="diagnm"/>
- <col disabled="true" ref="stageflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/stageflag/M0329">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="tnmcd1"/>
- <col ref="tnmcd2"/>
- <col ref="tnmcd3"/>
- <col ref="stagecd"/>
- <col disabled="true" ref="inptimpsiresncd" type="combo">
- <choices>
- <itemset nodeset="/root/init/inptimpsiresncd/M0326">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="inptimpsietcresnnm"/>
- <col disabled="true" ref="cncrflagkind1" type="combo">
- <choices>
- <itemset nodeset="/root/init/cncrflagkind1/M0328">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cncrflagkind2" type="combo">
- <choices>
- <itemset nodeset="/root/init/cncrflagkind2/M0327">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rgstdeptnm"/>
- <col ref="rgstrnm"/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="updtdeptnm"/>
- <col ref="updtrnm"/>
- <col ref="updtdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="histnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var currow = grd_stnm.row;
- var curcol = grd_stnm.col;
-
- if( grd_stnm.isCell(event.target) && grd_stnm.row >= grd_stnm.fixedRows ) {
- btn_savestnm.dispatch ( "DOMActivate" );
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_anad" nodeset="/root/main/tempanad/row" caption="구분^프로토콜명^처방코드^처방명^처방일^시행일^투여요법^투여단계^투여주기1^투여주기2^입력자^수정자" colsep="^" colwidth="37, 125, 93, 182, 77, 71, 97, 68, 70, 73, 66, 61" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:464px; width:1050px; height:308px; ">
- <col disabled="true" ref="genrflagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/genrflagcd/M0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="tempcol1"/>
- <col ref="tempcol2"/>
- <col ref="tempcol3"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="drugthrpcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/drugthrpcd/M0331">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="drugtims" type="combo">
- <choices>
- <item>
- <label>1st-Line</label>
- <value>1</value>
- </item>
- <item>
- <label>2st-Line</label>
- <value>2</value>
- </item>
- <item>
- <label>3st-Line</label>
- <value>3</value>
- </item>
- <item>
- <label>4st-Line</label>
- <value>4</value>
- </item>
- <item>
- <label>5st-Line</label>
- <value>5</value>
- </item>
- <item>
- <label>6st-Line</label>
- <value>6</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="drugpridstartno" type="combo">
- <choices>
- <item>
- <label>1st-cycle</label>
- <value>1</value>
- </item>
- <item>
- <label>2st-cycle</label>
- <value>2</value>
- </item>
- <item>
- <label>3st-cycle</label>
- <value>3</value>
- </item>
- <item>
- <label>4st-cycle</label>
- <value>4</value>
- </item>
- <item>
- <label>5st-cycle</label>
- <value>5</value>
- </item>
- <item>
- <label>6st-cycle</label>
- <value>6</value>
- </item>
- <item>
- <label>7st-cycle</label>
- <value>7</value>
- </item>
- <item>
- <label>8st-cycle</label>
- <value>8</value>
- </item>
- <item>
- <label>9st-cycle</label>
- <value>9</value>
- </item>
- <item>
- <label>10st-cycle</label>
- <value>10</value>
- </item>
- <item>
- <label>11st-cycle</label>
- <value>11</value>
- </item>
- <item>
- <label>12st-cycle</label>
- <value>12</value>
- </item>
- </choices>
- </col>
- <col disabled="true" type="combo">
- <choices>
- <item>
- <label>1st-cycle</label>
- <value>1</value>
- </item>
- <item>
- <label>2st-cycle</label>
- <value>2</value>
- </item>
- <item>
- <label>3st-cycle</label>
- <value>3</value>
- </item>
- <item>
- <label>4st-cycle</label>
- <value>4</value>
- </item>
- <item>
- <label>5st-cycle</label>
- <value>5</value>
- </item>
- <item>
- <label>6st-cycle</label>
- <value>6</value>
- </item>
- <item>
- <label>7st-cycle</label>
- <value>7</value>
- </item>
- <item>
- <label>8st-cycle</label>
- <value>8</value>
- </item>
- <item>
- <label>9st-cycle</label>
- <value>9</value>
- </item>
- <item>
- <label>10st-cycle</label>
- <value>10</value>
- </item>
- <item>
- <label>11st-cycle</label>
- <value>11</value>
- </item>
- <item>
- <label>12st-cycle</label>
- <value>12</value>
- </item>
- </choices>
- </col>
- <col ref="rgstrnm"/>
- <col ref="updtrnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var currow = grd_anad.row;
- var curcol = grd_anad.col;
-
- if( grd_anad.isCell(event.target) && grd_anad.row >= grd_anad.fixedRows ) {
- inputEnterKey("btn_saveanad", "DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_savestnm" class="btn2_letter2" style="left:1005px; top:72px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_stnm.row >= grd_stnm.fixedRows ) {
- if(model.getValue("/root/main/tempstnm/row[" + grd_stnm.row + "]/histnm") != "정상") {
- messageBox("삭제 상태입니다. 수정 할수 없습니다.", "I");
- return;
- }
- model.resetInstanceNode("/root/result/savetnmlist");
- model.resetInstanceNode("/root/result/savecncrlist");
-
- copyNodeType("/root/result/savetnmlist", "/root/main/tempstnm/row[" + grd_stnm.row + "]", "replace");
- model.setValue("/root/result/savetnmlist/status", "U");
- modal ( "SPMMO08400", "", "", "", "prcpdetl", "/root/result", "/root/tempresult", "", false );
- submit ( "TRMMO08501" , true);
- if ( getParameter ( "SPMMO08400_rtn1" ) != "Y" ){
- return false;
- }
-
- model.refresh();
- } else {
- messageBox("리스트에서 선택후 버튼을 눌러주시기 바랍니다.", "I")
- }
- ]]>
- </script>
- </button>
- <button id="btn_saveanad" class="btn2_letter2" style="left:1005px; top:438px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_anad.row >= grd_anad.fixedRows ) {
- model.resetInstanceNode("/root/result/savetnmlist");
- model.resetInstanceNode("/root/result/savecncrlist");
-
- // 프로토콜명, 처방코드, 처방명을 보여주기위해 임시로 사용. 수정화면으로 이동시 clear.
- model.setValue("/root/main/tempanad/row/tempcol1", ""); // 프로토콜명
- model.setValue("/root/main/tempanad/row/tempcol2", ""); // 처방코드
- model.setValue("/root/main/tempanad/row/tempcol3", ""); // 처방명
-
-
- copyNodeType("/root/result/savecncrlist", "/root/main/tempanad/row[" + grd_anad.row + "]", "replace");
- model.setValue("/root/result/savecncrlist/status", "U");
- modal ( "SPMMO08400", "", "", "", "prcpdetl", "/root/result", "/root/tempresult", "", false );
- submit ( "TRMMO08501" , true);
- if ( getParameter ( "SPMMO08400_rtn1" ) != "Y" ){
- return false;
- }
-
- model.refresh();
- } else {
- messageBox("리스트에서 선택후 버튼을 눌러주시기 바랍니다.", "I")
- }
- ]]>
- </script>
- </button>
- <button id="button1" visibility="hidden" style="left:725px; top:70px; width:55px; height:20px; ">
- <caption>button1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRMMO08502", true);
- submit ( "TRMMO08501" , true);
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter6" style="left:916px; top:73px; width:86px; height:19px; ">
- <caption>신규이력생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_stnm.row >= grd_stnm.fixedRows ) {
- model.resetInstanceNode("/root/result/savetnmlist");
- model.resetInstanceNode("/root/result/savecncrlist");
-
- copyNodeType("/root/result/savetnmlist", "/root/main/tempstnm/row[" + grd_stnm.row + "]", "replace");
- var diagcd = model.getValue("/root/result/savetnmlist/diagcd");
- if ( diagcd.substr(diagcd.indexOf(".")+1, 3) == "444" ) {
- messageBox("선택된 행은 (구)OCS의 데이터이므로 2008/10/03일 이후 데이터를 선택하여 신규이력생성 하시기바랍니다.", "I");
- return false;
- }
- model.setValue("/root/result/savetnmlist/status", "I");
- modal ( "SPMMO08400", "", "", "", "prcpdetl", "/root/result", "/root/tempresult", "", false );
- submit ( "TRMMO08501" , true);
- if ( getParameter ( "SPMMO08400_rtn1" ) != "Y" ){
- return false;
- }
-
- model.refresh();
- } else {
- messageBox("리스트에서 선택후 버튼을 눌러주시기 바랍니다.", "I")
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|