123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <flaglist>
- <flaglist>
- <prcpflagcd/>
- <no/>
- <fromddflag/>
- <fromtm/>
- <toddflag/>
- <totm/>
- <nomn/>
- <status/>
- <setseqno/>
- </flaglist>
- </flaglist>
- </main>
- <send>
- <sumlistinfo/>
- <savedata/>
- </send>
- <init>
- <sumtmflaglist>
- <flaglist/>
- </sumtmflaglist>
- </init>
- <temp>
- <flaglist>
- <flaglist/>
- </flaglist>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInit() {
- submit("TRADT10206");
- }
-
-
- function fSave() {
- if( !isRequiredControls("cmb_prcpflag", "ipt_no", "cmb_fromddflag", "ipt_fromtm", "cmb_toddflag", "ipt_totm", "ipt_nomn")) {
- return;
- }
-
- if(compareNodeVal("/root/temp/flaglist/flaglist", "/root/main/flaglist/flaglist") == true) {
- if(model.getValue("/root/main/flaglist/flaglist/status") != "i" && model.getValue("/root/main/flaglist/flaglist/status") != "d") {
- model.setValue("/root/main/flaglist/flaglist/status", "u");
- }
- model.copyNode("/root/send/savedata", "/root/main/flaglist/flaglist");
- submit("TXADT64101");
- } else {
- if(model.getValue("/root/main/flaglist/flaglist/status") != "") {
- model.copyNode("/root/send/savedata", "/root/main/flaglist/flaglist");
- submit("TXADT64101");
- } else {
- messageBox("변경된 내용이", "I004");
- return;
- }
- }
- }
-
- function compareNodeVal(desNode, srcNode){
- var node = instance1.selectSingleNode(desNode);
- var node2 = instance1.selectSingleNode(srcNode);
- var nodeList = node.childNodes;
- var nodeList2 = node2.childNodes;
- while(childNode = nodeList.nextNode()){
- childNode2 = nodeList2.nextNode();
- //alert(childNode.NodeValue + "," + childNode2.NodeValue);
- if(childNode.NodeValue != childNode2.NodeValue){
- return true; //값이 다른 경우 true
- }
- }
- return false; //값이 같은 경우 false
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
-
- ]]>
- </script>
- <submission id="TRADT10206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" replace="instance" resultref="/root/init/sumtmflaglist"/>
- <submission id="TXADT64101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/init/sumtmflaglist"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="522" pageheight="410" guideline="1,786;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <input id="ipt_totm" ref="/root/main/flaglist/flaglist/totm" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:285px; top:289px; width:50px; height:19px; "/>
- <select1 id="cmb_prcpflag" ref="/root/main/flaglist/flaglist/prcpflagcd" class="combo_search" appearance="minimal" style="left:85px; top:237px; width:130px; height:19px; ">
- <choices>
- <item>
- <label>정규</label>
- <value>R</value>
- </item>
- <item>
- <label>추가</label>
- <value>A</value>
- </item>
- <item>
- <label>영양수액</label>
- <value>O</value>
- </item>
- <item>
- <label>향정</label>
- <value>H</value>
- </item>
- <item>
- <label>마약</label>
- <value>M</value>
- </item>
- <item>
- <label>주사자동출력</label>
- <value>P</value>
- </item>
- <item>
- <label>주사집계</label>
- <value>J</value>
- </item>
- <item>
- <label>고가고주의고위험</label>
- <value>W</value>
- </item>
- <item>
- <label>교환약출력</label>
- <value>E</value>
- </item>
- <item>
- <label>일일재고</label>
- <value>S</value>
- </item>
- <item>
- <label>응급실집계</label>
- <value>K</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_fromddflag" ref="/root/main/flaglist/flaglist/fromddflag" class="combo_search" appearance="minimal" style="left:85px; top:289px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전일</label>
- <value>0</value>
- </item>
- <item>
- <label>당일</label>
- <value>1</value>
- </item>
- <item>
- <label>익일</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="cell_1" style="left:0px; top:312px; width:80px; height:23px; vertical-align:middle; ">명칭</caption>
- <caption id="caption22" class="cell_1" style="left:0px; top:237px; width:80px; height:23px; vertical-align:middle; ">처방구분</caption>
- <line id="line16" class="line_2" style="x1:0px; y1:310px; x2:490px; y2:310px; "/>
- <input id="ipt_fromtm" ref="/root/main/flaglist/flaglist/fromtm" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:150px; top:289px; width:45px; height:19px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:2px; width:185px; height:13px; ">마감시간관리</caption>
- <caption id="caption13" class="cell_1" style="left:0px; top:262px; width:80px; height:23px; vertical-align:middle; ">차수</caption>
- <line id="line1" class="line_3" style="x1:0px; y1:334px; x2:490px; y2:334px; "/>
- <line id="line17" class="line_1" style="x1:0px; y1:17px; x2:492px; y2:17px; "/>
- <input id="ipt_no" ref="/root/main/flaglist/flaglist/no" class="input_search" autonext="false" maxlength="2" style="left:85px; top:264px; width:130px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- var bResult = fChgDrugno("first");
- if(bResult){
- fInSumList();
-
- if(grd_patlist.rows > 1) {
- model.setValue("/root/main/patlist/patlist/sel", "Y");
- }
- //fPrcpMPSPrint();
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_nomn" ref="/root/main/flaglist/flaglist/nomn" class="input_search" autonext="false" style="left:85px; top:313px; width:130px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_toddflag" ref="/root/main/flaglist/flaglist/toddflag" class="combo_search" appearance="minimal" style="left:220px; top:289px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전일</label>
- <value>0</value>
- </item>
- <item>
- <label>당일</label>
- <value>1</value>
- </item>
- <item>
- <label>익일</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption17" class="cell_1" style="left:0px; top:287px; width:80px; height:23px; vertical-align:middle; ">마감구분</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:285px; x2:490px; y2:285px; "/>
- <caption id="caption18" style="left:200px; top:288px; width:30px; height:25px; font-weight:bold; vertical-align:middle; ">~</caption>
- <button id="btn_save" class="btn4_letter2" style="left:315px; top:340px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
-
- ]]>
- </script>
- </button>
- <line id="line6" class="line_2" style="x1:0px; y1:260px; x2:490px; y2:260px; "/>
- <datagrid id="grd_endtimelist" nodeset="/root/init/sumtmflaglist/flaglist" class="datagrid2" caption="처방
구분^차수^시작일자
구분^시작시간^끝일자
구분^끝시간^명칭" colsep="^" colwidth="90, 44, 60, 60, 60, 60, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:22px; width:492px; height:210px; ">
- <col disabled="true" ref="prcpflagcd" type="combo">
- <choices>
- <item>
- <label>정규</label>
- <value>R</value>
- </item>
- <item>
- <label>추가</label>
- <value>A</value>
- </item>
- <item>
- <label>영양수액</label>
- <value>O</value>
- </item>
- <item>
- <label>향정</label>
- <value>H</value>
- </item>
- <item>
- <label>마약</label>
- <value>M</value>
- </item>
- <item>
- <label>주사자동출력</label>
- <value>P</value>
- </item>
- <item>
- <label>주사집계</label>
- <value>J</value>
- </item>
- <item>
- <label>고가고주의고위험</label>
- <value>W</value>
- </item>
- <item>
- <label>교환약출력</label>
- <value>E</value>
- </item>
- <item>
- <label>일일재고</label>
- <value>S</value>
- </item>
- <item>
- <label>응급실집계</label>
- <value>K</value>
- </item>
- </choices>
- </col>
- <col ref="no"/>
- <col disabled="true" ref="fromddflag" type="combo">
- <choices>
- <item>
- <label>전일</label>
- <value>0</value>
- </item>
- <item>
- <label>당일</label>
- <value>1</value>
- </item>
- <item>
- <label>익일</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="fromtm" format="hh:nn"/>
- <col disabled="true" ref="toddflag" type="combo">
- <choices>
- <item>
- <label>전일</label>
- <value>0</value>
- </item>
- <item>
- <label>당일</label>
- <value>1</value>
- </item>
- <item>
- <label>익일</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="totm" format="hh:nn"/>
- <col ref="nomn"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_endtimelist.row;
- /*model.setValue("/root/main/flaglist/flaglist/prcpflagcd", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/prcpflagcd"));
- model.setValue("/root/main/flaglist/flaglist/no", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/no"));
- model.setValue("/root/main/flaglist/flaglist/fromddflag", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/fromddflag"));
- model.setValue("/root/main/flaglist/flaglist/fromtm", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/fromtm"));
- model.setValue("/root/main/flaglist/flaglist/toddflag", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/toddflag"));
- model.setValue("/root/main/flaglist/flaglist/totm", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/totm"));
- model.setValue("/root/main/flaglist/flaglist/nomn", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/nomn"));*/
- model.copyNode("/root/main/flaglist/flaglist", "/root/init/sumtmflaglist/flaglist[" + row + "]");
- model.copyNode("/root/temp/flaglist/flaglist", "/root/init/sumtmflaglist/flaglist[" + row + "]");
- model.makeNode("/root/main/flaglist/flaglist/status");
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_close" class="btn4_letter2" style="left:434px; top:340px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.javascript.setParameter("SPADT64100_param", "Y");
- model.close();
-
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" style="left:255px; top:340px; width:56px; height:22px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/flaglist/flaglist");
- model.setValue("/root/main/flaglist/flaglist/status", "i");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:375px; top:340px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var setnm = model.getValue("/root/main/flaglist/flaglist/nomn");
- var ret = messageBox(setnm, "Q001");
- if(ret == "6") {
- model.setValue("/root/main/flaglist/flaglist/status", "d");
- fSave();
- } else {
- return;
- }
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|