123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381 |
- <?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="">
- <send>
- <data1>
- <refcond>0</refcond>
- <cond_fromdd/>
- <cond_todd/>
- </data1>
- </send>
- <main>
- <immaturelist>
- <list/>
- </immaturelist>
- <stillbornlist>
- <list/>
- </stillbornlist>
- </main>
- <init>
- </init>
- <hidden>
- <allchk/>
- <allchk2/>
- <print>
- <immature/>
- <stillborn/>
- </print>
- </hidden>
- </root>
- </instance>
- <submission id="TRPMC05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/immaturelist"/>
- <submission id="TRPMC05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/sillbornlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- makeReportPreview(0, 0, 10, 10, "grp_report");
-
- fInitialize();
-
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.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"/>
- <script type="javascript">
- <![CDATA[
-
- function fInitialize() {
- //model.resetInstanceNode("/root/main/immaturelist");
- //model.resetInstanceNode("/root/main/stillbornlist");
- model.removeNodeset("/root/main/immaturelist");
- model.removeNodeset("/root/main/stillbornlist");
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/data1/refcond","0");
- model.setValue("/root/send/data1/cond_fromdd", getCurrentDate());
- model.setValue("/root/send/data1/cond_todd", getCurrentDate());
-
- fSelectRefItem();
-
- model.refresh();
- }
-
- function fSelectRefItem()
- {
- // 0. 미숙아신고 1. 사산, 사태신고
- var sRefCond = model.getValue("/root/send/data1/refcond");
-
- //model.resetInstanceNode("/root/main/immaturelist");
-
- //model.removeNodeset("/root/main/immaturelist");
- //model.removeNodeset("/root/main/stillbornlist");
-
- // 항목 선택에 따른 그리드 스위칭...
- // 미숙아
- if (sRefCond == "0") {
- model.toggle("case1");
- }
-
- // 사산, 사태
- if (sRefCond == "1") {
- model.toggle("case2");
- }
-
- model.refresh();
- }
-
- // 조회조건에 따른 값 체크
- function fCheckRefCondition() {
- // 1. 전체 2.환자번호 4.진료과 5.병동
- var sRefCond = model.getValue("/root/send/data1/refcond");
-
- var sCondFromdd = model.getValue("/root/send/data1/cond_fromdd");
- var sCondTodd = model.getValue("/root/send/data1/cond_todd");
-
- var bResult = false;
-
- // 조회날짜 체크
- if (isNull(sCondFromdd) || isNull(sCondTodd)) {
- bResult = false;
- messageBox("조회 시작일자 또는 종료일자를 확인하십시오!!", "I");
- } else {
- bResult = true;
- }
-
- return bResult;
- }
-
- function fPrint() {
- var sRefCond = model.getValue("/root/send/data1/refcond");
-
- // 미숙아신고서
- if (sRefCond == "0") {
- var iRows = grd_immature.rows;
- if (iRows >= 1) {
- for (var idx = 1 ; idx < iRows ; idx++) {
- var bIsChecked = model.getValue("/root/main/immaturelist/list[" + idx + "]/chkflag");
- if (bIsChecked == "Y") {
- //alert(idx);
- model.copyNode("/root/hidden/print/immature", "/root/main/immaturelist/list[" + idx + "]");
-
- model.makeValue("/root/hidden/print/immature/year", getCurrentDate().substr(0, 4));
- model.makeValue("/root/hidden/print/immature/month", getCurrentDate().substr(4, 2));
- model.makeValue("/root/hidden/print/immature/day", getCurrentDate().substr(6, 2));
-
- exeReportPreview("RPPMC05403", "XMLSTR" , "", "", "true", "", "", "", "", "true", "", ""); //grp_report
- //exeReportPreview("RPPMC05401", "XMLSTR" , "", "", "true", "", "", "", "", "true", "", ""); //grp_report
- model.resetInstanceNode("/root/hidden/print/immature");
- }
- }
- } else {
- messageBox("출력할 내용이 없습니다!!", "I");
- }
- }
-
- // 사산보고서
- if (sRefCond == "1") {
- var iRows = grd_stillborn.rows;
- if (iRows >= 1) {
- for (var idx = 1 ; idx < iRows ; idx++) {
- var bIsChecked = model.getValue("/root/main/stillbornlist/list[" + idx + "]/chkflag");
- if (bIsChecked == "Y") {
- //alert(idx);
- model.copyNode("/root/hidden/print/stillborn", "/root/main/stillbornlist/list[" + idx + "]");
-
- model.makeValue("/root/hidden/print/stillborn/year", getCurrentDate().substr(0, 4));
- model.makeValue("/root/hidden/print/stillborn/month", getCurrentDate().substr(4, 2));
- model.makeValue("/root/hidden/print/stillborn/day", getCurrentDate().substr(6, 2));
-
- exeReportPreview("RPPMC05402", "XMLSTR" , "", "", "true", "", "", "", "", "true", "", ""); //grp_report
- model.resetInstanceNode("/root/hidden/print/stillborn");
- }
- }
- } else {
- messageBox("출력할 내용이 없습니다!!", "I");
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;1,1195;2,52;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">미숙아/사산/사태신고조회</caption>
- </group>
- <group id="group3" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption17" class="search_name" style="left:5px; top:8px; width:86px; height:17px; ">조회조건 :</caption>
- <button id="btn_ref" class="btn1_letter2" navindex="4" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 조회 구분별로 체크 로직 추가....
- var bOK = fCheckRefCondition();
- var sRefCond = model.getValue("/root/send/data1/refcond");
-
- if (bOK == true) {
- // 미숙아
- if (sRefCond == "0") {
- model.removeNodeset("/root/main/immaturelist");
- submit("TRPMC05401");
-
- var iCount = getNodesetCount("/root/main/immaturelist/list");
- if (iCount == 0) {
- messageBox("조회 결과가 없습니다.", "I");
- }
- }
-
- // 사산, 사태
- if (sRefCond == "1") {
- model.removeNodeset("/root/main/stillbornlist");
- submit("TRPMC05402");
-
- var iCount = getNodesetCount("/root/main/stillbornlist/list");
- if (iCount == 0) {
- messageBox("조회 결과가 없습니다.", "I");
- }
- }
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_cond" ref="/root/send/data1/refcond" navindex="1" appearance="minimal" style="left:95px; top:7px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>미숙아신고</label>
- <value>0</value>
- </item>
- <item>
- <label>사산/사태신고</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSelectRefItem();
- ]]>
- </script>
- </select1>
- <input id="ipt_fromdd" ref="/root/send/data1/cond_fromdd" navindex="2" inputtype="date" style="left:311px; top:7px; width:100px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:220px; top:8px; width:86px; height:17px; ">조회기간 :</caption>
- <input id="ipt_todd" ref="/root/send/data1/cond_todd" navindex="3" inputtype="date" style="left:436px; top:7px; width:100px; height:19px; "/>
- <caption id="caption3" style="left:418px; top:7px; width:15px; height:20px; ">~</caption>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:300px; height:14px; font-family:돋움; vertical-align:middle; ">조회 목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="grp_report" visibility="hidden" style="left:865px; top:50px; width:65px; height:15px; "/>
- <button id="btn_print" class="btn2_letter2" navindex="5" visibility="visible" style="left:1085px; top:50px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrint();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter4" navindex="6" style="left:1130px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sRefCond = model.getValue("/root/send/data1/refcond");
- var fileName = window.fileDialog("save", ",", false, getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- if (sRefCond == "0") {
- grd_immature.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
-
- if (sRefCond == "1") {
- grd_stillborn.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- }
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:1px; top:75px; width:1192px; height:665px; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:1190px; height:663px; ">
- <datagrid id="grd_immature" nodeset="/root/main/immaturelist/list" class="datagrid2" caption="^환자번호^산모성명^아기성명^산모주민번호^배우자성명^주소^전화번호^분만기관명^분만일자^체중^체중^임신기간^임신기간^임신기간" colsep="^" colwidth="18, 80, 80, 80, 100, 70, 300, 90, 100, 80, 50, 15, 40, 20, 20" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:1190px; height:663px; ">
- <col checkvalue="Y,N" ref="chkflag" type="checkbox"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="babynm"/>
- <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="partnernm"/>
- <col ref="addr"/>
- <col ref="tel"/>
- <col ref="bthplcenm"/>
- <col ref="bthdt"/>
- <col ref="weig" style="text-align:right; "/>
- <col ref="weigunit" style="text-align:center; "/>
- <col ref="prgweekcnt" style="text-align:right; "/>
- <col ref="termunit" style="text-align:center; "/>
- <col ref="prgadddaycnt" style="text-align:right; "/>
- </datagrid>
- <bool id="bool1" checkvalue="Y,N" ref="/root/hidden/allchk" style="left:20px; top:5px; width:20px; height:20px; ">
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var iRows = grd_immature.rows;
- if (iRows >= 1) {
- for (var idx = 1 ; idx < iRows ; idx++) {
- model.setValue("/root/main/immaturelist/list[" + idx + "]/chkflag", "Y");
- }
-
- grd_immature.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- var iRows = grd_immature.rows;
- if (iRows >= 1) {
- for (var idx = 1 ; idx < iRows ; idx++) {
- model.setValue("/root/main/immaturelist/list[" + idx + "]/chkflag", "N");
- }
-
- grd_immature.refresh();
- }
- ]]>
- </script>
- </bool>
- </case>
- <case id="case2">
- <datagrid id="grd_stillborn" nodeset="/root/main/stillbornlist/list" class="datagrid2" caption="^환자번호^성명^주민번호^주소^사망일자^임신기간^임신기간^임신기간^발생장소^원인" colsep="^" colwidth="18, 80, 80, 100, 300, 80, 40, 20, 20, 100, 200" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:1190px; height:663px; ">
- <col checkvalue="Y,N" ref="chkflag" type="checkbox"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="addr"/>
- <col ref="deathdd" format="yyyy-mm-dd" style="left:0px; top:0px; width:0px; height:0px; text-align:center; "/>
- <col ref="prgweekcnt" style="text-align:right; "/>
- <col ref="termunit" style="text-align:center; "/>
- <col ref="prgadddaycnt" style="text-align:right; "/>
- <col disabled="true" ref="occurplce" type="combo">
- <choices>
- <item>
- <label>의료기관</label>
- <value>Y</value>
- </item>
- <item>
- <label>기타</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="reason"/>
- </datagrid>
- <bool id="bool2" checkvalue="Y,N" ref="/root/hidden/allchk2" style="left:20px; top:5px; width:20px; height:20px; ">
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var iRows = grd_stillborn.rows;
- if (iRows >= 1) {
- for (var idx = 1 ; idx < iRows ; idx++) {
- model.setValue("/root/main/stillbornlist/list[" + idx + "]/chkflag", "Y");
- }
-
- grd_stillborn.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- var iRows = grd_stillborn.rows;
- if (iRows >= 1) {
- for (var idx = 1 ; idx < iRows ; idx++) {
- model.setValue("/root/main/stillbornlist/list[" + idx + "]/chkflag", "N");
- }
-
- grd_stillborn.refresh();
- }
- ]]>
- </script>
- </bool>
- </case>
- </switch>
- </group>
- <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button2" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|