123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <antibiosmlnolist>
- </antibiosmlnolist>
- <antibiomdlnolist>
- </antibiomdlnolist>
- <antibiolrgnolist>
- </antibiolrgnolist>
- </main>
- <hidden>
- <resnflagno>11</resnflagno>
- </hidden>
- <send>
- <reqdata/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- opener.javascript.fInit();
-
- fGetLrgNo();
- //fGetMdlNo(1);
- fGetMdlNo(grd_lrgno.selectedRow(0));
- fGetSmlNo(grd_mdlno.selectedRow(0));
- //fGetRecommNo(1);
- fGetRecommNo(grd_smlno.selectedRow(0));
- //opener.grd_antibiorecommlist.select(1,1) = true;
- //opener.javascript.fDetailList(1);
- ]]>
- </script>
- <submission id="TRMMD01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/antibiolrgnolist"/>
- <submission id="TRMMD01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/antibiomdlnolist"/>
- <submission id="TRMMD01603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/antibiosmlnolist"/>
- </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/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fGetLrgNo(){
- if( !isNull(model.getValue("/root/hidden/resnflagno")) ){
- model.removeNodeset("/root/send/reqdata");
- //opener.javascript.fInit();
- model.makeValue("/root/send/reqdata/resnflagno", model.getValue("/root/hidden/resnflagno"));
- //model.makeValue("/root/send/reqdata/lrgno", opener.model.getValue("/root/main/cond/lrgno"));
-
- submit("TRMMD01601");
-
- var lrgSelectedCnt = 1;
- for( idx = 1 ; idx <= grd_lrgno.rows- grd_lrgno.fixedRows ; idx++ ){
- if(opener.model.getValue("/root/main/cond/lrgno") == model.getValue("/root/main/antibiolrgnolist/info["+idx+"]/lrgno")) {
- lrgSelectedCnt = idx;
- idx = grd_lrgno.rows;
- }
- }
- grdRow = lrgSelectedCnt;
- if(grdRow == 1){
- grd_lrgno.select(1,1) = true;
- }else if(grd_lrgno.rows - grd_lrgno.fixedRows > 0){
- grd_lrgno.select(grdRow,1) = true;
- }
- /*
- if(grd_lrgno.rows - grd_lrgno.fixedRows > 0){
- grd_lrgno.select(1,1) = true;
- }
- */
- }
- }
- function fGetMdlNo(grdRow){
- if(grd_lrgno.rows - grd_lrgno.fixedRows >= 1 ){
- model.removeNodeset("/root/send/reqdata");
- model.removeNodeset("/root/main/antibiosmlnolist");
- //opener.javascript.fInit();
-
- // 대분류 파라메터 세팅
- /*if(clickyn == 'Y') { // 대분류에서 선택시 클릭된 값 세팅
- model.makeValue("/root/send/reqdata/lrgno", model.getValue("/root/main/antibiolrgnolist/info["+ grdRow + "]/lrgno"));
- } else {
- if(opener.model.getValue("/root/main/cond/lrgno") == "") { // 처음 로드시 1 세팅
- model.makeValue("/root/send/reqdata/lrgno", model.getValue("/root/main/antibiolrgnolist/info["+ grdRow + "]/lrgno"));
- } else { // 검색시 더블클릭된 값 세팅
- model.makeValue("/root/send/reqdata/lrgno", opener.model.getValue("/root/main/cond/lrgno"));
- }
- }
- */
- model.makeValue("/root/send/reqdata/lrgno", model.getValue("/root/main/antibiolrgnolist/info["+ grdRow + "]/lrgno"));
- submit("TRMMD01602");
- var mdlSelectedCnt = 1;
- for( idx = 1 ; idx <= grd_mdlno.rows- grd_mdlno.fixedRows ; idx++ ){
- if(opener.model.getValue("/root/main/cond/mdlno") == model.getValue("/root/main/antibiomdlnolist/info["+idx+"]/mdlno")) {
- mdlSelectedCnt = idx;
- idx = grd_mdlno.rows;
- }
- }
- grdRow = mdlSelectedCnt;
-
- if(grdRow == 1){
- grd_mdlno.select(1,1) = true;
- }else if(grd_mdlno.rows - grd_mdlno.fixedRows > 0){
- grd_mdlno.select(grdRow,1) = true;
- //grd_mdlno.select(grd_mdlno.rows - grd_mdlno.fixedRows,1) = true;
- }
- }
- }
- function fGetSmlNo(grdRow){
- if(grd_mdlno.rows - grd_mdlno.fixedRows >= 1 ){
- model.removeNodeset("/root/send/reqdata");
- //opener.javascript.fInit();
-
- model.makeValue("/root/send/reqdata/mdlno", model.getValue("/root/main/antibiomdlnolist/info["+ grdRow + "]/mdlno"));
-
- submit("TRMMD01603");
-
- var smlSelectedCnt = 1;
- for( idx = 1 ; idx <= grd_smlno.rows- grd_smlno.fixedRows ; idx++ ){
- if(opener.model.getValue("/root/main/cond/smlno") == model.getValue("/root/main/antibiosmlnolist/info["+idx+"]/smlno")) {
- smlSelectedCnt = idx;
- idx = grd_smlno.rows;
- }
- }
- grdRow = smlSelectedCnt;
-
- if(grdRow == 1){
- grd_smlno.select(1,1) = true;
- }else if(grd_smlno.rows - grd_smlno.fixedRows > 0){
- grd_smlno.select(grdRow,1) = true;
- //grd_smlno.select(grd_smlno.rows - grd_smlno.fixedRows,1) = true;
- }
- }
- }
-
- function fGetRecommNo(grdRow){
- if(grd_smlno.rows - grd_smlno.fixedRows >= 1 ){
-
- opener.javascript.fRecommendedList(model.getValue("/root/hidden/resnflagno"),model.getValue("/root/main/antibiosmlnolist/info[" + grdRow + "]/smlno"),model.getValue("/root/main/antibiosmlnolist/info[" + grdRow + "]/drugkind"));
-
- }
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="350" pageheight="710" style="margin:0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <group id="grp_prophylaxis" scroll="auto" style="left:0px; top:0px; width:350px; height:710px; margin:0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <datagrid id="grd_smlno" nodeset="/root/main/antibiosmlnolist/info" autoresize="true" caption="소분류" colsep="^" colwidth="324, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:475px; width:350px; height:235px; ">
- <col ref="smlnm"/>
- <col ref="smlno" visibility="hidden"/>
- <col ref="mdlno" visibility="hidden"/>
- <col ref="refseq" visibility="hidden"/>
- <col ref="drugkind" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var curRow = grd_smlno.mouseRow;
- var lastRow = grd_smlno.rows - grd_smlno.fixedRows;
- if( curRow > 0 && curRow <= lastRow ){
- opener.javascript.fInit();
- fGetRecommNo(grd_smlno.row);
- }
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:350px; y2:25px; "/>
- <line id="line10" class="line_1" style="x1:0px; y1:180px; x2:350px; y2:180px; "/>
- <datagrid id="grd_lrgno" nodeset="/root/main/antibiolrgnolist/info" autoresize="true" caption="대분류" colsep="^" colwidth="326, 33, 21, 8" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:350px; height:149px; ">
- <col ref="lrgnm"/>
- <col ref="lrgno" visibility="hidden"/>
- <col ref="resnflagno" visibility="hidden"/>
- <col ref="refseq" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var curRow = grd_lrgno.mouseRow;
- var lastRow = grd_lrgno.rows - grd_lrgno.fixedRows;
- if( curRow > 0 && curRow <= lastRow ){
- opener.javascript.fInit();
- fGetMdlNo(grd_lrgno.selectedRow(0));
- fGetSmlNo(1);
- fGetRecommNo(1);
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_mdlno" nodeset="/root/main/antibiomdlnolist/info" autoresize="true" caption="중분류" colsep="^" colwidth="325, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:185px; width:350px; height:284px; ">
- <col ref="mdlnm"/>
- <col ref="mdlno" visibility="hidden"/>
- <col ref="lrgno" visibility="hidden"/>
- <col ref="refseq" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var curRow = grd_mdlno.mouseRow;
- var lastRow = grd_mdlno.rows - grd_mdlno.fixedRows;
- if( curRow > 0 && curRow <= lastRow ){
- opener.javascript.fInit();
- fGetSmlNo(grd_mdlno.row);
- fGetRecommNo(1);
- }
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:5px; top:10px; width:107px; height:13px; ">Classification</caption>
- <line id="line11" class="line_1" style="x1:0px; y1:470px; x2:350px; y2:470px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|