123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431 |
- <?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>
- <hsctinfo>
- <patinfolist>
- <hngnm/>
- <rrgstno1/>
- <age/>
- <sex/>
- <pid/>
- <rrgstno2/>
- </patinfolist>
- </hsctinfo>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <age/>
- <sex/>
- <pid/>
- <rrgstno2/>
- </patinfolist>
- </patinfo>
- <trnptdg/>
- <tellinfolist>
- <item>
- <cnstdd/>
- <cnstflag/>
- <qestcnts/>
- <answcnts/>
- <cnstseqno/>
- <instcd/>
- <cnstnm/>
- <pid/>
- </item>
- </tellinfolist>
- <rtn>
- <count/>
- </rtn>
- <popupendflag/>
- <tellcnstcnts>
- <cnstdd/>
- <cnstflag/>
- <qestcnts/>
- <answcnts/>
- </tellcnstcnts>
- </main>
- <send>
- <data>
- <reqcnstlist>
- <pid/>
- </reqcnstlist>
- <tellinfo>
- <cnstdd/>
- <cnstflag/>
- <qestcnts/>
- <answcnts/>
- <instcd/>
- <cnstseqno/>
- <pid/>
- <flag/>
- </tellinfo>
- </data>
- </send>
- <init>
- <cnstflagnm>
- </cnstflagnm>
- </init>
- <hidden/>
- <temp>
- <bmtpatientinfo/>
- <tempcodeinfo/>
- <tempcodeinfo2/>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../js/AEA0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
- <submission id="TRABO00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/reqcnstlist/pid" replace="instance" resultref="/root/main/hsctinfo"/>
- <submission id="TRABO60501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/reqcnstlist" resultref="/root/main/patinfo"/>
- <submission id="TRABO60502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/reqcnstlist" resultref="/root/init/cmbinfo/trnptdginfo"/>
- <submission id="TRABO60401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/reqcnstlist" replace="instance" resultref="/root/main/tellinfolist"/>
- <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //zbcfGetCodeList( new Array("A0548"), new Array("/root/init/cnstflagnm")); //상담내역 콤보 공통코드
- //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
- aboGetCodeList(new Array("A0548"), new Array("/root/init/cmbinfo/cnstflagnm"));
- // ipt_cnstdd.value =getCurrentDate();
- model.setValue("/root/main/tellcnstcnts/cnstdd", getCurrentDate());
- model.setFocus("ipt_pid");
- if ( checkOpener()) {
-
- var param = opener.javascript.getParameter("opener_parameter_id");
- if(param != "") // opener parameter value가 있는 경우
- {
- //parameter value를 이용하여 프로그램 수행
- condarray = param.split("▦");
- model.setValue("/root/main/hsctinfo/patinfolist/pid", condarray[0]);
- btn_sea.dispatch("DOMActivate");
- return;
- }
- }
- // Opener에서 받은 파라미터가 없으면 Top 정보를 참조한다.
- var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
- if ( paminfo != "" ) {
- model.removeNodeset("/root/temp/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
- model.makeNode("/root/temp/paminfo");
- setCSVToNode("/root/paminfo", paminfo);
- //상단 정보를 이용하여 프로그램 수행
- var pid = model.getValue("/root/temp/paminfo" + "/list/pid");
- model.setValue("/root/main/hsctinfo/patinfolist/pid", pid);
-
- } else { //top의 정보
- var paminfo = getGlobalVariable("paminfo");
- if ( paminfo != "" ) {
- setCSVToNode("/root/paminfo", paminfo);
- model.setValue("/root/main/hsctinfo/patinfolist/pid", model.getValue("/root/paminfo/list/pid"));
- return;
- }
-
- }
-
- //세션에 저장된 PID정보를 가져옴.
- var gv_pid = getGlobalVariable("gv_pid", "A");
- if(gv_pid != "") {
- model.setValue("/root/main/hsctinfo/patinfolist/pid", gv_pid);
- btn_sea.dispatch("DOMActivate");
- }
-
-
- model.setValue("/root/send/data/reqcnstlist/pid",model.getValue( "/root/main/hsctinfo/patinfolist/pid"));
- submit("TRABO00001")
-
-
- //타부서에서는 버튼 비활성화
- btn_save.disabled = !checkAuth("X");
- btn_del.disabled = !checkAuth("X");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 전화상담
- * @ver : 2008.07.28
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc : 환자의 전화상담 내역을 조회
- * @param :
- */
- function fGetTellCnstlist(){
-
- model.resetInstanceNode("root/main/tellcnstcnts")
- model.resetInstanceNode("root/main/tellinfolist")
- model.setValue("/root/main/tellcnstcnts/cnstdd", getCurrentDate());
- model.refresh();
- if(model.getValue("/root/main/hsctinfo/patinfolist/pid") ==""){
- return;
- }
- submit("TRABO60401");
-
-
- }
-
-
-
- /* @group : 전화상담
- * @ver : 2008.07.28
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc :
- * @param : 엔터키를 눌렀을 때 환자 조회가 되도록 함.
- */
- function fKeyEvent(){
- model.makeValue("/root/main/hsctinfo/patinfolist/pid", ipt_pid.currentText);
- if(event.keyCode == "13" ){
- btn_sea.dispatch("DOMActivate");
- }
- }
-
- /* @group : 전화상담
- * @ver : 2008.07.28
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc :
- * @param : 그리드를 클릭하면 해당 내역의 전화 상담 내용을 보여준다
- */
- function fTellCnstCnts(){
-
- //선택한 row의 데이터를 복사
- model.setValue("/root/main/tellcnstcnts/qestcnts" ,model.getValue("/root/main/tellinfolist/item["+grd_tellinfolist.row+"]/qestcnts"));
- model.setValue("/root/main/tellcnstcnts/answcnts" ,model.getValue("/root/main/tellinfolist/item["+grd_tellinfolist.row+"]/answcnts"));
- model.setValue("/root/main/tellcnstcnts/cnstdd" ,model.getValue("/root/main/tellinfolist/item["+grd_tellinfolist.row+"]/cnstdd"));
- model.setValue("/root/main/tellcnstcnts/cnstflag" ,model.getValue("/root/main/tellinfolist/item["+grd_tellinfolist.row+"]/cnstflag"));
-
- //바뀐 값들을 컨트롤에 반영
- ipt_cnstdd.refresh();
- cmb_cnstflag.value = model.getValue("/root/main/tellcnstcnts/cnstflag");
- tar_qestcnts.refresh();
- tar_answcnts.refresh();
-
- }
-
-
-
- /* @group : 전화상담
- * @ver : 2008.07.28
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc :
- * @param : 전화 상담 내용을 저장 또는 수정한다.
- */
- function fSaveData(){
- model.setValue("/root/send/data/tellinfo/cnstdd" ,model.getValue("/root/main/tellcnstcnts/cnstdd") );
- model.setValue("/root/send/data/tellinfo/cnstflag" ,model.getValue("/root/main/tellcnstcnts/cnstflag") );
- model.setValue("/root/send/data/tellinfo/qestcnts" ,model.getValue("/root/main/tellcnstcnts/qestcnts") );
- model.setValue("/root/send/data/tellinfo/answcnts" ,model.getValue("/root/main/tellcnstcnts/answcnts") );
- model.setValue("/root/send/data/tellinfo/instcd" ,model.getValue("/root/main/tellinfolist/item["+grd_tellinfolist.row+"]/instcd"));
- //cnstseqno가 존재하지 않으면 데이터 삽입
- if(model.getValue("/root/main/tellinfolist/item["+grd_tellinfolist.row+"]/cnstseqno") == "") {
- model.setValue("/root/send/data/tellinfo/pid" ,model.getValue("/root/main/hsctinfo/patinfolist/pid"));
- model.setValue("/root/send/data/tellinfo/flag" ,"I");
- }else if(model.getValue("/root/main/tellinfolist/item["+grd_tellinfolist.row+"]/cnstdd") != model.getValue("/root/main/tellcnstcnts/cnstdd")){
- model.setValue("/root/send/data/tellinfo/pid" ,model.getValue("/root/main/hsctinfo/patinfolist/pid"));
- model.setValue("/root/send/data/tellinfo/flag" ,"I");
- }else{
- //존재하면 수정
- model.setValue("/root/send/data/tellinfo/flag" , "U");
- model.setValue("/root/send/data/tellinfo/pid" ,model.getValue("/root/main/tellinfolist/item["+grd_tellinfolist.row+"]/pid"));
- model.setValue("/root/send/data/tellinfo/cnstseqno" ,model.getValue("/root/main/tellinfolist/item["+grd_tellinfolist.row+"]/cnstseqno"));
- }
-
- if( messageBox("상담 내용을 " , "Q002" ) == 6 ){
- submit("TXABO60401");
- model.resetInstanceNode("/root/main/tellcnstcmts");
- fGetTellCnstlist();
- }
- }
-
-
-
- /* @group : 전화상담
- * @ver : 2008.07.28
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc :
- * @param : 전화 상담 내용을 삭제한다.
- */
- function fDelCnstCnts(){
- if( messageBox("상담 내용을" , "Q001" ) == 6 ){
- model.setValue("/root/send/data/tellinfo/flag", "D");
- model.setValue("/root/send/data/tellinfo/cnstseqno" ,model.getValue("/root/main/tellinfolist/item["+grd_tellinfolist.row+"]/cnstseqno"));
- model.setValue("/root/send/data/tellinfo/cnstdd" ,model.getValue("/root/main/tellinfolist/item["+grd_tellinfolist.row+"]/cnstdd"));
- model.setValue("/root/send/data/tellinfo/pid" ,model.getValue("/root/main/tellinfolist/item["+grd_tellinfolist.row+"]/pid"));
- model.setValue("/root/send/data/tellinfo/instcd" ,model.getValue("/root/main/tellinfolist/item["+grd_tellinfolist.row+"]/instcd"));
-
- submit("TXABO60401");
- model.resetInstanceNode("/root/main/tellcnstcmts");
- fGetTellCnstlist();
- }
- }
- ]]>
- </script>
- <submission id="TXABO60401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/tellinfo" replace="instance" resultref="/root/main/tellinfolist"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,784;2,287;" 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="cpt_19" class="tit_1" style="left:0px; top:0px; width:125px; height:13px; ">환자상담일지</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption2" class="tit_2" style="left:5px; top:240px; width:115px; height:13px; font-family:돋움; vertical-align:middle; ">전화상담이력</caption>
- <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:235px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fiilenm = "전화상담_(" + model.getValue("/root/send/data/reqcnstlist/pid") + ")" + getCurrentDate();
-
- var fileName = window.fileDialog("save", ",", false, fiilenm, "xls", "Excel Files(*.xls)|*.*|All Files (*.*)|*.xls");
- if (fileName != "")
- {
- grd_tellinfolist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <line id="lin_1" class="line_1" style="x1:0px; y1:255px; x2:1194px; y2:255px; "/>
- <datagrid id="grd_tellinfolist" nodeset="/root/main/tellinfolist/item" caption="상담일^상담내역^질문^답변^상담자" colsep="^" colwidth="100, 120, 430, 430, 80" dataheight="23" defaultrows="0" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:260px; width:1194px; height:480px; text-align:center; ">
- <col ref="cnstdd" format="yyyy-mm-dd"/>
- <col explorerbar="sortshow" disabled="true" ref="cnstflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/cnstflagnm/A0548">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="qestcnts"/>
- <col ref="answcnts"/>
- <col ref="cnstnm"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_tellinfolist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_tellinfolist.row > 0){ //그리드의 헤더는 제외
- fTellCnstCnts();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="cpt_tellcnst" class="tit_2" style="left:5px; top:55px; width:115px; height:13px; font-family:돋움; vertical-align:middle; ">전화상담</caption>
- <line id="lin_2" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <input id="ipt_cnstdd" ref="/root/main/tellcnstcnts/cnstdd" class="input_default" inputtype="date" style="left:123px; top:76px; width:120px; height:19px; "/>
- <textarea id="tar_qestcnts" ref="/root/main/tellcnstcnts/qestcnts" style="left:123px; top:100px; width:470px; height:129px; "/>
- <line id="lin_13" class="line_2" style="x1:0px; y1:97px; x2:1194px; y2:97px; "/>
- <select1 id="cmb_cnstflag" ref="/root/main/tellcnstcnts/cnstflag" class="combo_search" appearance="minimal" style="left:369px; top:76px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/cnstflagnm/A0548">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <textarea id="tar_answcnts" ref="/root/main/tellcnstcnts/answcnts" style="left:719px; top:100px; width:475px; height:129px; "/>
- <caption id="cpt_question" class="cell_1" style="left:0px; top:99px; width:120px; height:131px; vertical-align:middle; ">질문</caption>
- <caption id="cpt_cnstcnts" class="cell_1" style="left:246px; top:75px; width:120px; height:23px; vertical-align:middle; ">상담내역</caption>
- <caption id="cpt_answer" class="cell_1" style="left:596px; top:99px; width:120px; height:131px; vertical-align:middle; ">답변</caption>
- <caption id="cpt_cnstdd" class="cell_1" style="left:0px; top:75px; width:120px; height:23px; vertical-align:middle; ">상담일</caption>
- <group id="grp_sea" style="left:0px; top:35px; width:1194px; height:40px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="lin_10" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <output id="opt_birth" ref="/root/main/hsctinfo/patinfolist/rrgstno1" class="output_search" style="left:430px; top:10px; width:100px; height:19px; "/>
- <output id="opt_sex" ref="/root/main/hsctinfo/patinfolist/sex" class="output_search" style="left:566px; top:10px; width:40px; height:19px; "/>
- <button id="btn_srchpat" class="icon_search" style="left:207px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- abofGetPamPatientSearch("/root/main/hsctinfo/patinfolist", "/root/main/patinfo/patinfolist", "P");
- ]]>
- </script>
- </button>
- <output id="opt_age" ref="/root/main/hsctinfo/patinfolist/age" class="output_search" style="left:533px; top:10px; width:30px; height:19px; "/>
- <caption id="cpt_patinfo" class="search_name" style="left:238px; top:10px; width:86px; height:17px; ">환자정보 :</caption>
- <caption id="cpt_patnm" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">환자번호 :</caption>
- <input id="ipt_pid" ref="/root/main/hsctinfo/patinfolist/pid" class="input_essential" editable="true" inputtype="button" maxlength="10" style="left:104px; top:10px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( abofGetBmtPatientSearch("/root/main/patinfo/patinfolist", "/root/temp/bmtpatientinfo", "P") ) {
- model.makeNode("/root/main/hsctinfo/patinfolist");
- model.copyNode("/root/main/hsctinfo/patinfolist", "/root/main/patinfo/patinfolist");
- btn_sea.dispatch("DOMActivate");
- ipt_cnstdd.value =getCurrentDate();
- }
- ]]>
- </script>
- </input>
- <output id="opt_patnm" ref="/root/main/hsctinfo/patinfolist/hngnm" class="output_search" style="left:327px; top:10px; width:100px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/tellinfolist/item");
- model.setValue("/root/send/data/reqcnstlist/pid", model.getValue("/root/main/hsctinfo/patinfolist/pid"));
- submit("TRABO00001"); //환자 정보 조회
- fGetTellCnstlist(); //전화 상담 이력 리스트를 조회
-
- ]]>
- </script>
- </button>
- </group>
- <line id="line3" class="line_3" style="x1:0px; y1:230px; x2:1194px; y2:230px; "/>
- </group>
- <group id="grp_btn" style="left:0px; top:19px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1008px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveData();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fDelCnstCnts();
- ]]>
- </script>
- </button>
- <button id="btn_cle" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.reset();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|