123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623 |
- <?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>
- <ipatmngt>
- <grdlist>
- <pid/>
- <room/>
- <hngnm/>
- <sex/>
- <h_brthdd/>
- <age/>
- <indd/>
- <dietcd/>
- <dietnm/>
- <prcpdelivefact/>
- <remark3/>
- <diagnm/>
- <sick/>
- <curedietpatyn/>
- <dietroundyn/>
- <crmyn/>
- <execcnts/>
- <execdieter/>
- <execdd/>
- <dschdd/>
- <rsntdschdd/>
- </grdlist>
- </ipatmngt>
- <ipatmngtrslt>
- <grdlist>
- <pid/>
- <room/>
- <hngnm/>
- <sex/>
- <age/>
- <indd/>
- <dietnm/>
- <diagnm/>
- <sick/>
- <curedietpatyn/>
- <dietroundyn/>
- <crmyn/>
- <execcnts/>
- <execdieter/>
- <execdd/>
- </grdlist>
- </ipatmngtrslt>
- <telnutrcnst>
- <grdlist>
- <pid/>
- <ioflag/>
- <inout/>
- <hngnm/>
- <sex/>
- <age/>
- <sickcd/>
- <hometel/>
- <mpphontel/>
- <execyn/>
- <telexecdd/>
- <execdieter/>
- <formrecseq/>
- <nutrmngtkind/>
- <execdd/>
- <orddd/>
- </grdlist>
- </telnutrcnst>
- <telnutrcnstcnt>
- <cnstcount>
- <cnstdd/>
- <dieter/>
- <glycospatqty/>
- <hypetspatqty/>
- <cardiacpatqty/>
- <pdpatqty/>
- <hdpatqty/>
- <cncrpatqty/>
- <blodtumpatqty/>
- <kidnpatqty/>
- <liverpatqty/>
- <stmcpatqty/>
- <etrlfdpatqty/>
- <fatpatqty/>
- <etcsickpatqty/>
- </cnstcount>
- </telnutrcnstcnt>
- <nonregleduc>
- <grdlist>
- <educdd/>
- <eductm/>
- <eductodd/>
- <eductotm/>
- <educsubj/>
- <eductrgt/>
- <educpsnno/>
- <educplce/>
- <educmatr/>
- <sickcd/>
- <educetc/>
- <educdieter/>
- <bf_educdieter/>
- </grdlist>
- </nonregleduc>
- </data>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <colsize>
- <colsize/>
- </colsize>
- </main>
- <send>
- <searchitem>
- <ipatmngt>
- <ward/>
- <patflag/>
- <inddfrom/>
- <inddto/>
- <pid/>
- <hngnm/>
- <dieter/>
- </ipatmngt>
- <ipatmngtrslt>
- <ward/>
- <rsltflag/>
- <execddfrom/>
- <execddto/>
- <pid/>
- <hngnm/>
- <dieter/>
- </ipatmngtrslt>
- <telnutrcnst>
- <educfromdd/>
- <eductodd/>
- <pid/>
- <hngnm/>
- <dieter/>
- </telnutrcnst>
- <telnutrcnstcnt>
- <cnstfromdd/>
- <cnsttodd/>
- <dieter/>
- </telnutrcnstcnt>
- <nonregleduc>
- <fromdd/>
- <todd/>
- </nonregleduc>
- </searchitem>
- <data>
- <ipatmngt>
- <list/>
- </ipatmngt>
- <telnutrcnst>
- <list/>
- </telnutrcnst>
- <telnutrcnstcnt>
- <cnstcount/>
- </telnutrcnstcnt>
- <nonregleduc>
- <list/>
- </nonregleduc>
- </data>
- <popup>
- <flag/>
- <pid/>
- <hngnm/>
- <reqdd/>
- <reqpsn/>
- <educreqcnts/>
- <h_cretno/>
- <h_orddeptcd/>
- <h_prcpgenrflag/>
- <h_orddd/>
- <h_formrecseq/>
- <execprcpuniqno/>
- <nutrmngtkind/>
- <execdd/>
- <execcnts/>
- </popup>
- </send>
- <hidden/>
- <init>
- <basecode>
- <sick>
- <A0059>
- <cdid/>
- <cdnm/>
- </A0059>
- </sick>
- <ward>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </ward>
- <dieter>
- <alldieter>
- <cdid/>
- <cdnm/>
- </alldieter>
- </dieter>
- </basecode>
- </init>
- <temp/>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRANC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/nonregleduc" replace="instance" resultref="/root/main/data/nonregleduc"/>
- <submission id="TXANC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/nonregleduc" resultref="/root/hidden"/>
- <submission id="TXANC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/telnutrcnstcnt" resultref="/root/hidden"/>
- <submission id="TRANC00406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngtrslt" resultref="/root/main/data/ipatmngtrslt"/>
- <submission id="TRANC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngt" resultref="/root/main/data/ipatmngt"/>
- <submission id="TXANC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/ipatmngt" resultref="/root/hidden"/>
- <submission id="TRANC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/telnutrcnst" resultref="/root/main/data/telnutrcnst"/>
- <submission id="TXANC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/telnutrcnst" resultref="/root/hidden"/>
- <submission id="TRANC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/telnutrcnstcnt" resultref="/root/main/data/telnutrcnstcnt"/>
- <submission id="TRANC00202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/basecode/dieter"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- submit("TRANC00202"); //영양사 조회
-
- //초기화
- grd_ipatmngtrslt.dataHeight = 20;
- input1.value = grd_ipatmngtrslt.dataHeight;
- resizeButton.attribute("top") = input1.value+"px";
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function finit() {
- // 화면open시 공통코드 setting
- //KNUH_20100709_노회식_Start
- model.resetInstanceNode("/root/init/basecode/sick/A0059");
- //KNUH_20100709_노회식_End
- zbcfGetCodeList( new Array( "A0059" ), new Array( "/root/init/basecode/sick" ) );
- //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'W', '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), "", 'after');
- zsdfGetWardDeptList(getUserInfo("dutplceinstcd"), '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), 'after');
- model.removeNodeset("/root/main/data/ipatmngt/grdlist");
- model.removeNodeset("/root/main/data/telnutrcnst/grdlist");
- model.removeNodeset("/root/main/data/telnutrcnstcnt/cnstcount");
- model.removeNodeset("/root/main/data/nonregleduc/grdlist");
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/searchitem/ipatmngt/patflag", "1");
- model.setValue("/root/send/searchitem/ipatmngt/inddfrom", getCurrentDate());
- model.setValue("/root/send/searchitem/ipatmngt/inddto", getCurrentDate());
- //model.setValue("/root/send/searchitem/ipatmngt/dieter", getUserInfo("userid"));
- model.setValue("/root/send/searchitem/ipatmngtrslt/rsltflag", "-");
- model.setValue("/root/send/searchitem/ipatmngtrslt/execddfrom", getCurrentDate());
- model.setValue("/root/send/searchitem/ipatmngtrslt/execddto", getCurrentDate());
- model.setValue("/root/send/searchitem/ipatmngtrslt/ward", getUserInfo("dutplcecd"));
- model.setValue("/root/send/searchitem/ipatmngtrslt/dieter", getUserInfo("userid"));
- model.setValue("/root/send/searchitem/telnutrcnst/educfromdd", getCurrentDate());
- model.setValue("/root/send/searchitem/telnutrcnst/eductodd", getCurrentDate());
- model.setValue("/root/send/searchitem/telnutrcnst/dieter", getUserInfo("userid"));
- model.setValue("/root/send/searchitem/telnutrcnstcnt/cnstfromdd", getCurrentDate());
- model.setValue("/root/send/searchitem/telnutrcnstcnt/cnsttodd", getCurrentDate());
- model.setValue("/root/send/searchitem/telnutrcnstcnt/dieter", getUserInfo("userid"));
- model.setValue("/root/send/searchitem/nonregleduc/fromdd", getCurrentDate());
- model.setValue("/root/send/searchitem/nonregleduc/todd", getCurrentDate());
- model.refresh();
- }
- var moving = false;
- ]]>
- </script>
- </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/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,733;2,765;2,6;2,1;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:216px; height:14px; ">치료식환자관리 결과조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group1" style="left:5px; top:15px; width:1182px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1145px; height:35px; background-color:#fffbf2; "/>
- <button id="btn_search5" class="btn1_letter2" style="left:1051px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdd = model.getValue("/root/send/searchitem/ipatmngtrslt/execddfrom");
- var todd = model.getValue("/root/send/searchitem/ipatmngtrslt/execddto");
- if ( getDateInterval(fromdd, todd) < 0 ) {
- messageBox("조회 시작일은 종료일보다 클 수", "I004");
- return;
- } else {
- submit("TRANC00406");
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1032px; y1:7px; x2:1032px; y2:29px; "/>
- <caption id="caption2" class="search_name" style="left:11px; top:9px; width:60px; height:17px; ">병동 :</caption>
- <select1 id="cmb_ward1" ref="/root/send/searchitem/ipatmngtrslt/ward" class="combo_s_essential" appearance="minimal" style="left:75px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/ward/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:697px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
- <caption id="caption8" class="search_n_b" style="left:860px; top:9px; width:12px; height:17px; font-weight:bolder; ">/</caption>
- <button id="btn_pid1" class="icon_search" style="left:932px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
- model.setValue("/root/send/searchitem/ipatmngtrslt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/searchitem/ipatmngtrslt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_pid3" ref="/root/send/searchitem/ipatmngtrslt/pid" class="input_s_essential" autonext="false" maxlength="10" format="9999999999" style="left:792px; top:8px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search5", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_hngnm3" ref="/root/send/searchitem/ipatmngtrslt/hngnm" class="input_s_essential" style="left:870px; top:8px; width:60px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search5", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="rdo_rsltflag" ref="/root/send/searchitem/ipatmngtrslt/rsltflag" class="radio_search" appearance="full" cellspacing="2" cols="4" rows="1" overflow="visible" style="left:180px; top:9px; width:175px; height:20px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>치료식</label>
- <value>1</value>
- </item>
- <item>
- <label>식사회진</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" visibility="hidden" style="left:960px; top:10px; width:20px; height:17px; ">영양사 :</caption>
- <select1 id="cmb_dieter4" ref="/root/send/searchitem/ipatmngtrslt/dieter" class="combo_search" visibility="hidden" appearance="minimal" style="left:1005px; top:8px; width:15px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/alldieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_execddfrom" ref="/root/send/searchitem/ipatmngtrslt/execddfrom" class="input_search" inputtype="date" style="left:489px; top:8px; width:85px; height:19px; "/>
- <caption id="caption9" class="search_n_b" style="left:576px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <caption id="caption11" class="search_name" style="left:395px; top:10px; width:86px; height:17px; ">수행일자 :</caption>
- <input id="ipt_execddto" ref="/root/send/searchitem/ipatmngtrslt/execddto" class="input_search" inputtype="date" style="left:589px; top:8px; width:85px; height:19px; "/>
- </group>
- <line id="line2" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
- <datagrid id="grd_ipatmngtrslt" nodeset="/root/main/data/ipatmngtrslt/grdlist" caption="등록번호^병실^환자명^성별^나이^입원일자^식사명^진단명^질환구분^치료식환자관리^식사회진관리^내용^영양사^수행일자" colsep="^" colwidth="60, 35, 50, 40, 40, 80, 90, 150, 60, 90, 80, 330, 60, 70" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:650px; text-align:center; ">
- <col ref="pid"/>
- <col ref="room"/>
- <col ref="hngnm"/>
- <col ref="sex"/>
- <col ref="age"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="dietnm" style="text-align:left; "/>
- <col ref="diagnm" style="text-align:left; "/>
- <col disabled="true" ref="sick" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/basecode/sick/A0059">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="curedietpatyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="dietroundyn" type="checkbox"/>
- <col ref="execcnts" type="inputbutton" style="text-align:left; "/>
- <col disabled="true" ref="execdieter" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/alldieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="execdd" format="yyyy-mm-dd"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var colidx = grd_ipatmngtrslt.col;
- if (grd_ipatmngtrslt.colAttribute(colidx, "ref") == "execcnts"){
- model.setValue("/root/send/popup/execcnts","");
- grp_reccnts.visible = true;
- var rownum = grd_ipatmngtrslt.row ;
- var execcnts = model.getValue("/root/main/data/ipatmngtrslt/grdlist["+rownum+"]/execcnts");
- model.setValue("/root/send/popup/execcnts",execcnts);
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <group id="grp_reccnts" visibility="hidden" style="left:490px; top:230px; width:445px; height:245px; ">
- <textarea id="textarea2" ref="/root/send/popup/execcnts" style="left:5px; top:30px; width:435px; height:180px; "/>
- <button id="button4" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_reccnts.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption24" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">결과내용</caption>
- <shape id="rectangle2" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
- </group>
- <button id="btn_rowadd3" class="btn2_letter3" visibility="hidden" style="left:950px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //입원환자관리 탭화면일때
- if ( btn_ipatmngt.selected ) {
-
- if ( model.getValue("/root/main/data/ipatmngt/grdlist["+ grd_ipatmngt.row +"]/pid") == "" ) {
- messageBox("추가할 환자를", "C002");
- return;
- }
-
- var grdrow = grd_ipatmngt.row;
- model.copyNode("/root/temp", "/root/main/data/ipatmngt/grdlist["+ grdrow +"]");
- grd_ipatmngt.insertrow(grdrow, "below");
- model.copyNode("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]", "/root/temp");
- model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/sick", "");
- model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/curedietpatyn", "");
- model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/dietroundyn", "");
- //model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/crmyn", "");
- model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/execcnts", "");
- model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/execdieter", getUserInfo("userid"));
- model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/execdd", getCurrentDate());
- //model.setFocus("/root/main/tab/menuwrite/list["+ (grdrow+1) +"]/dishflag");
- model.refresh();
- }
- //집단교육 탭화면일때
- else if ( btn_nonregleduc.selected ) {
- grd_nonregleduc.addRow();
- }
- ]]>
- </script>
- </button>
- <button id="btn_rowdel3" class="btn2_letter3" visibility="hidden" style="left:1006px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //var cur_row = grd_nonregleduc.row;
- //grd_nonregleduc.deleteRow(cur_row);
- grd_nonregleduc.deleteRow(grd_nonregleduc.row);
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter2" style="left:1105px; top:50px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( btn_ipatmngt.selected ) {
- var filename = window.fileDialog("save", ",", false, "입원치료식환자관리현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_ipatmngt.saveExcel(filename, "grd_ipatmngt", true, false, "", "", "");
- }
- } else if ( btn_ipatmngtrslt.selected ) {
- var filename = window.fileDialog("save", ",", false, "환자관리결과현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_ipatmngtrslt.saveExcel(filename, "grd_ipatmngtrslt", true, false, "", "", "");
- }
- } else if ( btn_telnutrcnst.selected ) {
- var filename = window.fileDialog("save", ",", false, "전화영양상담현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_telnutrcnst.saveExcel(filename, "grd_telnutrcnst", true, false, "", "", "");
- }
- } else if ( btn_nonregleduc.selected ) {
- var filename = window.fileDialog("save", ",", false, "집단교육현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_nonregleduc.saveExcel(filename, "grd_nonregleduc", true, false, "", "", "");
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" style="left:970px; top:0px; width:195px; height:20px; color:#ff0000; ">
- <![CDATA[데이터리스트의 높이조절하세요 ->]]>
- </caption>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_reset" class="btn4_letter3" visibility="hidden" style="left:1067px; 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" visibility="hidden" style="left:1136px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("", "Q002") == 6 ) {
- //입원환자관리 탭화면일때
- if ( btn_ipatmngt.selected ) {
- model.setValue("/root/send/data/ipatmngt/list", grd_ipatmngt.getUpdateData());
- if (submit("TXANC00401")) {
- submit("TRANC00401");
- }
- }
-
- //환자관리결과조회 탭화면일때
- // if ( btn_ipatmngtrslt.selected ) {
- // messageBox("결과조회는 저장", "E001");
- // return;
- // }
-
- //전화영양상담 탭화면일때
- else if ( btn_telnutrcnst.selected ) {
- //전화영양상담 메인 그리드
- if ( getGridUpdateData(grd_telnutrcnst) != "" ) {
- //필수입력항목 체크
- for ( i=1; i<grd_telnutrcnst.rows; i++) {
- if ( (model.getValue("/root/main/data/telnutrcnst/grdlist[" + i + "]/execyn") == "Y") &&
- ((model.getValue("/root/main/data/telnutrcnst/grdlist[" + i + "]/telexecdd") == "") ||
- (model.getValue("/root/main/data/telnutrcnst/grdlist[" + i + "]/execdieter") == "")) ) {
- messageBox("수행일자, 영양사 항목은", "I003");
- return;
- }
- }
- model.setValue("/root/send/data/telnutrcnst/list", grd_telnutrcnst.getUpdateData());
- if (submit("TXANC00402")) {
- submit("TRANC00402");
- }
- }
- //하단의 전화영양상담건수 그리드
- if ( getGridUpdateData(grd_cnstcount) != "" ) {
- //필수입력항목 체크
- for ( i=1; i<grd_cnstcount.rows; i++) {
- if ( (model.getValue("/root/main/data/telnutrcnstcnt/cnstcount[" + i + "]/cnstdd") == "") ||
- (model.getValue("/root/main/data/telnutrcnstcnt/cnstcount[" + i + "]/dieter") == "") ) {
- messageBox("상담일자, 영양사 항목은", "I003");
- return;
- }
- }
- model.setValue("/root/send/data/telnutrcnstcnt/cnstcount", grd_cnstcount.getUpdateData());
- if (submit("TXANC00404")) {
- submit("TRANC00404");
- }
- }
- }
-
- //집단교육 탭화면일때
- else if ( btn_nonregleduc.selected ) {
- //필수입력항목 체크
- for ( i=1; i<grd_nonregleduc.rows; i++) {
- if ( (model.getValue("/root/main/data/nonregleduc/grdlist[" + i + "]/educdd") == "") ||
- (model.getValue("/root/main/data/nonregleduc/grdlist[" + i + "]/eductm") == "") ||
- (model.getValue("/root/main/data/nonregleduc/grdlist[" + i + "]/educdieter") == "") ) {
- messageBox("일자, 시간, 영양사 항목은", "I003");
- return;
- }
- }
- model.setValue("/root/send/data/nonregleduc/list", grd_nonregleduc.getUpdateData());
- submit("TXANC00403");
- }
-
- //model.resetInstanceNode("/root/send/data");
- } else { return; }
- ]]>
- </script>
- </button>
- <button id="btn_listprnt" class="btn6_letter5" disabled="true" visibility="hidden" style="left:0px; top:5px; width:92px; height:22px; ">
- <caption>리스트출력</caption>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- <input id="input1" ref="/root/main/colsize/colsize" visibility="hidden" editable="false" style="left:930px; top:6px; width:20px; height:19px; "/>
- <group id="group4" overflow="hidden" style="left:1160px; top:11px; width:25px; height:70px; border-color:#99ccff; border-style:solid; ">
- <button id="resizeButton" style="left:0px; top:30px; width:25px; height:5px; background-color:#000000; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- moving = true;
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- moving = false;
- input1.value = grd_ipatmngtrslt.dataHeight;
- resizeButton.attribute("top") = input1.value+"px";
- ]]>
- </script>
- </button>
- <script type="javascript" ev:event="onmousemove">
- <![CDATA[
- if(moving == true)
- {
- //그리드의 col width 를 조정한다
- resizeButton.attribute("top") = event.y+"px";
- input1.value = event.y;
- grd_ipatmngtrslt.dataHeight = input1.value;
- }
- ]]>
- </script>
- </group>
- </xhtml:body>
- </xhtml:html>
|