123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734 |
- <?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="">
- <send>
- <pid/>
- <limflag/>
- <sex/>
- <minage/>
- <maxage/>
- <endflag/>
- <list1>
- <lpls/>
- </list1>
- </send>
- <main>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <data1>
- <pid/>
- <limflag/>
- <fromdd/>
- <todd/>
- <remfact/>
- <patnm/>
- <sex/>
- <age/>
- </data1>
- <list1>
- <lpls>
- <chk/>
- <pid/>
- <patnm/>
- <sex/>
- <age/>
- <limflag/>
- <fromdd/>
- <todd/>
- <remfact/>
- <oldfromdd/>
- </lpls>
- </list1>
- </main>
- <hidden>
- <sppmc02500>
- <cond>
- <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </cond>
- </sppmc02500>
- <appflag/>
- <data1>
- <patinfo>
- <pid/>
- <patnm/>
- <sex/>
- <age/>
- </patinfo>
- </data1>
- <approw/>
- <data2>
- <patinfo>
- <pid/>
- <fromdd/>
- </patinfo>
- </data2>
- </hidden>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
-
- // 초기화
- function fInitialize()
- {
- // 조회 정보 초기화
- model.setValue("/root/send/pid", "");
- model.setValue("/root/send/limflag", "-");
- model.setValue("/root/send/sex", "-");
- model.setValue("/root/send/minage", "");
- model.setValue("/root/send/maxage", "");
- model.setValue("/root/send/endflag", "2");
-
- // 간질환 환자정보 초기화
- fInitPatInfo();
-
- // 입력, 수정, 삭제 flag
- model.setValue("/root/hidden/appflag", "I");
- model.setValue("/root/hidden/approw", 0);
- model.removenode("/root/main/list1");
-
- model.refresh();
- }
-
- // 간질환 환자정보 초기화
- function fInitPatInfo() {
- model.setValue("/root/main/data1/pid", "");
- model.setValue("/root/main/data1/limflag", "A");
- model.setValue("/root/main/data1/fromdd", getCurrentDate());
- model.setValue("/root/main/data1/todd", "99991231");
- model.setValue("/root/main/data1/remfact", "");
- model.setValue("/root/main/data1/patnm", "");
- model.setValue("/root/main/data1/sex", "");
- model.setValue("/root/main/data1/age", "");
-
- ipt_pid.disabled = false;
- //ipt_fromdd.disabled = false;
- }
-
- // 간질환 환자리스트 조회
- function fGetLimPreLivPatList() {
- fInitPatInfo();
- model.resetInstanceNode("/root/main/list1");
- submit("TRPIB02001");
- model.refresh();
- }
-
- // 간질환 환자정보 입력
- function fInsertLimPreLivPat() {
-
- // 데이터 검사(환자번호, 제한구분, 시작일자, 종료일자)
- var pid = model.getValue("/root/main/data1/pid");
- var limflag = model.getValue("/root/main/data1/limflag");
- var fromdd = model.getValue("/root/main/data1/fromdd");
- var todd = model.getValue("/root/main/data1/todd");
- var remfact = model.getValue("/root/main/data1/remfact");
- var patnm = model.getValue("/root/main/data1/patnm");
- var sex = model.getValue("/root/main/data1/sex");
- var age = model.getValue("/root/main/data1/age");
-
- if (pid == "") {
- messageBox("환자번호를","C001");
- return false;
- }
- if (limflag == "-") {
- messageBox("제한구분을","C002");
- return false;
- }
- if (fromdd > todd) {
- messageBox("시작일자가 종료일자 보다 이후", "E008");
- return false;
- }
-
- var appflag = model.getValue("/root/hidden/appflag");
- var approw = model.getValue("/root/hidden/approw");
- // 1. 신규 입력
- if (appflag == "I") {
-
- // 올바른 환자번호인지 체크
- if (fGetPatInfo()) {
- var patnm = model.getValue("/root/main/data1/patnm");
- var sex = model.getValue("/root/main/data1/sex");
- var age = model.getValue("/root/main/data1/age");
- // 그리드에 데이터 넣기
- grd_lplslist.AddRow();
- var add_row = grd_lplslist.row;
- model.setValue("/root/main/list1/lpls[" + add_row + "]/pid", pid);
- model.setValue("/root/main/list1/lpls[" + add_row + "]/limflag", limflag);
- model.setValue("/root/main/list1/lpls[" + add_row + "]/fromdd", fromdd);
- model.setValue("/root/main/list1/lpls[" + add_row + "]/todd", todd);
- model.setValue("/root/main/list1/lpls[" + add_row + "]/remfact", remfact);
- model.setValue("/root/main/list1/lpls[" + add_row + "]/patnm", patnm);
- model.setValue("/root/main/list1/lpls[" + add_row + "]/sex", sex);
- model.setValue("/root/main/list1/lpls[" + add_row + "]/age", age);
- //model.setValue("/root/main/list1/lpls[" + add_row + "]/oldfromdd", fromdd);
-
- // 그리드 정렬
- grd_lplslist.select(grd_lplslist.row, grd_lplslist.colRef("pid"), grd_lplslist.row, grd_lplslist.colRef("limflag")) = true;
- }
- // 2. 수정
- } else if (appflag == "U") {
-
- // 수정한 값 세팅
- grd_lplslist.valueMatrix(approw, grd_lplslist.colRef("chk")) = "false";
- grd_lplslist.valueMatrix(approw, grd_lplslist.colRef("pid")) = pid;
- grd_lplslist.valueMatrix(approw, grd_lplslist.colRef("patnm")) = patnm;
- grd_lplslist.valueMatrix(approw, grd_lplslist.colRef("sex")) = sex;
- grd_lplslist.valueMatrix(approw, grd_lplslist.colRef("age")) = age;
- grd_lplslist.valueMatrix(approw, grd_lplslist.colRef("limflag")) = limflag;
- grd_lplslist.valueMatrix(approw, grd_lplslist.colRef("fromdd")) = fromdd;
- grd_lplslist.valueMatrix(approw, grd_lplslist.colRef("todd")) = todd;
- grd_lplslist.valueMatrix(approw, grd_lplslist.colRef("remfact")) = remfact;
-
- // 그리드 상태 변경
- grd_lplslist.rowstatus(approw) = "2";
-
- // 입력 수정 상태 초기화
- model.setValue("/root/hidden/appflag", "I");
- model.setValue("/root/hidden/approw", 0);
-
- fInitPatInfo();
- model.refresh();
-
- }
- }
-
- // 간질환 환자정보 삭제
- function fDeleteLimPreLivPat() {
- // 멀티라인 삭제
- var rows = grd_lplslist.selectedRows;
- for (var i = 0; i < rows; i++) {
- var sel = grd_lplslist.selectedRow(i);
- grd_lplslist.rowstatus(sel) = 4;
- }
- }
-
- // 환자번호를 입력하기 전에 올바른 환자번호인지 검사한다.
- function fGetPatInfo() {
- // 데이터 검증
- var pid = model.getValue("/root/main/data1/pid");
-
- submit("TRPIB02002");
- if (pid == model.getValue("/root/hidden/data1/patinfo/pid")) {
- model.setValue("/root/main/data1/patnm", model.getValue("/root/hidden/data1/patinfo/patnm"));
- model.setValue("/root/main/data1/sex", model.getValue("/root/hidden/data1/patinfo/sex"));
- model.setValue("/root/main/data1/age", model.getValue("/root/hidden/data1/patinfo/age"));
- model.resetInstanceNode("/root/hidden/data1/patinfo");
- } else {
- // 올바르지 않은 환자번호 입니다.
- messageBox("올바르지 않은 환자번호", "E008");
- model.resetInstanceNode("/root/hidden/data1/patinfo");
- return false;
- }
- return true;
- }
-
- // 입력전에 기등록된 간질환 환자정보와 중복되는지 체크한다. (저장시에 일어나는 작업)
- function fCheckDuplicate() {
-
- // 1. 그리드 내에서 검사
- var row = grd_lplslist.rows;
- for(var i = 1; i < row; i++) {
-
- // 삭제된 row는 중복대상에서 제외
- if (grd_lplslist.rowstatus(i) != "4") {
- var newpid = model.getValue("/root/main/list1/lpls["+i+"]/pid");
- var newfromdd = model.getValue("/root/main/list1/lpls["+i+"]/fromdd");
-
- for(var j = 1; j < row; j++) {
- var oldpid = model.getValue("/root/main/list1/lpls["+j+"]/pid");
- var oldfromdd = model.getValue("/root/main/list1/lpls["+j+"]/fromdd");
- if (i != j && grd_lplslist.rowstatus(j) != "4" && newpid == oldpid && newfromdd == oldfromdd) {
- messageBox(i+"행과 "+j+"행은 중복된 간질환 환자정보", "E008");
- return false;
- }
- }
- }
- }
-
- // 2. DB에서 검사
- for(var k = 1; k < row; k++) {
- //if (grd_lplslist.rowstatus(k) == "1" || grd_lplslist.rowstatus(k) == "2") { // 변경안된 row나 삭제된 row는 필요없음
- if (grd_lplslist.rowstatus(k) == "1") { // 변경안된 row나 삭제된 row는 필요없음
- var pid = model.getValue("/root/main/list1/lpls["+k+"]/pid");
- var fromdd = model.getValue("/root/main/list1/lpls["+k+"]/fromdd");
-
- model.setValue("/root/main/data1/pid", pid);
- model.setValue("/root/main/data1/fromdd", fromdd);
- submit("TRPIB02003");
- if (pid == model.getValue("/root/hidden/data2/patinfo/pid")) {
- messageBox("이미 등록된 간질환 환자정보", "E008");
- return false;
- }
- }
- }
-
- return true;
- }
-
- // 입력전에 기등록된 간질환 환자정보와 중복되는지 체크한다. (저장시에 일어나는 작업)
- // function fCheckDuplicate(newpid, newfromdd) {
- //
- // // 1. 그리드 내에서 검사
- // var row = grd_lplslist.rows;
- // for(i = 1; i < row; i++) {
- // // 삭제된 row는 중복대상에서 제외
- // if (grd_lplslist.rowstatus(i) != "4") {
- // var oldpid = model.getValue("/root/main/list1/lpls["+i+"]/pid");
- // var oldfromdd = model.getValue("/root/main/list1/lpls["+i+"]/fromdd");
- //
- // if (newpid == oldpid && newfromdd == oldfromdd) {
- // messageBox("이미 등록된 간질환 환자정보", "E008");
- // return false;
- // }
- // }
- // }
- //
- // // 2. DB에서 검사
- // submit("TRPIB02003");
- // if (newpid == model.getValue("/root/hidden/data2/patinfo/pid")) {
- // messageBox("이미 등록된 간질환 환자정보", "E008");
- // return false;
- // }
- //
- // return true;
- // }
-
- // 저장
- function fSaveLimLivPatList() {
-
- // 1. 중복체크
- if (!fCheckDuplicate()) {
- fInitPatInfo();
- return;
- }
-
- // 2. 저장
- var rtn = window.alert("저장하시겠습니까?", "선택", "4");
- if (rtn != 6) return;
-
- model.removeNodeset("/root/send/list1");
- var updtdata = getGridUpdateData(grd_lplslist); // (tfHelper.js) 그리드 업데이트 데이터 반환, 업데이트 정보가 없을경우 "" 반환
-
- if (updtdata) {
- model.makeValue("/root/send/list1/lpls", updtdata);
-
- if(submit("TXPIB02001")) {
- fInitPatInfo();
- fGetLimPreLivPatList(); // 다시 조회
- messageBox("정상적으로 저장되었습니다.", "I999");
- } else {
- messageBox("예기치 않은 오류", "E008");
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <submission id="TRPIB02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list1"/>
- <submission id="TRPIB02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/data1" resultref="/root/hidden/data1"/>
- <submission id="TXPIB02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list1"/>
- <submission id="TRPIB02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/data1" resultref="/root/hidden/data2"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,738;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:194px; height:14px; ">평생제한간질환 환자정보 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group5" scroll="auto" style="left:0px; top:0px; width:1195px; height:744px; ">
- <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption21" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">환자번호 :</caption>
- <line id="line18" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-left-style:solid; "/>
- <caption id="caption11" class="search_name" style="left:250px; top:10px; width:86px; height:17px; ">제한구분 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetLimPreLivPatList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_srclimflag" ref="/root/send/limflag" class="combo_search" navindex="2" appearance="minimal" style="left:339px; top:8px; width:86px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>투여량</label>
- <value>A</value>
- </item>
- <item>
- <label>일수</label>
- <value>B</value>
- </item>
- <item>
- <label>간이식</label>
- <value>C</value>
- </item>
- <item>
- <label>간염</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_srcpid" ref="/root/send/pid" class="input_search" navindex="1" maxlength="10" format="####" style="left:105px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- // setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- // var pid = model.getValue("/root/send/pid");
- //
- // if (pid) {
- // // 1. pid가 유일한지 검사하여 팝업없이 조회처리 한다.
- //
- // // 2. 입력한 pid가 등록되어 있지 않은 경우, 환자조회 팝업을 띄운다.
- // model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- // model.setValue("/root/hidden/sppmc02500/cond/pid", pid);
- // modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
- // var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- // if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
- // model.removeNodeset("/root/main/patinfo/patinfolist");
- // model.makeNode("/root/main/patinfo/patinfolist");
- // model.setValue("/root/send/pid", srch_pid);
- // model.refresh();
- // }
- // }
- /*
- if (ipt_pid.currentText.length > 0) {
- model.setValue("/root/main/item1/otpt/pid", ipt_pid.currentText);
- //[2007.03.27] 직접 조회해 오는 방법에서 대상자리스트를 보여주는 것으로 변경함
- fGetOutDayJudgTrgtMan_v1();
- }
- */
- inputEnterKey("btn_srcpid", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_sex" ref="/root/send/sex" class="combo_search" navindex="3" appearance="minimal" style="left:510px; top:8px; width:86px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:446px; top:10px; width:64px; height:17px; ">성별 :</caption>
- <caption id="caption3" class="search_name" style="left:615px; top:10px; width:64px; height:17px; ">나이 :</caption>
- <input id="ipt_minage" ref="/root/send/minage" class="input_search" navindex="4" maxlength="3" format="####" style="left:680px; top:8px; width:40px; height:19px; "/>
- <input id="ipt_maxage" ref="/root/send/maxage" class="input_search" navindex="5" maxlength="3" format="####" style="left:755px; top:8px; width:40px; height:19px; "/>
- <caption id="caption4" style="left:723px; top:10px; width:35px; height:20px; ">이상</caption>
- <caption id="caption5" style="left:798px; top:10px; width:35px; height:20px; ">이하</caption>
- </group>
- <line id="line17" class="line_2" style="x1:0px; y1:104px; x2:1194px; y2:104px; "/>
- <caption id="caption22" class="tit_2" style="left:5px; top:60px; width:165px; height:13px; ">평생제한간질환 환자정보</caption>
- <line id="line19" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
- <caption id="caption23" class="cell_1" style="left:0px; top:80px; width:145px; height:23px; text-align:center; ">환자번호</caption>
- <caption id="caption34" class="cell_1" style="left:300px; top:80px; width:145px; height:23px; text-align:center; ">제한구분</caption>
- <caption id="caption37" class="cell_1" style="left:0px; top:105px; width:145px; height:23px; text-align:center; ">참고사항</caption>
- <caption id="caption42" class="cell_1" style="left:926px; top:80px; width:145px; height:23px; text-align:center; ">종료일자</caption>
- <caption id="caption48" class="tit_2" style="left:5px; top:141px; width:188px; height:13px; ">평생제한간질환 환자 리스트</caption>
- <line id="line20" class="line_1" style="x1:0px; y1:156px; x2:1194px; y2:156px; "/>
- <datagrid id="grd_lplslist" nodeset="/root/main/list1/lpls" caption="^환자번호^환자명^성별^나이^제한구분^시작일자^종료일자^참고사항^oldfromdd^특례명칭" colsep="^" colwidth="0, 67, 48, 40, 40, 56, 100, 100, 685, 0" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:161px; width:1194px; height:544px; ">
- <col ref="chk" type="checkbox" default="false"/>
- <col ref="pid"/>
- <col ref="patnm" style="text-align:center; "/>
- <col disabled="true" ref="sex" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col ref="age" style="text-align:center; "/>
- <col disabled="true" ref="limflag" type="combo">
- <choices>
- <item>
- <label>투여량</label>
- <value>A</value>
- </item>
- <item>
- <label>일수</label>
- <value>B</value>
- </item>
- <item>
- <label>간이식</label>
- <value>C</value>
- </item>
- <item>
- <label>간염</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="fromdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="remfact"/>
- <col ref="oldfromdd"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_lplslist.isCell(event.target)) {
- // 수정하기 위해 그리드의 한 row 를 클릭한다.
- var cur_row = grd_lplslist.row;
- var status = grd_lplslist.rowstatus(cur_row);
- if (status == "0" || status == "2") {
- model.setValue("/root/main/data1/pid", grd_lplslist.valueMatrix(cur_row, grd_lplslist.colRef("pid")));
- model.setValue("/root/main/data1/patnm", grd_lplslist.valueMatrix(cur_row, grd_lplslist.colRef("patnm")));
- model.setValue("/root/main/data1/sex", grd_lplslist.valueMatrix(cur_row, grd_lplslist.colRef("sex")));
- model.setValue("/root/main/data1/age", grd_lplslist.valueMatrix(cur_row, grd_lplslist.colRef("age")));
- model.setValue("/root/main/data1/limflag", grd_lplslist.valueMatrix(cur_row, grd_lplslist.colRef("limflag")));
- model.setValue("/root/main/data1/fromdd", grd_lplslist.valueMatrix(cur_row, grd_lplslist.colRef("fromdd")));
- model.setValue("/root/main/data1/todd", grd_lplslist.valueMatrix(cur_row, grd_lplslist.colRef("todd")));
- model.setValue("/root/main/data1/remfact", grd_lplslist.valueMatrix(cur_row, grd_lplslist.colRef("remfact")));
- model.setValue("/root/hidden/appflag", "U");
- model.setValue("/root/hidden/approw", cur_row);
-
- // 환자번호는 변경 불가
- ipt_pid.disabled = true;
- //ipt_fromdd.disabled = true;
-
- model.refresh();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // // 시작일을 변경했을 때, 해당 환자의 수정된 시작일에 이미 평생제한 간질환 정보가 있는지 체크해서 있으면 수정할 수 없도록 한다.
- // var col = grd_lplslist.col;
- // if (col == grd_lplslist.colRef("fromdd")) { // 시작일 필드값이 변경일어나면
- // // 중복체크 후 수정상태로 바꿈
- // var newpid = grd_lplslist.valueMatrix(grd_lplslist.row,grd_lplslist.colRef("pid"));
- // var newfromdd = grd_lplslist.valueMatrix(grd_lplslist.row,grd_lplslist.colRef("fromdd"));
- // if (!fCheckDuplicate(newpid, newfromdd)) {
- // // 중복이므로 이전상태로 되돌림
- // grd_lplslist.rowstatus(grd_lplslist
- // }
- // }
- ]]>
- </script>
- </datagrid>
- <line id="line24" class="line_3" style="x1:0px; y1:128px; x2:1194px; y2:128px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="11" style="left:1067px; top:715px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isChanged = false;
- for (var i = 1; i < grd_lplslist.rows; i++) {
- var status = grd_lplslist.rowstatus(i);
- if (status != "0") {
- isChanged = true; // 변경사항이 있음
- i = grd_lplslist.rows;
- }
- }
- if (isChanged) {
- fSaveLimLivPatList();
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" navindex="12" style="left:1127px; top:715px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="cell_1" style="left:655px; top:80px; width:145px; height:23px; text-align:center; ">시작일자</caption>
- <button id="btn_srcpid" class="icon_search" navindex="10" style="left:212px; top:21px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/send/pid");
- if (pid) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", pid);
- } else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", "");
-
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
- model.removeNodeset("/root/main/patinfo/patinfolist");
- model.makeNode("/root/main/patinfo/patinfolist");
- model.setValue("/root/send/pid", srch_pid);
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_srcpid2" class="icon_search" navindex="5" style="left:279px; top:82px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/data1/pid");
- if (pid) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", pid);
- } else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", "");
-
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var patnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- var sex = model.getValue("/root/main/patinfo/patinfolist/sex");
- var age = model.getValue("/root/main/patinfo/patinfolist/age");
- if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
- model.removeNodeset("/root/main/patinfo/patinfolist");
- model.makeNode("/root/main/patinfo/patinfolist");
- model.setValue("/root/main/data1/pid", srch_pid);
- model.setValue("/root/main/data1/patnm", patnm);
- model.setValue("/root/main/data1/sex", sex);
- model.setValue("/root/main/data1/age", age);
-
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_modify" class="btn2_letter2" visibility="hidden" style="left:1100px; top:53px; width:42px; height:19px; ">
- <caption>수정</caption>
- </button>
- <button id="btn_delete" class="btn2_letter2" visibility="visible" style="left:1145px; top:134px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDeleteLimPreLivPat();
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter2" visibility="hidden" style="left:1055px; top:53px; width:42px; height:19px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsertLimPreLivPat();
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/main/data1/fromdd" class="input_essential" navindex="7" inputtype="date" style="left:802px; top:81px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- //setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- fInsertLimPreLivPat();
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_limflag" ref="/root/main/data1/limflag" class="combo_essential" navindex="6" appearance="minimal" style="left:447px; top:81px; width:203px; height:19px; ">
- <choices>
- <item>
- <label>투여량</label>
- <value>A</value>
- </item>
- <item>
- <label>일수</label>
- <value>B</value>
- </item>
- <item>
- <label>간이식</label>
- <value>C</value>
- </item>
- <item>
- <label>간염</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- //setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- fInsertLimPreLivPat();
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_pid" ref="/root/main/data1/pid" class="input_essential" navindex="4" maxlength="10" format="####" style="left:147px; top:81px; width:126px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- fInsertLimPreLivPat();
- //inputEnterKey("btn_srcpid2", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_todd" ref="/root/main/data1/todd" class="input_essential" navindex="8" inputtype="date" style="left:1074px; top:81px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- fInsertLimPreLivPat();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_remfact" ref="/root/main/data1/remfact" class="input_essential" navindex="9" style="left:147px; top:107px; width:1047px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- fInsertLimPreLivPat();
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_endflag" ref="/root/send/endflag" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:929px; top:19px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>포함</label>
- <value>1</value>
- </item>
- <item>
- <label>미포함</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption13" class="search_name" style="left:840px; top:20px; width:90px; height:17px; ">종료여부 :</caption>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|