123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308 |
- <?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="">
- <init>
- <oproomlist/>
- </init>
- <main>
- <cond>
- <opfromdd/>
- <optodd/>
- <oprosette/>
- <refdeptflag/>
- <cureflag/>
- <oproomcd/>
- <goodcd/>
- <allsizespecid/>
- <goodnm/>
- <subflag>U</subflag>
- </cond>
- <undelivelist>
- <chkflag/>
- <oproomnn/>
- <goodcd/>
- <allsizespecid/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpynm/>
- <prcpunit/>
- <prcpqty/>
- <deliveqty/>
- <undeliveqty/>
- <opcnfmdd/>
- <oproomcd/>
- </undelivelist>
- </main>
- <send/>
- <hidden/>
- <temp/>
- <viewctrl>
- <viewctrllist/>
- </viewctrl>
- </root>
- </instance>
- <submission id="TRMNP00323" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/viewctrl/viewctrllist"/>
- <submission id="TRMNP03004" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/rosettelist"/>
- <submission id="TRMNP03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/oproomlist"/>
- <submission id="TRMNP05001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/oproomlist"/>
- <submission id="TRMNP02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/undelivelist"/>
- <submission id="TXMNP02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- </model>
- <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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/opanstweb/js/SMMNP02100.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;1,5;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:2px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1133px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <select1 id="cmb_oproomcd" ref="/root/main/cond/oproomcd" appearance="minimal" style="left:405px; top:8px; width:50px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/oproomlist">
- <label ref="oproomnm"/>
- <value ref="oproomcd"/>
- </itemset>
- </choices>
- </select1>
- <button id="button2" class="btn2_letter3" style="left:1065px; top:8px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/cond/goodcd", "");
- model.setValue("/root/main/cond/goodnm", "");
- model.setValue("/root/main/cond/allsizespecid", "");
- //----(20101114) 경북대
- //model.setValue("/root/main/cond/variable", "");
- //----(20101114) 경북대
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodnm" ref="/root/main/cond/goodnm" class="input_search" style="left:910px; top:8px; width:150px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_reqtodd" ref="/root/main/cond/optodd" class="input_s_essential" navindex="2" inputtype="date" style="left:188px; top:8px; width:90px; height:19px; "/>
- <input id="ipt_reqfromdd" ref="/root/main/cond/opfromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:82px; top:8px; width:90px; height:19px; "/>
- <input id="ipt_goodcd" ref="/root/main/cond/goodcd" class="input_search" style="left:810px; top:8px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_goodsearch" class="icon_search" style="left:890px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var refflag = model.getValue("/root/temp/refflag");
- if( refflag == "1" ) { /*물품명으로 검색*/
- setParameter("refnm", model.getValue("/root/main/cond/goodnm"));
- setParameter("refflag", "1");
- }else if( refflag == "2" ) { /*물품코드으로 검색*/
- setParameter("refnm", model.getValue("/root/main/cond/goodcd"));
- setParameter("refflag", "2");
- }
- setParameter("tabflag", "CCR");
- setParameter("goodflag", model.getValue("/root/main/cond/goodflag"));
- setParameter("menuparam", "S");
- setParameter("cartgubn", model.getValue("/root/main/cond/deptflag"));
- modal("SMMNP04460" ,"", "100", "100", "SMMNP04460", "", "");
-
- var getData = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
- if( getData == "") {
- return;
- }else {
- var getDataTemp1 = getData.split("▩");
-
- var getDataTemp2 = getDataTemp1[0].split("|");
-
- model.setValue("/root/main/cond/goodcd", getDataTemp2[0]);
- model.setValue("/root/main/cond/goodnm", getDataTemp2[1]);
- model.setValue("/root/main/cond/allsizespecid", getDataTemp2[2]);
- //model.setValue("/root/main/cond/goodflag", getDataTemp2[3]);
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/main/cond/cureflag" appearance="minimal" style="left:662px; top:8px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>Suture</label>
- <value>1</value>
- </item>
- <item>
- <label>Supplies</label>
- <value>2</value>
- </item>
- <item>
- <label>Drug</label>
- <value>3</value>
- </item>
- <item>
- <label>Instrument</label>
- <value>4</value>
- </item>
- <item>
- <label>처치,행위</label>
- <value>5</value>
- </item>
- <item>
- <label>린넨/소모품</label>
- <value>6</value>
- </item>
- <item>
- <label>Sheet</label>
- <value>7</value>
- </item>
- <item>
- <label>Glove</label>
- <value>8</value>
- </item>
- <item>
- <label>일반물품</label>
- <value>9</value>
- </item>
- <item>
- <label>린넨</label>
- <value>10</value>
- </item>
- <item>
- <label>공용</label>
- <value>11</value>
- </item>
- </choices>
- </select1>
- <caption id="caption11" class="search_n_b" style="left:175px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <caption id="caption2" class="search_name" style="left:0px; top:8px; width:81px; height:17px; ">수술일자:</caption>
- <select1 id="combo2" ref="/root/main/cond/refdeptflag" appearance="minimal" style="left:519px; top:8px; width:55px; height:19px; ">
- <choices>
- <item>
- <label>수술</label>
- <value>O</value>
- </item>
- <item>
- <label>마취</label>
- <value>A</value>
- </item>
- <item>
- <label>회복</label>
- <value>R</value>
- </item>
- <item>
- <label>안과</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:280px; top:8px; width:68px; height:17px; ">수술방:</caption>
- <caption id="caption5" class="search_name" style="left:459px; top:8px; width:85px; height:17px; ">부서:</caption>
- <select1 id="cmb_rosette" ref="/root/main/cond/oprosette" class="combo_default" appearance="minimal" style="left:350px; top:8px; width:50px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/rosettelist">
- <label ref="rosettenm"/>
- <value ref="rosettecd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/opcnfmdd" ,getCurrentDate().substr(0, 8) );
- model.makeValue("/root/send/rosette" ,model.getValue("/root/main/cond/oprosette"));
- if(submit("TRMNP03002")){ // 수술실코드 가져오기
- addComboItem("cmb_oproomcd","전체","","above");
- }
- ]]>
- </script>
- </select1>
- <caption id="caption29" class="search_name" style="left:725px; top:8px; width:85px; height:17px; ">물품코드:</caption>
- <caption id="caption9" class="search_name" style="left:577px; top:8px; width:90px; height:17px; ">처방구분:</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:1194px; y2:60px; "/>
- <datagrid id="grd_undelivelist" nodeset="/root/main/undelivelist" caption="^수술방^물품코드^SUB^물품명^규격^모델^제조원^단위^수량^불출수량^미불출^수술일자" colsep="^" colwidth="30, 45, 90, 45, 280, 140, 110, 115, 55, 50, 55, 50, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:65px; width:1194px; height:670px; ">
- <col ref="chkflag" type="checkbox" style="text-align:center; "/>
- <col ref="oproomnm" style="text-align:center; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col ref="prodcmpynm" style="text-align:left; "/>
- <col ref="prcpunit" style="text-align:center; "/>
- <col ref="prcpqty" style="text-align:right; "/>
- <col ref="deliveqty" type="input" style="text-align:right; "/>
- <col ref="undeliveqty" style="text-align:right; "/>
- <col ref="opcnfmdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var iRow = -1;
- var iCol = -1;
- iRow = grd_undelivelist.row;
- iCol = grd_undelivelist.col;
- if (grd_undelivelist.rows <= 1 || iCol != 11){
- return;
- }
- var prcpqty = model.getValue("/root/main/undelivelist[" + iRow + "]/prcpqty");
- var deliveqty = model.getValue("/root/main/undelivelist[" + iRow + "]/deliveqty");
- if( model.getValue("/root/main/undelivelist[" + iRow + "]/deliveqty") > "0"||model.getValue("/root/main/undelivelist[" + iRow + "]/deliveqty") > "0.0" ) {
- model.setValue("/root/main/undelivelist[" + iRow + "]/chkflag", "true");
- model.setValue("/root/main/undelivelist[" + iRow + "]/undeliveqty", parseInt(prcpqty)-parseInt(deliveqty));
- }
- if( event.keyCode == 13 ) {
- grd_undelivelist.row = iRow + 1;
- grd_undelivelist.editCell();
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_undelivelist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_cnfm" class="btn5_letter4" style="left:1130px; top:40px; width:64px; height:19px; ">
- <caption>불출확정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCnfmSave();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">부분 미불출 조회</caption>
- </xhtml:body>
- </xhtml:html>
|