123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- <?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>
- <goodlist>
- <item>
- <goodcd/>
- <goodnm/>
- <speccd/>
- <safestocqty/>
- <sectcd/>
- <instcd/>
- <suppdeptcd/>
- <dispseq/>
- </item>
- </goodlist>
- </main>
- <send>
- <data>
- <itemcd/>
- </data>
- <req>
- <data/>
- </req>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <sectcd/>
- </send>
- <init/>
- <hidden>
- <item>
- </item>
- </hidden>
- <cmb_info>
- <initexcuroomgrp2>
- <excuroomgrpcdid/>
- <excuroomgrpcdnm/>
- </initexcuroomgrp2>
- </cmb_info>
- <temp>
- <goodcd/>
- <goodnm/>
- <safestocqty/>
- <speccd/>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- model.removeNodeset("/root/main/goodlist/item");
- //model.removeNodeset("/root/main/speclist/item");
- model.refresh();
-
- model.setFocus("ipt_speccd");
-
- submit("TRAEA01301");
-
- grd_sectlist.deleteRow(1, true);
- grd_sectlist.dispatch("onclick");
- ]]>
- </script>
- <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/main/goodlist"/>
- <submission id="TXAEB03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- </model>
- </xhtml:head>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- function fnGetMainList()
- {
- if(submit("TRAEB01802"))
- {
- //model.removeNodeset("/root/main/goodlist/item");
- }
- }
- ]]>
- </script>
- <xhtml:body guideline="1,1195;2,786;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:215px; height:15px; ">검사실별 조영제/재료 코드 관리</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:60px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_sectlist.row < 1)
- {
- messageBox("핵종이나 화합물이 선택되지", "E007");
- return false;
- }
-
- grd_goodlist.addRow();
- grd_goodlist.row = grd_goodlist.bottomRow;
-
- var cnt = parseInt(grd_goodlist.row);
-
- var mainrowcnt = parseInt(grd_sectlist.row);
-
-
- model.setValue("/root/main/goodlist/item[" + cnt + "]/suppdeptcd",
- model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/suppdeptcd") );
-
- model.setValue("/root/main/goodlist/item[" + cnt + "]/bdioflag",
- model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/bdioflag") );
-
- model.setValue("/root/main/goodlist/item[" + cnt + "]/itemflag",
- model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/itemflag") );
-
- model.setValue("/root/main/goodlist/item[" + cnt + "]/itemcd",
- model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/itemcd") );
-
- grd_goodlist.isReadOnly(cnt, 1) = false;
-
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1142px; top:60px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // grd_goodlist.addStatus(grd_goodlistt.row,"delete");
- deleteSelectedRows(grd_goodlist, true);
- ]]>
- </script>
- </button>
- <datagrid id="grd_sectlist" nodeset="/root/cmb_info/initexcuroomgrp2" allowselection="false" caption="검사실^검사실" colsep="^" colwidth="183, 194" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:30px; width:245px; height:730px; ">
- <col ref="excuroomgrpcdid" type="output" visibility="hidden"/>
- <col ref="excuroomgrpcdnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_sectlist.row == 0)
- {
- return false;
- }
- //grd_goodlist.nodeset="/root/main/item2"
- model.setValue("/root/send/sectcd", model.getValue("/root/cmb_info/initexcuroomgrp2[" + grd_sectlist.row + "]/excuroomgrpcdid"));
-
- submit("TRAEB03801");
-
- model.refresh();
-
- ]]>
- </script>
- </datagrid>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1195px; y2:0px; "/>
- <button id="button1" class="btn4_letter2" style="left:1078px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(!astfNullValidation("/root/main/goodlist/item", "goodcd", "약품코드를")) return false;
-
- if ( messageBox("","Q002")==6 ) {
- var update = getGridUpdateData(grd_goodlist);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- model.setValue("/root/send/req/data", update);
- if (submit("TXAEB03801")) {
-
- // 저장 후 팝업인 경우 변경 여부 returng하고 창을 닫는다
- submit("TRAEB03801");
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" style="left:1138px; top:4px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if (checkOpener()) {
- // opener.model.setValue("/root/init/updtyn","N");
- // }
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_goodlist" nodeset="/root/main/goodlist/item" caption="조영제/재료코드^조영제/재료명^안전재고량^용량^순서" colsep="^" colwidth="137, 434, 109, 118, 79, 121, 68, 68" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:250px; top:30px; width:945px; height:730px; ">
- <col disabled="true" editable="false" ref="goodcd" type="inputbutton">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- modal("SPAEB00401", "", "200", "200", "popup", "/root/hidden/pseursrvinfo", "/root/init/pseursrvinfo");
- model.refresh();
- var selectedrow = grd_goodlist.selectedCells.item(0).row;
- if(model.getValue("/root/temp/goodcd") != "")
- {
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/goodcd", model.getValue("/root/temp/goodcd"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/goodnm", model.getValue("/root/temp/goodnm"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/safestocqty", model.getValue("/root/temp/safestocqty"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/speccd", model.getValue("/root/temp/speccd"));
- model.refresh();
- }
- model.setValue("/root/temp/goodcd", "");
- ]]>
- </script>
- </col>
- <col ref="goodnm" type="output"/>
- <col ref="safestocqty" type="output" format="#,###" style="text-align:right; "/>
- <col ref="speccd" type="output" style="text-align:center; "/>
- <col ref="dispseq" type="input" style="text-align:center; "/>
- <col ref="sectcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- </datagrid>
- <button id="button2" class="btn2_letter3" style="left:1137px; top:0px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // grd_goodlist.addStatus(grd_goodlistt.row,"delete");
- deleteSelectedRows(grd_goodlist, true);
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" style="left:1080px; top:0px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_goodlist.addRow();
- grd_goodlist.row = grd_goodlist.bottomRow;
-
- var cnt = parseInt(grd_goodlist.row);
-
- var mainrowcnt = parseInt(grd_goodlist.row);
-
- model.setValue("/root/main/goodlist/item[" + cnt + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
- model.setValue("/root/main/goodlist/item[" + cnt + "]/sectcd", model.getValue("/root/cmb_info/initexcuroomgrp2[" + grd_sectlist.row + "]/excuroomgrpcdid") );
-
- grd_goodlist.isReadOnly(cnt, 1) = false;
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|