123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <ordcnstlist/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <picmrudtlist>
- <rulecd/>
- </picmrudtlist>
- </main>
- <send>
- <data1>
- <pid/>
- <diagnm/>
- <spclcd/>
- <aplydd/>
- <cretflag/>
- <patnm/>
- <regtodd/>
- <regfromdd/>
- </data1>
- <data2>
- <ordcnstlist/>
- </data2>
- <data3>
- <termcd_from/>
- <termcd_to/>
- </data3>
- </send>
- <init>
- <P0509list>
- </P0509list>
- <patinfo>
- <pid/>
- <hngnm/>
- </patinfo>
- </init>
- <hidden>
- <sppiz00400>
- <cond>
- <basedd/>
- <diagcd/>
- <diagnm/>
- <selectedrdodiagkind/>
- <flag/>
- </cond>
- <rslt>
- <diagcd/>
- <diaghngnm/>
- <diagengnm/>
- <termcd/>
- </rslt>
- </sppiz00400>
- <currendate/>
- </hidden>
- <temp>
- <calcscorcd/>
- <aplydd/>
- <sflag/>
- </temp>
- <source>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- </source>
- <tmp>
- <pid/>
- <srchcond/>
- <autoflag/>
- </tmp>
- </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/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/main/ordcnstlist");
-
-
- // (PAM.js) submission id="TRPAM00101" 를 사용하여 진료과 / 의사명 Combo item을 가져온다.
- pamGetDeptCDDrIDList();
- model.makeNode("/root/init/P0509list")
- zbcfGetCodeList(new Array("P0509"), new Array("/root/init/P0509list"));
-
- var fromdd = getCurrentDate();
- fromdd = fromdd.toDate().getAddDate(-7, 'D');
- fromdd = fromdd.getDateFormat("YYYYMMDD");
-
- model.setValue(ipt_aplydd.attribute("ref") ,fromdd);
- model.setValue(input1.attribute("ref") ,getCurrentDate());
- model.setValue("/root/hidden/currendate" ,getCurrentDate());
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var sEXPT_INFO_PATH = '';
-
- function fPatSrch(){
- var sCurrentDate = getCurrentDate();
-
- clearParameter("SPMMO017300_fromdd" );
- clearParameter("SPMMO017300_todd" );
- clearParameter("SPMMO017300_pid" );
- clearParameter("SPMMO017300_hngnm" );
- clearParameter("SPMMO017300_orddd" );
- clearParameter("SPMMO017300_orddeptcd" );
- clearParameter("SPMMO017300_orddrid" );
-
- setParameter("SPMMO017300_fromdd", sCurrentDate);
- setParameter("SPMMO017300_todd", sCurrentDate);
- setParameter("SPMMO017300_pid", model.getValue(sEXPT_INFO_PATH + "/pid"));
-
- modal("SPMMO173000");
- var sPid = getParameter("SPMMO017300_pid");
- var sHngnm = getParameter("SPMMO017300_hngnm");
- var sOrddd = getParameter("SPMMO017300_orddd");
- var sOrddeptcd = getParameter("SPMMO017300_orddeptcd");
- var sOrddrid = getParameter("SPMMO017300_orddrid");
-
- model.resetInstanceNode(sEXPT_INFO_PATH);
-
- if(!isNull(sHngnm)) {
- model.makeValue(sEXPT_INFO_PATH + "/status", "I");
- model.setValue(sEXPT_INFO_PATH + "/excpcls", "001");
- model.setValue(sEXPT_INFO_PATH + "/genrdd", sCurrentDate);
- model.setValue(sEXPT_INFO_PATH + "/genrno", "");
- model.setValue(sEXPT_INFO_PATH + "/pid", sPid);
- model.setValue(sEXPT_INFO_PATH + "/hngnm", sHngnm);
- model.setValue(sEXPT_INFO_PATH + "/histno", "0"); // 숫자 0
- model.setValue(sEXPT_INFO_PATH + "/histcd", "O"); // 문자 O
- model.setValue(sEXPT_INFO_PATH + "/excpcd", "999"); // 디폴트로 저장
- model.setValue(sEXPT_INFO_PATH + "/fromdd", sOrddd);
- model.setValue(sEXPT_INFO_PATH + "/todd", sCurrentDate);
- model.setValue(sEXPT_INFO_PATH + "/histnm", "신규등록");
-
- model.removeNodeset("/root/init/userlist2");
- model.makeNode("/root/init/userlist2/usercombo");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist2", getUserInfo("dutplcecd"), "0330");
- addComboInstance("/root/init/userlist2", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
-
- model.setValue(sEXPT_INFO_PATH + "/deptcd", sOrddeptcd);
- cmb_orddept2.dispatch("xforms-value-changed");
- model.setValue(sEXPT_INFO_PATH + "/userid", sOrddrid);
- }
-
- group_info.refresh();
- }
- ]]>
- </script>
- <submission id="TRPID25100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/main/ordcnstlist"/>
- <submission id="TRPPI00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" replace="instance" resultref="/root/main/picmrudtlist"/>
- <submission id="TXPID25100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2/ordcnstlist" replace="instance" resultref="/root/temp"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1213;2,783;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:343px; height:15px; ">진료내역 상담대장</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1211px; height:732px; ">
- <group id="group2" style="left:0px; top:10px; width:1211px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1211px; height:40px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1130px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPID25100");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:34px; "/>
- <caption id="caption5" class="search_name" style="left:5px; top:11px; width:86px; height:17px; ">환자번호 :</caption>
- <caption id="caption4" class="search_name" style="left:322px; top:11px; width:95px; height:17px; ">상담기간 :</caption>
- <input id="ipt_aplydd" ref="/root/send/data1/regfromdd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:410px; top:10px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode == '13') {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="button2" class="icon_search" navindex="5" style="left:208px; top:11px; width:22px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/tmp/pid", ipt_pid.currentText);
- model.makeValue("/root/tmp/srchcond", 1);
- model.makeValue("/root/tmp/autoflag", "Y"); // 1건인경우 자동으로닫힘
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/tmp", "/root/send");
-
- ipt_pid.value = model.getValue("/root/main/patinfo/patinfolist/pid");
- ipt_patnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/send/data1/pid" class="input_search" style="left:99px; top:10px; width:103px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- // if (event.keyCode == '13') {
- // model.makeValue("/root/tmp/pid", ipt_pid.currentText);
- // model.makeValue("/root/tmp/srchcond", 1);
- // model.makeValue("/root/tmp/autoflag", "Y"); // 1건인경우 자동으로닫힘
- //
- // modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/tmp", "/root/send");
- //
- // ipt_pid.value = model.getValue("/root/main/patinfo/patinfolist/pid");
- // ipt_patnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- // }
- ]]>
- </script>
- </input>
- <input id="ipt_patnm" ref="/root/send/data1/patnm" style="left:235px; top:10px; width:70px; height:19px; "/>
- <input id="input1" ref="/root/send/data1/regtodd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:520px; top:10px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode == '13') {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption2" style="left:503px; top:10px; width:15px; height:20px; ">~</caption>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:200px; height:15px; ">진료내역 상담대장 List</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:82px; x2:1204px; y2:81px; "/>
- <datagrid id="grd_ordcnstlist" nodeset="/root/main/ordcnstlist" class="datagrid2" autoresize="true" caption="순번^상담일자^시작시간^종료시간^total 
상담시간^환자번호^환자성명^진료과^진료년월^진료구분^환자확인란^환자확인란^환자확인란^환자확인란^환자확인란^환자확인란^환자확인란^상담내용^확인자^기관코드|순번^상담일자^시작시간^종료시간^total 
상담시간^환자번호^환자성명^진료과^진료년월^진료구분^환자본인^보호자만^보호자 성명^관계^보호자신분증^관계증명서류^동의^상담내용^확인자^기관코드" colsep="^" colwidth="35, 90, 60, 60, 60, 70, 72, 120, 76, 56, 61, 68, 89, 95, 82, 82, 41, 169, 65" dataheight="40" defaultrows="0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:85px; width:1205px; height:640px; ">
- <col ref="seq" type="output" style="text-align:center; "/>
- <col ref="regdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fromtm" type="input" visibility="visible" format="hh:nn" style="text-align:center; "/>
- <col ref="totm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="tottm" type="input" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="pid" type="input" style="text-align:center; "/>
- <col ref="patnm" type="output" style="text-align:center; "/>
- <col ref="orddeptcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="ordym" type="inputdate" format="yyyy-mm" style="text-align:center; "/>
- <col ref="ioflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="patownyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="prtcteryn" type="checkbox"/>
- <col checkvalue="Y,N" ref="prtcternm" type="input" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="rela" type="combo" style="text-align:center; ">
- <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>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="prtcteridyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="famyrelcrtfctyn" type="checkbox"/>
- <col ref="essntestasso" type="checkbox"/>
- <col ref="cmnt" type="input" style="text-align:left; "/>
- <col ref="fstrgstrnm" type="output" style="text-align:center; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var rowno = grd_ordcnstlist.row;
-
- if(grd_ordcnstlist.col == grd_ordcnstlist.colRef("diagcd")) {
-
- model.setValue("/root/hidden/sppiz00400/cond/basedd", model.getValue("/root/hidden/currendate"));
- model.setValue("/root/hidden/sppiz00400/cond/diagcd", grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagcd")));
- model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind", "2");
- model.setValue("/root/hidden/sppiz00400/cond/flag", "P");
-
- modal("../../../pam/insucomweb/xrw/SPPIZ00400", "", "200", "200" ,"SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", "");
-
- grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagcd")) = model.getvalue("/root/hidden/sppiz00400/rslt/termcd");
- grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagnm")) = model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm");
- grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagengnm")) = model.getvalue("/root/hidden/sppiz00400/rslt/diagengnm");
- model.refresh();
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
-
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == '13') {
- if(grd_ordcnstlist.col == grd_ordcnstlist.colRef("pid")) {
- grd_ordcnstlist.endEditCell();
- model.makeValue("/root/tmp/pid", grd_ordcnstlist.valueMatrix(grd_ordcnstlist.row, grd_ordcnstlist.colRef("pid")));
- model.makeValue("/root/tmp/srchcond", 1);
- model.makeValue("/root/tmp/autoflag", "Y"); // 1건인경우 자동으로닫힘
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/tmp", "/root/send");
-
- grd_ordcnstlist.valueMatrix(grd_ordcnstlist.row, grd_ordcnstlist.colRef("pid")) = model.getValue("/root/main/patinfo/patinfolist/pid");
- grd_ordcnstlist.valueMatrix(grd_ordcnstlist.row, grd_ordcnstlist.colRef("patnm")) = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- grd_ordcnstlist.rightCol = grd_ordcnstlist.colRef("orddeptcd")
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="button5" class="btn2_letter4" visibility="visible" style="left:1140px; top:57px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_ordcnstlist.saveExcel(fileName, "희귀난치질환기준자료", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <button id="btn_rowdel" class="btn2_letter3" style="left:1084px; top:57px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_ordcnstlist.row;
- grd_ordcnstlist.deleteRow(row);
- ]]>
- </script>
- </button>
- <button id="btn_rowadd" class="btn2_letter3" style="left:1028px; top:57px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_ordcnstlist.addRow();
-
- var rowno = grd_ordcnstlist.row;
-
- grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("regdd")) = getCurrentDate();
- grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("fromtm")) = getCurrentTime().substr(0,4);
-
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_patsrch" class="btn1_letter2" visibility="hidden" style="left:890px; top:50px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPatSrch();
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:744px; width:1211px; height:40px; ">
- <line id="line23" class="line_6" style="x1:0px; y1:3px; x2:1211px; y2:3px; "/>
- <button id="button1" class="btn4_letter3" style="left:1134px; top:10px; width:68px; height:22px; ">
- <caption>저 장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("","Q002")==6 ) {
- var update = getGridUpdateData( grd_ordcnstlist);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- model.setValue("/root/send/data2/ordcnstlist", update);
- submit("TXPID25100");
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|