123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759 |
- <?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>
- <item>
- <data>
- <check/>
- <mngtstat/>
- <bizflag/>
- <h_prcpstatcd/>
- <reqdd/>
- <reqddhm/>
- <execprcpuniqno/>
- <pid/>
- <patflag/>
- <hngnm/>
- <h_brthdd/>
- <h_sex/>
- <sexage/>
- <diagnm/>
- <orddept/>
- <atdoct/>
- <educreqcnts/>
- <reccnts/>
- <rsrvdd/>
- <eductm/>
- <rsrvtodd/>
- <eductotm/>
- <educplce/>
- <dieter/>
- <rcptyn/>
- <h_rcptdd/>
- <h_cretno/>
- <h_orddeptcd/>
- <h_prcpgenrflag/>
- <h_orddd/>
- <h_prcpcd/>
- <h_nurse/>
- <h_formrecseq/>
- <execdd/>
- <formcd/>
- <rgstseqno/>
- <repldd/>
- <nutrmngtkind/>
- <sickcd/>
- <cnstseqno/>
- <sau/>
- <cnstcnts9/>
- </data>
- </item>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <searchitem>
- <reqfromdd/>
- <reqtodd/>
- <rsrvfromdd/>
- <rsrvtodd/>
- <orddept/>
- <patflag/>
- <bizflag/>
- <pid/>
- <hngnm/>
- <ward/>
- <dieter/>
- <educplce/>
- <srchflag/>
- <cnststat/>
- <educreqcnts/>
- </searchitem>
- <req>
- <list/>
- </req>
- <popup>
- <flag/>
- <pid/>
- <hngnm/>
- <reqdd/>
- <reqpsn/>
- <orddrid/>
- <educreqcnts/>
- <reccnts/>
- <h_cretno/>
- <h_orddeptcd/>
- <h_prcpgenrflag/>
- <h_orddd/>
- <h_formrecseq/>
- <execprcpuniqno/>
- <nutrmngtkind/>
- <execdd/>
- </popup>
- <openpopup/>
- <cnclresninpt>
- <reqcnts/>
- <dieter/>
- <cnclresn/>
- </cnclresninpt>
- </send>
- <temp>
- <popupmenu>
- <menu>
- <label>환자별영양관리</label>
- <func>fOpenPopup</func>
- </menu>
- </popupmenu>
- <cnstinfo>
- <formrecseq/>
- <pid/>
- <rgstseqno/>
- <cnstdd/>
- <prcpgenrflag/>
- <orddd/>
- <cretno/>
- <cnsttype/>
- <formcd/>
- <cnstseqno/>
- <sau/>
- <cnstcnts9/>
- </cnstinfo>
- </temp>
- <init>
- <basecode>
- <orddept>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </orddept>
- <ward>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </ward>
- <dieter>
- <dieter>
- <cdid/>
- <cdnm/>
- </dieter>
- </dieter>
- <nutrmngtkind>
- <A0060>
- <cdid/>
- <cdnm/>
- </A0060>
- </nutrmngtkind>
- <sickcd>
- <A0059>
- <cdid/>
- <cdnm/>
- </A0059>
- </sickcd>
- <canclecmt>
- <A161>
- <cdid/>
- <cdnm/>
- </A161>
- </canclecmt>
- </basecode>
- <userinfo>
- <info/>
- </userinfo>
- <baseinfo>
- <initplace/>
- <canclecmt/>
- </baseinfo>
- </init>
- <hidden/>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRANC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main/item"/>
- <submission id="TRANC00202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/basecode/dieter"/>
- <submission id="TXANC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req"/>
- <submission id="TRAAA00001"/>
- </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/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- // grd_data.hint = " "; //의뢰기록내용을 말풍선으로 보여주기위함.
- // grd_data.attribute("tooltip") = "false"; //의뢰기록내용을 말풍선으로 보여주기위함.
- // grd_data.attribute("onshowhint") = "showhint()"; //의뢰기록내용을 말풍선으로 보여주기위함.
- //model.setValue("/root/send/searchitem/posdeptcd", getUserInfo("posdeptcd")); //소속부서코드
- btn_search.disabled = !checkAuth("R");
- btn_save.disabled = !checkAuth("X");
- btn_excel.disabled = !checkAuth("P");
- astGetComboList( new Array("A160", "A161"), new Array("/root/init/baseinfo/initplace", "/root/init/baseinfo/canclecmt") );
-
- submit("TRAAA00001", false);
- submit("TRANC00202"); //영양사 조회
-
- //화면open시 영양관리유형, 질환명에 코드를 setting해준다.
- zbcfGetCodeList( new Array( "A0060", "A0059", "A161" ), new Array("/root/init/basecode/nutrmngtkind", "/root/init/basecode/sickcd","/root/init/basecode/canclecmt") );
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function finit() {
- // 화면open시 공통코드 setting
- //zbcfGetCodeList( new Array( "A0058", "P0149", "P0160" ), new Array( "/root/init/basecode/dngr", "/root/init/basecode/orddept", "/root/init/basecode/ward" ) );
- zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'D', '/root/init/basecode/orddept');
- astfAddCombo("/root/init/basecode/orddept","dept","deptcd,depthngnm",",");
- //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/item/data");
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/searchitem/reqfromdd", getCurrentDate());
- model.setValue("/root/send/searchitem/reqtodd", getCurrentDate());
- model.setValue("/root/send/searchitem/patflag", "-");
- model.setValue("/root/send/searchitem/bizflag", "0");
- model.setValue("/root/send/searchitem/cnststat", "N");
- //model.setValue("/root/send/searchitem/dieter", getUserInfo("userid"));
- //model.setValue("/root/send/searchitem/rsrvfromdd",getCurrentDate());
- //model.setValue("/root/send/searchitem/rsrvtodd",getCurrentDate());
- model.refresh();
- }
-
- //의뢰기록내용을 말풍선으로 보여주기위함.
- // function showhint() {
- // var hint = window.hint;
- //
- // // 말풍선이 생기는 그리드 추출
- // grid = document.all( event.target );
- //
- // // 이벤트가 데이터영역 이외의 부분에서 일어나는 경우
- // if ( grid.mouseRow < grid.fixedRows) {
- // hint.text="";
- // hint.attribute("width")="0px";
- // }
- // // 데이터 영역에서 이벤트가 일어나는 경우
- // else {
- // // 말풍선에 display할 텍스트 추출
- // text = grid.valueMatrix( grid.mouseRow , grid.colRef("reccnts"));
- // if(text == "") {
- // hint.attribute("width")="0px";
- // }else {
- // // hidden으로 있는 캡션을 사용해서 말풍선의 width 계산
- // hintcaption.value = text;
- // // 말풍선의 텍스트 지정
- // hint.text = text;
- //
- // // 말풍선 폭 계산
- // var hintWidth = removePx( hintcaption.attribute("width") ) + 10;
- // var hintHeight = removePx( hintcaption.attribute("height") ) + 10;
- // // 마우스 포인터 위치 계산
- // var mouseX = removePx( event.screenX );
- // // 화면 해상도 계산
- // var screenWidth = removePx( htmlwindow.screen.width );
- // // 말풍선의 width 지정
- // hint.attribute("width") = hintWidth;
- // hint.attribute("height") = hintHeight;
- // hint.attribute("text-align") = "left";
- // // 말풍선이 화면의 오른쪽 끝을 넘어가는 경우 시작점 변경
- // if ( hintWidth + mouseX > screenWidth - 10 ) {
- // hint.attribute("left") = mouseX - hintWidth;
- // }
- // }
- // }
- // }
-
- // 숫자 뒤에 붙는 문자를 제거 하여 숫자만 반환
- function removePx(srcNum, replacStr) {
- if( replacStr ){
-
- if( !isNumber(srcNum) ) srcNum = srcNum.replace(replacStr, "");
- }else{
-
- if( !isNumber(srcNum) ) srcNum = srcNum.replace("px", "");
- }
-
- return parseInt(srcNum);
- }
-
- // TODO :: 숫자인지 체크
- function isNumber(str){
- return (/^[0-9]*$/gi).test(str);
- }
-
- function fOpenPopup() {
- var rowNode;
- var destNode = instance1.selectSingleNode("/root/send/openpopup");
- for( var i = 0; i < grd_data.selectedRows; i++ ) {
- rowNode = instance1.selectSingleNode("/root/main/item/data[" + (grd_data.selectedRow(i) - grd_data.fixedRows + 1) + "]");
- model.duplicate(destNode, rowNode);
- }
- model.copyNode("/root/send/openpopup", "/root/main/item/data[" + grd_data.row + "]");
- modal("SMANC00300", "", "", "", "popup", "/root/send/openpopup", "/root/main/receivedata");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,758;2,783;2,14;2,752;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:15px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:146px; height:14px; ">영양교육/관리접수</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" overflow="hidden" style="left:0px; top:10px; width:1194px; height:89px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:88px; background-color:#fffbf2; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1120px; top:15px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if (model.getValue("/root/send/searchitem/patflag") == "") {
- // model.setValue("/root/send/searchitem/patflag", "-")
- // }
- var reqfromdd = model.getValue("/root/send/searchitem/reqfromdd");
- var reqtodd = model.getValue("/root/send/searchitem/reqtodd");
- var rsrvfromdd = model.getValue("/root/send/searchitem/rsrvfromdd");
- var rsrvtodd = model.getValue("/root/send/searchitem/rsrvtodd");
-
- if ((getDateInterval(reqfromdd, reqtodd) < 0) || (getDateInterval(rsrvfromdd, rsrvtodd) < 0)) {
- messageBox("조회 시작일은 종료일보다 클 수", "I004");
- return;
- }
-
- if ( (reqfromdd == "" || reqtodd == "") && (rsrvfromdd == "" || rsrvtodd == "") ) {
- messageBox("의뢰일자 또는 예약일자를", "C002");
- return;
- }
-
- if ( reqfromdd == "" || reqtodd == "" ) {
- model.setValue("/root/send/searchitem/srchflag", "2"); //의뢰일자 없이 예약일자로 조회
- } else {
- model.setValue("/root/send/searchitem/srchflag", "1"); //의뢰일자로 조회
- }
-
- submit("TRANC00201");
- //조회 후 처리
- //row status가 null이기 때문에 무조건 'insert'로 초기화한다. - 저장버튼 클릭시 무조건 조회된 전체 리스트를 저장하기 위함.
- // for ( i=1; i<grd_data.rows; i++) {
- // grd_data.addStatus(i, "insert");
- // }
-
- // model.refresh();
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:1105px; y1:10px; x2:1105px; y2:75px; "/>
- <input id="ipt_reqtodd" ref="/root/send/searchitem/reqtodd" class="input_s_essential" inputtype="date" style="left:211px; top:10px; width:95px; height:19px; "/>
- <select1 id="cmb_orddept" ref="/root/send/searchitem/orddept" class="combo_s_essential" appearance="minimal" style="left:737px; top:10px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" style="left:196px; top:12px; width:15px; height:15px; font-weight:bold; vertical-align:middle; ">~</caption>
- <caption id="caption6" class="search_name" style="left:325px; top:35px; width:132px; height:17px; ">등록번호/환자명 :</caption>
- <button id="btn_pid" class="icon_search" style="left:625px; top:35px; 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/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/searchitem/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_ward" ref="/root/send/searchitem/ward" class="combo_s_essential" appearance="minimal" style="left:935px; top:10px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/ward/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //병동 선택시 환자구분을 입원으로 셋팅
- if ( cmb_ward.value != "" ) {
- rdo_patflag.value = 'I';
- rdo_patflag.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:325px; top:60px; width:91px; height:17px; ">업무구분 :</caption>
- <select1 id="cmb_bizflag" ref="/root/send/searchitem/bizflag" class="combo_s_essential" appearance="minimal" style="left:415px; top:60px; width:90px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value>0</value>
- </item>
- <item>
- <label>교육</label>
- <value>1</value>
- </item>
- <item>
- <label>교육예약</label>
- <value>2</value>
- </item>
- <item>
- <label>면담중</label>
- <value>3</value>
- </item>
- <item>
- <label>관리</label>
- <value>4</value>
- </item>
- <item>
- <label>관리예약</label>
- <value>5</value>
- </item>
- <item>
- <label>관리중</label>
- <value>6</value>
- </item>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:663px; top:60px; width:90px; height:17px; ">교육장소 :</caption>
- <select1 id="cmb_educplce" ref="/root/send/searchitem/educplce" class="combo_s_essential" appearance="minimal" style="left:750px; top:60px; width:132px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initplace/A160">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:10px; top:60px; width:90px; height:17px; ">회신상태 :</caption>
- <select1 id="cmb_cnststat" ref="/root/send/searchitem/cnststat" class="combo_s_essential" appearance="minimal" style="left:98px; top:60px; width:90px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>미회신</label>
- <value>N</value>
- </item>
- <item>
- <label>회신</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="hintcaption" visibility="hidden" autoresize="true" style="left:515px; top:0px; width:100px; height:20px; text-align:left; vertical-align:middle; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:10px; width:90px; height:17px; ">의뢰일자 :</caption>
- <input id="ipt_reqfromdd" ref="/root/send/searchitem/reqfromdd" class="input_s_essential" inputtype="date" style="left:98px; top:10px; width:95px; height:19px; "/>
- <caption id="caption9" style="left:512px; top:12px; width:15px; height:15px; font-weight:bold; vertical-align:middle; ">~</caption>
- <caption id="caption10" class="search_name" style="left:325px; top:10px; width:90px; height:17px; ">예약일자 :</caption>
- <input id="ipt_rsrvfromdd" ref="/root/send/searchitem/rsrvfromdd" class="input_s_essential" inputtype="date" style="left:415px; top:10px; width:95px; height:19px; "/>
- <input id="ipt_rsrvtodd" ref="/root/send/searchitem/rsrvtodd" class="input_s_essential" inputtype="date" style="left:528px; top:10px; width:95px; height:19px; "/>
- <caption id="caption11" class="search_name" style="left:663px; top:10px; width:75px; height:17px; ">진료과 :</caption>
- <caption id="caption12" class="search_name" style="left:875px; top:10px; width:75px; height:17px; ">병동 :</caption>
- <select1 id="rdo_patflag" ref="/root/send/searchitem/patflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:98px; top:36px; width:135px; height:20px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //외래 선택시 병동 콤보 clear
- if ( rdo_patflag.value == 'O') {
- cmb_ward.value = "";
- cmb_ward.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:10px; top:35px; width:91px; height:17px; ">환자구분 :</caption>
- <caption id="caption7" class="search_name" style="left:663px; top:35px; width:75px; height:17px; ">영양사 :</caption>
- <select1 id="cmb_dieter" ref="/root/send/searchitem/dieter" class="combo_search" appearance="minimal" style="left:737px; top:35px; width:113px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/dieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_pid" ref="/root/send/searchitem/pid" class="input_search" autonext="false" maxlength="10" format="9999999999" style="left:458px; top:35px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_hngnm" ref="/root/send/searchitem/hngnm" class="input_search" style="left:540px; top:35px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption15" class="search_name" style="left:874px; top:36px; width:101px; height:17px; ">의뢰항목 :</caption>
- <input id="ipt_educreqcnts" ref="/root/send/searchitem/educreqcnts" class="input_search" autonext="false" maxlength="10" style="left:961px; top:36px; width:120px; height:19px; "/>
- </group>
- <button id="btn_excel" class="btn2_letter2" style="left:1151px; top:104px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save", ",", false, "영양교육관리", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_data.saveExcel(filename, "grd_data", true, false, "", "", "");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_data" nodeset="/root/main/item/data" caption="선택^회신상태^업무구분^사유^h_처방상태^의뢰일자^의뢰일시^h_실시처방번호^등록번호^환자구분^환자명^h_생년월일^h_성별^성별/나이^진단명^진료과^전문의^의뢰항목^의뢰내용^예약일자^예약시간^예약 종료일^종료시간^교육장소^영양사^수납여부^실제회신일^영양관리유형^질환구분^h_수납일자^h_생성번호^h_진료과^h_입원외래^h_진료일자^h_처방코드^h_간호사^h_서식기록번호" colsep="^" colwidth="36, 60, 60, 80, 10, 10, 100, 10, 65, 60, 70, 10, 10, 60, 180, 95, 61, 130, 200, 85, 60, 85, 60, 95, 60, 57, 110, 115, 100, 10, 10, 10, 10, 10, 10, 10, 10" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:130px; width:1194px; height:610px; ">
- <col ref="check" type="checkbox" visibility="hidden"/>
- <col ref="mngtstat" style="text-align:center; "/>
- <col ref="bizflag" style="text-align:center; "/>
- <col ref="cancelcmt" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/canclecmt/A161">
- <label ref="cdnm"/>
- <value ref="cdnm"/>
- </itemset>
- </choices>
- </col>
- <col ref="h_prcpstatcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="reqddhm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="execprcpuniqno" visibility="hidden" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patflag" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="h_brthdd" visibility="hidden"/>
- <col ref="h_sex" visibility="hidden"/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="diagnm" style="text-align:center; "/>
- <col disabled="true" ref="orddept" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="atdoct"/>
- <col ref="educreqcnts"/>
- <col ref="reccnts" type="inputbutton"/>
- <col ref="rsrvdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="eductm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="rsrvtodd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="eductotm" type="input" visibility="hidden" format="hh:nn" style="text-align:center; "/>
- <col ref="educplce" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initplace/A160">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="dieter" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/dieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rcptyn" visibility="hidden" style="text-align:center; "/>
- <col ref="repldd" type="output" format="yyyy-mm-dd hh:dd" style="text-align:center; "/>
- <col disabled="true" ref="nutrmngtkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/nutrmngtkind/A0060">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="sickcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/sickcd/A0059">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="h_rcptdd" visibility="hidden"/>
- <col ref="h_cretno" visibility="hidden"/>
- <col ref="h_orddeptcd" visibility="hidden"/>
- <col ref="h_prcpgenrflag" visibility="hidden"/>
- <col ref="h_orddd" visibility="hidden"/>
- <col ref="h_prcpcd" visibility="hidden"/>
- <col ref="h_nurse" visibility="hidden" style="left:2109px; top:23px; width:10px; height:23px; "/>
- <col ref="h_formrecseq" visibility="hidden"/>
- <col ref="h_cnstseqno" visibility="hidden"/>
- <col ref="h_sau" visibility="hidden"/>
- <col ref="h_cnstcnts9" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 소속 기관이 서울성모인 경우만 JCI용 환자별영양관리 화면(SMANC00350) 호출
- var instcd = getUserInfo("dutplceinstcd");
-
- if ( grd_data.isCell(event.target) && grd_data.row >= grd_data.fixedRows ) {
- //경장영양지원의뢰(EN)일 경우 약제팀의 'NST환자관리' 화면 링크
- if ( model.getValue("/root/main/item/data["+grd_data.row+"]/formcd") == '0000003019' ) {
- model.setValue("/root/temp/cnstinfo/pid", model.getValue("/root/main/item/data["+grd_data.row+"]/pid"));
- model.setValue("/root/temp/cnstinfo/cnstdd", model.getValue("/root/main/item/data["+grd_data.row+"]/reqdd"));
- model.setValue("/root/temp/cnstinfo/cretno", model.getValue("/root/main/item/data["+grd_data.row+"]/h_cretno"));
- model.setValue("/root/temp/cnstinfo/prcpgenrflag", model.getValue("/root/main/item/data["+grd_data.row+"]/h_prcpgenrflag"));
- model.setValue("/root/temp/cnstinfo/orddd", model.getValue("/root/main/item/data["+grd_data.row+"]/h_orddd"));
- model.setValue("/root/temp/cnstinfo/formrecseq", model.getValue("/root/main/item/data["+grd_data.row+"]/h_formrecseq"));
- model.setValue("/root/temp/cnstinfo/formcd", model.getValue("/root/main/item/data["+grd_data.row+"]/formcd"));
- model.setValue("/root/temp/cnstinfo/rgstseqno", model.getValue("/root/main/item/data["+grd_data.row+"]/rgstseqno"));
- //model.setValue("/root/temp/cnstinfo/cnsttype", "ast"); //약품식별회신을 위한 변수 설정
- model.setValue("/root/temp/cnstinfo/cnstseqno", model.getValue("/root/main/item/data["+grd_data.row+"]/h_cnstseqno"));
- model.setValue("/root/temp/cnstinfo/sau", model.getValue("/root/main/item/data["+grd_data.row+"]/h_sau"));
- model.setValue("/root/temp/cnstinfo/cnstcnts9", model.getValue("/root/main/item/data["+grd_data.row+"]/h_cnstcnts9"));
-
- // 환자 상단정보 START
- var prcpgenrflag = model.getValue("/root/main/item/data["+grd_data.row+"]/h_prcpgenrflag");
- var pid = model.getValue("/root/main/item/data["+grd_data.row+"]/pid");
- var orddd = model.getValue("/root/main/item/data["+grd_data.row+"]/h_orddd");
- var cretno = model.getValue("/root/main/item/data["+grd_data.row+"]/h_cretno");
- var instcd = getUserInfo("dutplceinstcd");
- if(prcpgenrflag!="E"){
- prcpgenrflag = "I";
- }
-
- var param = prcpgenrflag + "▦" +
- pid + "▦" +
- orddd + "▦" +
- cretno + "▦" +
- instcd ;
- setParameter("condparam", param);
- modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- // 환자 상단정보 EDN
-
- open("SMADC02600", "","","", "SMADC02600", "/root/temp/cnstinfo", "/root/temp/cnstinfo");
- }
- else {
- // 'E'는 영양교육관리 화면임을 뜻하는 구분자임.
- model.setValue("/root/send/popup/flag", "E");
- model.setValue("/root/send/popup/pid", model.getValue("/root/main/item/data["+grd_data.row+"]/pid"));
- model.setValue("/root/send/popup/hngnm", model.getValue("/root/main/item/data["+grd_data.row+"]/hngnm"));
- model.setValue("/root/send/popup/reqdd", model.getValue("/root/main/item/data["+grd_data.row+"]/reqdd"));
- model.setValue("/root/send/popup/reqpsn", model.getValue("/root/main/item/data["+grd_data.row+"]/atdoct"));
- model.setValue("/root/send/popup/educreqcnts", model.getValue("/root/main/item/data["+grd_data.row+"]/educreqcnts"));
- model.setValue("/root/send/popup/reccnts", model.getValue("/root/main/item/data["+grd_data.row+"]/reccnts"));
- model.setValue("/root/send/popup/h_cretno", model.getValue("/root/main/item/data["+grd_data.row+"]/h_cretno"));
- model.setValue("/root/send/popup/h_orddeptcd", model.getValue("/root/main/item/data["+grd_data.row+"]/orddept"));
- model.setValue("/root/send/popup/h_prcpgenrflag", model.getValue("/root/main/item/data["+grd_data.row+"]/h_prcpgenrflag"));
- model.setValue("/root/send/popup/h_orddd", model.getValue("/root/main/item/data["+grd_data.row+"]/h_orddd"));
- model.setValue("/root/send/popup/h_formrecseq", model.getValue("/root/main/item/data["+grd_data.row+"]/h_formrecseq"));
- model.setValue("/root/send/popup/nutrmngtkind", model.getValue("/root/main/item/data["+grd_data.row+"]/nutrmngtkind"));
- model.setValue("/root/send/popup/execdd", model.getValue("/root/main/item/data["+grd_data.row+"]/execdd"));
- // 환자 상단정보 START
- var prcpgenrflag = model.getValue("/root/main/item/data["+grd_data.row+"]/h_prcpgenrflag");
- var pid = model.getValue("/root/main/item/data["+grd_data.row+"]/pid");
- var orddd = model.getValue("/root/main/item/data["+grd_data.row+"]/h_orddd");
- var cretno = model.getValue("/root/main/item/data["+grd_data.row+"]/h_cretno");
- var instcd = getUserInfo("dutplceinstcd");
- if(prcpgenrflag!="E"){
- prcpgenrflag = "I";
- }
-
- var param = prcpgenrflag + "▦" +
- pid + "▦" +
- orddd + "▦" +
- cretno + "▦" +
- instcd ;
- setParameter("condparam", param);
- modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- // 환자 상단정보 EDN
- // 서울성모일 경우만 JCI용 화면으로 호출. 20100118
- if (instcd =="012"){
- open("SMANC00350", "","","", "SMANC00350", "/root/send/popup", "/root/main/receivedata");
- }else{
- open("SMANC00300", "","","", "SMANC00300", "/root/send/popup", "/root/main/receivedata");
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var colidx = grd_data.col;
- if(grd_data.colAttribute(colidx, "ref") == "reccnts"){
- model.setValue("/root/send/popup/reccnts", "");
- grp_reccnts.visible = true;
- var rownum = grd_data.row ;
- var reccnts = model.getValue("/root/main/item/data["+rownum+"]/reccnts");
-
- model.setValue("/root/send/popup/reccnts",reccnts);
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line12" class="line_1" style="x1:0px; y1:125px; x2:1194px; y2:125px; "/>
- <group id="grp_reccnts" visibility="hidden" style="left:435px; top:265px; width:445px; height:245px; ">
- <textarea id="textarea2" ref="/root/send/popup/reccnts" 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="caption13" 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>
- <caption id="caption14" style="left:715px; top:103px; width:428px; height:20px; background-color:#fefecc; ">* 취소사유 수정 시 : 기준정보관리/공통코드관리에 그룹코드 A161로 조회 수정</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:26px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("", "Q002") == 6 ) {
- var temp = getGridUpdateData(grd_data);
- if ( temp != "" ) {
- //필수입력항목 체크
- // for ( i=1; i<grd_telnutrcnst.rows; i++) {
- // if ( (model.getValue("/root/main/item/data/telnutrcnst/grdlist[" + i + "]/execdd") == "") ) {
- // messageBox("수행일자 항목은", "I003");
- // return;
- // }
- // }
- model.setValue("/root/send/req/list", grd_data.getUpdateData());
-
- if (submit("TXANC00201")) {
- submit("TRANC00201");
- }
- }
- } else { return; }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|