123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <?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="">
- <send>
- <fromdd/>
- <todd/>
- </send>
- <main>
- <discut>
- <discutlist/>
- <cutbflist/>
- </discut>
- </main>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var today = getCurrentDate();
- var fromdd = (today.toDate().getAddDate(-1, "Y")).getAddDate(1, "M").getDateFormat("YYYYMM");
- var todd = today.toDate().getDateFormat("YYYYMM");
-
- model.setValue("/root/send/todd", todd);
- model.setValue("/root/send/fromdd", fromdd);
- model.refresh();
- ]]>
- </script>
- <submission id="TRPPI00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/discut"/>
- <submission id="TXPPI00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/cutbf" resultref="/root/hidden"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open, 저장시 초기화 기능을 수행한다.
- function fClose() {
- window.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1000" pageheight="700" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:75px; width:328px; height:13px; ">삭감 처방코드 내역</caption>
- <line id="line7" class="line_1" style="x1:5px; y1:90px; x2:465px; y2:90px; "/>
- <line id="line8" class="line_1" style="x1:510px; y1:90px; x2:970px; y2:90px; "/>
- <button id="btn_init" class="btn4_letter3" style="left:900px; top:666px; width:68px; height:22px; ">
- <caption>닫 기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- <group id="group1" style="left:5px; top:25px; width:965px; height:45px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:960px; height:40px; "/>
- <button id="button1" class="btn4_letter2" style="left:895px; top:10px; width:55px; height:20px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPPI00801");
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/send/fromdd" inputtype="date" format="yyyy-mm" style="left:110px; top:10px; width:90px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:20px; top:10px; width:95px; height:17px; ">조회기간 :</caption>
- <caption id="caption3" style="left:200px; top:15px; width:30px; height:10px; ">~</caption>
- <input id="input2" ref="/root/send/todd" inputtype="date" format="yyyy-mm" style="left:220px; top:10px; width:90px; height:19px; "/>
- </group>
- <datagrid id="grd_discutlist" nodeset="/root/main/discut/discutlist" autoresize="true" caption="청구월^처방코드^처방병" colsep="^" colwidth="80, 90, 250" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:5px; top:95px; width:460px; height:560px; ">
- <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col ref="calcscorcd" style="text-align:center; "/>
- <col ref="hngnm"/>
- </datagrid>
- <datagrid id="grd_cutbflist" nodeset="/root/main/discut/cutbflist" caption="처방코드^처방명^시작일자^종료일자^제어코드" colsep="^" colwidth="90, 200, 80, 80, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:510px; top:95px; width:460px; height:560px; ">
- <col ref="calcscorcd" style="text-align:center; "/>
- <col ref="hngnm"/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rulecd" visibility="hidden"/>
- </datagrid>
- <button id="button2" class="icon_left" style="left:475px; top:350px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_cutbflist.selectedRows;
-
- if ( row > 0 ) {
- vrow = new Array(row);
- for ( i=0; i<row; i++) {
- var srow = grd_cutbflist.selectedRow(i);
- if ( grd_cutbflist.valueMatrix(srow, grd_cutbflist.colRef("rulecd")) != "" ) {
- grd_cutbflist.rowStatus(srow) = 4;
- grd_cutbflist.valueMatrix(srow, grd_cutbflist.colRef("todd")) = getCurrentDate();
- } else if ( grd_cutbflist.valueMatrix(srow, grd_cutbflist.colRef("rulecd")) == "" ) {
- vrow[i] = srow;
- }
- }
- alert(vrow[0]);
- if ( vrow.length > 0 && vrow[0] != "" && vrow[0] != null) {
- for ( j=0; j<vrow.length; j++) {
- grd_cutbflist.deleteRow(vrow[j] - j, false);
- }
- }
-
- }
- grd_cutbflist.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button3" class="icon_right" style="left:475px; top:315px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_discutlist.selectedRows;
- vrow = new Array(row-1);
- if ( row > 0 ) {
- for( i = 0; i < row; i++) {
- grd_cutbflist.addRow(false);
- var srow = grd_discutlist.selectedRow(i);
- var arow = grd_cutbflist.rows-1;
- var calcscorcd = grd_discutlist.valueMatrix(srow, grd_discutlist.colRef("calcscorcd"));
-
- var hngnm = grd_discutlist.valueMatrix(srow, grd_discutlist.colRef("hngnm"));
- grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("calcscorcd")) = calcscorcd;
- grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("hngnm")) = hngnm;
- grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("fromdd")) = getCurrentDate();
- grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("todd")) = "99991231";
-
- grd_cutbflist.gridToInstance();
- vrow[i] = srow;
- }
- //alert(vrow);
- for( j=0; j < vrow.length; j++) {
- grd_discutlist.deleteRow(vrow[j] - j, false);
- }
- grd_discutlist.refresh();
- grd_cutbflist.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter3" style="left:825px; top:666px; width:68px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/send/savedata/cutbf/cutbflist");
- var update = getGridUpdateData(grd_cutbflist);
- model.setValue("/root/send/savedata/cutbf/cutbflist", update);
- submit("TXPPI00801");
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:512px; top:75px; width:145px; height:13px; ">제어 처방코드 내역</caption>
- <caption id="caption5" class="tit_1" style="left:10px; top:5px; width:100px; height:20px; ">삭감대상처방조회</caption>
- </xhtml:body>
- </xhtml:html>
|