123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872 |
- <?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="">
- <main>
- <mainlist/>
- <nuclwlnlist/>
- <nucldelivelist/>
- <cnfmidinfo>
- <petcnfmid/>
- <petcnfmnm/>
- <nmcnfmid/>
- <nmcnfmnm/>
- <spccnfmid/>
- <spccnfmnm/>
- <bdirem/>
- <bdorem/>
- </cnfmidinfo>
- <bdoutexamcnt>
- <patcnt/>
- <testcnt/>
- </bdoutexamcnt>
- </main>
- <send>
- <srchdd/>
- <srchbdioflag/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <mainlist/>
- <nuclwlnlist/>
- <nucldelivelist/>
- <compdwlnlist/>
- <compddelivelist/>
- <srchflag/>
- <delflag/>
- <cnfmidinfo/>
- <srchcnfmid/>
- <updtyn/>
- <excuroomgrpcdid/>
- </send>
- <tmp>
- <suplcustcd/>
- <suplcustnm/>
- <itemflag/>
- <rem/>
- <rexlist>
- <srchdd/>
- <patinsucnt/>
- <patgnrlcnt/>
- <testinsucnt/>
- <testgnrlcnt/>
- <pettotpatcnt/>
- <pettottestcnt/>
- <nmtotpatcnt/>
- <nmtottestcnt/>
- <cutotpatcnt/>
- <cutottestcnt/>
- <spctotpatcnt/>
- <spctottestcnt/>
- <petusernm/>
- <nmusernm/>
- <spcusernm/>
- <rem/>
- </rexlist>
- <iolist/>
- <srchdd/>
- <incnfmnm/>
- <outcnfmnm/>
- </tmp>
- <init>
- <cmb_info>
- <initexcuroomgrp>
- <excuroomgrpcdid/>
- <excuroomgrpcdnm/>
- </initexcuroomgrp>
- </cmb_info>
- <incnfmnm/>
- <outcnfmnm/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- submit("TRAER00301");
-
- model.setValue("/root/init/incnfmnm", getUserInfo("userid"));
- model.setValue("/root/init/outcnfmnm", getUserInfo("userid"));
- model.setValue("/root/send/srchbdioflag","I");
- model.setValue("/root/send/srchdd", getCurrentDate() );
- model.setValue("/root/tmp/itemflag", "N");
- model.setValue("/root/send/updtyn", "N");
-
- model.removeNodeset("/root/main/mainlist");
- model.removeNodeset("/root/main/nuclwlnlist");
- model.removeNodeset("/root/main/nucldelivelist");
-
- addComboItem("cmb_excuroomgrp","--전체--","","above");
-
- btn_save.disabled = true;
- btn_del.disabled = true;
- btn_rept.disabled = false;
- btn_nuclrpt.disabled = false;
- ipt_petcnfmid.disabled = true;
- ipt_nmcnfmid.disabled = true;
-
- 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="TXAEQ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
- <submission id="TXAEQ00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
- <submission id="TXAEQ00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
- <submission id="TRAEQ00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp/iolist"/>
- <submission id="TRAEQ00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp/cnfminfo"/>
- <submission id="TRAER00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
- </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 sortGrid(gridItem) {
-
- gridItem.colSort(0) = "asc";
- gridItem.sort(0, 0, gridItem.rows, gridItem.cols) = "usersort";
- gridItem.subtotal("clear", 0, 2);
- gridItem.subtotal("clear", 0, 3);
- gridItem.subtotal("clear", 0, 4);
- gridItem.subtotal("clear", 0, 5);
- gridItem.subtotal("clear", -1, 2);
- gridItem.subtotal("clear", -1, 3);
- gridItem.subtotal("clear", -1, 4);
- gridItem.subtotal("clear", -1, 5);
- gridItem.subtotal("sum", 0, 2, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
- gridItem.subtotal("sum", 0, 3, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
- gridItem.subtotal("sum", 0, 4, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
- gridItem.subtotal("sum", 0, 5, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
- gridItem.subtotal("sum", -1, 2, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
- gridItem.subtotal("sum", -1, 3, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "총계");
- gridItem.subtotal("sum", -1, 4, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "총계");
- gridItem.subtotal("sum", -1, 5, "#,###", "background-color:#ffff00; color:#00ffff; font-weight:bold; ", 0, "총계");
-
- var cnt = getNodesetCount("/root/main/cnfmidinfo");
-
- if (cnt == 0) {
- model.makeNode("/root/main/cnfmidinfo/petcnfmid");
- model.makeNode("/root/main/cnfmidinfo/petcnfmnm");
- model.makeNode("/root/main/cnfmidinfo/nmcnfmid");
- model.makeNode("/root/main/cnfmidinfo/nmcnfmnm");
- model.makeNode("/root/main/cnfmidinfo/spccnfmid");
- model.makeNode("/root/main/cnfmidinfo/spccnfmnm");
- model.makeNode("/root/main/cnfmidinfo/bdirem");
- model.makeNode("/root/main/cnfmidinfo/bdorem");
- model.makeNode("/root/main/bdoutexamcnt/patcnt");
- model.makeNode("/root/main/bdoutexamcnt/testcnt");
- }
-
- model.refresh();
- }
-
- function addRow(qtygridlistid) {
-
- grd_nuclwlnlist.addItem();
-
- grd_bodypart.addItem();
-
- var i = parseInt(grd_bodypart.row);
-
- model.setValue("/root/main/bodypartlist/list[" + i + "]/basesuppdeptcd",
- model.getValue("/root/send/globalinstance/instance1") );
-
- model.refresh();
- }
-
- function setGridStatus(grd_update) {
- var rowcnt = grd_update.rows;
- for(i=0 ; i < rowcnt; i++) {
- grd_update.rowstatus(i) = 2;
- }
- }
-
- function mergeRexList(rexList)
- {
- var mainlistcnt;
- for(var i = 1 ; i <= model.getXPathValue("count(" + rexList + ")"); i++)
- {
- mainlistcnt = parseInt(model.getXPathValue("count(/root/tmp/rexlist/mainlist)")) + 1;
-
- model.makeNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]");
- model.copyNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]", rexList + "[" + i +"]");
- }
-
- if(model.getXPathValue("count(" + rexList + ")") > 0)
- {
- mainlistcnt = mainlistcnt + 1;
-
- model.makeNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]");
- model.copyNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]", "/root/tmp/rexlist/mainlist");
- model.setValue("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]/basecdcnts", " ");
- model.setValue("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]/prcpnm", "total");
- model.setValue("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]/patinsucnt", model.getXPathValue("sum(" + rexList + "/patinsucnt)"));
- model.setValue("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]/patgnrlcnt", model.getXPathValue("sum(" + rexList + "/patgnrlcnt)"));
- model.setValue("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]/testinsucnt", model.getXPathValue("sum(" + rexList + "/testinsucnt)"));
- model.setValue("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]/testgnrlcnt", model.getXPathValue("sum(" + rexList + "/testgnrlcnt)"));
-
- mainlistcnt = mainlistcnt + 1;
- model.makeNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]");
- mainlistcnt = mainlistcnt + 1;
- model.makeNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="text-align:center; 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>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">조회일자 :</caption>
- <input id="input5" ref="/root/send/srchdd" class="input_search" inputtype="date" style="left:102px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <line id="line13" class="line_4" style="x1:1116px; y1:6px; x2:1116px; y2:28px; "/>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:530px; top:9px; width:65px; height:17px; ">구분 :</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(model.getValue("/root/send/srchdd") != "") {
-
- model.removeNodeset("/root/main/mainlist");
- model.removeNodeset("/root/main/nuclwlnlist");
- model.removeNodeset("/root/main/nucldelivelist");
- model.removeNodeset("/root/main/compdwlnlist");
- model.removeNodeset("/root/main/compddelivelist");
- model.removeNodeset("/root/main/cnfmidinfo");
- model.removeNodeset("/root/main/bdoutexamcnt");
- model.makeValue("/root/send/srchflag","S");
- model.refresh();
-
- submit("TRAEQ00401");
- sortGrid(grd_mainlist);
-
- model.setValue("/root/send/updtyn", "N");
-
- } else {
- messageBox("날짜가", "E007");
- return false;
- }
- setGridStatus(grd_mainlist)
-
- ]]>
- </script>
- </button>
- <select1 id="radio1" ref="/root/send/srchbdioflag" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:600px; top:10px; width:95px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>체내</label>
- <value>I</value>
- </item>
- <item>
- <label>체외</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var bdioflag = model.getValue("/root/send/srchbdioflag");
-
- if (bdioflag == "I") {
- model.toggle("case1");
- } else if (bdioflag == "O") {
- model.toggle("case2");
- }
-
- if(model.getValue("/root/send/srchdd") != "")
- {
- model.removeNodeset("/root/main/mainlist");
- model.removeNodeset("/root/main/nuclwlnlist");
- model.removeNodeset("/root/main/nucldelivelist");
- model.removeNodeset("/root/main/compdwlnlist");
- model.removeNodeset("/root/main/compddelivelist");
- submit("TRAEQ00401");
-
- model.refresh();
- }
- else
- {
- messageBox("날짜가", "E007");
- }
-
- setGridStatus(grd_mainlist)
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="button3" class="btn1_letter3" style="left:1041px; top:7px; width:56px; height:22px; ">
- <caption>재조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(model.getValue("/root/send/srchdd") != "") {
-
- model.removeNodeset("/root/main/mainlist");
- model.removeNodeset("/root/main/nuclwlnlist");
- model.removeNodeset("/root/main/nucldelivelist");
- model.removeNodeset("/root/main/compdwlnlist");
- model.removeNodeset("/root/main/compddelivelist");
- model.makeValue("/root/send/srchflag","N");
-
- model.refresh();
-
- submit("TRAEQ00401");
- sortGrid(grd_mainlist);
-
- model.setValue("/root/send/updtyn", "N");
-
- } else {
- messageBox("날짜가", "E007");
- }
-
- setGridStatus(grd_mainlist);
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">조회일자 :</caption>
- <caption id="caption10" class="search_name" style="left:231px; top:9px; width:79px; height:17px; ">검사실 :</caption>
- <select1 id="cmb_excuroomgrp" ref="/root/send/excuroomgrpcdid" class="combo_default" appearance="minimal" style="left:310px; top:8px; width:118px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexcuroomgrp">
- <label ref="excuroomgrpcdnm"/>
- <value ref="excuroomgrpcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var excuroomgrpcdid = model.getValue("/root/send/excuroomgrpcdid");
-
- if (excuroomgrpcdid == "") {
-
- btn_save.disabled = true;
- btn_del.disabled = true;
- btn_rept.disabled = false;
- btn_nuclrpt.disabled = false;
- ipt_petcnfmid.disabled = true;
- ipt_nmcnfmid.disabled = true;
-
- } else {
- btn_save.disabled = false;
- btn_del.disabled = false;
- btn_rept.disabled = true;
- btn_nuclrpt.disabled = true;
-
- if (excuroomgrpcdid == "PET-CT실") {
- ipt_petcnfmid.disabled = false;
- ipt_nmcnfmid.disabled = true;
- } else {
- ipt_petcnfmid.disabled = true;
- ipt_nmcnfmid.disabled = false;
- }
- }
-
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:555px; y2:71px; "/>
- <caption id="caption22" class="tit_2" style="left:0px; top:56px; width:84px; height:13px; ">검사현황</caption>
- <caption id="caption4" class="tit_2" style="left:561px; top:56px; width:84px; height:13px; ">입고현황</caption>
- <line id="line2" class="line_1" style="x1:561px; y1:71px; x2:1193px; y2:71px; "/>
- <switch id="switch2" style="left:561px; top:76px; width:632px; height:529px; ">
- <case id="case3" scroll="none" selected="true">
- <datagrid id="grd_nuclwlnlist" nodeset="/root/main/nuclwlnlist" caption="제품코드^항목^공급처^제조회사^규격^용량^취득량" colsep="^" colwidth="60, 134, 95, 80, 75, 68, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:0px; width:632px; height:250px; ">
- <col ref="goodcd"/>
- <col ref="goodnm" type="output"/>
- <col ref="suplcustnm" type="output"/>
- <col ref="prodcmpynm" type="output"/>
- <col ref="specnm" type="output"/>
- <col ref="vol" type="output" format="#,###.99" maxlength="10" style="text-align:right; "/>
- <col ref="qty" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
- <col ref="lossresncd" visibility="hidden"/>
- <col ref="iodd" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="bdioflag" visibility="hidden"/>
- <col ref="itemflag" visibility="hidden"/>
- <col ref="rem" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- <datagrid id="grd_nucldelivelist" nodeset="/root/main/nucldelivelist" caption="제품코드^항목^공급처^제조회사^규격^용량^사용량" colsep="^" colwidth="60, 134, 95, 80, 75, 68, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:275px; width:632px; height:250px; ">
- <col ref="goodcd"/>
- <col ref="goodnm" type="output"/>
- <col ref="suplcustnm" type="output"/>
- <col ref="prodcmpynm" type="output"/>
- <col ref="specnm" type="output"/>
- <col ref="vol" type="output" format="#,###.99" maxlength="10" style="text-align:right; "/>
- <col ref="qty" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
- <col ref="lossresncd" visibility="hidden"/>
- <col ref="iodd" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="bdioflag" visibility="hidden"/>
- <col ref="itemflag" visibility="hidden"/>
- <col ref="rem" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- </case>
- <case id="case4" scroll="none">
- <datagrid id="grd_compdwlnlist" nodeset="/root/main/compdwlnlist" caption="제품코드^항목^공급처^제조회사^규격^용량^취득량" colsep="^" colwidth="60, 134, 95, 80, 75, 68, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:0px; width:632px; height:250px; ">
- <col ref="goodcd"/>
- <col ref="goodnm" type="output"/>
- <col ref="suplcustnm" type="output"/>
- <col ref="prodcmpynm" type="output"/>
- <col ref="specnm" type="output"/>
- <col ref="vol" type="output" format="#,###.99" maxlength="10" style="text-align:right; "/>
- <col ref="qty" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
- <col ref="lossresncd" visibility="hidden"/>
- <col ref="iodd" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="bdioflag" visibility="hidden"/>
- <col ref="itemflag" visibility="hidden"/>
- <col ref="rem" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- <datagrid id="grd_compddelivelist" nodeset="/root/main/compddelivelist" caption="제품코드^항목^공급처^제조회사^규격^용량^사용량" colsep="^" colwidth="60, 134, 95, 80, 75, 68, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:275px; width:632px; height:250px; ">
- <col ref="goodcd"/>
- <col ref="goodnm" type="output"/>
- <col ref="suplcustnm" type="output"/>
- <col ref="prodcmpynm" type="output"/>
- <col ref="specnm" type="output"/>
- <col ref="vol" type="output" format="#,###.99" maxlength="10" style="text-align:right; "/>
- <col ref="qty" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
- <col ref="lossresncd" visibility="hidden"/>
- <col ref="iodd" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="bdioflag" visibility="hidden"/>
- <col ref="itemflag" visibility="hidden"/>
- <col ref="rem" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- </case>
- </switch>
- <textarea id="textarea1" ref="/root/main/cnfmidinfo/bdirem" style="left:0px; top:635px; width:1195px; height:109px; text-align:left; "/>
- <caption id="caption5" class="tit_2" style="left:0px; top:615px; width:129px; height:14px; ">참고사항</caption>
- <line id="line3" class="line_1" style="x1:1px; y1:630px; x2:1195px; y2:630px; "/>
- <caption id="caption7" class="tit_2" style="left:561px; top:335px; width:84px; height:13px; ">사용현황</caption>
- <line id="line4" class="line_1" style="x1:561px; y1:350px; x2:1193px; y2:350px; "/>
- <switch id="switch1" style="left:0px; top:75px; width:558px; height:532px; ">
- <case id="case1" selected="true">
- <datagrid id="grd_mainlist" nodeset="/root/main/mainlist" caption="구분^검사항목^환자수^환자수^검사수^검사수|구분^검사항목^보험^일반^보험^일반" colsep="^" colwidth="84, 230, 55, 55, 55, 55, 100, 100, 100, 100, 100" fixedcols="1" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" multitotal="true" rowsep="|" subtotalposition="below" style="left:0px; top:0px; width:555px; height:529px; ">
- <col ref="basecdcnts"/>
- <col ref="prcpnm" style="text-align:center; "/>
- <col ref="patinsucnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="patgnrlcnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="testinsucnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="testgnrlcnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="prcpcd" visibility="hidden" style="text-align:center; "/>
- <col ref="recdd" visibility="hidden" style="text-align:center; "/>
- <col ref="bdioflag" visibility="hidden" style="text-align:center; "/>
- <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="rem" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var excuroomgrpcdid = model.getValue("/root/send/excuroomgrpcdid");
- if (excuroomgrpcdid == "PET-CT실") {
- model.setValue("/root/main/cnfmidinfo/petcnfmid","");
- model.setValue("/root/main/cnfmidinfo/petcnfmnm","");
- } else {
- model.setValue("/root/main/cnfmidinfo/nmcnfmid","");
- model.setValue("/root/main/cnfmidinfo/nmcnfmnm","");
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="datagrid1" nodeset="/root/list/abc" caption="구분^검사항목^환자수^환자수^환자수^검사수
(사용량)|구분^검사항목^입원^외래^건진^검사수
(사용량)" colsep="^" colwidth="64, 248, 55, 55, 55, 55" fixedcols="1" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:555px; height:529px; ">
- <col ref="basecdcnts"/>
- <col ref="prcpnm"/>
- <col ref="paticnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="patocnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="patscnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="testqty" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="prcpcd" visibility="hidden" style="text-align:center; "/>
- <col ref="recdd" visibility="hidden" style="text-align:center; "/>
- <col ref="bdioflag" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- </case>
- </switch>
- <input id="ipt_suplcmpynm" ref="/root/tmp/suplcustnm" visibility="hidden" style="left:205px; top:610px; width:90px; height:19px; "/>
- <input id="ipt_suplcmpy" ref="/root/tmp/suplcustcd" visibility="hidden" style="left:115px; top:610px; width:85px; height:19px; "/>
- <select1 id="radio2" ref="/root/tmp/itemflag" appearance="full" cols="2" overflow="visible" style="left:645px; top:55px; width:95px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>핵종</label>
- <value>N</value>
- </item>
- <item>
- <label>화합물</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(radio2.value == "N")
- {
- model.toggle("case3");
- }
- else
- {
- model.toggle("case4");
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_petcnfmid" ref="/root/main/cnfmidinfo/petcnfmid" class="input_search" style="left:695px; top:609px; width:90px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if ( event.keyCode == 13 ) {
- setInputNodeCurText();
- model.setValue("/root/send/srchcnfmid", model.getValue("/root/main/cnfmidinfo/petcnfmid"));
-
- if (submit("TRAEQ00403",false)) {
-
- var cnfmn = model.getValue("/root/tmp/cnfminfo/cnfmnm");
-
- model.setValue("/root/main/cnfmidinfo/petcnfmid", model.getValue("/root/tmp/cnfminfo/cnfmid"));
- model.setValue("/root/main/cnfmidinfo/petcnfmnm", cnfmn);
-
- if (cnfmn != "") {
- model.setValue("/root/send/updtyn","Y");
- }
-
- model.refresh();
- }
- }
- ]]>
- </script>
- </input>
- <output id="output1" ref="/root/main/cnfmidinfo/petcnfmnm" class="output_fix" style="left:787px; top:609px; width:80px; height:19px; "/>
- <input id="ipt_nmcnfmid" ref="/root/main/cnfmidinfo/nmcnfmid" class="input_search" style="left:1015px; top:609px; width:90px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if ( event.keyCode == 13 ) {
- setInputNodeCurText();
- model.setValue("/root/send/srchcnfmid", model.getValue("/root/main/cnfmidinfo/nmcnfmid"));
-
- if (submit("TRAEQ00403",false)) {
-
- var cnfmn = model.getValue("/root/tmp/cnfminfo/cnfmnm");
-
- model.setValue("/root/main/cnfmidinfo/nmcnfmid", model.getValue("/root/tmp/cnfminfo/cnfmid"));
- model.setValue("/root/main/cnfmidinfo/nmcnfmnm", model.getValue("/root/tmp/cnfminfo/cnfmnm"));
-
- if (cnfmn != "") {
- model.setValue("/root/send/updtyn","Y");
- }
- model.refresh();
- }
- }
- ]]>
- </script>
- </input>
- <output id="output2" ref="/root/main/cnfmidinfo/nmcnfmnm" class="output_fix" style="left:1107px; top:609px; width:80px; height:19px; "/>
- </group>
- <button id="btn_save" class="btn4_letter2" style="left:845px; top:760px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowcnt = grd_mainlist.rows;
- // if(model.getXPathValue("count(/root/main/mainlist)") != 0) model.setValue("/root/main/mainlist[1]/rem", model.getValue("/root/tmp/rem"));
- var excuroomgrpcdid = model.getValue("/root/send/excuroomgrpcdid");
-
- var cnfmnm = "";
- if (excuroomgrpcdid == "PET-CT실") {
- cnfmnm = model.getValue("/root/main/cnfmidinfo/petcnfmnm");
- } else {
- cnfmnm = model.getValue("/root/main/cnfmidinfo/nmcnfmnm");
- }
- if ( cnfmnm == "" ) {
- messageBox("확인자 정보를 확인해 주십시요!", "I999");
- return;
- }
-
- for(var i = 1; i < rowcnt; i++)
- {
- model.makeValue("/root/main/mainlist[" + i + "]/rem", model.getValue("/root/tmp/rem"));
- }
- grd_mainlist.subtotal("clear", 0, 2, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
- grd_mainlist.subtotal("clear", 0, 3, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
- grd_mainlist.subtotal("clear", 0, 4, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
- grd_mainlist.subtotal("clear", 0, 5, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
- grd_mainlist.subtotal("clear", -1, 2, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
- grd_mainlist.subtotal("clear", -1, 3, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "총계");
- grd_mainlist.subtotal("clear", -1, 4, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "총계");
- grd_mainlist.subtotal("clear", -1, 5, "#,###", "background-color:#ffff00; color:#00ffff; font-weight:bold; ", 0, "총계");
-
- var uptmain = getGridUpdateData(grd_mainlist);
- var uptwln = getGridUpdateData(grd_nuclwlnlist);
- var uptdelive = getGridUpdateData(grd_nucldelivelist);
- var uptcompdwln = getGridUpdateData(grd_compdwlnlist);
- var uptcompddelive = getGridUpdateData(grd_compddelivelist);
-
- model.setValue("/root/send/mainlist", uptmain);
- model.setValue("/root/send/nuclwlnlist", uptwln);
- model.setValue("/root/send/nucldelivelist", uptdelive);
- model.setValue("/root/send/compdwlnlist", uptcompdwln);
- model.setValue("/root/send/compddelivelist", uptcompddelive);
-
- copyNodesetType("/root/send/cnfmidinfo","/root/main/cnfmidinfo");
- model.makeValue("/root/send/cnfmidinfo/recdd", model.getValue("/root/send/srchdd"));
- model.makeValue("/root/send/cnfmidinfo/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.makeValue("/root/send/cnfmidinfo/bdioflag", "I");
-
- if ( submit("TXAEQ00401")) {
- // 저장 후 재 조회
- model.makeValue("/root/send/srchflag","S");
- model.removeNodeset("/root/main/mainlist");
- model.removeNodeset("/root/main/nuclwlnlist");
- model.removeNodeset("/root/main/nucldelivelist");
- model.removeNodeset("/root/main/compdwlnlist");
- model.removeNodeset("/root/main/compddelivelist");
- model.removeNodeset("/root/main/cnfmidinfo");
- model.refresh();
-
- submit("TRAEQ00401");
- sortGrid(grd_mainlist);
-
- messageBox("저장", "I002");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn4_letter2" style="left:904px; top:760px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var message = messageBox( "\r\n\r\검사현황을","Q001");
- model.makeValue("/root/send/delflag", "T");
- if (submit("TXAEQ00402")) {
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_rept" class="btn4_letter6" style="left:965px; top:760px; width:104px; 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;
- var list4cnt = 1;
-
- for(var i=1 ; i <= nodecnt; i++) {
- if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "PET-CT실") {
- 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" ) == "영상검사실") {
- 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;
- }
- }
-
- for(var i=1 ; i <= nodecnt; i++) {
- if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "치료,투약실") {
- model.makeNode("/root/tmp/rexlist/list4[" + list4cnt + "]");
- model.copyNode("/root/tmp/rexlist/list4[" + list4cnt +"]", "/root/main/mainlist[" + i + "]");
- list4cnt = list4cnt + 1;
- }
- }
-
- mergeRexList("/root/tmp/rexlist/list1");
- mergeRexList("/root/tmp/rexlist/list2");
- mergeRexList("/root/tmp/rexlist/list3");
- mergeRexList("/root/tmp/rexlist/list4");
-
- 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 )");
-
- var pettotpatcnt = 0;
- var pettottestcnt = 0;
-
- var nmtotpatcnt = 0;
- var nmtottestcnt = 0;
-
- var cutotpatcnt = 0;
- var cutottestcnt = 0;
-
- // PET/CT 검사
- pettotpatcnt = parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list1/patinsucnt )"));
- pettotpatcnt = pettotpatcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list1/patgnrlcnt)"));
-
- pettottestcnt = parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list1/testinsucnt )"));
- pettottestcnt = pettottestcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list1/testgnrlcnt)"));
-
- // 체내검사 : 영상, 기능적검사
- nmtotpatcnt = parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list2/patinsucnt )"));
- nmtotpatcnt = nmtotpatcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list2/patgnrlcnt)"));
-
- nmtotpatcnt = nmtotpatcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list3/patinsucnt )"));
- nmtotpatcnt = nmtotpatcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list3/patgnrlcnt)"));
-
- nmtottestcnt = parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list2/testinsucnt )"));
- nmtottestcnt = nmtottestcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list2/testgnrlcnt)"));
-
- nmtottestcnt = nmtottestcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list3/testinsucnt )"));
- nmtottestcnt = nmtottestcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list3/testgnrlcnt)"));
-
-
- // R.I 치료
- cutotpatcnt = parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list4/patinsucnt )"));
- cutotpatcnt = cutotpatcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list4/patgnrlcnt)"));
-
- cutottestcnt = parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list4/testinsucnt )"));
- cutottestcnt = cutottestcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list4/testgnrlcnt)"));
-
- var rem = model.getValue("/root/m/rem");
-
- if ( rem == "" ) {
- rem = model.getXPathValue(" /root/main/mainlist/rem ");
- }
-
- 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);
- model.setValue("/root/tmp/rexlist/pettotpatcnt", pettotpatcnt);
- model.setValue("/root/tmp/rexlist/pettottestcnt", pettottestcnt);
- model.setValue("/root/tmp/rexlist/nmtotpatcnt", nmtotpatcnt);
- model.setValue("/root/tmp/rexlist/nmtottestcnt", nmtottestcnt);
- model.setValue("/root/tmp/rexlist/cutotpatcnt", cutotpatcnt);
- model.setValue("/root/tmp/rexlist/cutottestcnt", cutottestcnt);
-
- var spctotpatcnt = 0;
- var spctottestcnt = 0;
-
- model.setValue("/root/tmp/rexlist/spctotpatcnt", model.getValue("/root/main/bdoutexamcnt/patcnt"));
- model.setValue("/root/tmp/rexlist/spctottestcnt", model.getValue("/root/main/bdoutexamcnt/testcnt"));
-
- model.setValue("/root/tmp/rexlist/petusernm", model.getValue("/root/main/cnfmidinfo/petcnfmnm"));
- model.setValue("/root/tmp/rexlist/nmusernm", model.getValue("/root/main/cnfmidinfo/nmcnfmnm"));
- model.setValue("/root/tmp/rexlist/spcusernm", model.getValue("/root/main/cnfmidinfo/spccnfmnm"));
-
- model.setValue("/root/tmp/rexlist/rem", model.getValue("/root/main/cnfmidinfo/bdirem"));
- var ymd = model.getValue("/root/send/srchdd");
- var year = ymd.substring(0,4);
- var month = ymd.substring(4,6);
- var day = ymd.substring(6,8);
- var yymmddstr = year + "년 " + month + "월 " + day + "일 " + getDateTime(ymd.toDate("YYYYMMDD"), "W") + "요일";
-
- model.setValue("/root/tmp/rexlist/srchdd", yymmddstr);
- model.makeNode("/root/tmp/rexlist/mainlist[40]");
- 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/list4");
- model.removeNodeset("/root/tmp/rexlist/mainlist");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_nuclrpt" class="btn4_letter7" style="left:1075px; top:760px; width:116px; height:22px; ">
- <caption>입고/사용량출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(getGridUpdateData(grd_nuclwlnlist, "") != "" || getGridUpdateData(grd_nucldelivelist, "") != "" ||
- getGridUpdateData(grd_compdwlnlist, "") != "" || getGridUpdateData(grd_compddelivelist, "") != "")
- {
- if(messageBox("저장되지 않은 내역은 출력되지 않습니다. \n출력", "S002") == 7) return false;
- }
-
- var ymd = model.getValue("/root/main/nuclwlnlist/iodd");
- var year = ymd.substring(0,4);
- var month = ymd.substring(4,6);
- var day = ymd.substring(6,8);
-
- var yymmddstr = year + "/" + month + "/" + day + " " + getDateTime(ymd.toDate("YYYYMMDD"), "W") + "요일";
- model.setValue("/root/tmp/srchdd", yymmddstr);
-
- model.resetInstanceNode("/root/tmp/iolist");
- model.removenode("/root/tmp/iolist");
-
- // model.setValue("/root/tmp/rexlist/petusernm", model.getValue("/root/main/cnfmidinfo/petcnfmnm"));
- // model.setValue("/root/tmp/rexlist/nmusernm", model.getValue("/root/main/cnfmidinfo/nmcnfmnm"));
- //
- model.setValue("/root/tmp/incnfmnm", model.getValue("/root/main/cnfmidinfo/nmcnfmnm"));
- model.setValue("/root/tmp/outcnfmnm", model.getValue("/root/main/cnfmidinfo/spccnfmnm"));
-
- submit("TRAEQ00402");
- for(var i = model.getXPathValue("count(/root/tmp/iolist)"); i > 0 ; i--)
- {
- if(model.getValue("/root/tmp/iolist[" + i + "]/qty") == "" && model.getValue("/root/tmp/iolist[" + i + "]/goodnm") != "")
- {
- model.removenode("/root/tmp/iolist[" + i + "]");
- }
- }
- model.makeNode("/root/tmp/iolist[92]");
- exeReportPreview("RPAEQ00401", "XMLSTR", "/root/tmp");
- ]]>
- </script>
- </button>
- <caption id="caption8" class="search_name" style="left:564px; top:623px; width:129px; height:17px; ">PET/CT 확인자 :</caption>
- <caption id="caption9" class="search_name" style="left:876px; top:622px; width:135px; height:17px; ">체내.치료 확인자 :</caption>
- </xhtml:body>
- </xhtml:html>
|