123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612 |
- <?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>
- <dyestoclist>
- <item>
- <goodcd/>
- <instcd/>
- <agojego/>
- <receive/>
- <totsu/>
- <outgo/>
- <dayused/>
- <presentcnt/>
- <rem/>
- <srchflag/>
- <magamflag/>
- </item>
- </dyestoclist>
- <goodinfo/>
- <dyecdpamlist>
- <item>
- <pid/>
- <hngnm/>
- <excuexectodd/>
- <basecdflagdesc/>
- <calcscorcd/>
- <excucdnm/>
- <goodcd/>
- <goodnm/>
- <drugqty/>
- <speccd/>
- <prcpdd/>
- <instcd/>
- <excuroomcd/>
- </item>
- </dyecdpamlist>
- </main>
- <send>
- <srchiodd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <srchsectcd/>
- <srchgoodcd/>
- <srchgoodnm/>
- <srchexcuroomgrp/>
- <srchtodd/>
- <srchfromdd/>
- <excuroomgrpcdid/>
- <srchsuppdeptcd/>
- <excuroomcd/>
- </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/>
- <count/>
- </temp>
- <rexprnt>
- <dyestoclist>
- <srchiodd/>
- <srchsectcd/>
- <srchexcuroomgrp/>
- <srchsudept/>
- </dyestoclist>
- </rexprnt>
- <init>
- <cmb_info2/>
- <excuroomcdlist/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- model.setValue("/root/send/srchfromdd", getCurrentDate());
- model.setValue("/root/send/srchtodd", getCurrentDate());
- model.removeNodeset("/root/main/mainlist");
- //model.removeNodeset("/root/main/speclist/item");
-
- //20170111 메뉴에서 파라메터 가져오기
- var gvMenuParam = getScreenMenuParameter();
- //alert(gvMenuParam);
-
- if ( gvMenuParam != "" && gvMenuParam != "null" && gvMenuParam != null) {
- model.setValue("/root/send/globalinstance/instance1", gvMenuParam );
- }
-
- submit("TRAEA01301");
- model.removeNodeset("/root/init/cmb_info2/initexecroom");
- var cnt = getNodesetCount("/root/cmb_info/initexcuroomgrp2");
- for( var i = 1; i <= cnt ; i++ ){
- model.makeNode("/root/init/cmb_info2/initexecroom[" + i + "]");
- model.copyNode("/root/init/cmb_info2/initexecroom[" + i + "]", "/root/cmb_info/initexcuroomgrp2[" + i + "]");
- }
-
- model.removeNodeset("/root/cmb_info/initexcuroomgrp2[" + 1 + "]");
- model.removeNodeset("/root/cmb_info/initexcuroomgrp[" + 1 + "]");
- addComboItem("cmb_excuroomgrp", "-- 전체 --", "", "above");
- addComboItem("cmb_sectcd", "-- 전체 --", "", "above");
- addComboItem("cmb_sudpt", "-- 전체 --", "", "above");
-
- model.setValue("/root/send/srchsuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- cmb_sudpt.dispatch("xforms-value-changed");
-
- submit("TRAEB03501");
- cmb_excuroomgrp.select(0);
- model.refresh();
- ]]>
- </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="TRAEB03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodinfo"/>
- <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"/>
- <submission id="TRAEA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/excuroomcdlist"/>
- <submission id="TRAEB03404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dyestoclist"/>
- <submission id="TXAEB03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
- <submission id="TXAEB03403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
- <submission id="TXAEB03404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
- <submission id="TRAEB03403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dyecdpamlist"/>
- <submission id="TRAEA01306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
- </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");
- }
-
- }
-
-
- function getDyeList()
- {
- if( model.getValue("/root/send/srchfromdd") == "" || model.getValue("/root/send/srchtodd") == "" ){
- messageBox("입고일자를", "I007");
- return;
- }
-
- // 2011.02.07 c y w 조회시 환자정보리스트 클리어
- model.removeNodeset("/root/main/dyecdpamlist/item");
- submit("TRAEB03404");
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1210" pageheight="780" 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:205px; height:15px; ">조영제/재료 소모재고관리</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:730px; ">
- <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:105px; height:17px; ">입출고 기간 :</caption>
- <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:120px; top:8px; width:90px; 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:777px; top:9px; width:83px; height:17px; ">검사실 :</caption>
- <button id="button3" class="btn1_letter2" navindex="5" style="left:1129px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //20151016 기간 체크
- //start
- var cTime = getCurrentTime().substr(0, 4);
-
- if(cTime > "1700" || cTime < "0830") {
-
- } else {
- var ddInterval = getDateInterval(ipt_fromdd.value, ipt_todd.value);
- if(ddInterval > 32){
- messageBox("업무시간[08:30 ~ 17:00]에는 31일까지만 조회", "I006");
- return;
- }
- }
- //end
- getDyeList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_sectcd" ref="/root/send/srchsectcd" navindex="4" appearance="minimal" style="left:857px; top:9px; width:187px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/excuroomcdlist/excuroom">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="lbl_srchdd" class="search_name" style="left:568px; top:10px; width:86px; height:17px; ">구 분 :</caption>
- <select1 id="cmb_excuroomgrp" ref="/root/send/srchexcuroomgrp" class="combo_search" navindex="3" appearance="minimal" style="left:640px; top:9px; width:123px; height:19px; ">
- <choices>
- <itemset nodeset="/root/cmb_info/initexcuroomgrp">
- <label ref="excuroomgrpcdnm"/>
- <value ref="excuroomgrpcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.removeNodeset("/root/init/cmb_info2/initexecroom");
- model.removeNodeset("/root/init/excuroomcdlist/excuroom");
- model.setValue("/root/send/excuroomgrpcdid", model.getValue("/root/send/srchexcuroomgrp") );
- if(submit("TRAEA01306")){
- var cnt = getNodesetCount("/root/init/cmb_info2/initexecroom");
- for(var i = 1; i <= cnt; i++ ){
- model.makeNode("/root/init/excuroomcdlist/excuroom[" + i + "]");
- model.makeValue("/root/init/excuroomcdlist/excuroom[" + i + "]/basecdflagdesc", model.getValue("/root/init/cmb_info2/initexecroom["+ i +"]/excuroomcdnm"));
- model.makeValue("/root/init/excuroomcdlist/excuroom[" + i + "]/basecd", model.getValue("/root/init/cmb_info2/initexecroom["+ i +"]/excuroomcdid"));
- }
- if(model.getValue("/root/init/excuroomcdlist/excuroom[1]/basecd") != "" ){
- addComboItem("cmb_sectcd", "-- 전체 --", "", "above");
- }
- cmb_sectcd.select(0);
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="lbl_~" class="search_no_b" style="left:214px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="ipt_todd" ref="/root/send/srchtodd" class="input_search" navindex="2" inputtype="date" style="left:230px; top:8px; width:90px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:340px; top:10px; width:86px; height:17px; ">지원부서 :</caption>
- <select1 id="cmb_sudpt" ref="/root/send/srchsuppdeptcd" class="combo_search" appearance="minimal" editmode="inputsearch" style="left:431px; top:9px; width:120px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/cmb_info/suppdept">
- <label ref="depthngnm"/>
- <value ref="suppdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/init/excuroomcdlist/excuroom");
- if(model.getValue("/root/send/srchsuppdeptcd") == "" ){
- model.setValue("/root/send/globalinstance/instance1", "");
- cmb_excuroomgrp.select(0);
- cmb_excuroomgrp.dispatch("xforms-select");
- }else{
- model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/send/srchsuppdeptcd"));
- model.setValue("/root/send/excuroomcd", "");
- submit("TRAEA00902");
- if(model.getValue("/root/init/excuroomcdlist/excuroom[1]/basecd") != "" ){
- addComboItem("cmb_sectcd", "-- 전체 --", "", "above");
- }
- cmb_sectcd.select(0);
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption22" class="tit_2" style="left:0px; top:58px; width:105px; height:13px; ">입출고 현황</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:74px; x2:1193px; y2:74px; "/>
- <datagrid id="grd_dyelist" nodeset="/root/main/dyestoclist/item" caption="조영제/재료코드^조영제/재료명^전일재고^수 령^총 수^소 모^소 모^현재고^비 고|조영제/재료코드^조영제/재료명^전일재고^수 령^총 수^불 출^일소모^현재고^비 고" colsep="^" colwidth="100, 240, 90, 90, 90, 90, 90, 90, 270" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:79px; width:1193px; height:646px; ">
- <col ref="goodcd" style="text-align:left; padding-left:10; "/>
- <col disabled="true" ref="goodcd" type="combo" style="text-align:left; padding-left:10; ">
- <choices>
- <itemset nodeset="/root/main/goodlist/item">
- <label ref="goodnm"/>
- <value ref="goodcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="agojego" type="output" format="#,###.##" style="text-align:right; padding-right:20; "/>
- <col ref="receive" type="output" format="#,###.##" style="text-align:right; padding-right:20; "/>
- <col ref="totsu" format="#,###.##" style="text-align:right; padding-right:20; "/>
- <col ref="outgo" type="output" format="#,###.##" style="text-align:right; padding-right:20; "/>
- <col disabled="false" ref="dayused" type="output" format="#,###.##" style="text-align:right; padding-right:20; "/>
- <col ref="presentcnt" format="#,###.##" style="text-align:right; padding-right:20; "/>
- <col disabled="false" ref="rem" type="output" style="text-align:left; padding-left:10; "/>
- <col ref="iodd" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <col ref="sectcd" visibility="hidden"/>
- </datagrid>
- <button id="btn_excsave" class="btn2_letter4" style="left:1120px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls"); // 2009-07-01 엑셀저장 두번째 저장 실패 오류 확인 두번째 테스트
- if (filename != "") {
- grd_dyelist.saveExcel(filename);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:745px; width:1195px; height:25px; ">
- <button id="button2" class="btn6_letter2" navindex="6" style="left:0px; top:0px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = getNodesetCount("/root/main/dyestoclist/item");
- for( var i = 1; i <= cnt; i++){
- model.makeNode("/root/rexprnt/dyestoclist/item[" + i + "]");
- model.copyNode("/root/rexprnt/dyestoclist/item[" + i + "]", "/root/main/dyestoclist/item["+ i +"]");
- model.setValue("/root/rexprnt/dyestoclist/item[" + i + "]/goodcd", grd_dyelist.labelMatrix(i+1,2));
- model.makeValue("/root/rexprnt/dyestoclist/item[" + i + "]/goodcdd", model.getValue("/root/main/dyestoclist/item["+ i +"]/goodcd"));
- }
- model.setValue("/root/rexprnt/dyestoclist/srchiodd", ipt_fromdd.label + " ~ " + ipt_todd.label );
- if( model.getValue("/root/send/srchexcuroomgrp") != "" ){
- model.setValue("/root/rexprnt/dyestoclist/srchexcuroomgrp", cmb_excuroomgrp.label );
- }else{
- model.setValue("/root/rexprnt/dyestoclist/srchexcuroomgrp", "" );
- }
-
- if( model.getValue("/root/send/srchsectcd" ) != "" ){
- model.setValue("/root/rexprnt/dyestoclist/srchsectcd", cmb_sectcd.label );
- }else{
- model.setValue("/root/rexprnt/dyestoclist/srchsectcd", "" );
- }
- model.setValue("/root/rexprnt/dyestoclist/srchsudept", getUserInfo("dutplcenm") );
- model.refresh();
-
- exeReportPreview("RPAEB03401", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- model.removeNodeset("/root/rexprnt/dyestoclist/item");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|