123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>이식 후 추후관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <hsctinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <dethdd/>
- <dethresn/>
- <dethyn/>
- <dethrgstyn/>
- <cibmtrid/>
- <resrchyn/>
- <lostfudd/>
- </patinfolist>
- </hsctinfo>
- <trnptaft>
- <trnptaftstat>
- <cntsnm/>
- <statdd/>
- <cnfmdd/>
- <patstat1/>
- <patstat2/>
- <pntflag/>
- <trnptaftrem/>
- <pid/>
- <trnptdg/>
- <seqno/>
- </trnptaftstat>
- </trnptaft>
- <popupendflag/>
- <trnptdg/>
- </main>
- <send>
- <req>
- <pid/>
- <trnptdg/>
- <trnptaftstat/>
- <hsctinfo>
- <patinfolist/>
- </hsctinfo>
- </req>
- </send>
- <init>
- <cmbinfo>
- <sex>
- <P0313>
- <cdid/>
- <cdnm/>
- </P0313>
- </sex>
- <dethresn>
- <A0186>
- <cdid/>
- <cdnm/>
- </A0186>
- </dethresn>
- </cmbinfo>
- </init>
- <hidden/>
- <temp>
- <bmtpatientinfo>
- <trnptdg/>
- </bmtpatientinfo>
- <cibmtr>
- <cntsnm>
- <nm>PRE-TED</nm>
- </cntsnm>
- <cntsnm>
- <nm>1 YEAR</nm>
- </cntsnm>
- <cntsnm>
- <nm>2 YEAR</nm>
- </cntsnm>
- </cibmtr>
- <trnptaftstat>
- <cntsnm>
- <nm>PRE-TED</nm>
- </cntsnm>
- <cntsnm>
- <nm>100 days</nm>
- </cntsnm>
- </trnptaftstat>
- <patdethinfo>
- <dethdd/>
- <dethresn/>
- <dethyn/>
- </patdethinfo>
- <trnptdg>
- <item>
- <cd>1</cd>
- <nm>1차</nm>
- </item>
- </trnptdg>
- <tempcodeinfo/>
- <tempcodeinfo2/>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
- <submission id="TRABO00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp/trnptdg"/>
- <submission id="TRABO00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/hsctinfo"/>
- <submission id="TRABO02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/trnptaft"/>
- <submission id="TXABO02200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- <submission id="TXABO02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //zbcfGetCodeList( new Array("P0313", "A0186"), new Array("/root/init/cmbinfo/sex", "/root/init/cmbinfo/dethresn"));
- zbcfGetCodeList( new Array("P0313"), new Array("/root/init/cmbinfo/sex"));
- //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
- aboGetCodeList(new Array("A0186"), new Array("/root/init/cmbinfo/dethresn"));
- // common.js : 화면 오픈시 파라미터 정보 체크
- if ( checkOpener()) {
- var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
- if (param != "") { // opener parameter value가 있는 경우
- //parameter value를 이용하여 프로그램 수행
- condarray = param.split("▦");
- model.setValue("/root/main/hsctinfo/patinfolist/pid", condarray[0]);
- // model.setValue("/root/main/trnptdg" , condarray[1]);
- // 선택한 차수정보가 있는지 체크하기 위해서
- model.setValue("/root/temp/bmtpatientinfo/trnptdg", condarray[1]);
- fGetPatientInfo();
- return;
- }
- }
- var paminfo = getGlobalVariable("paminfo");
- if ( paminfo != "" ) {
- model.removeNodeset("/root/temp/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
- model.makeNode("/root/temp/paminfo");
- setCSVToNode("/root/temp/paminfo", paminfo);
- //상단 정보를 이용하여 프로그램 수행
- var pid = model.getValue("/root/temp/paminfo" + "/list/pid");
- model.setValue("/root/main/hsctinfo/patinfolist/pid", pid);
- fGetPatientInfo();
- } else {
- //세션에 저장된 PID정보를 가져옴.
- var gv_pid = getGlobalVariable("gv_pid", "A");
- if(gv_pid != "") {
- model.setValue("/root/main/hsctinfo/patinfolist/pid", gv_pid);
- fGetPatientInfo();
- }
- }
-
- //타부서에서는 버튼 비활성화
- btn_save.disabled = !checkAuth("X");
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : 이식후 추후관리
- * @ver : 2008.06.23
- * @by : 박중규
- * @type : function
- * @access : public
- * @desc : 이식후 추후관리 정보를 조회
- * @param :
- */
- function fGetPatientInfo() {
- if (model.getValue("/root/main/hsctinfo/patinfolist/pid") == ""){
- return;
- }
- model.setValue("/root/send/req/pid", model.getValue("/root/main/hsctinfo/patinfolist/pid"));
- if ( submit("TRABO00001") ) {
- // 이식이력(차수) 조회 : 이 Map은 차수를 보여주는 곳에서 공통으로 사용하므로 수정할 경우 관련 화면을 모두 확인하자
- submit("TRABO00102");
- // 이식이력이 있을 경우 선택한 차수 정보를 표시한다. 단, 선택한 차수가 없는 경우 맨 마지막 차수정보를 표시한다.
- if ( cmb_trnptdg.length > 0 ) {
- if(model.getValue("/root/temp/bmtpatientinfo/trnptdg") == "") {
- cmb_trnptdg.selectedindex = parseInt(getNodesetCount("/root/temp/trnptdg/item")) - 1;
- } else {
- cmb_trnptdg.selectedindex = abofGetTrnptDgComboIndex(model.getValue("/root/temp/bmtpatientinfo/trnptdg"));
- model.resetInstanceNode("/root/temp/bmtpatientinfo");
- }
- fSetDisplay();
- }
- }
- }
- function fSetDisplay() {
- model.setValue( "/root/send/req/trnptdg", model.getValue( "/root/main/trnptdg"));
- submit("TRABO02201");
- // 환자의 기등록된사망일자(olddethdd)와 새로 가져온 사망일자(dethdd)를 가지고 사망여부와 사망일자의 색상을 변경해주자
- var sdethrgstyn = model.getValue("/root/main/hsctinfo/patinfolist/dethrgstyn");
- var sdethdd = model.getValue("/root/main/hsctinfo/patinfolist/dethdd");
- // 기등록된 사망일자가 없고 새로 가져온 사망일자 있으면 사망일자를 저장해야 한다.
- if (( sdethrgstyn == "N" && sdethdd != "00000000")) {
- model.setValue("/root/main/hsctinfo/patinfolist/dethyn", "Y");
- ipt_dethdd.attribute("border-color") = "red";
- } else {
- if ( sdethrgstyn == "Y" ) {
- model.setValue("/root/main/hsctinfo/patinfolist/dethyn", "Y");
- } else {
- model.setValue("/root/main/hsctinfo/patinfolist/dethyn", "N");
- }
- ipt_dethdd.attribute("border-color") = "#c0c0c0";
- }
- if ( model.getValue("/root/main/hsctinfo/patinfolist/dethyn") == "Y" ) {
- ipt_dethdd.disabled = false;
- cmb_dethresn.disabled = false;
- } else {
- ipt_dethdd.disabled = true;
- cmb_dethresn.disabled = true;
- }
- model.setValue("/root/temp/patdethinfo/dethdd" , model.getValue("/root/main/hsctinfo/patinfolist/dethdd" ));
- model.setValue("/root/temp/patdethinfo/dethresn", model.getValue("/root/main/hsctinfo/patinfolist/dethresn"));
- model.setValue("/root/temp/patdethinfo/dethyn" , model.getValue("/root/main/hsctinfo/patinfolist/dethyn" ));
- model.refresh();
- }
- /* @group : 이식후 추후관리
- * @ver : 2008.06.23
- * @by : 박중규
- * @type : function
- * @access : public
- * @desc : 이식후 추후관리 정보 저장
- * @param :
- */
- function fSaveData(paramFlag) {
- model.setValue("/root/send/req/trnptaftstat", grd_trnptaftstat.getUpdateData());
- // 환자의 사망정보가 변경되면 사망정보를 먼저 저장한다.
- if (( model.getValue("/root/main/hsctinfo/patinfolist/dethrgstyn") == "N" && model.getValue("/root/main/hsctinfo/patinfolist/dethdd") != "00000000" ) ||
- model.getValue("/root/main/hsctinfo/patinfolist/dethdd" ) != model.getValue("/root/temp/patdethinfo/dethdd" ) ||
- model.getValue("/root/main/hsctinfo/patinfolist/dethresn") != model.getValue("/root/temp/patdethinfo/dethresn") ||
- model.getValue("/root/main/hsctinfo/patinfolist/dethyn" ) != model.getValue("/root/temp/patdethinfo/dethyn" ) ) {
- model.copyNode("/root/send/req/hsctinfo/patinfolist", "/root/main/hsctinfo/patinfolist");
- submit("TXABO02200");
- }
- if(getGridUpdateData(grd_trnptaftstat)) {
- if (submit("TXABO02201")) {
- // 저장한 후에는 저장시의 차수에 대한 정보를 보여주기 위해서 "/root/temp/bmtpatientinfo/trnptdg" 저장차수를 보관해두자
- model.setValue("/root/temp/bmtpatientinfo/trnptdg", model.getValue("/root/main/trnptdg"));
-
- // 사망정보도 저장이 될 수 있으므로 환자 정보를 다시 조회해야 한다.
- fGetPatientInfo();
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="900" pageheight="465" guideline="1,875;2,445;1,875;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:875px; height:405px; ">
- <button id="btn_excsave" class="btn2_letter4" style="left:810px; top:75px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "이식후상태", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_trnptaftstat.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:130px; height:13px; ">이식후상태</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:875px; y2:96px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:875px; height:61px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:875px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:34px; width:73px; height:17px; ">사망일 :</caption>
- <line id="line13" class="line_4" style="x1:797px; y1:7px; x2:797px; y2:48px; "/>
- <caption id="caption33" class="search_name" style="left:219px; top:34px; width:60px; height:17px; ">사인 :</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:813px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 조회할 때 환자를 입력하지 않으면 조회하지 말자
- if (model.getValue("/root/main/hsctinfo/patinfolist/pid") == ""){
- return;
- }
- // 조회 시 기 조회된 환자의 차수에 대한 정보가 있을 경우에는 해당 차수정보를 다시 조회하기 위해서
- if ( model.getValue("/root/main/trnptdg") != "" ) {
- // 이식차수를 선택했을 때는 환자기본정보와 차수정보를 조회할 필요가 없으므로 해당 차수의 이식 정보만 조회한다.
- fSetDisplay();
- } else {
- // 기 선택된 차수정보가 없을 경우에는 환자의 차수정보를 다시 조회하고 마지막 차수 정보를 표시한다.
- fGetPatientInfo();
- }
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <output id="output1" ref="/root/main/hsctinfo/patinfolist/hngnm" class="output_fix" style="left:219px; top:9px; width:90px; height:19px; text-align:center; "/>
- <select1 id="combo1" ref="/root/main/hsctinfo/patinfolist/sex" class="combo_default" disabled="true" appearance="minimal" style="left:312px; top:9px; width:60px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/sex/P0313">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <output id="output2" ref="/root/main/hsctinfo/patinfolist/age" class="output_fix" style="left:375px; top:9px; width:42px; height:19px; text-align:center; "/>
- <input id="ipt_dethdd" ref="/root/main/hsctinfo/patinfolist/dethdd" class="input_s_essential" disabled="true" inputtype="date" style="left:104px; top:34px; width:100px; height:19px; "/>
- <input id="ipt_pid" ref="/root/main/hsctinfo/patinfolist/pid" class="input_search" inputtype="button" style="left:104px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( abofGetBmtPatientSearch("/root/main/hsctinfo/patinfolist", "/root/temp/bmtpatientinfo") ) {
- // BMT에 등록된 환자를 선택하면 선택한 차수 정보는 "/root/temp/bmtpatientinfo/trnptdg"에 표시되고
- // 해당 차수에 대한 정보를 조회한다.
- // 환자를 선택했으므로 환자기본정보 및 차수정보를 조회해야 한다.
- fGetPatientInfo();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_sea", "DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
- model.setFocus( "ipt_pid");
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:432px; top:9px; width:148px; height:17px; ">CIBMTR 등록정보 :</caption>
- <output id="output3" ref="/root/main/hsctinfo/patinfolist/cibmtrid" class="output_fix" style="left:583px; top:9px; width:90px; height:19px; text-align:center; "/>
- <output id="output4" ref="/root/main/hsctinfo/patinfolist/resrchyn" class="output_fix" style="left:676px; top:9px; width:20px; height:19px; text-align:center; "/>
- <output id="output5" ref="/root/main/hsctinfo/patinfolist/lostfudd" class="output_fix" format="yyyy-mm-dd" style="left:699px; top:9px; width:80px; height:19px; text-align:center; "/>
- <select1 id="cmb_dethresn" ref="/root/main/hsctinfo/patinfolist/dethresn" class="combo_search" disabled="true" appearance="minimal" style="left:282px; top:34px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/dethresn/A0186">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" style="left:467px; top:34px; width:68px; height:17px; ">사망여부</caption>
- <bool id="bool_dethyn" checkvalue="Y,N" ref="/root/main/hsctinfo/patinfolist/dethyn" style="left:435px; top:32px; width:25px; height:20px; ">
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- ipt_dethdd.disabled = true;
- cmb_dethresn.disabled = true;
- model.setValue("/root/main/hsctinfo/patinfolist/dethdd" , "00000000");
- model.setValue("/root/main/hsctinfo/patinfolist/dethresn", "-");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- ipt_dethdd.disabled = false;
- cmb_dethresn.disabled = false;
- ]]>
- </script>
- </bool>
- </group>
- <button id="btn_grddel" class="btn2_letter3" style="left:754px; top:75px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (model.getValue("/root/main/trnptaft/trnptaftstat[" + ( grd_trnptaftstat.row - 1) + "]/cntsnm") == "") {
- grd_trnptaftstat.deleteItem(grd_trnptaftstat.row);
- } else {
- grd_trnptaftstat.addStatus(grd_trnptaftstat.row, "delete");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" visibility="visible" style="left:698px; top:75px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_trnptaftstat.addRow();
- var irow = grd_trnptaftstat.row - 1;
- if ( irow <= 2 ) {
- model.setValue("/root/main/trnptaft/trnptaftstat[" + irow + "]/cntsnm", model.getValue("/root/temp/trnptaftstat/cntsnm[" + irow + "]/nm"));
- }
- model.setValue("/root/main/trnptaft/trnptaftstat[" + irow + "]/pid" , model.getValue("/root/main/hsctinfo/patinfolist/pid"));
- model.setValue("/root/main/trnptaft/trnptaftstat[" + irow + "]/trnptdg", model.getValue("/root/main/trnptdg"));
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_trnptaftstat" nodeset="/root/main/trnptaft/trnptaftstat" caption="내 용^날짜^확인일자^환자상태^환자상태^환자상태^Remark^caption1^caption4^caption2^caption3|내 용^날짜^확인일자^aGVHD^cGVHD^Karnofsky or Lansky^Remark^caption1^caption4^caption2^caption3" colsep="^" colwidth="74, 81, 86, 60, 60, 127, 348, 14, 20, 34" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:101px; width:875px; height:300px; ">
- <col ref="cntsnm" type="input" style="text-align:center; "/>
- <col disabled="true" ref="statdd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="cnfmdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="patstat1" type="input" style="text-align:center; "/>
- <col ref="patstat2" type="input" style="text-align:center; "/>
- <col ref="pntflag" type="input"/>
- <col ref="trnptaftrem" type="input" style="text-align:left; "/>
- <col ref="pid" visibility="hidden"/>
- <col ref="trnptdg" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_trnptaftstat.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_trnptdg" ref="/root/main/trnptdg" class="combo_default" appearance="minimal" style="left:97px; top:75px; width:87px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/trnptdg/item">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 이식차수를 선택했을 때는 환자기본정보와 차수정보를 조회할 필요가 없으므로 해당 차수의 이식후상태 정보만 조회한다.
- fSetDisplay();
- ]]>
- </script>
- </select1>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:875px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:818px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSaveData();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:875px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:164px; height:14px; ">이식 후 추후관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|