123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPAYA03500_환자관리내용조회.xrw
- * 설 명 : 환자관리내용조회
- * 작 성 자 : 김다영
- * 작 성 일 : 2007.12.03
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <patinfomngtlist>
- <patinfomngtlistinfo>
- <chk/>
- <actdd/>
- <actflag/>
- <hngnm/>
- <roomcd/>
- <conslrnm/>
- <acttims/>
- <acttm/>
- <asescarereccnst/>
- <rem/>
- <seqno/>
- <status/>
- <conslrid/>
- <pid/>
- </patinfomngtlistinfo>
- <chk_add/>
- </patinfomngtlist>
- </main>
- <send>
- <reqdata>
- <actfromdd/>
- <acttodd/>
- <actflag/>
- <hngnm/>
- <status/>
- <conslrid/>
- </reqdata>
- <savedata/>
- </send>
- <init>
- <comcodelist>
- <patinfomngt_cmblist>
- </patinfomngt_cmblist>
- <conslrlist>
- <conslrlistinfo>
- <conslrid/>
- <conslrnm/>
- </conslrlistinfo>
- </conslrlist>
- </comcodelist>
- </init>
- <hidden/>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRAYA03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patinfomngtlist"/>
- <submission id="TXAYA03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRAYA00101" method="post" ref="/root/send/reqdata" resultref="/root/init/comcodelist/conslrlist"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //활동년도 저장 체크박스 설정 ...
- grd_patinfomngt.fixedcellcheckbox(0, 1) = true;
- fInit();
- fGetActFlagList();
- ]]>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- /**========================================================================================================================================
- * 화면 오픈시
- =========================================================================================================================================*/
- function fInit() {
- //그리드 초기화
- model.removeNodeset("/root/main/patinfomngtlist/patinfomngtlistinfo");
-
- model.makeNode("/root/init/comcodelist/patinfomngt_cmblist");
- //cmb_actflag.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/patinfomngt_cmblist";
-
-
- //활동일자를 현재 날짜기준으로 세팅
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/reqdata/actfromdd", CurrentDate);
- model.setValue("/root/send/reqdata/acttodd", CurrentDate);
-
- //원목자 조회
- model.makeValue("/root/send/reqdata/joblncd", "A");
- submit("TRAYA00101", false);
- addComboItem("cmb_conslrid", "전체", "", "above");
-
- model.removeNodeset("/root/main/patinfomngtlist/patinfomngtlistinfo");
- model.refresh();
- }
-
- /**========================================================================================================================================
- * 구분 콤보리스트
- =========================================================================================================================================*/
- function fGetActFlagList(){
- zbcfGetKindCodeList(
- new Array("A0012"), //업무규칙
- new Array("A0457"), //코드군
- new Array("/root/init/comcodelist/patinfomngt_cmblist"), //노드
- true, //minimum : true TRZBC00105
- new Array("cdid"), //sorting 항목
- new Array("asc")
- );
- addComboItem("cmb_actflag", "전체", "", "above");
- cmb_actflag.select(0);
- model.refresh();
- }
- /**========================================================================================================================================
- * 조회
- =========================================================================================================================================*/
- function fPatMngtList() {
- //submit("TRAYA03501");
-
- if (submit("TRAYA03501") == true)
- {
- //initGridStyle(grd_patinfomngt);
- grd_patinfomngt.fixedcellischeck(0, 1) = false;
- //grd_patinfomngt.fixedcellcheckbox(0,0) = false;
- //node 복사
- model.removeNodeset("/root/temp/patinfomngtlist");
- model.makeNode("/root/temp/patinfomngtlist");
- model.copyNode("/root/temp/patinfomngtlist","/root/main/patinfomngtlist");
- }
- else
- {
- messageBox("조회를", "E009");
- }
- model.refresh();
-
- }
- /**========================================================================================================================================
- * 저장및 수정,삭제
- =========================================================================================================================================*/
- function fSave(status)
- {
- var checkyn = "N";
- for (var i=0; i<grd_patinfomngt.rows; i++)
- {
- var chk = model.getValue("/root/main/patinfomngtlist/patinfomngtlistinfo[" + i + "]/chk");
- if (chk == "Y")
- {
- model.setValue("/root/main/patinfomngtlist/patinfomngtlistinfo[" + i + "]/status",status);
- checkyn = "Y";
- }
- }
- if (checkyn == "N")
- {
- messageBox("선택한 대상자가", "I004");
- return;
- }
- if (status == "u")
- {
- if (instance1.selectSingleNode("/root/main/patinfomngtlist").xml == instance1.selectSingleNode("/root/temp/patinfomngtlist").xml) {
- messageBox("변경된 데이터가 ","I004");
- return;
- }
-
- }
-
-
-
- var checkyn = "N";
- for (var i=0; i<grd_patinfomngt.rows; i++)
- {
- var chk = model.getValue("/root/main/patinfomngtlist/patinfomngtlistinfo[" + i + "]/chk");
- if (chk == "Y")
- {
- model.setValue("/root/main/patinfomngtlist/patinfomngtlistinfo[" + i + "]/status",status);
- checkyn = "Y";
- }
- }
-
- if (checkyn == "N")
- {
- messageBox("선택한 대상자가", "I004");
- return;
- }
-
- if (status == "d")
- {
- var btn = messageBox("선택한 대상자를", "Q001");
- for (var i=0; i<grd_patinfomngt.rows; i++)
- {
- var chk = model.getValue("/root/main/patinfomngtlist/patinfomngtlistinfo[" + i + "]/chk");
- if (chk == "Y")
- {
- model.setValue("/root/main/patinfomngtlist/patinfomngtlistinfo[" + i + "]/status", "d");
- checkyn = "Y";
- }
- }
-
- if (btn == '7')
- {
- return;
- }
- }
-
- model.resetInstanceNode("/root/send/savedata");
- model.setValue("/root/send/savedata", grd_patinfomngt.getUpdateDataAll("u"));
-
- //alert(grd_patinfomngt.getUpdateDataAll("u"));
-
- if (submit("TXAYA03501", false) == true)
- {
- grd_patinfomngt.clearStatus();
- fPatMngtList();
- messageBox("저장이 ","I002");
- }
- else
- {
-
- }
- /**========================================================================================================================================
- * 구분에서 봉성체 선택시 영적돌봄기록상담은 ReadOnly
- =========================================================================================================================================*/
- function fSetInfo()
- {
- var idx = grd_patinfomngt.row;
- //var asescarereccnst = model.getValue("/root/main/patinfomngtlist/patinfomngtlistinfo[" + idx + "]/asescarereccnst");
-
- if (cmb_actflag.value == "3")
- {
- grd_patinfomngt.isReadOnly(idx, 9) = true;
- }
- else
- {
- grd_patinfomngt.isReadOnly(idx,9) = false;
- }
- }
- }
- /**========================================================================================================================================
- * 구분에 따른 그리드 수정권한설정
- =========================================================================================================================================*/
- function fPatInfoEnterCell()
- {
- var idx = grd_patinfomngt.row;
- var idxEnterCell = model.getValue("/root/main/patinfomngtlist/patinfomngtlistinfo[" + idx + "]/actflag");
- /*
- 1 : 방문 - 횟수, 소요시간(분), 비고 수정가능
- 2 : 상담 - 횟수, 소요시간(분), 영적돌봄기록상담, 비고 수정가능
- 3 : 봉성체 -소요시간(분), 비고 수정가능
- */
- if ( idxEnterCell == '1') { //방문
- //grd_list.isReadOnly(grd_list.row, grd_list.colRef("rrgstno1")) = false;
- grd_patinfomngt.isReadOnly(idx, grd_patinfomngt.colRef("acttims")) = false;
- grd_patinfomngt.isReadOnly(idx, grd_patinfomngt.colRef("acttm")) = false;
- grd_patinfomngt.isReadOnly(idx, grd_patinfomngt.colRef("asescarereccnst")) = true;
- grd_patinfomngt.isReadOnly(idx, grd_patinfomngt.colRef("rem")) = false;
-
- if (grd_patinfomngt.colType(grd_patinfomngt.col) == "input")
- grd_patinfomngt.editCell();
- model.refresh();
-
- }else if (idxEnterCell == "3") { //봉성체
- grd_patinfomngt.isReadOnly(idx, grd_patinfomngt.colRef("acttims")) = true;
- grd_patinfomngt.isReadOnly(idx, grd_patinfomngt.colRef("acttm")) = false;
- grd_patinfomngt.isReadOnly(idx, grd_patinfomngt.colRef("asescarereccnst")) = true;
- grd_patinfomngt.isReadOnly(idx, grd_patinfomngt.colRef("rem")) = false;
-
- if (grd_patinfomngt.colType(grd_patinfomngt.col) == "input")
- grd_patinfomngt.editCell();
- model.refresh();
-
- } else if (idxEnterCell == "2"){ // 상담
- grd_patinfomngt.isReadOnly(idx, grd_patinfomngt.colRef("acttims")) = false;
- grd_patinfomngt.isReadOnly(idx, grd_patinfomngt.colRef("acttm")) = false;
- grd_patinfomngt.isReadOnly(idx, grd_patinfomngt.colRef("asescarereccnst")) = false;
- grd_patinfomngt.isReadOnly(idx, grd_patinfomngt.colRef("rem")) = false;
-
- if (grd_patinfomngt.colType(grd_patinfomngt.col) == "input")
- grd_patinfomngt.editCell();
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="846" pageheight="570" guideline="1,823;2,543;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:823px; height:515px; ">
- <group id="group2" style="left:0px; top:0px; width:823px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:823px; height:60px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:10px; width:99px; height:17px; ">조회일자 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:740px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPatMngtList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_actflag" ref="/root/send/reqdata/actflag" class="combo_search" appearance="minimal" style="left:490px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/patinfomngt_cmblist/A0012A0457">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_actfromdd" ref="/root/send/reqdata/actfromdd" class="input_default" navindex="13" inputtype="date" style="left:115px; top:10px; width:90px; height:19px; "/>
- <input id="ipt_acttodd" ref="/root/send/reqdata/acttodd" class="input_default" navindex="13" inputtype="date" style="left:235px; top:10px; width:90px; height:19px; "/>
- <caption id="caption9" class="search_no_b" style="left:215px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption3" class="search_name" style="left:395px; top:10px; width:86px; height:17px; ">구 분 :</caption>
- <line id="line13" class="line_4" style="x1:719px; y1:10px; x2:719px; y2:53px; "/>
- <caption id="caption4" class="search_name" style="left:395px; top:35px; width:86px; height:17px; ">환 자 명 :</caption>
- <input id="input12" ref="/root/send/reqdata/hngnm" imemode="hangul" style="left:490px; top:35px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_conslrid" ref="/root/send/reqdata/conslrid" class="combo_search" appearance="minimal" style="left:114px; top:35px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/conslrlist/conslrlistinfo">
- <label ref="conslrnm"/>
- <value ref="conslrid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:14px; top:35px; width:99px; height:17px; ">원 목 자 :</caption>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:75px; width:126px; height:13px; ">환자관리내용 조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:823px; y2:90px; "/>
- <datagrid id="grd_patinfomngt" nodeset="/root/main/patinfomngtlist/patinfomngtlistinfo" autoresize="true" caption="^활동일자^활동구분^환자성명^병실^원목자^횟수^소요시간(분)^영적돌봄기록상담^비고^status^seqno^consirid" colsep="^" colwidth="36, 78, 65, 66, 61, 69, 34, 91, 116, 165, 2, 4, 1" dataheight="23" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:95px; width:823px; height:415px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="actdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="actflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/patinfomngt_cmblist/A0012A0457">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="conslrnm" style="text-align:center; "/>
- <col ref="acttims" type="input" format="#####" maxlength="5" style="text-align:center; "/>
- <col ref="acttm" type="input" format="#####" maxlength="5" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="asescarereccnst" type="checkbox"/>
- <col ref="rem" type="input" maxlength="100"/>
- <col ref="status" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="conslrid" visibility="hidden"/>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- fPatInfoEnterCell();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_patinfomngt.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_save" class="btn5_letter2" style="left:775px; top:70px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var status = "d";
- fSave(status);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn5_letter2" style="left:730px; top:70px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var status = "u";
- fSave(status);
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:516px; width:823px; height:27px; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:761px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:823px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|