123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657 |
- <?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="">
- <main>
- <mainlist>
- <uselist>
- <goodcd/>
- <goodnm/>
- <iodd/>
- <qty/>
- <usernm/>
- <ioflag/>
- <sectcd/>
- <suppdeptcd/>
- </uselist>
- <wlnlist>
- <goodcd/>
- <goodnm/>
- <iodd/>
- <qty/>
- <usernm/>
- <ioflag/>
- <sectcd/>
- <suppdeptcd/>
- </wlnlist>
- </mainlist>
- <goodlist>
- <item>
- <goodcd/>
- <goodnm/>
- <speccd/>
- <safestocqty/>
- <exstocqty/>
- <wlnqty/>
- <sumqty/>
- <useqty/>
- <stocqty/>
- <reqqty/>
- </item>
- </goodlist>
- </main>
- <send>
- <srchiodd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <srchsectcd/>
- <srchgoodcd/>
- <srchgoodnm/>
- <sectcd/>
- <data>
- <iptflag/>
- <goodcd/>
- <sectcd/>
- <qty/>
- <ioflag/>
- <iodd/>
- </data>
- <srchdd/>
- </send>
- <cmb_info>
- <initexcuroomgrp2>
- <excuroomgrpcdid/>
- <excuroomgrpcdnm/>
- </initexcuroomgrp2>
- <goodlist>
- <item/>
- </goodlist>
- </cmb_info>
- <temp>
- <goodcd/>
- <goodnm/>
- <speccd/>
- <safestocqty/>
- <inswlniodd/>
- <inswlngoodcd/>
- <inswlnqty/>
- <setwlniodd/>
- <setwlngoodcd/>
- <setwlnqty/>
- <insuseiodd/>
- <insusegoodcd/>
- <insuseqty/>
- <setuseiodd/>
- <setusegoodcd/>
- <setuseqty/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- model.setValue("/root/send/srchiodd", (new Date()).getDateFormat("YYYYMMDD"));
- model.removeNodeset("/root/main/mainlist");
- //model.removeNodeset("/root/main/speclist/item");
- model.refresh();
-
- submit("TRAEA01301");
-
- ]]>
- </script>
- <submission id="TRAEQ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/">
- <script type="javascript" ev:event="xforms-submit-done">
- <![CDATA[
-
- var rowcnt = grd_mainlist.rows;
- for(var i = 0; i < rowcnt; i++ )
- {
- if(model.getValue("/root/tmp/rem") == "")
- {
- model.setValue("/root/tmp/rem", model.getValue("/root/main/mainlist[" + i + "]/rem"));
- }
- }
- sortGrid(grd_mainlist);
- ]]>
- </script>
- </submission>
- <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/cmb_info"/>
- <submission id="TRAEB03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/goodlist"/>
- <submission id="TRAEB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/mainlist"/>
- <submission id="TXAEB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
- <submission id="TRAEQ01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/goodlist"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript">
- <![CDATA[
-
- function getGridData() {
-
- if(model.getValue("/root/send/srchiodd") != "") {
-
- model.setValue("/root/temp/goodnm", cmb_goodcd.label);
- model.setValue("/root/temp/inswlnqty", "0");
- model.setValue("/root/temp/setwlnqty", "0");
- model.setValue("/root/temp/insuseqty", "0");
- model.setValue("/root/temp/setuseqty", "0");
-
- model.removeNodeset("/root/main/mainlist");
- model.removeNodeset("/root/main/goodlist/item");
-
- btn_inSave.disabled = true;
- btn_inUpdt.disabled = true;
- btn_outSave.disabled = true;
- btn_outUpdt.disabled = true;
- ipt_inswlnday.disabled = true;
- ipt_insuseday.disabled = true;
-
- submit("TRAEB03401");
-
- model.setValue("/root/send/srchiodd", getCurrentDate());
-
- var srchgoodcd = model.getValue("/root/send/srchgoodcd");
-
- if (srchgoodcd != "") {
- btn_inSave.disabled = false;
- btn_outSave.disabled = false;
- ipt_inswlnday.disabled = false;
- ipt_insuseday.disabled = false;
- }
-
- // if(model.getXPathValue("count(/root/main/mainlist/wlnlist)") > 0)
- // {
- // btn_inSave.disabled = true;
- // ipt_inswlnqty.disabled = true;
- // btn_inUpdt.disabled = false;
- // ipt_setwlnqty.disabled = false;
- // }
- // else
- // {
- // btn_inUpdt.disabled = true;
- // ipt_setwlnqty.disabled = true;
- // btn_inSave.disabled = false;
- // ipt_inswlnqty.disabled = false;
- // }
- //
- // if(model.getXPathValue("count(/root/main/mainlist/uselist)") > 0)
- // {
- // btn_outSave.disabled = true;
- // ipt_insuseqty.disabled = true;
- // btn_outUpdt.disabled = false;
- // ipt_setuseqty.disabled = false;
- // }
- // else
- // {
- // btn_outUpdt.disabled = true;
- // ipt_setuseqty.disabled = true;
- // btn_outSave.disabled = false;
- // ipt_insuseqty.disabled = false;
- // }
-
- model.refresh();
- }
- else
- {
- messageBox("날짜를", "C001");
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:7; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">조영제 재고관리</caption>
- </group>
- <button id="btn_rept" class="btn4_letter4" style="left:510px; top:520px; width:80px; height:22px; ">
- <caption>입고저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nodecnt = model.getXPathValue("count(/root/main/mainlist)");
- var list1cnt = 1;
- var list2cnt = 1;
- var list3cnt = 1
- for(var i=1 ; i <= nodecnt; i++)
- {
- if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "영상검사실")
- {
- model.makeNode("/root/tmp/rexlist/list1[" + list1cnt + "]");
- model.copyNode("/root/tmp/rexlist/list1[" + list1cnt +"]", "/root/main/mainlist[" + i + "]");
- list1cnt = list1cnt + 1;
- }
- }
- for(var i=1 ; i <= nodecnt; i++)
- {
- if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "PET-CT실")
- {
- model.makeNode("/root/tmp/rexlist/list2[" + list2cnt + "]");
- model.copyNode("/root/tmp/rexlist/list2[" + list2cnt +"]", "/root/main/mainlist[" + i + "]");
- list2cnt = list2cnt + 1;
- }
- }
- for(var i=1 ; i <= nodecnt; i++)
- {
- if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "치료,투약실")
- {
- model.makeNode("/root/tmp/rexlist/list3[" + list3cnt + "]");
- model.copyNode("/root/tmp/rexlist/list3[" + list3cnt +"]", "/root/main/mainlist[" + i + "]");
- list3cnt = list3cnt + 1;
- }
- }
-
- mergeRexList("/root/tmp/rexlist/list1");
- mergeRexList("/root/tmp/rexlist/list2");
- mergeRexList("/root/tmp/rexlist/list3");
-
- var patinsucnt = model.getXPathValue("sum( /root/main/mainlist/patinsucnt )");
- var patgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/patgnrlcnt )");
- var testinsucnt = model.getXPathValue("sum( /root/main/mainlist/testinsucnt )");
- var testgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/testgnrlcnt )");
-
- model.setValue("/root/tmp/rexlist/patinsucnt", patinsucnt);
- model.setValue("/root/tmp/rexlist/patgnrlcnt", patgnrlcnt);
- model.setValue("/root/tmp/rexlist/testinsucnt", testinsucnt);
- model.setValue("/root/tmp/rexlist/testgnrlcnt", testgnrlcnt);
-
- var ymd = model.getValue("/root/tmp/rexlist/list1/recdd");
- var year = ymd.substring(0,4);
- var month = ymd.substring(4,6);
- var day = ymd.substring(6,8);
- var yymmddstr = year + "/" + month + "/" + day + " " + getDateTime(new Date(year,month,day), "W") + "요일";
- model.setValue("/root/tmp/rexlist/srchdd", yymmddstr);
- model.makeNode("/root/tmp/rexlist/mainlist[58]");
- exeReportPreview("RPAEQ00400", "XMLSTR", "/root/tmp/rexlist");
- model.removeNodeset("/root/tmp/rexlist/list1");
- model.removeNodeset("/root/tmp/rexlist/list2");
- model.removeNodeset("/root/tmp/rexlist/list3");
- model.removeNodeset("/root/tmp/rexlist/mainlist");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter4" style="left:1105px; top:520px; width:80px; height:22px; ">
- <caption>입고저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nodecnt = model.getXPathValue("count(/root/main/mainlist)");
- var list1cnt = 1;
- var list2cnt = 1;
- var list3cnt = 1
- for(var i=1 ; i <= nodecnt; i++)
- {
- if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "영상검사실")
- {
- model.makeNode("/root/tmp/rexlist/list1[" + list1cnt + "]");
- model.copyNode("/root/tmp/rexlist/list1[" + list1cnt +"]", "/root/main/mainlist[" + i + "]");
- list1cnt = list1cnt + 1;
- }
- }
- for(var i=1 ; i <= nodecnt; i++)
- {
- if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "PET-CT실")
- {
- model.makeNode("/root/tmp/rexlist/list2[" + list2cnt + "]");
- model.copyNode("/root/tmp/rexlist/list2[" + list2cnt +"]", "/root/main/mainlist[" + i + "]");
- list2cnt = list2cnt + 1;
- }
- }
- for(var i=1 ; i <= nodecnt; i++)
- {
- if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "치료,투약실")
- {
- model.makeNode("/root/tmp/rexlist/list3[" + list3cnt + "]");
- model.copyNode("/root/tmp/rexlist/list3[" + list3cnt +"]", "/root/main/mainlist[" + i + "]");
- list3cnt = list3cnt + 1;
- }
- }
-
- mergeRexList("/root/tmp/rexlist/list1");
- mergeRexList("/root/tmp/rexlist/list2");
- mergeRexList("/root/tmp/rexlist/list3");
-
- var patinsucnt = model.getXPathValue("sum( /root/main/mainlist/patinsucnt )");
- var patgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/patgnrlcnt )");
- var testinsucnt = model.getXPathValue("sum( /root/main/mainlist/testinsucnt )");
- var testgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/testgnrlcnt )");
-
- model.setValue("/root/tmp/rexlist/patinsucnt", patinsucnt);
- model.setValue("/root/tmp/rexlist/patgnrlcnt", patgnrlcnt);
- model.setValue("/root/tmp/rexlist/testinsucnt", testinsucnt);
- model.setValue("/root/tmp/rexlist/testgnrlcnt", testgnrlcnt);
-
- var ymd = model.getValue("/root/tmp/rexlist/list1/recdd");
- var year = ymd.substring(0,4);
- var month = ymd.substring(4,6);
- var day = ymd.substring(6,8);
- var yymmddstr = year + "/" + month + "/" + day + " " + getDateTime(new Date(year,month,day), "W") + "요일";
- model.setValue("/root/tmp/rexlist/srchdd", yymmddstr);
- model.makeNode("/root/tmp/rexlist/mainlist[58]");
- exeReportPreview("RPAEQ00400", "XMLSTR", "/root/tmp/rexlist");
- model.removeNodeset("/root/tmp/rexlist/list1");
- model.removeNodeset("/root/tmp/rexlist/list2");
- model.removeNodeset("/root/tmp/rexlist/list3");
- model.removeNodeset("/root/tmp/rexlist/mainlist");
- model.refresh();
- ]]>
- </script>
- </button>
- <group id="group2" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
- <group id="group4" style="left:0px; top:10px; 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; "/>
- <caption id="caption19" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">입고일자 :</caption>
- <input id="input8" ref="/root/send/srchiodd" class="input_search" inputtype="date" format="yyyy-mm" style="left:102px; top:8px; width:100px; height:19px; "/>
- <line id="line6" class="line_4" style="x1:1116px; y1:6px; x2:1116px; y2:28px; "/>
- <caption id="caption20" class="search_name" style="left:220px; top:9px; width:83px; height:17px; ">Section :</caption>
- <button id="button3" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- getGridData();
- ]]>
- </script>
- </button>
- <caption id="caption21" class="search_name" style="left:441px; top:9px; width:86px; height:17px; ">약품코드 :</caption>
- </group>
- <caption id="caption22" class="tit_2" style="left:0px; top:55px; width:84px; height:13px; ">입고현황</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:70px; x2:595px; y2:70px; "/>
- <caption id="caption23" class="tit_2" style="left:0px; top:615px; width:129px; height:14px; ">현재상황</caption>
- <line id="line8" class="line_1" style="x1:1px; y1:630px; x2:1195px; y2:630px; "/>
- <caption id="caption24" class="tit_2" style="left:600px; top:55px; width:84px; height:13px; ">사용현황</caption>
- <line id="line9" class="line_1" style="x1:600px; y1:70px; x2:1195px; y2:70px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/mainlist/wlnlist" caption="약품코드^약품명^입고입자^입고수량^근무자^ioflag^sectcd^suppdeptcd" colsep="^" colwidth="70, 215, 90, 90, 90, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:595px; height:405px; ">
- <col ref="goodcd" type="output"/>
- <col ref="goodnm" type="output"/>
- <col ref="iodd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="qty" type="output" format="#,###" maxlength="10" style="text-align:right; "/>
- <col ref="usernm" type="output" style="text-align:center; "/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="sectcd" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (datagrid1.isCell(event.target) && datagrid1.mouseRow >= datagrid1.fixedrows) {
- btn_inSave.disabled = true;
- btn_inUpdt.disabled = false;
- btn_outSave.disabled = true;
- btn_outUpdt.disabled = true;
-
- ipt_inswlnday.disabled = true;
- ipt_insuseday.disabled = true;
-
- model.setValue("/root/temp/goodcd", model.getValue("/root/main/mainlist/wlnlist[" + datagrid1.row + "]/goodcd"));
- model.setValue("/root/temp/goodnm", model.getValue("/root/main/mainlist/wlnlist[" + datagrid1.row + "]/goodnm"));
- model.setValue("/root/temp/setwlnqty", model.getValue("/root/main/mainlist/wlnlist[" + datagrid1.row + "]/qty"));
- model.setValue("/root/send/srchiodd", model.getValue("/root/main/mainlist/wlnlist[" + datagrid1.row + "]/iodd"));
- model.setValue("/root/send/srchdd", getCurrentDate());
- submit("TRAEQ01701");
-
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/main/mainlist/uselist" caption="약품코드^약품명^출고일자^출고수량^근무자^ioflag^sectcd^suppdeptcd" colsep="^" colwidth="70, 215, 90, 90, 90, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:600px; top:75px; width:595px; height:405px; ">
- <col ref="goodcd" type="output"/>
- <col ref="goodnm" type="output"/>
- <col ref="iodd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="qty" type="output" format="#,###" maxlength="10" style="text-align:right; "/>
- <col ref="usernm" type="output" style="text-align:center; "/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="sectcd" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (datagrid2.isCell(event.target) && datagrid2.mouseRow >= datagrid2.fixedrows) {
-
- btn_inSave.disabled = true;
- btn_inUpdt.disabled = true;
- btn_outSave.disabled = true;
- btn_outUpdt.disabled = false;
-
- ipt_inswlnday.disabled = true;
- ipt_insuseday.disabled = true;
-
- model.setValue("/root/temp/goodcd", model.getValue("/root/main/mainlist/uselist[" + datagrid2.row + "]/goodcd"));
- model.setValue("/root/temp/goodnm", model.getValue("/root/main/mainlist/uselist[" + datagrid2.row + "]/goodnm"));
- model.setValue("/root/temp/setuseqty", model.getValue("/root/main/mainlist/uselist[" + datagrid2.row + "]/qty"));
- model.setValue("/root/send/srchiodd", model.getValue("/root/main/mainlist/uselist[" + datagrid2.row + "]/iodd"));
- model.setValue("/root/send/srchdd", getCurrentDate());
- submit("TRAEQ01701");
-
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <input id="ipt_inswlnqty" ref="/root/temp/inswlnqty" class="input_default" format="#,###" style="left:304px; top:532px; width:93px; height:19px; "/>
- <input id="ipt_inswlnday" ref="/root/send/srchiodd" class="input_default" disabled="true" inputtype="date" style="left:102px; top:507px; width:93px; height:19px; "/>
- <input id="ipt_inswlngoodcd" ref="/root/send/srchgoodcd" class="input_default" visibility="hidden" editable="false" style="left:304px; top:507px; width:93px; height:19px; "/>
- <caption id="caption25" class="cell_1" style="left:0px; top:505px; width:100px; height:23px; text-align:center; ">입고일</caption>
- <caption id="caption29" class="cell_1" style="left:200px; top:505px; width:100px; height:23px; text-align:center; ">코 드</caption>
- <caption id="caption30" class="cell_1" style="left:200px; top:530px; width:100px; height:23px; text-align:center; ">수 량</caption>
- <caption id="caption31" class="tit_2" style="left:0px; top:485px; width:84px; height:14px; ">입고처리</caption>
- <line id="line10" class="line_1" style="x1:0px; y1:500px; x2:595px; y2:500px; "/>
- <caption id="caption32" class="tit_2" style="left:600px; top:485px; width:84px; height:14px; ">불출처리</caption>
- <line id="line11" class="line_1" style="x1:600px; y1:500px; x2:1195px; y2:500px; "/>
- <caption id="caption33" class="cell_1" style="left:0px; top:555px; width:100px; height:23px; text-align:center; ">입고일</caption>
- <caption id="caption34" class="cell_1" style="left:200px; top:555px; width:100px; height:23px; text-align:center; ">코 드</caption>
- <caption id="caption35" class="cell_1" style="left:200px; top:580px; width:100px; height:23px; text-align:center; ">수 량</caption>
- <caption id="caption36" class="cell_1" style="left:600px; top:555px; width:100px; height:23px; text-align:center; ">불출일</caption>
- <caption id="caption37" class="cell_1" style="left:800px; top:555px; width:100px; height:23px; text-align:center; ">코 드</caption>
- <input id="ipt_setusegoodcd" ref="/root/send/srchgoodcd" class="input_default" visibility="hidden" editable="false" appearance="minimal" style="left:904px; top:557px; width:93px; height:19px; "/>
- <input id="ipt_insuseqty" ref="/root/temp/insuseqty" class="input_default" format="#,###" style="left:904px; top:532px; width:93px; height:19px; "/>
- <caption id="caption38" class="cell_1" style="left:800px; top:580px; width:100px; height:23px; text-align:center; ">수 량</caption>
- <input id="ipt_insuseday" ref="/root/send/srchiodd" class="input_default" disabled="true" inputtype="date" style="left:702px; top:506px; width:93px; height:19px; "/>
- <input id="ipt_insusegoodcd" ref="/root/send/srchgoodcd" class="input_default" visibility="hidden" editable="false" style="left:904px; top:506px; width:93px; height:19px; "/>
- <input id="ipt_setuseqty" ref="/root/temp/setuseqty" class="input_default" format="#,###" style="left:904px; top:582px; width:93px; height:19px; "/>
- <caption id="caption39" class="cell_1" style="left:600px; top:505px; width:100px; height:23px; text-align:center; ">불출일</caption>
- <input id="ipt_setuseday" ref="/root/send/srchiodd" class="input_default" disabled="true" inputtype="date" style="left:702px; top:557px; width:93px; height:19px; "/>
- <caption id="caption40" class="cell_1" style="left:800px; top:505px; width:100px; height:23px; text-align:center; ">코 드</caption>
- <caption id="caption41" class="cell_1" style="left:800px; top:530px; width:100px; height:23px; text-align:center; ">수 량</caption>
- <output id="output1" ref="/root/send/srchdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:103px; top:636px; width:93px; height:19px; text-align:center; "/>
- <caption id="caption42" class="cell_1" style="left:0px; top:530px; width:100px; height:23px; text-align:center; "/>
- <caption id="caption43" class="cell_1" style="left:0px; top:580px; width:100px; height:23px; text-align:center; "/>
- <caption id="caption44" class="cell_1" style="left:600px; top:530px; width:100px; height:23px; text-align:center; "/>
- <caption id="caption45" class="cell_1" style="left:600px; top:580px; width:100px; height:23px; text-align:center; "/>
- <caption id="caption46" class="cell_1" style="left:0px; top:635px; width:100px; height:23px; text-align:center; ">현재일</caption>
- <caption id="caption47" class="cell_1" style="left:200px; top:635px; width:100px; height:23px; text-align:center; ">전일재고</caption>
- <caption id="caption48" class="cell_1" style="left:400px; top:635px; width:100px; height:23px; text-align:center; ">금일수령</caption>
- <caption id="caption1" class="cell_1" style="left:600px; top:635px; width:100px; height:23px; text-align:center; ">금일불출</caption>
- <caption id="caption2" class="cell_1" style="left:800px; top:635px; width:100px; height:23px; text-align:center; ">잔고</caption>
- <output id="output2" ref="/root/main/goodlist/item/exstocqty" class="output_fix" format="(-)#,###" appearance="output" style="left:303px; top:637px; width:93px; height:19px; text-align:center; "/>
- <output id="output3" ref="/root/main/goodlist/item/wlnqty" class="output_fix" format="(-)#,###" appearance="output" style="left:503px; top:637px; width:93px; height:19px; text-align:center; "/>
- <output id="output4" ref="/root/main/goodlist/item/useqty" class="output_fix" format="(-)#,###" appearance="output" style="left:703px; top:637px; width:93px; height:19px; text-align:center; "/>
- <output id="output5" ref="/root/main/goodlist/item/stocqty" class="output_fix" format="(-)#,###" appearance="output" style="left:903px; top:637px; width:93px; height:19px; text-align:center; "/>
- <select1 id="combo1" ref="/root/send/srchsectcd" appearance="minimal" style="left:310px; top:18px; width:93px; height:19px; ">
- <choices>
- <itemset nodeset="/root/cmb_info/initexcuroomgrp2">
- <label ref="excuroomgrpcdnm"/>
- <value ref="excuroomgrpcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/sectcd", model.getValue("/root/send/srchsectcd"));
- model.setValue("/root/send/srchgoodcd", "");
- submit("TRAEB03801");
- model.duplicate("/root/temp/goodlist", "/root/temp/goodlist/item[1]", "*[1]");
- if(model.getXPathValue("count(/root/temp/goodlist/item)") > 0)
- {
- model.setValue("/root/temp/goodlist/item[1]/goodcd", "");
- model.setValue("/root/temp/goodlist/item[1]/goodnm", "");
- }
- getGridData();
- ]]>
- </script>
- </select1>
- <input id="ipt_setwlnqty" ref="/root/temp/setwlnqty" class="input_default" format="#,###" style="left:304px; top:580px; width:93px; height:19px; "/>
- <input id="ipt_setwlnday" ref="/root/send/srchiodd" class="input_default" disabled="true" inputtype="date" style="left:103px; top:555px; width:93px; height:19px; "/>
- <input id="ipt_setwlngoodcd" ref="/root/send/srchgoodcd" class="input_default" visibility="hidden" editable="false" style="left:304px; top:555px; width:93px; height:19px; "/>
- <select1 id="cmb_goodcd" ref="/root/send/srchgoodcd" appearance="minimal" style="left:533px; top:18px; width:272px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/goodlist/item">
- <label ref="goodnm"/>
- <value ref="goodcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- getGridData();
- model.setValue("/root/send/srchdd", model.getValue("/root/send/srchiodd"));
- submit("TRAEQ01701");
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/temp/goodnm" class="input_default" editable="false" style="left:304px; top:507px; width:196px; height:19px; "/>
- <input id="input2" ref="/root/temp/goodnm" class="input_default" editable="false" style="left:305px; top:555px; width:196px; height:19px; "/>
- <input id="input3" ref="/root/temp/goodnm" class="input_default" editable="false" style="left:904px; top:506px; width:196px; height:19px; "/>
- <input id="input4" ref="/root/temp/goodnm" class="input_default" editable="false" style="left:904px; top:556px; width:196px; height:19px; "/>
- </group>
- <button id="btn_inSave" class="btn4_letter4" disabled="true" style="left:515px; top:522px; width:80px; height:22px; ">
- <caption>입고저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_inswlnday.value == "")
- {
- messageBox("입고일을", "C001");
- return false;
- }
- if(ipt_inswlngoodcd.value == "")
- {
- messageBox("약품코드를", "C001");
- return false;
- }
- if(ipt_inswlnqty.value == "")
- {
- messageBox("수량을", "C001");
- return false;
- }
- model.setValue("/root/send/data/iptflag", "I");
- model.setValue("/root/send/data/ioflag", "I");
- model.setValue("/root/send/data/iodd", ipt_inswlnday.value);
- model.setValue("/root/send/data/goodcd", ipt_inswlngoodcd.value);
- model.setValue("/root/send/data/qty", ipt_inswlnqty.value);
-
- if(submit("TXAEB03401"))
- {
- getGridData();
- }
- ]]>
- </script>
- </button>
- <button id="btn_outSave" class="btn4_letter4" disabled="true" style="left:1115px; top:522px; width:80px; height:22px; ">
- <caption>불출저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_insuseday.value == "")
- {
- messageBox("입고일을", "C001");
- return false;
- }
- if(ipt_insusegoodcd.value == "")
- {
- messageBox("약품코드를", "C001");
- return false;
- }
- if(ipt_insuseqty.value == "")
- {
- messageBox("수량을", "C001");
- return false;
- }
- model.setValue("/root/send/data/iptflag", "I");
- model.setValue("/root/send/data/ioflag", "O");
- model.setValue("/root/send/data/iodd", ipt_insuseday.value);
- model.setValue("/root/send/data/goodcd", ipt_insusegoodcd.value);
- model.setValue("/root/send/data/qty", ipt_insuseqty.value);
-
- if(submit("TXAEB03401"))
- {
- getGridData();
- }
- ]]>
- </script>
- </button>
- <button id="btn_inUpdt" class="btn4_letter4" disabled="true" style="left:515px; top:572px; width:80px; height:22px; ">
- <caption>입고수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_setwlnday.value == "")
- {
- messageBox("입고일을", "C001");
- return false;
- }
- if(ipt_setwlngoodcd.value == "")
- {
- messageBox("약품코드를", "C001");
- return false;
- }
- if(ipt_setwlnqty.value == "")
- {
- messageBox("수량을", "C001");
- return false;
- }
- model.setValue("/root/send/data/iptflag", "U");
- model.setValue("/root/send/data/ioflag", "I");
- model.setValue("/root/send/data/iodd", ipt_setwlnday.value);
- model.setValue("/root/send/data/goodcd", ipt_setwlngoodcd.value);
- model.setValue("/root/send/data/qty", ipt_setwlnqty.value);
-
- if(submit("TXAEB03401"))
- {
- getGridData();
- }
- ]]>
- </script>
- </button>
- <button id="btn_outUpdt" class="btn4_letter4" disabled="true" style="left:1115px; top:572px; width:80px; height:22px; ">
- <caption>불출수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_setuseday.value == "")
- {
- messageBox("입고일을", "C001");
- return false;
- }
- if(ipt_setusegoodcd.value == "")
- {
- messageBox("약품코드를", "C001");
- return false;
- }
- if(ipt_setuseqty.value == "")
- {
- messageBox("수량을", "C001");
- return false;
- }
- model.setValue("/root/send/data/iptflag", "U");
- model.setValue("/root/send/data/ioflag", "O");
- model.setValue("/root/send/data/iodd", ipt_setuseday.value);
- model.setValue("/root/send/data/goodcd", ipt_setusegoodcd.value);
- model.setValue("/root/send/data/qty", ipt_setuseqty.value);
-
- if(submit("TXAEB03401"))
- {
- getGridData();
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|