123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338 |
- <?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>BMT 레포트/요양급여 리스트</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <hsctinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- </patinfolist>
- </hsctinfo>
- <list>
- <item>
- <trnptdg/>
- <rgstdd/>
- <reportflag/>
- <usernm/>
- <lastupdtdt/>
- <signyn/>
- </item>
- </list>
- <popupendflag/>
- <codedata>
- <popupmenu>
- <item>
- <name>Report Print</name>
- <func>fOpenPopupReportPrint</func>
- </item>
- </popupmenu>
- </codedata>
- </main>
- <send>
- <pid/>
- </send>
- <inti/>
- <hidden/>
- <temp>
- <bmtpatientinfo/>
- <paminfo/>
- </temp>
- </root>
- </instance>
- <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" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // common.js
- if (checkOpener()) { //opener 검사
- 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/hsctinfo/patinfolist/hngnm", condarray[1]);
- model.setValue("/root/main/hsctinfo/patinfolist/sex" , condarray[2]);
- model.setValue("/root/main/hsctinfo/patinfolist/age" , condarray[3]);
- model.setValue("/root/send/pid" , condarray[0]);
- submit("TRABO61701");
- return;
- }
- }
- // Opener에서 받은 파라미터가 없으면 Top 정보를 참조한다.
- var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
- //원무 정보(기본 정보)가 있는 경우
- 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);
- model.setValue( "/root/send/pid", pid);
- submit("TRABO61701");
- } else {
- // Top 정보도 없으면 세션에 저장된 PID정보를 가져옴.
- var gv_pid = getGlobalVariable("gv_pid", "A");
- if(gv_pid != "") {
- model.setValue("/root/main/hsctinfo/patinfolist/pid", gv_pid);
- model.setValue("/root/send/pid", gv_pid);
- submit("TRABO00001");
- submit("TRABO61701");
- }
- }
- ]]>
- </script>
- <submission id="TRABO00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/hsctinfo"/>
- <submission id="TRABO61701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fOpenPopupReportPrint() {
- if ( grd_list.row == 0 ) return;
- // Allo Donor Report
- if ( model.getValue("/root/main/list/item["+ grd_list.row +"]/reportflag") == 'D' ) {
- var pid = model.getValue("/root/send/pid");
- var trnptdg = model.getValue("/root/main/list/item[" + grd_list.row +"]/trnptdg");
- var dnorid = model.getValue("/root/temp/bmtpatientinfo/dnorid");
- var sflag = "nu" + "▦" + pid + "▦" + trnptdg + "▦" + dnorid;
- setParameter("opener_parameter_id", sflag);
- modal("SPABO61200",0,100,150,"SPABO61200","","");
- }
- // Pre BMT Report
- if ( model.getValue("/root/main/list/item["+ grd_list.row +"]/reportflag") == 'P' ) {
- var pid = model.getValue("/root/send/pid");
- var trnptdg = model.getValue("/root/main/list/item["+ grd_list.row +"]/trnptdg");
- var sflag = pid + "▦" + trnptdg;
- setParameter("opener_parameter_id", sflag);
- modal("SPABO61500",0,100,150,"SPABO61500","","");
- }
- // UBMT Report
- if ( model.getValue("/root/main/list/item["+ grd_list.row +"]/reportflag") == 'U' ) {
- var pid = model.getValue("/root/send/pid");
- var trnptdg = model.getValue("/root/main/list/item["+ grd_list.row +"]/trnptdg");
- var sflag = pid + "▦" + trnptdg;
- setParameter("opener_parameter_id", sflag);
- modal("SPABO61800",0,100,150,"SPABO61800","","");
- }
- // 동종 조혈모세포 이식 요양급여 신청서
- if ( model.getValue("/root/main/list/item["+ grd_list.row +"]/reportflag") == '1' ) {
- var pid = model.getValue("/root/send/pid");
- var trnptdg = model.getValue("/root/main/list/item[" + grd_list.row +"]/trnptdg");
- var sflag = pid + "▦" + trnptdg;
- setParameter("opener_parameter_id", sflag);
- modal("SPABO60500",0,100,150,"SPABO60500","","");
- }
- // 자가 조혈모세포 이식 요양급여 신청서
- if ( model.getValue("/root/main/list/item["+ grd_list.row +"]/reportflag") == '2' ) {
- var pid = model.getValue("/root/send/pid");
- var trnptdg = model.getValue("/root/main/list/item[" + grd_list.row +"]/trnptdg");
- var sflag = pid + "▦" + trnptdg;
- setParameter("opener_parameter_id", sflag);
- modal("SPABO60600",0,100,150,"SPABO60600","","");
- }
- // 제대혈 조혈모세포 이식 요양급여 신청서
- if ( model.getValue("/root/main/list/item["+ grd_list.row +"]/reportflag") == '3' ) {
- var pid = model.getValue("/root/send/pid");
- var trnptdg = model.getValue("/root/main/list/item[" + grd_list.row +"]/trnptdg");
- var sflag = pid + "▦" + trnptdg;
- setParameter("opener_parameter_id", sflag);
- modal("SPABO60700",0,100,150,"SPABO60700","","");
- }
- // 자가-자가 요양급여 신청서
- if ( model.getValue("/root/main/list/item["+ grd_list.row +"]/reportflag") == '4' ) {
- var pid = model.getValue("/root/send/pid");
- var trnptdg = model.getValue("/root/main/list/item[" + grd_list.row +"]/trnptdg");
- var sflag = pid + "▦" + trnptdg;
- setParameter("opener_parameter_id", sflag);
- modal("SPABO60800",0,100,150,"SPABO60800","","");
- }
- // 자가 후 동종 요양급여 신청서
- if ( model.getValue("/root/main/list/item["+ grd_list.row +"]/reportflag") == '5' ) {
- var pid = model.getValue("/root/send/pid");
- var trnptdg = model.getValue("/root/main/list/item[" + grd_list.row +"]/trnptdg");
- var sflag = pid + "▦" + trnptdg;
- setParameter("opener_parameter_id", sflag);
- modal("SPABO60900",0,100,150,"SPABO60900","","");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="720" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:702px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">BMT 레포트/요양급여 리스트</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:702px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:200px; height:14px; ">BMT 레포트/요양급여 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:700px; y2:70px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:702px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:699px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
- <line id="line13" class="line_4" style="x1:613px; y1:7px; x2:613px; y2:29px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:628px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/pid") != model.getValue("/root/main/hsctinfo/patinfolist/pid")){
- model.setValue("/root/send/pid" , model.getValue( "/root/main/hsctinfo/patinfolist/pid"));
- submit("TRABO00001");
- }
-
- if ( model.getValue("/root/send/pid") == "" ) {
- messageBox("등록번호를","C001");
- return ;
- } else {
- model.setValue("/root/send/pid", model.getValue("/root/main/hsctinfo/patinfolist/pid"));
- submit("TRABO61701");
- model.refresh();
-
- }
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/main/hsctinfo/patinfolist/pid" class="input_default" navindex="1" inputtype="button" style="left:104px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- modal("SPABO61300",0,100,150,"SPABO61300","/root/temp/receiveref","/root/temp/receivedata/receiveref");
- if (model.getValue("/root/main/popupendflag") == "ok") {
- var spid = model.getValue("/root/temp/bmtpatientinfo/pid");
-
- if (spid == null || spid == "" || spid == " ") {
- return false;
- }
- model.setValue("/root/main/hsctinfo/patinfolist/pid", model.getValue("/root/temp/bmtpatientinfo/pid"));
- model.setValue("/root/main/hsctinfo/patinfolist/hngnm", model.getValue("/root/temp/bmtpatientinfo/hngnm"));
- model.setValue("/root/main/hsctinfo/patinfolist/sex", model.getValue("/root/temp/bmtpatientinfo/sex"));
- model.setValue("/root/main/hsctinfo/patinfolist/age", model.getValue("/root/temp/bmtpatientinfo/age"));
- model.setValue("/root/send/pid" , model.getValue("/root/temp/bmtpatientinfo/pid"));
- model.refresh();
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_sea", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/main/hsctinfo/patinfolist/sex" class="input_search" disabled="true" style="left:299px; top:8px; width:30px; height:19px; text-align:center; "/>
- <input id="input3" ref="/root/main/hsctinfo/patinfolist/age" class="input_search" disabled="true" style="left:332px; top:8px; width:30px; height:19px; text-align:center; "/>
- <input id="input6" ref="/root/main/hsctinfo/patinfolist/hngnm" class="input_search" disabled="true" style="left:210px; top:8px; width:85px; height:19px; text-align:center; "/>
- </group>
- <button id="btn_excsave" class="btn2_letter4" style="left:636px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "BMT레포트요양급여리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- grd_list.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_list" nodeset="/root/main/list/item" caption="이식차수/등록순번^등록일자^레포트종류^작성자명^최종수정일시^인증여부" colsep="^" colwidth="115, 95, 177, 100, 150, 55" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:700px; height:665px; ">
- <col ref="trnptdg" style="text-align:center; "/>
- <col ref="rgstdd" style="text-align:center; "/>
- <col disabled="true" ref="reportflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Donor Report</label>
- <value>D</value>
- </item>
- <item>
- <label>Pre BMT Report</label>
- <value>P</value>
- </item>
- <item>
- <label>UBMT Report</label>
- <value>U</value>
- </item>
- <item>
- <label>동종 조혈모세포 이식 요양급여</label>
- <value>1</value>
- </item>
- <item>
- <label>자가 조혈모세포 이식 요양급여</label>
- <value>2</value>
- </item>
- <item>
- <label>제대혈 조혈모세포 이식 요양급여</label>
- <value>3</value>
- </item>
- <item>
- <label>자가-자가 요양급여</label>
- <value>4</value>
- </item>
- <item>
- <label>자가 후 동종 요양급여</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="signyn" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_list.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_list", false, "/root/main/codedata/popupmenu/item", "name", "func");
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|