123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <?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="">
- <tootfact>
- <tootfactlist>
- <status/>
- <clinccmtcnts/>
- <unit/>
- </tootfactlist>
- </tootfact>
- <reset>
- <tootfactlist>
- <status/>
- <clinccmtcnts/>
- <unit/>
- </tootfactlist>
- </reset>
- <intvl/>
- <unit/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- model.removeNodeset ( "/root/tootfact/tootfactlist" );
- var clinccmtcnts = opener.model.getValue ( "/root/main/prcp/prcplist/drugrateqty" ) + "^" ;
- var len = clinccmtcnts.split(",").length;
- var intvl1 = "";
- var unit = "";
- var diagtestconttestintvlflag = opener.model.getValue ( "/root/main/prcp/prcplist/diagtestconttestintvlflag" );
- if ( diagtestconttestintvlflag == "1" ) {
- unit = "분";
- } else if ( diagtestconttestintvlflag == "2" ) {
- unit = "시간";
- } else if ( diagtestconttestintvlflag == "3" ) {
- unit = "횟수";
- } else if ( diagtestconttestintvlflag == "4" ) {
- unit = "일수";
- }
-
- model.setValue ( "/root/reset/tootfactlist/unit", unit );
- model.setValue ( "/root/unit", unit );
-
- for ( var i=0; i < len; i++ ) {
- intvl1 = getArrayData (clinccmtcnts, 0, i, "^", "," );
- if ( intvl1 == "-" ) {
- intvl1 = "";
- }
- model.setValue ( "/root/reset/tootfactlist/clinccmtcnts", intvl1 );
- appendChildPrcp ( "/root/reset/tootfactlist", "/root/tootfact", "main" );
- }
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="150" pageheight="345">
- <datagrid id="datagrid1" nodeset="/root/tootfact/tootfactlist" caption="삭제^연속검사^연속검사" colsep="^" colwidth="30, 60, 29" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:8px; top:27px; width:135px; height:290px; ">
- <col checkvalue="Y,N" ref="status" type="checkbox"/>
- <col imemode="disabled" ref="clinccmtcnts" type="input" format="#,###" style="text-align:right; "/>
- <col ref="unit"/>
- </datagrid>
- <line id="line7" class="line_1" style="x1:8px; y1:22px; x2:143px; y2:22px; "/>
- <button id="button37" class="btn2_letter2" style="left:56px; top:0px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- /*
- var intvl = model.getValue ( "/root/intvl" );
- if ( isNull(intvl)) {
- model.alert ( "연속검사 간격이 존재하지 않습니다." );
- return;
- }*/
-
- model.setValue ( "/root/reset/tootfactlist/clinccmtcnts", "" );
- appendChildPrcp ( "/root/reset/tootfactlist", "/root/tootfact", "main" );
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter2" style="left:101px; top:0px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- srcLen = model.instances(0).selectNodes( "/root/tootfact/tootfactlist" ).length;
- for ( var i=srcLen; i > 0; i-- ) {
- if ( model.getValue ( "/root/tootfact/tootfactlist[" + i + "]/status" ) == "Y") {
- model.removenode ( "/root/tootfact/tootfactlist[" + i + "]" );
- }
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:28px; top:320px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var tootfact = "";
- var clinccmtcnts = "";
- var vclinccmtcnts = "";
- srcLen = model.instances(0).selectNodes( "/root/tootfact/tootfactlist" ).length;
- if ( srcLen == 0 ) {
- model.alert ( "입력된 연속검사값이 없습니다." );
- return;
- }
- for ( var i=1; i <= srcLen; i++ ) {
- vclinccmtcnts = model.getValue ( "/root/tootfact/tootfactlist[" + i+ "]/clinccmtcnts" ) ;
- if ( vclinccmtcnts == "" || vclinccmtcnts =="-" ) {
- model.alert ( "입력된 연속검사값이 없습니다." );
- return;
- }
-
- tootfact = tootfact + model.getValue ( "/root/tootfact/tootfactlist[" + i + "]/clinccmtcnts" ) + model.getValue ( "/root/unit" )+ ",";
- clinccmtcnts = clinccmtcnts + model.getValue ( "/root/tootfact/tootfactlist[" + i+ "]/clinccmtcnts" ) + ",";
- }
- tootfact = tootfact.substring(0, tootfact.length-1);
- clinccmtcnts = clinccmtcnts.substring(0, clinccmtcnts.length-1);
-
- opener.model.setValue ( "/root/main/prcp/prcplist/diagtestconttestcdspec", tootfact );
- opener.model.setValue ( "/root/main/prcp/prcplist/drugrateqty", clinccmtcnts );
- opener.model.setValue ( "/root/main/prcp/prcplist/prcptims", srcLen );
- opener.model.refresh();
- model.close();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" style="left:87px; top:320px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/intvl" imemode="disabled" format="#,###" style="left:8px; top:0px; width:45px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey ( "button4", "DOMActivate" );
- ]]>
- </script>
- </input>
- <button id="button4" visibility="hidden" style="left:10px; top:320px; width:15px; height:20px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var prcptims = opener.model.getValue ( "/root/main/prcp/prcplist/prcptims" );
- var intvl = model.getValue ( "/root/intvl" );
- model.removeNodeset ( "/root/tootfact/tootfactlist" );
- for ( var i=0; i < prcptims; i++ ) {
- model.setValue ( "/root/reset/tootfactlist/clinccmtcnts", intvl * i );
- appendChildPrcp ( "/root/reset/tootfactlist", "/root/tootfact", "main" );
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|