123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478 |
- <?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>24시간 전화상담</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <fromdd/>
- <todd/>
- <patnm/>
- </cond>
- <cnstinfo>
- </cnstinfo>
- <cnst>
- <cnstdd/>
- <patnm/>
- <sex/>
- <age/>
- <relation/>
- <content/>
- <content2/>
- <contentid/>
- <rmk/>
- <chkall/>
- <seqno/>
- <diagcd1/>
- <diagcd2/>
- </cnst>
- </main>
- <send>
- <req/>
- <save/>
- </send>
- <init>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var pCode = "'H01'"; // 조회할 CdGrupID 코드정보
- var dt = getCurrentDate();
-
- fGetNursHardCdInfo(pCode, dt);
-
- model.makeValue("/root/send/refflag", "1");//상위 진단 조회
- submit("TRMNH02905", false);
- model.setValue(ipt_fromdd.attribute("ref"), dt );
- model.setValue(ipt_todd.attribute("ref"), dt);
-
- model.refresh();
-
- fSearch() ;
-
- ]]>
- </script>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmblist"/>
- <submission id="TRMNH02905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/diagsuplist"/>
- <submission id="TRMNH02906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/diaglowlist"/>
- <submission id="TRMNH07000" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/req" replace="instance" resultref="/root/main/cnstinfo"/>
- <submission id="TXMNH07000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/saveinfo" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fSearch() {
-
- if(model.getValue("/root/main/cond/fromdd") == "" || model.getValue("/root/main/cond/todd") == ""){
- messageBox("조회기간을 입력해주십시오.", "I");
- return;
- }
- model.makeNode("/root/send/req");
- model.copyNode("/root/send/req", "/root/main/cond");
- submit("TRMNH07000");
- fClear();
-
- }
-
- function fCheck(chk){
- if(isSearchString(chk, "9")) {
- ipt_content2.disabled = false;
- }else{
- ipt_content2.value = "";
- ipt_content2.disabled = true;
- }
- }
-
- function fClear(){
-
- model.setValue("/root/main/cnst/seqno","");
- model.setValue("/root/main/cnst/cnstdd","");
- model.setValue("/root/main/cnst/patnm","");
- model.setValue("/root/main/cnst/sex","");
- model.setValue("/root/main/cnst/age","");
- model.setValue("/root/main/cnst/relation","");
- model.setValue("/root/main/cnst/diagcd1","");
- model.setValue("/root/main/cnst/diagcd2","");
- model.setValue("/root/main/cnst/content","");
- model.setValue("/root/main/cnst/contentid","");
- model.setValue("/root/main/cnst/content2","");
- model.setValue("/root/main/cnst/rmk","");
- model.setValue("/root/main/cnst/chkall","");
-
- ipt_content2.disabled = true;
-
- model.removeNodeset("/root/init/diaglowlist");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="font-family:굴림, Arial; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" style="left:0px; top:0px; width:1195px; height:776px; font-family:굴림; vertical-align:middle; ">
- <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; font-family:굴림; vertical-align:middle; ">24시간 전화상담</caption>
- <group id="grp_sea" style="left:0px; top:20px; width:1195px; height:40px; font-family:굴림; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:40px; font-family:굴림; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:10px; width:91px; height:17px; font-family:굴림; ">조회기간 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:110px; top:10px; width:95px; height:19px; font-family:굴림; "/>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:220px; top:10px; width:95px; height:19px; font-family:굴림; "/>
- <caption id="caption4" style="left:203px; top:14px; width:20px; height:15px; font-family:굴림; text-align:center; ">~</caption>
- <line id="line13" class="line_4" style="x1:1046px; y1:9px; x2:1046px; y2:31px; "/>
- <button id="button3" class="btn1_letter2" navindex="7" style="left:1060px; top:10px; width:56px; height:22px; font-family:굴림; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:360px; top:10px; width:75px; height:17px; font-family:굴림; ">환자명 :</caption>
- <input id="ipt_patnm" ref="/root/main/cond/patnm" style="left:440px; top:10px; width:100px; height:19px; "/>
- </group>
- <button id="button1" class="btn1_letter2" navindex="7" style="left:1120px; top:30px; width:56px; height:22px; font-family:굴림; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "호스피스 24시간 전화상담", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_cnstinfo.saveExcel(fileName, "sheetname");
- ]]>
- </script>
- </button>
- <datagrid id="grd_cnstinfo" nodeset="/root/main/cnstinfo/cnstlist" visibility="visible" autoresize="true" caption="seqno^상담일자^환자명^성별^나이^환자와의 관계^진단명^진단명^상담내용^비고^contentid^content2^chkall^caption2^caption3^dschrecflag" colsep="^" colwidth="22, 100, 105, 45, 45, 105, 85, 175, 340, 150, 100, 100, 100, 100, 100" explorerbar="sort" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="2" ref="/root/main/cnstinfo/cnstlist" style="left:0px; top:70px; width:1195px; height:600px; font-family:굴림; vertical-align:middle; ">
- <col ref="seqno" visibility="hidden"/>
- <col ref="cnstdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col disabled="true" ref="relation" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="diagnm1" style="text-align:left; "/>
- <col disabled="true" ref="diagnm2" style="text-align:left; "/>
- <col ref="content" style="text-align:left; "/>
- <col ref="rmk" style="text-align:left; "/>
- <col ref="contentid" visibility="hidden"/>
- <col ref="content2" visibility="hidden"/>
- <col ref="chkall" visibility="hidden"/>
- <col ref="diagcd1" visibility="hidden"/>
- <col ref="diagcd2" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- var row= grd_cnstinfo.row;
- if(grd_cnstinfo.isCell(event.target) && grd_cnstinfo.mouseRow >= grd_cnstinfo.fixedrows){
-
-
-
- var chk = model.getValue(grd_cnstinfo.nodeset + "[" + row + "]/contentid");
-
- var diagcd1 = model.getValue(grd_cnstinfo.nodeset + "[" + row + "]/diagcd1");
-
- model.removenode("/root/send");
- model.makeValue("/root/send/diagcd1", diagcd1);
- model.makeValue("/root/send/refflag", "2");//하위 진단 조회
- submit("TRMNH02906", false);
- cmb_diagcd2.refresh();
-
- model.copyNode("/root/main/cnst", grd_cnstinfo.nodeset + "[" + row + "]");
-
- fCheck(chk);
- }
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cnstinfo.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line4" class="line_1" style="x1:0px; y1:65px; x2:1195px; y2:65px; font-family:굴림; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:695px; x2:1194px; y2:695px; "/>
- <caption id="caption2" class="tit_2" style="left:5px; top:680px; width:145px; height:13px; font-family:굴림; ">24시간 전화상담 등록</caption>
- <button id="btn_newpat" class="btn5_letter4" style="left:160px; top:675px; width:64px; height:19px; ">
- <caption>신규등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClear();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter2" navindex="22" style="left:1105px; top:675px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var chk = chk_content.value;
- var content = "";
- var content2 = "";
-
-
- if(model.getValue("/root/main/cnst/cnstdd") == "" || model.getValue("/root/main/cnst/cnstdd") == null){
- messageBox("상담일자를 입력해주십시오.", "I");
- return;
- }
-
- if(model.getValue("/root/main/cnst/patnm") == "" || model.getValue("/root/main/cnst/patnm") == null){
- messageBox("환자명을 입력해주십시오.", "I");
- return;
- }
-
- if(model.getValue("/root/main/cnst/contentid") == "" || model.getValue("/root/main/cnst/contentid") == null){
- messageBox("상담내용을 1가지라도 선택해주십시오.", "I");
- return;
- }
-
- if(model.getValue("/root/main/cnst/diagcd1") == "" || model.getValue("/root/main/cnst/diagcd1") == null){
- messageBox("진단명을 선택해주십시오.", "I");
- return;
- }
-
- var rtnval = messageBox("저장 하시겠습니까?", "Q");
-
- if(rtnval != "6") {
- return "false";
- }
- if(isSearchString(chk, "1")) {
- content = chk_content.item(0).label;
- }
-
- if(isSearchString(chk, "2")) {
- if(content == ""){
- content = chk_content.item(1).label;
- }else{
- content = content + "," + chk_content.item(1).label;
- }
- }
-
- if(isSearchString(chk, "3")) {
- if(content == ""){
- content = chk_content.item(2).label;
- }else{
- content = content + "," + chk_content.item(2).label;
- }
- }
-
- if(isSearchString(chk, "4")) {
- if(content == ""){
- content = chk_content.item(3).label;
- }else{
- content = content + "," + chk_content.item(3).label;
- }
- }
-
- if(isSearchString(chk, "5")) {
- if(content == ""){
- content = chk_content.item(4).label;
- }else{
- content = content + "," + chk_content.item(4).label;
- }
- }
-
- if(isSearchString(chk, "9")) {
-
- if(model.getValue("/root/main/cnst/content2") != ""){
- content2 = chk_content.item(5).label + "(" + model.getValue("/root/main/cnst/content2") + ")";
- }else{
- content2 = chk_content.item(5).label
- }
-
- if(content == ""){
- content = content2;
- }else{
- content = content + "," + content2;
- }
- }
-
- if(model.getValue("/root/main/cnst/seqno") == "" || model.getValue("/root/main/cnst/seqno") == null){
- model.makeValue("/root/main/cnst/setflag","I");
- }else{
- model.makeValue("/root/main/cnst/setflag","U");
- }
-
- model.setValue("/root/main/cnst/content",content);
- model.makeNode("/root/send/save/saveinfo");
- model.copyNode("/root/send/save/saveinfo","/root/main/cnst");
-
- if(submit("TXMNH07000") == true){
- fSearch() ;
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption14" class="cell_1" style="left:0px; top:700px; width:89px; height:23px; text-align:center; vertical-align:middle; ">상담일자</caption>
- <input id="ipt_cnstdd" ref="/root/main/cnst/cnstdd" class="input_default" navindex="1" editable="false" inputtype="date" maxlength="10" format="yyyy-mm-dd" style="left:91px; top:702px; width:116px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:210px; top:700px; width:89px; height:23px; text-align:center; vertical-align:middle; ">환자명</caption>
- <input id="input1" ref="/root/main/cnst/patnm" class="input_default" navindex="2" style="left:301px; top:702px; width:110px; height:19px; "/>
- <caption id="caption6" class="cell_1" style="left:415px; top:700px; width:89px; height:23px; text-align:center; vertical-align:middle; ">성별</caption>
- <select1 id="cmb_sex" ref="/root/main/cnst/sex" class="combo_default" navindex="3" appearance="minimal" style="left:506px; top:702px; width:56px; height:19px; ">
- <choices>
- <item>
- <label>F</label>
- <value>F</value>
- </item>
- <item>
- <label>M</label>
- <value>M</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="cell_1" style="left:565px; top:700px; width:89px; height:23px; text-align:center; vertical-align:middle; ">나이</caption>
- <input id="ipt_age" ref="/root/main/cnst/age" class="input_default" navindex="4" imemode="disabled" maxlength="3" format="999" style="left:656px; top:702px; width:71px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:730px; top:700px; width:89px; height:23px; text-align:center; vertical-align:middle; ">환자와의 관계</caption>
- <select1 id="cmb_relation" ref="/root/main/cnst/relation" class="combo_default" navindex="5" appearance="minimal" style="left:821px; top:702px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="cell_1" style="left:730px; top:725px; width:89px; height:23px; text-align:center; vertical-align:middle; ">진단명</caption>
- <caption id="caption10" class="cell_1" style="left:0px; top:725px; width:89px; height:23px; text-align:center; vertical-align:middle; ">상담내용</caption>
- <line id="line2" class="line_2" style="x1:0px; y1:723px; x2:1194px; y2:723px; "/>
- <select id="chk_content" ref="/root/main/cnst/contentid" navindex="6" overflow="visible" appearance="full" cellspacing="20" cols="7" style="left:91px; top:729px; width:634px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>호스피스 병동안내 및 입실절차</label>
- <value>1</value>
- </item>
- <item>
- <label>입원기간</label>
- <value>2</value>
- </item>
- <item>
- <label>비용</label>
- <value>3</value>
- </item>
- <item>
- <label>간병인 여부</label>
- <value>4</value>
- </item>
- <item>
- <label>타기관 정보제공</label>
- <value>5</value>
- </item>
- <item>
- <label>기타</label>
- <value>9</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var chk = chk_content.value;
-
- fCheck(chk);
-
-
- ]]>
- </script>
- </select>
- <caption id="caption11" class="cell_1" style="left:0px; top:750px; width:89px; height:23px; text-align:center; vertical-align:middle; ">상담내용(기타)</caption>
- <input id="ipt_content2" ref="/root/main/cnst/content2" class="input_default" disabled="true" navindex="9" maxlength="500" style="left:91px; top:752px; width:636px; height:19px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:748px; x2:1194px; y2:748px; "/>
- <caption id="caption12" class="cell_1" style="left:730px; top:750px; width:89px; height:23px; text-align:center; vertical-align:middle; ">비고</caption>
- <input id="ipt_rmk" ref="/root/main/cnst/rmk" class="input_default" navindex="10" maxlength="300" style="left:821px; top:752px; width:370px; height:19px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:773px; x2:1194px; y2:773px; "/>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/cnst/chkall" style="left:70px; top:727px; width:20px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var i = 0;
-
- if(model.getValue("/root/main/cnst/chkall") == "Y"){
- for(i=0; i<chk_content.length; i++)
- {
- chk_content.select(i);
- }
- }else{
- for(i=0; i<chk_content.length; i++)
- {
- chk_content.deselect(i);
- }
- }
-
- chk_content.refresh();
-
- ]]>
- </script>
- </bool>
- <input id="ipt_content" ref="/root/main/cnst/content" visibility="hidden" style="left:1010px; top:702px; width:35px; height:19px; "/>
- <button id="button4" class="btn5_letter2" navindex="22" style="left:1150px; top:675px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/cnst/seqno") == "" || model.getValue("/root/main/cnst/seqno") == null){
- messageBox("삭제할 내역이 없습니다.", "I");
- return;
- }
-
- var rtnval = messageBox("삭제 하시겠습니까?", "Q");
-
- if(rtnval != "6") {
- return "false";
- }
-
- model.makeValue("/root/main/cnst/setflag","D");
- model.makeNode("/root/send/save/saveinfo");
- model.copyNode("/root/send/save/saveinfo","/root/main/cnst");
-
- if(submit("TXMNH07000") == true){
- fSearch() ;
- }
-
- ]]>
- </script>
- </button>
- <input id="ipt_seqno" ref="/root/main/cnst/seqno" visibility="hidden" style="left:990px; top:702px; width:15px; height:19px; "/>
- <select1 id="cmb_diagcd1" ref="/root/main/cnst/diagcd1" navindex="7" appearance="minimal" style="left:821px; top:727px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/diagsuplist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var diagcd1 = model.getValue("/root/main/cnst/diagcd1");
-
- model.removenode("/root/send");
- model.makeValue("/root/send/diagcd1", diagcd1);
- model.makeValue("/root/send/refflag", "2");//하위 진단 조회
- submit("TRMNH02906", false);
- cmb_diagcd2.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_diagcd2" ref="/root/main/cnst/diagcd2" navindex="8" appearance="minimal" style="left:990px; top:727px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/diaglowlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|