123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266 |
- <?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>
- <chkb/>
- <sendenryn/>
- <pid/>
- <room/>
- <hngnm/>
- <sex/>
- <h_brthdd/>
- <age/>
- <indd/>
- <dietcd/>
- <dietnm/>
- <diagnm/>
- <sick/>
- <curedietpatyn/>
- <dietroundyn/>
- <crmyn/>
- <educnts/>
- <nutrmngt/>
- <execcnts/>
- <intndieter/>
- <execdieter/>
- <execdd/>
- <exectm/>
- <eduprepyn/>
- <eduwho/>
- <eduway/>
- <edurslt/>
- <dschdd/>
- <rsntdschdd/>
- <delyn/>
- <educd/>
- <edudd/>
- <edutm/>
- <cretno/>
- <orddd/>
- <instcd/>
- <daydietnms/>
- <opdd/>
- <opschedd/>
- </grdlist>
- </ipatmngt>
- <ipatmngtrslt>
- <grdlist>
- <sendenryn/>
- <pid/>
- <room/>
- <hngnm/>
- <sex/>
- <age/>
- <indd/>
- <dietnm/>
- <diagnm/>
- <sick/>
- <curedietpatyn/>
- <dietroundyn/>
- <crmyn/>
- <educnts/>
- <execcnts/>
- <nutrmngt/>
- <intndieter/>
- <execdieter/>
- <execdd/>
- <eduprepyn/>
- <eduwho/>
- <eduway/>
- <edurslt/>
- </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/>
- </grdlist>
- </nonregleduc>
- </data>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </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>
- <mrjhedu>
- <listdata/>
- </mrjhedu>
- </data>
- <popup>
- <flag/>
- <pid/>
- <hngnm/>
- <reqdd/>
- <reqpsn/>
- <educreqcnts/>
- <h_cretno/>
- <h_orddeptcd/>
- <h_prcpgenrflag/>
- <h_orddd/>
- <h_formrecseq/>
- <execprcpuniqno/>
- <nutrmngtkind/>
- <execdd/>
- </popup>
- </send>
- <hidden>
- <msglist/>
- </hidden>
- <init>
- <basecode>
- <sick>
- <A0059>
- <cdid/>
- <cdnm/>
- </A0059>
- </sick>
- <ward>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </ward>
- <dieter>
- <alldieter>
- <cdid/>
- <cdnm/>
- </alldieter>
- <dieter>
- <cdid/>
- <cdnm/>
- </dieter>
- <intndieter>
- <cdid/>
- <cdnm/>
- </intndieter>
- </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="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();
- btn_search1.disabled = !checkAuth("R");
- btn_search2.disabled = !checkAuth("R");
- btn_search3.disabled = !checkAuth("R");
- btn_search4.disabled = !checkAuth("R");
- btn_search5.disabled = !checkAuth("R");
- btn_save.disabled = !checkAuth("X");
- btn_excel.disabled = !checkAuth("P");
- //btn_rowadd3.visible = false;
- btn_rowdel3.visible = false;
- submit("TRANC00202"); //영양사 조회
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function finit() {
- // 화면open시 공통코드 setting
- 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/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());
-
- grd_ipatmngt.fixedcellcheckbox(0,1)=true; // 타이틀에 전체선택 체크박스 추가
-
- model.refresh();
- }
-
- /*
- * 다학제간 관련 EMR 데이터 전송
- */
- function sendEMRData() {
-
- var sendCheck = "N";
- var sColSep = "▦";
- var sRowSep = "▩";
-
- // 그리드 헤더값 생성
- var rCSV = "m▦instcd▦pid▦orddd▦cretno▦histno▦delyn▦educd▦educnts▦eduprepyn▦eduwho▦eduway▦edurslt▦edudd▦edutm▦eduid▦fstrgstrid▦fstrgstdt▦lastupdtrid▦lastupdtdt";
-
- var gridRow = grd_ipatmngt.rows; // 데이터 로우 종 갯수
- var fixedRows = grd_ipatmngt.fixedRows; // 고정 데이터 로우 갯수
-
- // 데이터 저장여부 확인
- if(messageBox("ENR로 데이터를", "Q014") == 6) {
- // 그리드 데이터가 없으면 메서드 종료
- if(gridRow <= fixedRows) {
- return;
- }
- } else {
- return;
- }
- // 수행시간을 현재 시간으로 세팅
- var curDt = getCurrentDateTime().split(" ");
-
- // 다학제간 관련 전송 데이터 생성
- for(var i = 0; i < gridRow; ++i) {
- if(grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("chkb")) == "true") {
- // 수행시간을 현재 시간으로 세팅
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("exectm")) = curDt[1];
-
- // 필수 데이터 체크
- if(grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("educnts")) == "") {
- alert(i + fixedRows - 1 + "번째 데이터에 필수 항목인 '교육서식' 을 입력 해주세요");
- return;
- }
-
- if(grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("execdd")) == "" ||
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("exectm")) == "") {
- alert(i + fixedRows - 1 + "번째 데이터에 필수 항목인 '수행일자' 및 '수행시간'을 입력 해주세요");
- return;
- }
-
- if(grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("edudd")) == "" ||
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("edutm")) == "") {
- alert(i + fixedRows - 1 + "번째 데이터에 필수 항목인 '교육일자' 및 '교육시간'을 입력 해주세요");
- return;
- }
-
- if(grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("eduprepyn")) == "" ||
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("eduwho")) == "" ||
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("eduway")) == "" ||
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("edurslt")) == "") {
- alert(i + fixedRows - 1 + "번째 데이터에 필수 항목인 '학습준비도', '교육대상자', '교육방법', '교육결과' 를 입력 해주세요");
- return;
- }
-
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("sendenryn")) = "Y";
-
- rCSV +=
- sRowSep +
- "i" + sColSep +
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("instcd")) + sColSep +
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("pid")) + sColSep +
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("orddd")) + sColSep +
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("cretno")) + sColSep +
- "" + sColSep +
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("delyn")) + sColSep +
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("educd")) + sColSep +
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("educnts")) + sColSep +
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("eduprepyn")) + sColSep +
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("eduwho")) + sColSep +
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("eduway")) + sColSep +
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("edurslt")) + sColSep +
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("edudd")) + sColSep +
- grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("edutm")) + sColSep +
- "" + sColSep +
- "" + sColSep +
- "" + sColSep +
- "" + sColSep +
- "";
-
- sendCheck = "Y";
- }
- }
-
- // EMR로 전송할 선택된 데이터가 없으면 메서드 종료
- if(sendCheck == "N") {
- return;
- }
-
- // 영양 테이블에 데이터 저장
- model.setValue("/root/send/data/ipatmngt/list", grd_ipatmngt.getUpdateData());
-
- if (submit("TXANC00451")) {
- // 처리내용 없음
- } else {
- alert("데이터 저장 실패('관리자에게 문의해 주세요')");
- return;
- }
-
- // 다학제간 관련 전송 데이터 세팅
- model.setValue("/root/send/data/mrjhedu/listdata", rCSV);
-
- if(submit("TXANC00456")) {
- btn_search1.dispatch("DOMActivate");
- alert("다학제간 데이터 ENR로 전송 처리 완료");
- } else {
- alert("다학제간 전송 처리 오류( 시스템 담당자에게 문의 해주세요 )");
- }
- }
- ]]>
- </script>
- <submission id="TXANC00451" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/ipatmngt" resultref="/root/hidden"/>
- <submission id="TRANC00451" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngt" resultref="/root/main/data/ipatmngt"/>
- <submission id="TXANC00456" method="post" ref="/root/send/data/mrjhedu" resultref="/root/hidden/msglist"/>
- <submission id="TRANC00455" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngtrslt" resultref="/root/main/data/ipatmngtrslt"/>
- </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,734;" 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; ">
- <switch id="swt_patmngt" style="left:0px; top:26px; width:1194px; height:718px; ">
- <case id="case1" selected="true">
- <group id="grp_sea" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
- <button id="btn_search1" class="btn1_letter2" style="left:1106px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var patflag = model.getValue("/root/send/searchitem/ipatmngt/patflag");
- var pid = model.getValue("/root/send/searchitem/ipatmngt/pid");
- var hngnm = model.getValue("/root/send/searchitem/ipatmngt/hngnm");
- var fromdd = model.getValue("/root/send/searchitem/ipatmngt/inddfrom");
- var todd = model.getValue("/root/send/searchitem/ipatmngt/inddto");
-
- if ( getDateInterval(fromdd, todd) < 0 ) {
- messageBox("조회 시작일은 종료일보다 클 수", "I004");
- return;
- // 변경요청서 1915 (2009.05.29) - 재원환자 검색기준 변경 (등록번호 or 환자명 입력조건 제외) - 2009.06.05 김귀남
- /*
- } else if ( patflag == "2" && pid == "" && hngnm == "" ) {
- //재원을 선택했을 경우는 등록번호나 환자명이 필수조회조건임.
- messageBox("재원환자 조회시 등록번호 또는 환자명을", "C001");
- return;
- */
- } else {
- grd_ipatmngt.fixedcellischeck(0,1) = false; //영양검색결과 탭화면 전체선택 체크박스 초기화
-
- submit("TRANC00451");
- }
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
- <caption id="caption33" class="search_name" style="left:16px; top:9px; width:60px; height:17px; ">병동 :</caption>
- <select1 id="cmb_ward" ref="/root/send/searchitem/ipatmngt/ward" class="combo_s_essential" appearance="minimal" style="left:80px; 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="caption1" class="search_name" style="left:582px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
- <button id="btn_pid" class="icon_search" style="left:737px; 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/ipatmngt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/searchitem/ipatmngt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_pid1" ref="/root/send/searchitem/ipatmngt/pid" class="input" autonext="false" maxlength="10" format="9999999999" style="left:667px; top:8px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search1", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:760px; top:10px; width:86px; height:17px; ">환자명 :</caption>
- <input id="ipt_hngnm1" ref="/root/send/searchitem/ipatmngt/hngnm" class="input" style="left:835px; top:8px; width:60px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search1", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="rdo_patflag" ref="/root/send/searchitem/ipatmngt/patflag" class="radio_search" appearance="full" cols="2" rows="1" overflow="visible" style="left:185px; top:9px; width:94px; height:20px; ">
- <choices>
- <item>
- <label>신환</label>
- <value>1</value>
- </item>
- <item>
- <label>재원</label>
- <value>2</value>
- </item>
- </choices>
- <hint>
- <![CDATA[재원-수행일자가 오늘인게 있으면 기록내용 보여줌(없으면 입력 초기상태 모드)]]>
- </hint>
- </select1>
- <button id="btn_patnm" class="icon_search" style="left:900px; 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/ipatmngt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/searchitem/ipatmngt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" style="left:925px; top:10px; width:76px; height:17px; ">영양사 :</caption>
- <select1 id="cmb_dieter1" ref="/root/send/searchitem/ipatmngt/dieter" class="combo_search" appearance="minimal" style="left:1000px; top:8px; width:75px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/alldieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_inddfrom" ref="/root/send/searchitem/ipatmngt/inddfrom" class="input_search" inputtype="date" style="left:369px; top:8px; width:90px; height:19px; "/>
- <caption id="caption19" class="search_n_b" style="left:461px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <caption id="caption4" class="search_name" style="left:280px; top:10px; width:86px; height:17px; ">입원일자 :</caption>
- <input id="ipt_inddto" ref="/root/send/searchitem/ipatmngt/inddto" class="input_search" inputtype="date" style="left:474px; top:8px; width:90px; height:19px; "/>
- </group>
- <line id="line38" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
- <datagrid id="grd_ipatmngt" nodeset="/root/main/data/ipatmngt/grdlist" caption="전송^전송유무^등록번호^병실^환자명^성별^h_생년월일^나이^입원일자^식사코드^식사명^진단명^질환구분^치료식환자관리^식사회진관리^CRM^내용^내용^내용^인턴영양사^영양사^수행일자^수행시간^학습준비도^교육대상자^교육방법^교육결과^퇴원일자^최근퇴원일자^식사^수술일^수술예정일^^^^^^^|전송^전송유무^등록번호^병실^환자명^성별^h_생년월일^나이^입원일자^식사코드^식사명^진단명^질환구분^치료식환자관리^식사회진관리^CRM^교육서식^영양관리^비고^인턴영양사^영양사^수행일자^수행시간^학습준비도^교육대상자^교육방법^교육결과^퇴원일자^최근퇴원일자^식사^수술일^수술예정일^^^^^^^" colsep="^" colwidth="46, 57, 65, 70, 60, 40, 10, 40, 80, 0, 150, 150, 90, 95, 85, 56, 100, 100, 145, 77, 70, 90, 82, 100, 100, 100, 100, 90, 90, 300, 90, 90, 15, 16, 15, 14, 17, 16, 18" explorerbar="sortshow" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:630px; text-align:center; ">
- <col ref="chkb" type="checkbox"/>
- <col ref="sendenryn"/>
- <col ref="pid"/>
- <col ref="room"/>
- <col ref="hngnm"/>
- <col ref="sex"/>
- <col ref="h_brthdd" visibility="hidden"/>
- <col ref="age"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="dietcd" visibility="hidden"/>
- <col ref="dietnm" style="text-align:left; "/>
- <col ref="diagnm" style="text-align:left; "/>
- <col ref="sick" type="combo" style="text-align:left; ">
- <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 checkvalue="Y,N" ref="crmyn" type="checkbox"/>
- <col ref="educnts"/>
- <col ref="nutrmngt" type="input" style="text-align:left; "/>
- <col ref="execcnts" type="input" style="text-align:left; "/>
- <col ref="intndieter" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/intndieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="execdieter" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/dieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="execdd" type="inputdate"/>
- <col ref="exectm" visibility="hidden"/>
- <col ref="eduprepyn"/>
- <col ref="eduwho"/>
- <col ref="eduway"/>
- <col ref="edurslt"/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col ref="rsntdschdd" format="yyyy-mm-dd"/>
- <col ref="daydietnms" style="text-align:left; "/>
- <col disabled="true" ref="opdd" type="inputdate"/>
- <col disabled="true" ref="opschedd" type="inputdate"/>
- <col ref="delyn" visibility="hidden"/>
- <col ref="educd" visibility="hidden"/>
- <col ref="edudd" visibility="hidden"/>
- <col ref="edutm" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var mousRow = grd_ipatmngt.mouseRow; // 마우스로 선택된 현재 행의 번호
- var mousCol = grd_ipatmngt.mouseCol; // 마우스로 선택된 열의 번호
- var fixedRows = grd_ipatmngt.fixedRows; // 고정된 행의 갯수
-
- model.property("SMANC00450_gridrow") = grd_ipatmngt.mouseRow; // 이벤트가 발생한 그리드 row 값
-
- // 교육서식 입력
- if( (fixedRows <= mousRow) && (grd_ipatmngt.colRef("educnts") == mousCol) ) {
- modal("SPANC00451", "", "270", "230", "SPANC00306", "", "");
- return;
- } else if( (fixedRows <= mousRow) && (grd_ipatmngt.colRef("eduprepyn") <= mousCol && grd_ipatmngt.colRef("edurslt") >= mousCol)) {
- modal("SPANC00452", "", "900", "220", "SPANC00306", "", "");
- return;
- }
-
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <group id="group1" style="left:5px; top:10px; 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:1182px; height:35px; background-color:#fffbf2; "/>
- <button id="btn_search5" class="btn1_letter2" style="left:1106px; 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("TRANC00455");
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1092px; y1:7px; x2:1092px; 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:687px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
- <caption id="caption8" class="search_n_b" style="left:840px; top:9px; width:12px; height:17px; font-weight:bolder; ">/</caption>
- <button id="btn_pid1" class="icon_search" style="left:912px; 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:772px; 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:850px; 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:230px; height:20px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>치료식</label>
- <value>1</value>
- </item>
- <item>
- <label>식사회진</label>
- <value>2</value>
- </item>
- <item>
- <label>CRM</label>
- <value>3</value>
- </item>
- </choices>
- <hint>
- <![CDATA[전체 - 치료식, 식사회진, CRM 선택된 항목이 대상임]]>
- </hint>
- </select1>
- <caption id="caption7" class="search_name" style="left:940px; top:10px; width:76px; height:17px; ">영양사 :</caption>
- <select1 id="cmb_dieter4" ref="/root/send/searchitem/ipatmngtrslt/dieter" class="combo_search" appearance="minimal" style="left:1015px; top:8px; width:65px; 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:494px; top:8px; width:85px; height:19px; "/>
- <caption id="caption9" class="search_n_b" style="left:581px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <caption id="caption11" class="search_name" style="left:410px; top:10px; width:86px; height:17px; ">수행일자 :</caption>
- <input id="ipt_execddto" ref="/root/send/searchitem/ipatmngtrslt/execddto" class="input_search" inputtype="date" style="left:594px; 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="전송유무^등록번호^병실^환자명^성별^나이^입원일자^식사명^진단명^질환구분^치료식환자관리^식사회진관리^CRM^내용^내용^내용^인턴영양사^영양사^수행일자^학습준비도^교육대상자^교육방법^교육결과|전송유무^등록번호^병실^환자명^성별^나이^입원일자^식사명^진단명^질환구분^치료식환자관리^식사회진관리^CRM^교육서식^영양관리^비고^인턴영양사^영양사^수행일자^학습준비도^교육대상자^교육방법^교육결과" colsep="^" colwidth="63, 65, 40, 60, 40, 40, 80, 150, 150, 90, 95, 85, 56, 173, 157, 205, 100, 70, 90, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:630px; text-align:center; ">
- <col ref="sendenryn"/>
- <col ref="pid"/>
- <col ref="room" style="left:85px; top:23px; width:40px; height:23px; "/>
- <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:left; ">
- <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 checkvalue="Y,N" ref="crmyn" type="checkbox"/>
- <col ref="educnts" style="text-align:left; "/>
- <col ref="nutrmngt" style="text-align:left; "/>
- <col ref="execcnts" style="text-align:left; "/>
- <col ref="intndieter" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/intndieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <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"/>
- <col ref="eduprepyn"/>
- <col ref="eduwho"/>
- <col ref="eduway"/>
- <col ref="edurslt"/>
- </datagrid>
- </case>
- <case id="case3">
- <group id="group2" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
- <shape id="shape1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
- <button id="btn_search2" class="btn1_letter2" style="left:1111px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdd = model.getValue("/root/send/searchitem/telnutrcnst/educfromdd");
- var todd = model.getValue("/root/send/searchitem/telnutrcnst/eductodd");
- if ( getDateInterval(fromdd, todd) < 0 ) {
- messageBox("조회 시작일은 종료일보다 클 수", "I004");
- return;
- } else {
- submit("TRANC00402");
- }
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
- <caption id="caption12" class="search_name" style="left:560px; top:9px; width:73px; height:17px; ">환자명 :</caption>
- <input id="ipt_hngnm2" ref="/root/send/searchitem/telnutrcnst/hngnm" class="input_s_essential" style="left:635px; top:8px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search2", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_patnm2" class="icon_search" style="left:735px; 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/telnutrcnst/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/searchitem/telnutrcnst/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption13" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">교육일자 :</caption>
- <caption id="caption14" class="search_n_b" style="left:211px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_educfromdd" ref="/root/send/searchitem/telnutrcnst/educfromdd" class="input_s_essential" inputtype="date" style="left:107px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_eductodd" ref="/root/send/searchitem/telnutrcnst/eductodd" class="input_s_essential" inputtype="date" style="left:227px; top:8px; width:100px; height:19px; "/>
- <caption id="caption15" class="search_name" style="left:775px; top:9px; width:73px; height:17px; ">영양사 :</caption>
- <select1 id="cmb_dieter2" ref="/root/send/searchitem/telnutrcnst/dieter" class="combo_search" appearance="minimal" style="left:850px; top:8px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/alldieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_pid2" class="icon_search" style="left:527px; 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/telnutrcnst/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/searchitem/telnutrcnst/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption16" class="search_name" style="left:352px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid2" ref="/root/send/searchitem/telnutrcnst/pid" class="input_s_essential" autonext="false" maxlength="10" format="9999999999" style="left:437px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search2", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <line id="line4" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
- <datagrid id="grd_telnutrcnst" nodeset="/root/main/data/telnutrcnst/grdlist" caption="등록번호^환자구분^입원/외래^환자명^성별^나이^질환구분^집전화^휴대전화^수행여부^수행일자^영양사^서식기록번호^영양관리유형^환자별영양관리수행일자^입원일자" colsep="^" colwidth="100, 30, 70, 80, 60, 60, 157, 95, 95, 65, 88, 74, 30, 30, 30, 30" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:536px; ">
- <col ref="pid"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="inout"/>
- <col ref="hngnm"/>
- <col ref="sex"/>
- <col ref="age"/>
- <col ref="sickcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/basecode/sick/A0059">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="hometel"/>
- <col ref="mpphontel"/>
- <col checkvalue="Y,N" ref="execyn" type="checkbox"/>
- <col ref="telexecdd" type="inputdate"/>
- <col ref="execdieter" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/alldieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="formrecseq" visibility="hidden"/>
- <col ref="nutrmngtkind" visibility="hidden"/>
- <col ref="execdd" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( grd_telnutrcnst.isCell(event.target) && grd_telnutrcnst.row >= grd_telnutrcnst.fixedRows ) {
- // 'T'는 전화영양상담(추구관리) 탭화면임을 뜻하는 구분자임.
- model.setValue("/root/send/popup/flag", "T");
- model.setValue("/root/send/popup/pid", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/pid"));
- model.setValue("/root/send/popup/hngnm", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/hngnm"));
- //model.setValue("/root/send/popup/execprcpuniqno", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/h_execprcpuniqno"));
- //model.setValue("/root/send/popup/h_cretno", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/h_cretno"));
- //model.setValue("/root/send/popup/h_orddeptcd", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/orddept"));
- model.setValue("/root/send/popup/h_prcpgenrflag", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/ioflag"));
- model.setValue("/root/send/popup/h_orddd", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/orddd"));
- //model.setValue("/root/send/popup/h_formrecseq", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/formrecseq"));
- model.setValue("/root/send/popup/nutrmngtkind", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/nutrmngtkind"));
- model.setValue("/root/send/popup/execdd", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/execdd"));
- //modal("SMANC00300", "", "", "", "popup", "/root/send/popup", "/root/main/receivedata");
- open("SMANC00300", "","","", "SMANC00300", "/root/send/popup", "/root/main/receivedata");
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_cnstcount" nodeset="/root/main/data/telnutrcnstcnt/cnstcount" caption="상담일자^영양사^당뇨^고혈압^심장질환^복막투석^혈액투석^암^혈액종양^신장질환^간장질환^위장질환^경장영양^비만^기타질환" colsep="^" colwidth="95, 65, 80, 80, 80, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:640px; width:1183px; height:71px; text-align:center; ">
- <col ref="cnstdd" type="inputdate"/>
- <col ref="dieter" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/alldieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="glycospatqty" type="input"/>
- <col ref="hypetspatqty" type="input"/>
- <col ref="cardiacpatqty" type="input"/>
- <col ref="pdpatqty" type="input"/>
- <col ref="hdpatqty" type="input"/>
- <col ref="cncrpatqty" type="input"/>
- <col ref="blodtumpatqty" type="input"/>
- <col ref="kidnpatqty" type="input"/>
- <col ref="liverpatqty" type="input"/>
- <col ref="stmcpatqty" type="input"/>
- <col ref="etrlfdpatqty" type="input"/>
- <col ref="fatpatqty" type="input"/>
- <col ref="etcsickpatqty" type="input"/>
- </datagrid>
- <button id="btn_rowadd2" class="btn2_letter3" style="left:1000px; top:615px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_cnstcount.addRow();
- model.setValue("/root/main/data/telnutrcnstcnt/cnstcount["+ grd_cnstcount.row +"]/dieter", model.getValue("/root/send/searchitem/telnutrcnstcnt/dieter"));
- ]]>
- </script>
- </button>
- <button id="btn_rowdel2" class="btn2_letter3" style="left:1055px; top:615px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_cnstcount.deleteRow(grd_cnstcount.row);
- ]]>
- </script>
- </button>
- <button id="btn_search4" class="btn1_letter2" style="left:1126px; top:613px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdd = model.getValue("/root/send/searchitem/telnutrcnstcnt/cnstfromdd");
- var todd = model.getValue("/root/send/searchitem/telnutrcnstcnt/cnsttodd");
- if ( getDateInterval(fromdd, todd) < 0 ) {
- messageBox("조회 시작일은 종료일보다 클 수", "I004");
- return;
- } else {
- submit("TRANC00404");
- }
- ]]>
- </script>
- </button>
- <line id="line5" class="line_1" style="x1:5px; y1:635px; x2:1188px; y2:635px; "/>
- <caption id="caption20" class="tit_2" style="left:11px; top:618px; width:95px; height:13px; ">전화영양상담</caption>
- <caption id="caption17" class="search_name" style="left:315px; top:617px; width:86px; height:17px; ">상담일자 :</caption>
- <caption id="caption18" class="search_n_b" style="left:502px; top:618px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_cnstfromdd" ref="/root/send/searchitem/telnutrcnstcnt/cnstfromdd" class="input_s_essential" inputtype="date" style="left:400px; top:615px; width:100px; height:19px; "/>
- <input id="ipt_cnsttodd" ref="/root/send/searchitem/telnutrcnstcnt/cnsttodd" class="input_s_essential" inputtype="date" style="left:515px; top:615px; width:100px; height:19px; "/>
- <caption id="caption21" class="search_name" style="left:675px; top:617px; width:73px; height:17px; ">영양사 :</caption>
- <select1 id="cmb_dieter3" ref="/root/send/searchitem/telnutrcnstcnt/dieter" class="combo_search" appearance="minimal" style="left:750px; top:615px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/alldieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case4">
- <line id="line40" class="line_2" style="x1:5px; y1:687px; x2:1188px; y2:687px; "/>
- <line id="line6" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
- <datagrid id="grd_nonregleduc" nodeset="/root/main/data/nonregleduc/grdlist" caption="일자^시작시간^종료일^종료시간^주제^대상^교육인원^장소^교육자료^질환구분^기타^영양사" colsep="^" colwidth="90, 60, 90, 60, 204, 120, 70, 133, 100, 100, 180, 83" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:627px; ">
- <col ref="educdd" type="inputdate" format="yyyy-mm-dd" style="left:0px; top:23px; width:100px; height:23px; text-align:center; "/>
- <col ref="eductm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="eductodd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="eductotm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="educsubj" type="input"/>
- <col ref="eductrgt" type="input"/>
- <col autonext="false" ref="educpsnno" type="input" format="9999" maxlength="4" style="text-align:right; "/>
- <col ref="educplce" type="input"/>
- <col ref="educmatr" type="input"/>
- <col ref="sickcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/sick/A0059">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="educetc" type="input"/>
- <col ref="educdieter" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/alldieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <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>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var target_col = grd_nonregleduc.col;
- if ( target_col == "2" ) {
- var eductm = model.getValue("/root/main/data/nonregleduc/grdlist["+grd_nonregleduc.row+"]/eductm");
- if ( eductm.length != 4 ) {
- messageBox("시간 항목의 형식은 ##:##", "E008");
- return;
- }
- }
- ]]>
- </script>
- </datagrid>
- <group id="group3" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
- <shape id="shape2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
- <button id="btn_search3" class="btn1_letter2" style="left:1111px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdd = model.getValue("/root/send/searchitem/nonregleduc/fromdd");
- var todd = model.getValue("/root/send/searchitem/nonregleduc/todd");
- if ( getDateInterval(fromdd, todd) < 0 ) {
- messageBox("조회 시작일은 종료일보다 클 수", "I004");
- return;
- } else {
- submit("TRANC00403");
- }
- ]]>
- </script>
- </button>
- <line id="line7" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
- <caption id="caption22" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">교육일자 :</caption>
- <caption id="caption23" class="search_n_b" style="left:211px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="fromDD" ref="/root/send/searchitem/nonregleduc/fromdd" class="input_default" inputtype="date" style="left:107px; top:8px; width:100px; height:19px; text-align:center; "/>
- <input id="toDD" ref="/root/send/searchitem/nonregleduc/todd" class="input_default" inputtype="date" style="left:227px; top:8px; width:100px; height:19px; text-align:center; "/>
- </group>
- </case>
- </switch>
- <button id="btn_ipatmngt" class="btn_sw" group="tab" selected="true" style="left:0px; top:5px; width:102px; height:22px; ">
- <caption>입원환자관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_rowadd3.visible = true;
- btn_rowdel3.visible = false;
- btn_save.disabled = false;
- btn_saveemr.disabled = false;
- model.toggle("case1");
- ]]>
- </script>
- </button>
- <button id="btn_ipatmngtrslt" class="btn_sw" group="tab" selected="false" style="left:102px; top:5px; width:121px; height:22px; ">
- <caption>환자관리결과조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_rowadd3.visible = false;
- btn_rowdel3.visible = false;
- btn_save.disabled = true;
- btn_saveemr.disabled = true;
- model.toggle("case2");
- ]]>
- </script>
- </button>
- <button id="btn_telnutrcnst" class="btn_sw" group="tab" selected="false" style="left:223px; top:5px; width:155px; height:22px; ">
- <caption>전화영양상담(추구관리)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_rowadd3.visible = false;
- btn_rowdel3.visible = false;
- btn_save.disabled = false;
- btn_saveemr.disabled = true;
- model.toggle("case3");
- ]]>
- </script>
- </button>
- <button id="btn_nonregleduc" class="btn_sw" group="tab" selected="false" style="left:377px; top:5px; width:83px; height:22px; ">
- <caption>집단교육</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_rowadd3.visible = true;
- btn_rowdel3.visible = true;
- btn_save.disabled = false;
- btn_saveemr.disabled = true;
- model.toggle("case4");
- ]]>
- </script>
- </button>
- <button id="btn_rowadd3" class="btn2_letter3" style="left:1025px; top:75px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //입원환자관리 탭화면일때
- if ( btn_ipatmngt.selected ) {
- var selectRow = grd_ipatmngt.row - 1;
- if ( model.getValue("/root/main/data/ipatmngt/grdlist["+selectRow +"]/pid") == "" ) {
- messageBox("추가할 환자를", "C002");
- return;
- }
-
- var grdrow = grd_ipatmngt.row;
- model.copyNode("/root/temp", "/root/main/data/ipatmngt/grdlist["+ selectRow +"]");
- grd_ipatmngt.insertrow(grdrow, "below");
- model.copyNode("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]", "/root/temp");
- model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]/sick", "");
- model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]/curedietpatyn", "");
- model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]/dietroundyn", "");
- //model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/crmyn", "");
- model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]/execcnts", "");
- model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]/execdieter", getUserInfo("userid"));
- model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]/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" style="left:1081px; top:75px; 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:1145px; top:75px; 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>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_saveemr" class="btn4_letter6" style="left:962px; top:5px; width:104px; height:22px; ">
- <caption>다학제간전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- sendEMRData();
- ]]>
- </script>
- </button>
- <button id="btn_reset" class="btn4_letter3" 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" 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("TXANC00451")) {
- btn_search1.dispatch("DOMActivate");
- }
- }
-
- //환자관리결과조회 탭화면일때
- // 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" 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>
- </xhtml:body>
- </xhtml:html>
|