123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819 |
- <?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>
- <dyemagamlist>
- <item>
- <iodd/>
- <magamflag/>
- <dutflag/>
- </item>
- </dyemagamlist>
- <solotopinfo>
- <item>
- <solotopqty/>
- </item>
- </solotopinfo>
- <xenetixinfo>
- <item>
- <xenetixqty/>
- </item>
- </xenetixinfo>
- </main>
- <send>
- <srchiodd/>
- <srchbasedd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <srchsectcd/>
- <srchgoodcd/>
- <srchgoodnm/>
- <sectcd/>
- <data>
- <iptflag/>
- <goodcd/>
- <sectcd/>
- <qty/>
- <ioflag/>
- <iodd/>
- <suppdeptcd/>
- <mainflag/>
- </data>
- <srchdd/>
- <req>
- <data1/>
- </req>
- <sdate/>
- <edate/>
- <suppdeptcd/>
- </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>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- model.setValue("/root/send/srchiodd", getCurrentDate());
- model.setValue("/root/send/edate", getCurrentDate());
- model.removeNodeset("/root/main/mainlist");
- model.refresh();
-
- submit("TRAEA01301");
- model.removeNodeset("/root/cmb_info/initexcuroomgrp2[" + 1 + "]");
- submit("TRAEB03501");
- cmb_sectcd.select(0);
-
- btn_save.visible = false;
- btn_del.visible = false;
- btn_disone.visible = true;
- btn_dissu.visible = true;
- btn_cal.visible = false;
- 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/cmb_info/excuroomcdlist"/>
- <submission id="TRAEB03402" 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/data" replace="instance" resultref="/root/main/dyecdpamlist"/>
- <submission id="TXAEB03405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
- <submission id="TRAEB03405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dyemagamlist"/>
- <submission id="TRAEB05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/solotopinfo"/>
- <submission id="TRAEB05102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/xenetixinfo"/>
- <submission id="TRAEB03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dyestoclist"/>
- <submission id="TRAEB03406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dyemagamlist"/>
- </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;
- }
-
- model.refresh();
- }
- else
- {
- messageBox("날짜를", "C001");
- }
- }
-
- function getDyeList()
- {
- if( model.getValue("/root/send/srchiodd") == "" ){
- messageBox("입고일자를", "I007");
- return;
- }
-
- if( model.getValue("/root/send/srchsectcd") == "" ){
- messageBox("검사실을", "I007");
- return;
- }
- //2011.07.12 추가처방시 심사실에서 직접입력한경우도 같이 포함해서 조회되게 수정 - 박재영
- if(model.getValue("/root/send/srchsectcd") == "MCC011"){
- model.setValue("/root/send/data/mainflag", "Y");
- }else{
- model.setValue("/root/send/data/mainflag", "");
- }
- // 2011.02.07 c y w 조회시 환자정보리스트 클리어
- model.removeNodeset("/root/main/dyecdpamlist/item");
-
- var row = grd_dyelist.row-1;
- if( submit("TRAEB03402") ){
- if( model.getValue("/root/main/dyestoclist/item[1]/srchflag") == "1" ){ // 재고테이블에 데이터가 있을 경우
- if(model.getValue("/root/main/dyestoclist/item[1]/magamflag") == "S" ){ // 마감여부가 S일 경우
- btn_save.visible = true;
- btn_del.visible = true;
- btn_disone.visible = false;
- btn_dissu.visible = false;
- btn_cal.visible = true;
- }else{ // 마감했을경우 버튼 비활성화.
- btn_save.visible = false;
- btn_del.visible = false;
- btn_disone.visible = true;
- btn_dissu.visible = true;
- btn_cal.visible = false;
- }
- }else if( model.getValue("/root/main/dyestoclist/item[1]/srchflag") == "2" ){ // 데이터가 없을경우 활성화.
- btn_save.visible = true;
- btn_del.visible = false;
- btn_dissu.visible = true;
- btn_cal.visible = true;
- if(model.getValue("/root/main/dyestoclist/item[1]/magamflag") == "D" ){
- for(var a = 1 ; a <= grd_dyelist.rows ; a++ ){
- grd_dyelist.addStatus( a ,"update");
- }
- }else{
- for(var a = 1 ; a <= grd_dyelist.rows ; a++ ){
- grd_dyelist.addStatus( a ,"insert");
- }
- }
- }else{ //1 , 2 아니고 null일 경우 비활성화.
- btn_save.visible = false;
- btn_del.visible = false;
- btn_cal.visible = false;
- btn_disone.visible = true;
- btn_dissu.visible = true;
- }
-
- var bd = model.getValue("/root/send/srchiodd");
- var basedd = bd.substr(0,6);
- model.setValue("/root/send/srchbasedd", basedd);
- //2011.07.19 조영제 조영제 월별 마감일자,마감여부
- submit("TRAEB03406");
-
- for(var i = 1 ; i < grd_magamlist.rows ; i++ ){
- if(model.getValue("/root/main/dyemagamlist/item[" + i +"]/dutflag" ) == "4") {
- grd_magamlist.cellStyle("color" , i , grd_magamlist.colRef("iodd") , i , grd_magamlist.colRef("iodd")) = "#0000ff";
- }else if(model.getValue("/root/main/dyemagamlist/item[" + i +"]/dutflag" ) == "8" ){
- grd_magamlist.cellStyle("color" , i , grd_magamlist.colRef("iodd") , i , grd_magamlist.colRef("iodd")) = "#ff0000";
- }else{
- grd_magamlist.cellStyle("color" , i , grd_magamlist.colRef("iodd") , i , grd_magamlist.colRef("iodd")) = "#000000";
- }
- }
- }
- 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:208px; 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_iodd" ref="/root/send/srchiodd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:120px; 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:238px; top:9px; width:83px; height:17px; ">검사실 :</caption>
- <button id="button3" class="btn1_letter2" style="left:1129px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- getDyeList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_sectcd" ref="/root/send/srchsectcd" appearance="minimal" style="left:318px; top:8px; width:187px; 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[
- ]]>
- </script>
- </select1>
- <caption id="caption21" class="search_name" visibility="hidden" style="left:531px; top:9px; width:86px; height:17px; ">약품코드 :</caption>
- </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="90, 220, 70, 70, 70, 70, 70, 70, 270, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:79px; width:1045px; height:426px; ">
- <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="input" format="#,###" style="text-align:right; padding-right:20; "/>
- <col ref="receive" type="input" format="#,###" style="text-align:right; padding-right:20; "/>
- <col ref="totsu" format="#,###" style="text-align:right; padding-right:20; "/>
- <col ref="outgo" type="input" format="#,###" style="text-align:right; padding-right:20; "/>
- <col disabled="false" ref="dayused" type="input" 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="input" style="text-align:left; padding-left:10; "/>
- <col ref="iodd" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <col ref="sectcd" visibility="hidden"/>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- // var cnt = getNodesetCount("/root/main/dyestoclist/item");
- if( grd_dyelist.row > 1 ){
- if( model.getValue("/root/main/dyestoclist/item[1]/goodcd") != "" ){
- var colidx = grd_dyelist.col;
- var row = grd_dyelist.row-1;
-
- // 수령
- if(grd_dyelist.colAttribute(colidx, "ref") == "receive") {
- var totsu = 0;
- totsu = parseInt(model.getValue("/root/main/dyestoclist/item["+ row +"]/agojego"))+parseInt( model.getValue("/root/main/dyestoclist/item["+ row +"]/receive"));
- model.setValue("/root/main/dyestoclist/item["+ row +"]/totsu" , totsu );
- }
- // 전일재고수령
- if(grd_dyelist.colAttribute(colidx, "ref") == "agojego") {
- var totsu = 0;
- totsu = parseInt(model.getValue("/root/main/dyestoclist/item["+ row +"]/agojego"))+parseInt( model.getValue("/root/main/dyestoclist/item["+ row +"]/receive"));
- model.setValue("/root/main/dyestoclist/item["+ row +"]/totsu" , totsu );
- }
-
- var presentcnt = 0;
- presentcnt = parseInt( model.getValue("/root/main/dyestoclist/item["+ row +"]/totsu")) - parseInt(model.getValue("/root/main/dyestoclist/item["+ row +"]/outgo")) - parseInt( model.getValue("/root/main/dyestoclist/item["+ row +"]/dayused"))
- model.setValue("/root/main/dyestoclist/item["+ row +"]/presentcnt" , presentcnt );
-
- model.refresh();
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var colidx = grd_dyelist.col;
- if( isDataCell() ){
- if( grd_dyelist.row > 1 ){
- if(grd_dyelist.colAttribute(colidx, "ref") == "goodcd") {
- model.setValue("/root/send/data/sectcd", model.getValue("/root/send/srchsectcd"));
- model.setValue("/root/send/data/goodcd", model.getValue("/root/main/dyestoclist/item["+ ( grd_dyelist.row-1 ) +"]/goodcd"));
- model.setValue("/root/send/data/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.setValue("/root/send/data/iodd", model.getValue("/root/send/srchiodd"));
- //2011.07.12 추가처방시 심사실에서 직접입력한경우도 같이 포함해서 조회되게 수정 - 박재영
- if(model.getValue("/root/send/srchsectcd") == "MCC011"){
- model.setValue("/root/send/data/mainflag", "Y");
- }else{
- model.setValue("/root/send/data/mainflag", "");
- }
- // 2011.02.07 c y w 조회시 환자정보리스트 클리어
- model.removeNodeset("/root/main/dyecdpamlist/item");
- submit("TRAEB03403");
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_goodcd" ref="/root/send/srchgoodcd" visibility="hidden" appearance="minimal" style="left:623px; 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>
- <datagrid id="datagrid1" nodeset="/root/main/dyecdpamlist/item" caption="등록번호^환자명^실시일자^검사실^처방코드^처방명^재료코드^재료명^용 량^규 격^처방일자^구분^검사실코드" colsep="^" colwidth="58, 54, 71, 80, 95, 202, 77, 195, 43, 50, 79, 56, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:530px; width:1045px; height:195px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="excuexectodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="basecdflagdesc" style="text-align:center; "/>
- <col ref="calcscorcd" style="text-align:center; "/>
- <col ref="excucdnm" style="text-align:left; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; "/>
- <col ref="drugqty" style="text-align:center; "/>
- <col ref="speccd" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden" style="text-align:center; "/>
- <col ref="excuroomcd" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:0px; top:512px; width:170px; height:13px; ">조영제코드별 환자 조회</caption>
- <button id="btn_dissu" class="btn6_letter2" disabled="true" style="left:980px; top:50px; width:56px; height:22px; ">
- <caption>수정</caption>
- </button>
- <button id="btn_disone" class="btn6_letter3" disabled="true" style="left:905px; top:50px; width:68px; height:22px; ">
- <caption>일마감</caption>
- </button>
- <group id="grp_excucdrem" visibility="hidden" style="left:435px; top:265px; width:325px; height:130px; ">
- <button id="button4" class="btn4_letter2" style="left:255px; top:90px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_excucdrem.visible = false;
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter2" style="left:195px; top:90px; width:56px; height:22px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( messageBox("조영제 마감정리를","Q002")==6 ) {
- submit("TXAEB03405");
- }
- ]]>
- </script>
- </button>
- <caption id="caption8" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">마감정리</caption>
- <shape id="rectangle2" appearance="rectangle" style="left:0px; top:0px; width:325px; height:130px; "/>
- <input id="input1" ref="/root/send/sdate" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:105px; top:40px; width:100px; height:19px; "/>
- <input id="input2" ref="/root/send/edate" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:215px; top:40px; width:100px; height:19px; "/>
- <caption id="caption2" class="search_name" visibility="visible" style="left:5px; top:40px; width:86px; height:17px; ">적용일자 :</caption>
- </group>
- <datagrid id="grd_magamlist" nodeset="/root/main/dyemagamlist/item" caption="마감일자^마감^dutflag" colsep="^" colwidth="68, 33,40" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:1050px; top:79px; width:140px; height:645px; ">
- <col ref="iodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="magamflag" style="text-align:center; "/>
- <col ref="dutflag" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_magamlist.row == 0)
- {
- return false;
- }
- model.setValue("/root/send/srchiodd", model.getValue("/root/main/dyemagamlist/item[" + grd_magamlist.row + "]/iodd"));
- getDyeList();
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:1045px; top:55px; width:144px; height:14px; ">월별 검사실 마감여부</caption>
- <button id="btn_excsave" class="btn2_letter4" style="left:775px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*"); // 2009-07-01 엑셀저장 두번째 저장 실패 오류 확인
- 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>
- <button id="btn_cal" class="btn3_letter2" style="left:843px; top:50px; width:56px; height:22px; ">
- <caption>계산</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var idx = grd_dyelist.row-1;
- if(model.getValue("/root/main/dyestoclist/item[" + idx + "]/goodcd") == "C75190300"){ // solotop
- submit("TRAEB05101");
- if (model.getValue("/root/main/solotopinfo/item/solotopqty") == ""){
- model.setValue("/root/main/solotopinfo/item/solotopqty",0);
- }
- model.setValue("/root/main/dyestoclist/item/dayused", model.getValue("/root/main/solotopinfo/item/solotopqty"));
- }else if(model.getValue("/root/main/dyestoclist/item[" + idx + "]/goodcd") == "C75235351"){ //xenetix
- submit("TRAEB05102");
- if (model.getValue("/root/main/xenetixinfo/item/xenetixqty") == ""){
- model.setValue("/root/main/xenetixinfo/item/xenetixqty",0);
- }
- model.setValue("/root/main/dyestoclist/item[" + idx + "]/dayused", model.getValue("/root/main/xenetixinfo/item/xenetixqty"));
- var dayused = model.getValue("/root/main/dyestoclist/item[" + idx + "]/dayused");
- var agojego = model.getValue("/root/main/dyestoclist/item[" + idx + "]/agojego");
- var representcnt = agojego - dayused ;
- model.setValue("/root/main/dyestoclist/item[" + idx + "]/presentcnt" , representcnt);
- }else{
- }
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_save" class="btn3_letter3" style="left:905px; top:65px; width:68px; height:22px; ">
- <caption>일마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = getNodesetCount("/root/main/dyestoclist/item");
- if( cnt > 0 ) {
- // alert( grd_dyelist.getUpdateData());
- if( model.getValue("/root/send/srchiodd") == "" ){
- messageBox("입고일자를", "I007");
- } else {
- if( messageBox("조영제 재고정보를","Q002")==6 ) {
- model.setValue("/root/send/req/data1", grd_dyelist.getUpdateData());
- submit("TXAEB03402");
- getDyeList();
- }
- }
- }else{
- messageBox("저장할 입고정보가", "I004");
- }
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn3_letter2" style="left:980px; top:65px; width:56px; height:22px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = getNodesetCount("/root/main/dyestoclist/item");
- if( cnt > 0 ) {
- if( model.getValue("/root/send/srchiodd") == "" ){
- messageBox("입고일자를", "I007");
- }else{
- if ( messageBox("조영제 재고정보를","Q001")==6 ) {
- if( submit("TXAEB03404") ){
- model.removenode("/root/main/dyestoclist");
- }else{
- getDyeList();
- }
- }
- }
- } else {
- messageBox("삭제할 입고정보가", "I004");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_dayend" class="btn4_letter3" disabled="true" visibility="hidden" style="left:570px; top:65px; width:68px; height:22px; ">
- <caption>일마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = getNodesetCount("/root/main/dyestoclist/item");
- if( cnt > 0 ) {
- if( model.getValue("root/send/srchiodd") == "" ){
- messageBox("입고일자를", "I007");
- }else{
- if ( messageBox("일마감을","Q004")==6 ) {
- submit("TXAEB03403");
-
- getDyeList();
- }
- }
- } else {
- messageBox("일마감 처리 할 입고정보가", "I004");
- }
- ]]>
- </script>
- </button>
- <group id="grp_btn" style="left:0px; top:745px; width:1195px; height:25px; ">
- <button id="button2" class="btn3_letter2" 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_iodd.label );
- model.setValue("/root/rexprnt/dyestoclist/srchsectcd", cmb_sectcd.label );
- model.setValue("/root/rexprnt/dyestoclist/srchsudept", getUserInfo("dutplcenm") );
- model.refresh();
-
- exeReportPreview("RPAEB03401", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- model.removeNodeset("/root/rexprnt/dyestoclist/item");
- ]]>
- </script>
- </button>
- </group>
- <button id="button6" class="btn4_letter4" style="left:960px; top:522px; width:80px; height:22px; ">
- <caption>마감정리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_excucdrem.visible = true;
- model.setValue("/root/send/sdate", model.getValue("/root/send/srchiodd"));
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|