123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * 제 목 : SMASB02300_법정전염병마스터관리.xrw
- * 설 명 : 법정전염병마스터관리
- * 설 계 자 : 김광성
- * 작 성 자 : 김광성
- * 작 성 일 : 2010.2.10
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <asihlgdc>
- <list>
- <status/>
- <seqno/>
- <instcd/>
- <instcd/>
- <reptflag/>
- <lglydiscd/>
- <lglydisnm/>
- <infdiskindcd/>
- <fromdd/>
- <todd/>
- <fromicd10cd/>
- <toicd10cd/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <rorgstflag/>
- <cdcdiagcd/>
- <lastuptusernm/>
- <fstrgstusernm/>
- </list>
- </asihlgdc>
- </main>
- <send>
- <reqdata>
- <reptflag/>
- <icd10cd/>
- <sicknm/>
- <endchk/>
- <savedata/>
- </reqdata>
- </send>
- <init>
- <reptflag>
- </reptflag>
- <selrptflag/>
- <infdiskindcd/>
- </init>
- <hidden/>
- <temp>
- <lastrowcnt/>
- <getdata/>
- </temp>
- <conditon>
- <status>
- <insert>i</insert>
- <delete>d</delete>
- <update>u</update>
- <select>s</select>
- </status>
- <wndid>SMASB02300</wndid>
- </conditon>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 그룹코드(A0130)에 해당하는 cdid, cdnm값을 가져와서 cmb_reptflag에 연결하는 부분
- // 그룹코드 : A0130
- // 사용범위 : 검색필드->신고서 구분, 검색결과 그리드-> reptflag
- zbcfGetCodeList( new Array("A0130"), new Array("/root/init/reptflag") , true); // ZBC001.js에 정의된 스크립트
- // 그리드->reptflag에서 사용될 노드를 복사
- model.copyNode("/root/init/selrptflag", "/root/init/reptflag");
- // 신고서구분에 전체 조건을 추가
- addComboItem("cmb_reptflag", "전체", "-", "above"); // tfHelper.js에 정의된 스크립트
-
- zbcfGetCodeList( new Array("A0129"), new Array("/root/init/infdiskindcd") , true); // ZBC001.js에 정의된 스크립트
-
- model.setValue("/root/send/reqdata/reptflag", "-");
- submit("TRASB02301");
- grd_asihlgdc.refresh();
- ]]>
- </script>
- <!-- com/basiccodeweb/js/ZBC001.js 함수를 사용하기 위한 Map파일 설정 -->
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00114" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00103" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00104" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <!-- kskim 사용자가 정의한 Submission 부분 -->
- <!-- 조회 버튼 클릭 시 실행되는 Submission -->
- <submission id="TRASB02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/asihlgdc"/>
- <!-- 공통코드 API를 사용하기 위한 관련 js파일 import 부분 -->
- <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"/>
- <submission id="TXASB02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata/savedata" resultref="/root/main/asihlgdc"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1217;2,54;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:199px; height:15px; ">법정감염병 질병 마스터</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:30px; width:1194px; height:30px; "/>
- <select1 id="cmb_reptflag" ref="/root/send/reqdata/reptflag" appearance="minimal" style="left:112px; top:36px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reptflag/A0130">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_reflglydisinfo.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:15px; top:37px; width:94px; height:17px; ">신고서구분:</caption>
- <caption id="caption3" class="search_name" style="left:248px; top:37px; width:94px; height:17px; ">감염병코드:</caption>
- <caption id="caption4" class="search_name" style="left:459px; top:37px; width:81px; height:17px; ">감염병명:</caption>
- <input id="ipt_lglydisnm" ref="/root/send/reqdata/sicknm" style="left:543px; top:36px; width:135px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_reflglydisinfo", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_reflglydisinfo" class="btn1_letter2" navindex="3" style="left:1133px; top:35px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRASB02301");
- grd_asihlgdc.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_asihlgdc" nodeset="/root/main/asihlgdc/list" disabled="false" autoresize="true" caption="status^seqno^기관코드^신고서구분^감염병코드^질병관리본부코드^감염병명^감염병분류코드^시작일자^종료일자^시작ICD10코드^종료ICD10코드^최초등록자^최초등록일^최종수정자^최종수정일^최초등록자ID^최종수정자ID^R/O^mig^rorgstflag^" colsep="^" colwidth="16, 11, 10, 162, 69, 100, 250, 91, 89, 90, 104, 106, 72, 91, 72, 91, 100, 100, 45" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:91px; width:1194px; height:665px; ">
- <col ref="status" visibility="hidden"/>
- <col ref="seqno" type="output" visibility="hidden"/>
- <col ref="instcd" type="output" visibility="hidden"/>
- <col ref="reptflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/selrptflag/A0130">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="lglydiscd" type="input" format="###" maxlength="3"/>
- <col ref="cdcdiagcd"/>
- <col ref="lglydisnm" type="input"/>
- <col ref="infdiskindcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/infdiskindcd/A0129">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fromdd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="todd" type="inputdate" format="yyyy-mm-dd"/>
- <col id="fromlglydiscd_btn" ref="fromicd10cd" type="inputbutton"/>
- <col id="tolglydiscd_btn" ref="toicd10cd" type="inputbutton"/>
- <col ref="fstrgstusernm" style="text-align:center; "/>
- <col disabled="true" ref="fstrgstdt" type="inputdate"/>
- <col ref="lastuptusernm" style="text-align:center; "/>
- <col disabled="true" ref="lastupdtdt" type="inputdate"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="rorgstflag" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var curRow = grd_asihlgdc.row;
- if(model.getValue("/root/main/asihlgdc/list[" + curRow + "]/status") != "i") {
- model.setValue("/root/main/asihlgdc/list[" + curRow + "]/status", model.getValue("/root/conditon/status/update") );
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var curRow = grd_asihlgdc.row;
- var curCol = grd_asihlgdc.col; //lglydiscd 컬럼위치 정보
- var curStatus = model.getValue("/root/main/asihlgdc/list[" + curRow + "]/status");
- var selId = model.getFocus();
- if(selId == "fromlglydiscd_btn.button" || selId == "tolglydiscd_btn.button"){
- setParameter("SMASB02300_param", curRow + "▦" + curCol + "▦" + curStatus);
- modal("SPMQP01600", 1,0,0,"SPMQP01600","","","","", "", "");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_asihlgdc.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_lglydiscd" ref="/root/send/reqdata/icd10cd" style="left:345px; top:36px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_reflglydisinfo", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_addRow" class="btn2_letter2" style="left:1055px; top:66px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_asihlgdc.addRow(true, true);
- var curCnt = grd_asihlgdc.rows - grd_asihlgdc.fixedRows;
- model.setValue("/root/main/asihlgdc/list[" + curCnt + "]/fromdd", getCurrentDate() );
- model.setValue("/root/main/asihlgdc/list[" + curCnt + "]/todd", "99991231");
- model.setValue("/root/main/asihlgdc/list[" + curCnt + "]/status", model.getValue("/root/conditon/status/insert") );
-
- grd_asihlgdc.row = curCnt;
- grd_asihlgdc.col = grd_asihlgdc.colRef("reptflag");
- grd_asihlgdc.editCell();
- ]]>
- </script>
- </button>
- <button id="btn_rmRow" class="btn2_letter2" style="left:1100px; top:66px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var selectedRow = grd_asihlgdc.row;
- var status = model.getValue("/root/main/asihlgdc/list[" + selectedRow + "]/status")
- if( status == "i"){
- grd_asihlgdc.removeItem();
- }
- else{
- model.setValue("/root/main/asihlgdc/list[" + selectedRow + "]/status", model.getValue("/root/conditon/status/delete"));
- grd_asihlgdc.addStatus(selectedRow, "delete");
- }
- ]]>
- </script>
- </button>
- <button id="btn_saveRow" class="btn5_letter2" style="left:1145px; top:66px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nodes = instance1.selectNodes("/root/main/asihlgdc/list[status = 'u' or status = 'i']");
-
- if( nodes.length > 0 ) {
- var node = nodes.item(0);
- var reptflag = node.selectSingleNode("reptflag");
- var lglydisnm = node.selectSingleNode("lglydisnm");
- var fromicd10cd = node.selectSingleNode("fromicd10cd");
- var toicd10cd = node.selectSingleNode("toicd10cd");
-
- if( isNull(reptflag.nodeValue)){
- messageBox("신고서구분은 ", "I003");
- grd_asihlgdc.row;
- grd_asihlgdc.col = grd_asihlgdc.colRef("reptflag");
- grd_asihlgdc.editCell();
- return;
- }
- else if(isNull( lglydisnm.nodeValue )){
- messageBox("감염병명은 ", "I003");
- grd_asihlgdc.row;
- grd_asihlgdc.col = grd_asihlgdc.colRef("lglydisnm");
- grd_asihlgdc.editCell();
- return;
- }
- else if(isNull(fromicd10cd.nodeValue)){
- messageBox("시작ICD10코드는 ", "I003");
- grd_asihlgdc.row;
- grd_asihlgdc.col = grd_asihlgdc.colRef("fromicd10cd");
- grd_asihlgdc.editCell();
- return;
- }
- else if( isNull(toicd10cd.nodeValue)){
- messageBox("종료ICD10코드는 ", "I003");
- grd_asihlgdc.row;
- grd_asihlgdc.col = grd_asihlgdc.colRef("toicd10cd");
- grd_asihlgdc.editCell();
- return;
- }
- }
-
- var saveNodes = instance1.selectNodes("/root/main/asihlgdc/list[status = 'u' or status = 'i' or status = 'd']");
- if( saveNodes.length > 0 ){
- model.makeValue("/root/send/reqdata/savedata/list", grd_asihlgdc.getUpdateData());
- model.makeValue("/root/send/reqdata/savedata/req_reptflag", model.getValue("/root/send/reqdata/reptflag"));
- model.makeValue("/root/send/reqdata/savedata/req_icd10cd", model.getValue("/root/send/reqdata/icd10cd"));
- model.makeValue("/root/send/reqdata/savedata/req_sicknm", model.getValue("/root/send/reqdata/sicknm"));
- if(submit("TXASB02301", false)){
- model.refresh();
- grd_asihlgdc.clearStatus();
- }
- }
- else{
- messageBox("저장할 데이터가", "I004");
- }
- ]]>
- </script>
- </button>
- <line id="line3" style="x1:1125px; y1:34px; x2:1125px; y2:56px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line6" class="line_1" style="x1:0px; y1:86px; x2:1194px; y2:86px; "/>
- <caption id="caption12" class="tit_2" style="left:5px; top:70px; width:274px; height:15px; ">법정감염병 질병 마스터관리</caption>
- <select id="checkbox1" ref="/root/send/reqdata/endchk" overflow="visible" appearance="full" style="left:1050px; top:38px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>종료포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="btn_excel" class="btn1_letter2" style="left:980px; top:35px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "법정전염병 마스터" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != ""){
- grd_asihlgdc.saveExcel(fileName, "SheetName", true, true, "", "", "false");
- }
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|