123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- <?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>
- <condition>
- <notecd/>
- <notecdnm/>
- <frdt/>
- <todt/>
- <instcd/>
- <mngitem/>
- </condition>
- <list>
- <itemlist/>
- <detailist/>
- </list>
- </main>
- <send>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fOpenForm();
- //sCdGrupid = model.getValue("/root/init/comcode/cdgrupid");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- //========================================================================================
- //화면 로드시 초기화 함수
- //========================================================================================
- function fOpenForm() {
- model.removenode("/root/main/notelist");
-
- var sToday = getCurrentDate().toString();
- var sFrday = sToday.substring(0,4) + "0301";
-
-
- model.setValue("/root/main/condition/todt",sToday);
- model.setValue("/root/main/condition/frdt",sFrday);
- var instcd = getUserInfo("dutplceinstcd");
- model.setValue("/root/main/condition/instcd",instcd);
-
- model.refresh();
- }
-
- //========================================================================================
- //기재사항코드 조회
- //========================================================================================
- function fGetNoteList() {
- model.resetInstanceNode("/root/main/list/itemlist");
- model.removenode("/root/main/list/itemlist");//조회시 기존 데이터 삭제
- model.copyNode("/root/send", "/root/main/condition");
-
- model.refresh();
- submit("TRRAD01001");
- // misfMsterDetailRetrieve();
- // misfSetReadOnlyCol(grd_notelist, "notecd");
- model.refresh();
- }
-
- //========================================================================================
- //관리항목 상세정보 조회(그리드용)
- //========================================================================================
- function fGetMngItemInfo(pRow)
- {
-
- if ( pRow > 0 )
- {
- model.resetInstanceNode("/root/send");
-
- var strItem ;
- strItem = grd_notelist.valueMatrix(grd_notelist.row, grd_notelist.colRef("mngitem"));
- model.setValue("/root/main/condition/mngitem",strItem);
-
- model.resetInstanceNode("/root/main/list/detailist");
- model.removenode("/root/main/list/detailist");//조회시 기존 데이터 삭제
- model.copyNode("/root/send", "/root/main/condition");
- submit("TRRAD01101");
-
- //fCopyInstance();
- }
- }
-
-
-
- //========================================================================================
- //엑셀입력(excel file을 그리드에 입력)
- //========================================================================================
- function fInputExcel(pGrid) {
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(fileName != "") {
- pGrid.loadExcel(fileName, 1, true);
- pGrid.deleteRow(1);
-
- for(i = 1; i < pGrid.rows; i++) {
- pGrid.rowStatus(i) = 1;
- }
- pGrid.refresh();
- }
- }
- ]]>
- </script>
- <submission id="TRRAD01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/itemlist"/>
- <submission id="TRRAD01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detailist"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" 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:293px; height:14px; ">관리 내역 원장</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:20px; width:1195px; height:730px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:16px; top:9px; width:125px; height:17px; ">관리항목코드 :</caption>
- <line id="line5" class="line_4" style="x1:1087px; y1:8px; x2:1087px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1120px; top:10px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetNoteList();
- ]]>
- </script>
- </button>
- <input id="ipt_notecd" ref="/root/main/condition/notecd" class="input_s_essential" navindex="6" style="left:135px; top:8px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_notecdnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfNoteValidCheck("notecd,notecdnm")
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm" ref="/root/main/condition/notecdnm" class="input_s_essential" navindex="6" style="left:241px; top:8px; width:230px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfNoteValidCheck("notecd,notecdnm")
- ]]>
- </script>
- </input>
- <button id="btn_help" class="icon_search" style="left:221px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfOpenPopUpList("06", ipt_notecd, "", "notecd,notecdnm");
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:505px; top:8px; width:89px; height:17px; ">기 간 :</caption>
- <caption id="caption2" style="left:699px; top:8px; width:15px; height:20px; ">~</caption>
- <input id="input2" ref="/root/main/condition/frdt" class="input_s_essential" inputtype="date" style="left:595px; top:8px; width:100px; height:19px; "/>
- <input id="input3" ref="/root/main/condition/todt" class="input_s_essential" inputtype="date" style="left:712px; top:8px; width:100px; height:19px; "/>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1180px; y2:70px; "/>
- <caption id="caption21" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">관리내역</caption>
- <button id="btn_excadd" class="btn2_letter4" style="left:1115px; top:50px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInputExcel(grd_notelist);
- ]]>
- </script>
- </button>
- <upload id="upload1" style="left:735px; top:415px; width:100px; height:20px; "/>
- <datagrid id="datagrid" nodeset="/root/main/list/detailist" caption="기관^계정코드^계정명^년도^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계" colsep="^" colwidth="0,0,149, 90, 90, 90, 90, 90, 90, 90, 90, 90,90, 90, 90, 90, 120" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:300px; top:75px; width:895px; height:620px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="acntnm" style="text-align:left; "/>
- <col ref="yyyy" style="text-align:center; "/>
- <col ref="mon01" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="mon02" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="mon03" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="mon04" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="mon05" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="mon06" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="mon07" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="mon08" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="mon09" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="mon10" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="mon11" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="mon12" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="totl" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- </datagrid>
- <datagrid id="grd_notelist" nodeset="/root/main/list/itemlist" caption="기관코드^코드^관리항목내역" colsep="^" colwidth="0, 0, 246" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:75px; width:295px; height:620px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="notecd" visibility="hidden"/>
- <col ref="mngitem" type="input" maxlength="3" style="text-align:left; "/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var cur_row = grd_notelist.row;
- fGetMngItemInfo(cur_row);
-
- grd_notelist.dispatch("onmouseup");
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|