123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700 |
- <?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>
- <data>
- <glycosuria>
- <sick/>
- <h_sick/>
- <exchstndcd/>
- <h_exchstndcd/>
- <exchstndnm/>
- <exchstndunit/>
- <calr/>
- <prot/>
- <lipo/>
- <gluco/>
- <lastupdtdt/>
- <lastupdtr/>
- </glycosuria>
- <kidney>
- <sick/>
- <h_sick/>
- <exchstndcd/>
- <h_exchstndcd/>
- <exchstndnm/>
- <exchstndunit/>
- <calr/>
- <prot/>
- <sodium/>
- <potas/>
- <phos/>
- <lastupdtdt/>
- <lastupdtr/>
- </kidney>
- <etrlfd>
- <sick/>
- <h_sick/>
- <exchstndcd/>
- <h_exchstndcd/>
- <exchstndnm/>
- <exchstndunit/>
- <calr/>
- <prot/>
- <lipo/>
- <gluco/>
- <sodium/>
- <potas/>
- <phos/>
- <fiber/>
- <iron/>
- <calcium/>
- <ash/>
- <zinc/>
- <vita/>
- <vitb1/>
- <vitb2/>
- <vitb5/>
- <vitb6/>
- <vitb12/>
- <vitc/>
- <vite/>
- <vith/>
- <vitk/>
- <nia/>
- <folacd/>
- <chol/>
- <oncopres/>
- <magne/>
- <fela/>
- <chal/>
- <mang/>
- <iodi/>
- <lastupdtdt/>
- <lastupdtr/>
- </etrlfd>
- <varices>
- <sick/>
- <h_sick/>
- <exchstndcd/>
- <h_exchstndcd/>
- <exchstndnm/>
- <exchstndunit/>
- <calr/>
- <prot/>
- <lipo/>
- <gluco/>
- <sodium/>
- <potas/>
- <phos/>
- <fiber/>
- <iron/>
- <calcium/>
- <ash/>
- <zinc/>
- <vita/>
- <vitb1/>
- <vitb2/>
- <vitb5/>
- <vitb6/>
- <vitb12/>
- <vitc/>
- <vite/>
- <vith/>
- <vitk/>
- <nia/>
- <folacd/>
- <chol/>
- <oncopres/>
- <magne/>
- <fela/>
- <chal/>
- <mang/>
- <iodi/>
- <lastupdtdt/>
- <lastupdtr/>
- </varices>
- <supply>
- <sick/>
- <h_sick/>
- <exchstndcd/>
- <h_exchstndcd/>
- <exchstndnm/>
- <exchstndunit/>
- <calr/>
- <prot/>
- <lipo/>
- <gluco/>
- <sodium/>
- <potas/>
- <phos/>
- <fiber/>
- <iron/>
- <calcium/>
- <ash/>
- <zinc/>
- <vita/>
- <vitb1/>
- <vitb2/>
- <vitb5/>
- <vitb6/>
- <vitb12/>
- <vitc/>
- <vite/>
- <vith/>
- <vitk/>
- <nia/>
- <folacd/>
- <chol/>
- <oncopres/>
- <magne/>
- <fela/>
- <chal/>
- <mang/>
- <iodi/>
- <lastupdtdt/>
- <lastupdtr/>
- </supply>
- </data>
- </main>
- <send>
- <searchitem>
- <sickcd/>
- </searchitem>
- <data/>
- </send>
- <hidden>
- <ret>
- <count/>
- </ret>
- </hidden>
- <init>
- <basecode>
- <sick>
- <A0056>
- <cdid/>
- <cdnm/>
- </A0056>
- </sick>
- </basecode>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- btn_search.disabled = !checkAuth("R");
- btn_save.disabled = !checkAuth("X");
- btn_excel.disabled = !checkAuth("P");
- model.setValue("/root/send/searchitem/sickcd", "1");
- submit("TRANB00501");
- //model.setValue("/root/send/searchitem/pridmenuwrite/prid", "15");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function finit() {
- // 화면open시 공통코드 setting
- zbcfGetCodeList( new Array( "A0056" ), new Array( "/root/init/basecode/sick" ) );
- // model.resetInstanceNode("/root/main/data");
- model.resetInstanceNode("/root/send");
- model.removeNodeset("/root/main/data");
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRANB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main/data"/>
- <submission id="TXANB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/ret"/>
- <bind id="bind_sick1" ref="/root/main/data/glycosuria/sick" readonly="../sick!=''"/>
- <bind id="bind_sick2" ref="/root/main/data/kidney/sick" readonly="../sick!=''"/>
- <bind id="bind_sick3" ref="/root/main/data/etrlfd/sick" readonly="../sick!=''"/>
- <bind id="bind_sick4" ref="/root/main/data/varices/sick" readonly="../sick!=''"/>
- </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" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,749;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">교환기준관리</caption>
- </group>
- <group id="group2" scroll="autovscroll" style="left:0px; top:13px; width:1195px; height:744px; ">
- <switch id="switch1" style="left:0px; top:26px; width:1194px; height:715px; ">
- <case id="case1" selected="true">
- <datagrid id="grd_glycosuria" nodeset="/root/main/data/glycosuria" caption="sick^h_sick^h_코드^코드^구분^단위^열량(kcal)^단백질(g)^지질(g)^당질(g)^최종수정일시^최종수정자" colsep="^" colwidth="80, 10, 10, 90, 205, 80, 100, 100, 100, 100, 160, 90" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:3px; width:1194px; height:692px; text-align:center; ">
- <col ref="sick" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/basecode/sick/A0056">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="h_sick" visibility="hidden"/>
- <col ref="h_exchstndcd" visibility="hidden"/>
- <col ref="exchstndcd" type="input"/>
- <col ref="exchstndnm" type="input"/>
- <col ref="exchstndunit" type="input"/>
- <col ref="calr" type="input"/>
- <col ref="prot" type="input"/>
- <col ref="lipo" type="input"/>
- <col ref="gluco" type="input"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lastupdtr"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // var target_col = grd_glycosuria.col;
- // if ( target_col == "3" ) {
- // var exchstndcd = model.getValue("/root/main/data/glycosuria["+(grd_glycosuria.row)+"]/exchstndnm");
- // model.setValue("/root/main/data/glycosuria["+(grd_glycosuria.row)+"]/exchstndcd", exchstndcd);
- // model.refresh();
- // }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="grd_kidney" nodeset="/root/main/data/kidney" caption="sick^h_sick^h_코드^코드^구분^단위^열량(kcal)^단백질(g)^나트륨(mg)^칼륨(mg)^인(mg)^최종수정일시^최종수정자" colsep="^" colwidth="80, 10, 10, 80, 205, 80, 100, 100, 100, 100, 100, 130, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:3px; width:1194px; height:692px; text-align:center; ">
- <col ref="sick" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/basecode/sick/A0056">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="h_sick" visibility="hidden"/>
- <col ref="h_exchstndcd" visibility="hidden"/>
- <col ref="exchstndcd" type="input"/>
- <col ref="exchstndnm" type="input"/>
- <col ref="exchstndunit" type="input"/>
- <col ref="calr" type="input"/>
- <col ref="prot" type="input"/>
- <col ref="sodium" type="input"/>
- <col ref="potas" type="input"/>
- <col ref="phos" type="input"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lastupdtr"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // var target_col = grd_kidney.col;
- // if ( target_col == "3" ) {
- // var exchstndcd = model.getValue("/root/main/data/kidney["+(grd_kidney.row)+"]/exchstndnm");
- // model.setValue("/root/main/data/kidney["+(grd_kidney.row)+"]/exchstndcd", exchstndcd);
- // model.refresh();
- // }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case3">
- <datagrid id="grd_etrlfd" nodeset="/root/main/data/etrlfd" caption="sick^h_sick^h_코드^코드^구분^단위^열량(kcal)^단백질(g)^지질(g)^당질(g)^나트륨(mg)^칼륨(mg)^인(mg)^식이섬유^철(mg)^칼슘(mg)^회분^아연^비타민A^비타민B1^비타민B2^판토텐산^비타민B6^비타민B12^비타민C^비타민E^Biotin^비타민K^나이아신^엽산^콜레스테롤^삼투압^마그네슘^Felate^Chalime^망간^요오드^최종수정일시^최종수정자" colsep="^" colwidth="80, 10, 10, 80, 205, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 120, 70" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:3px; width:1194px; height:692px; text-align:center; ">
- <col ref="sick" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/basecode/sick/A0056">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="h_sick" visibility="hidden"/>
- <col ref="h_exchstndcd" visibility="hidden"/>
- <col ref="exchstndcd" type="input"/>
- <col ref="exchstndnm" type="input"/>
- <col ref="exchstndunit" type="input"/>
- <col ref="calr" type="input"/>
- <col ref="prot" type="input"/>
- <col ref="lipo" type="input"/>
- <col ref="gluco" type="input"/>
- <col ref="sodium" type="input"/>
- <col ref="potas" type="input"/>
- <col ref="phos" type="input"/>
- <col ref="fiber" type="input"/>
- <col ref="iron" type="input"/>
- <col ref="calcium" type="input"/>
- <col ref="ash" type="input"/>
- <col ref="zinc" type="input"/>
- <col ref="vita" type="input"/>
- <col ref="vitb1" type="input"/>
- <col ref="vitb2" type="input"/>
- <col ref="vitb5" type="input"/>
- <col ref="vitb6" type="input"/>
- <col ref="vitb12" type="input"/>
- <col ref="vitc" type="input"/>
- <col ref="vite" type="input"/>
- <col ref="vith" type="input"/>
- <col ref="vitk" type="input"/>
- <col ref="nia" type="input"/>
- <col ref="folacd" type="input"/>
- <col ref="chol" type="input"/>
- <col ref="oncopres" type="input"/>
- <col ref="magne" type="input"/>
- <col ref="fela" type="input"/>
- <col ref="chal" type="input"/>
- <col ref="mang" type="input"/>
- <col ref="iodi" type="input"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lastupdtr"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // var target_col = grd_etrlfd.col;
- // if ( target_col == "3" ) {
- // var exchstndcd = model.getValue("/root/main/data/etrlfd["+(grd_etrlfd.row)+"]/exchstndnm");
- // model.setValue("/root/main/data/etrlfd["+(grd_etrlfd.row)+"]/exchstndcd", exchstndcd);
- // model.refresh();
- // }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case4">
- <datagrid id="grd_varices" nodeset="/root/main/data/varices" caption="sick^h_sick^h_코드^코드^구분^단위^열량(kcal)^단백질(g)^지질(g)^당질(g)^나트륨(mg)^칼륨(mg)^인(mg)^식이섬유^철(mg)^칼슘(mg)^회분^아연^비타민A^비타민B1^비타민B2^판토텐산^비타민B6^비타민B12^비타민C^비타민E^Biotin^비타민K^나이아신^엽산^콜레스테롤^삼투압^마그네슘^Felate^Chalime^망간^요오드^최종수정일시^최종수정자" colsep="^" colwidth="80, 10, 10, 80, 205, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 120, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:3px; width:1194px; height:692px; text-align:center; ">
- <col ref="sick" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/basecode/sick/A0056">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="h_sick" visibility="hidden"/>
- <col ref="h_exchstndcd" visibility="hidden"/>
- <col ref="exchstndcd" type="input"/>
- <col ref="exchstndnm" type="input"/>
- <col ref="exchstndunit" type="input"/>
- <col ref="calr" type="input"/>
- <col ref="prot" type="input"/>
- <col ref="lipo" type="input"/>
- <col ref="gluco" type="input"/>
- <col ref="sodium" type="input"/>
- <col ref="potas" type="input"/>
- <col ref="phos" type="input"/>
- <col ref="fiber" type="input"/>
- <col ref="iron" type="input"/>
- <col ref="calcium" type="input"/>
- <col ref="ash" type="input"/>
- <col ref="zinc" type="input"/>
- <col ref="vita" type="input"/>
- <col ref="vitb1" type="input"/>
- <col ref="vitb2" type="input"/>
- <col ref="vitb5" type="input"/>
- <col ref="vitb6" type="input"/>
- <col ref="vitb12" type="input"/>
- <col ref="vitc" type="input"/>
- <col ref="vite" type="input"/>
- <col ref="vith" type="input"/>
- <col ref="vitk" type="input"/>
- <col ref="nia" type="input"/>
- <col ref="folacd" type="input"/>
- <col ref="chol" type="input"/>
- <col ref="oncopres" type="input"/>
- <col ref="magne" type="input"/>
- <col ref="fela" type="input"/>
- <col ref="chal" type="input"/>
- <col ref="mang" type="input"/>
- <col ref="iodi" type="input"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lastupdtr"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // var target_col = grd_varices.col;
- // if ( target_col == "3" ) {
- // var exchstndcd = model.getValue("/root/main/data/varices["+(grd_varices.row)+"]/exchstndnm");
- // model.setValue("/root/main/data/varices["+(grd_varices.row)+"]/exchstndcd", exchstndcd);
- // model.refresh();
- // }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case5">
- <datagrid id="grd_supply" nodeset="/root/main/data/supply" caption="sick^h_sick^h_코드^코드^구분^단위^열량(kcal)^단백질(g)^지질(g)^당질(g)^나트륨(mg)^칼륨(mg)^인(mg)^식이섬유^철(mg)^칼슘(mg)^회분^아연^비타민A^비타민B1^비타민B2^판토텐산^비타민B6^비타민B12^비타민C^비타민E^Biotin^비타민K^나이아신^엽산^콜레스테롤^삼투압^마그네슘^Felate^Chalime^망간^요오드^최종수정일시^최종수정자" colsep="^" colwidth="80, 10, 10, 80, 205, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 120, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:3px; width:1194px; height:692px; text-align:center; ">
- <col ref="sick" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/basecode/sick/A0056">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="h_sick" visibility="hidden"/>
- <col ref="h_exchstndcd" visibility="hidden"/>
- <col ref="exchstndcd" type="input"/>
- <col ref="exchstndnm" type="input"/>
- <col ref="exchstndunit" type="input"/>
- <col ref="calr" type="input"/>
- <col ref="prot" type="input"/>
- <col ref="lipo" type="input"/>
- <col ref="gluco" type="input"/>
- <col ref="sodium" type="input"/>
- <col ref="potas" type="input"/>
- <col ref="phos" type="input"/>
- <col ref="fiber" type="input"/>
- <col ref="iron" type="input"/>
- <col ref="calcium" type="input"/>
- <col ref="ash" type="input"/>
- <col ref="zinc" type="input"/>
- <col ref="vita" type="input"/>
- <col ref="vitb1" type="input"/>
- <col ref="vitb2" type="input"/>
- <col ref="vitb5" type="input"/>
- <col ref="vitb6" type="input"/>
- <col ref="vitb12" type="input"/>
- <col ref="vitc" type="input"/>
- <col ref="vite" type="input"/>
- <col ref="vith" type="input"/>
- <col ref="vitk" type="input"/>
- <col ref="nia" type="input"/>
- <col ref="folacd" type="input"/>
- <col ref="chol" type="input"/>
- <col ref="oncopres" type="input"/>
- <col ref="magne" type="input"/>
- <col ref="fela" type="input"/>
- <col ref="chal" type="input"/>
- <col ref="mang" type="input"/>
- <col ref="iodi" type="input"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lastupdtr"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // var target_col = grd_supply.col;
- // if ( target_col == "3" ) {
- // var exchstndcd = model.getValue("/root/main/data/supply["+(grd_supply.row)+"]/exchstndnm");
- // model.setValue("/root/main/data/supply["+(grd_supply.row)+"]/exchstndcd", exchstndcd);
- // model.refresh();
- // }
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="btn_glycosuria" class="btn_sw" group="tab" selected="true" style="left:0px; top:5px; width:84px; height:22px; ">
- <caption>당뇨</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- model.setValue("/root/send/searchitem/sickcd", "1");
- submit("TRANB00501");
- ]]>
- </script>
- </button>
- <button id="btn_kidney" class="btn_sw" group="tab" style="left:84px; top:5px; width:84px; height:22px; ">
- <caption>신장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- model.setValue("/root/send/searchitem/sickcd", "2");
- submit("TRANB00501");
- ]]>
- </script>
- </button>
- <button id="btn_etrlfd" class="btn_sw" group="tab" style="left:168px; top:5px; width:84px; height:22px; ">
- <caption>경장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case3");
- model.setValue("/root/send/searchitem/sickcd", "3");
- submit("TRANB00501");
- ]]>
- </script>
- </button>
- <button id="btn_varices" class="btn_sw" group="tab" style="left:252px; top:5px; width:84px; height:22px; ">
- <caption>정맥</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case4");
- model.setValue("/root/send/searchitem/sickcd", "4");
- submit("TRANB00501");
- ]]>
- </script>
- </button>
- <button id="btn_supply" class="btn_sw" group="tab" style="left:336px; top:5px; width:84px; height:22px; ">
- <caption>보충</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case5");
- model.setValue("/root/send/searchitem/sickcd", "5");
- submit("TRANB00501");
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:2px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (btn_glycosuria.selected) { //당뇨 탭화면일때
- model.setValue("/root/send/searchitem/sickcd", "1");
- }
- else if (btn_kidney.selected) { //신장 탭화면일때
- model.setValue("/root/send/searchitem/sickcd", "2");
- }
- else if (btn_etrlfd.selected) { //경장 탭화면일때
- model.setValue("/root/send/searchitem/sickcd", "3");
- }
- else if (btn_varices.selected) { //정맥 탭화면일때
- model.setValue("/root/send/searchitem/sickcd", "4");
- }
- else if (btn_supply.selected) { //보충 탭화면일때
- model.setValue("/root/send/searchitem/sickcd", "5");
- }
- submit("TRANB00501");
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:1106px; y1:2px; x2:1106px; y2:24px; "/>
- <button id="btn_excel" class="btn2_letter2" style="left:1052px; top:4px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save", ",", false, "ExchBase_list", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_glycosuria.saveExcel(filename, "grd_glycosuria", true, false, "", "", "");
- }
- ]]>
- </script>
- </button>
- <button id="btn_rowadd" class="btn2_letter3" style="left:940px; top:4px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (btn_glycosuria.selected) { //당뇨 탭화면일때
- grd_glycosuria.addRow();
- model.setValue("/root/main/data/glycosuria["+ grd_glycosuria.row +"]/sick", '1');
- }
- else if (btn_kidney.selected) { //신장 탭화면일때
- grd_kidney.addRow();
- model.setValue("/root/main/data/kidney["+ grd_kidney.row +"]/sick", '2');
- }
- else if (btn_etrlfd.selected) { //경장 탭화면일때
- grd_etrlfd.addRow();
- model.setValue("/root/main/data/etrlfd["+ grd_etrlfd.row +"]/sick", '3');
- }
- else if (btn_varices.selected) { //정맥 탭화면일때
- grd_varices.addRow();
- model.setValue("/root/main/data/varices["+ grd_varices.row +"]/sick", '4');
- }
- else if (btn_supply.selected) { //보충 탭화면일때
- grd_supply.addRow();
- model.setValue("/root/main/data/supply["+ grd_supply.row +"]/sick", '5');
- }
- ]]>
- </script>
- </button>
- <button id="btn_rowdel" class="btn2_letter3" style="left:996px; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (btn_glycosuria.selected) { //당뇨 탭화면일때
- var cur_row = grd_glycosuria.row;
- grd_glycosuria.deleteRow(cur_row);
- }
- else if (btn_kidney.selected) { //신장 탭화면일때
- var cur_row = grd_kidney.row;
- grd_kidney.deleteRow(cur_row);
- }
- else if (btn_etrlfd.selected) { //경장 탭화면일때
- var cur_row = grd_etrlfd.row;
- grd_etrlfd.deleteRow(cur_row);
- }
- else if (btn_varices.selected) { //정맥 탭화면일때
- var cur_row = grd_varices.row;
- grd_varices.deleteRow(cur_row);
- }
- else if (btn_supply.selected) { //보충 탭화면일때
- var cur_row = grd_supply.row;
- grd_supply.deleteRow(cur_row);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_reset" class="btn4_letter3" style="left:1066px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- finit();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("", "Q002") == 6 ) {
- if (btn_glycosuria.selected) { //당뇨 탭화면일때
- //필수입력항목 체크
- for ( j = 1; j < grd_glycosuria.rows; j++ ) {
- var exchstndcd = model.getValue("/root/main/data/glycosuria["+ j +"]/exchstndcd");
- if ( exchstndcd == "" ) {
- messageBox("교환기준명, 교환기준코드 항목은", "I003");
- return;
- }
- }
- model.setValue("/root/send/data", grd_glycosuria.getUpdateData());
- }
- else if (btn_kidney.selected) { //신장 탭화면일때
- //필수입력항목 체크
- for ( j = 1; j < grd_kidney.rows; j++ ) {
- var exchstndcd = model.getValue("/root/main/data/kidney["+ j +"]/exchstndcd");
- if ( exchstndcd == "" ) {
- messageBox("교환기준명, 교환기준코드 항목은", "I003");
- return;
- }
- }
- model.setValue("/root/send/data", grd_kidney.getUpdateData());
- }
- else if (btn_etrlfd.selected) { //경장 탭화면일때
- //필수입력항목 체크
- for ( j = 1; j < grd_etrlfd.rows; j++ ) {
- var exchstndcd = model.getValue("/root/main/data/etrlfd["+ j +"]/exchstndcd");
- if ( exchstndcd == "" ) {
- messageBox("교환기준명, 교환기준코드 항목은", "I003");
- return;
- }
- }
- model.setValue("/root/send/data", grd_etrlfd.getUpdateData());
- }
- else if (btn_varices.selected) { //정맥 탭화면일때
- //필수입력항목 체크
- for ( j = 1; j < grd_varices.rows; j++ ) {
- var exchstndcd = model.getValue("/root/main/data/varices["+ j +"]/exchstndcd");
- if ( exchstndcd == "" ) {
- messageBox("교환기준명, 교환기준코드 항목은", "I003");
- return;
- }
- }
- model.setValue("/root/send/data", grd_varices.getUpdateData());
- }
- else if (btn_supply.selected) { //보충 탭화면일때
- //필수입력항목 체크
- for ( j = 1; j < grd_supply.rows; j++ ) {
- var exchstndcd = model.getValue("/root/main/data/supply["+ j +"]/exchstndcd");
- if ( exchstndcd == "" ) {
- messageBox("교환기준명, 교환기준코드 항목은", "I003");
- return;
- }
- }
- model.setValue("/root/send/data", grd_supply.getUpdateData());
- }
-
- if (submit("TXANB00501")) {
- submit("TRANB00501");
- }
- // model.resetInstanceNode("/root/main/data");
- // model.resetInstanceNode("/root/send/data");
- } else { return; }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|