1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>호스피스 환자 가족상담지</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <hospiceinfo>
- <hospicedetl>
- <cnstkind/>
- <cnstdd/>
- <cnstfromtm/>
- <cnsttotm/>
- <cnst/>
- <cnstrecnm/>
- <lastupdtrnm/>
- <seqno/>
- <staiud/>
- <chk/>
- <cnstkindnm/>
- <cnstrecnmcode/>
- <indd/>
- <cretno/>
- <cretdd/>
- <pid/>
- <pname/>
- <age/>
- </hospicedetl>
- </hospiceinfo>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <indd/>
- <cretno/>
- <cretdd/>
- <roomcd/>
- <sexage/>
- </patinfolist>
- </patinfo>
- <paminfo>
- <pamlist/>
- </paminfo>
- <hospice>
- <hospicelist>
- <pid/>
- <hngnm/>
- <sexage/>
- <indd/>
- <cretno/>
- <cretdd/>
- <instcd/>
- <roomcd/>
- </hospicelist>
- </hospice>
- </main>
- <send>
- <cnstdd/>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <jobkind/>
- <cnstkind1/>
- <cnstkind2/>
- <indd/>
- <cretno/>
- <atdoctid/>
- <fbrthdd/>
- <lbrthdd/>
- <pamcgubun/>
- <cretdd/>
- <flag/>
- </send>
- <temp>
- <pidinfo/>
- </temp>
- <send2/>
- <hidden>
- <hospiceinfo>
- <pid/>
- <cnstdd/>
- </hospiceinfo>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNH01600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/hospiceinfo"/>
- <submission id="TRMNH01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/hospicelist"/>
- <submission id="TXMNH01600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2" resultref="/root/main/hospiceinfo"/>
- <submission id="TXMNH01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2" resultref="/root/main/hospiceinfo"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/jcimngtweb/js/SMMRJ00100.js"/>
- <script type="javascript" src="../../../emr/agonalcareweb/js/SMMNH02900.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- /*
- if(sPamInfo != ""){
- ipt_pid.value = model.getValue("/root/main/paminfo/pamlist/pid");
- opt_hngnm.value = model.getValue("/root/main/paminfo/pamlist/hngnm");
-
- if( model.getValue("/root/main/paminfo/pamlist/sex") == "F" ){
- opt_sex.value = "여성";
- model.setValue("/root/send/sex", "여성");
- }else{
- opt_sex.value = "남성";
- model.setValue("/root/send/sex", "남성");
- }
- opt_age.value = model.getValue("/root/main/paminfo/pamlist/age");
-
- }else{
- if(sexage != ""){
- if( sexage.substr(0,1) == "F" ){
- opt_sex.value = "여성";
- model.setValue("/root/send/sex", "여성");
- }else{
- opt_sex.value = "남성";
- model.setValue("/root/send/sex", "남성");
- }
- opt_age.value = sexage.substr(2,3);
- }
- }
- */
- ipt_pid.value = pid;
- opt_hngnm.value = hngnm;
- rdo_pamcgubun.value = 'W'; //대기
-
-
- if(sexage != ""){
- if( sexage.substr(0,1) == "F" ){
- opt_sex.value = "여성";
- model.setValue("/root/send/sex", "여성");
- }else{
- opt_sex.value = "남성";
- model.setValue("/root/send/sex", "남성");
- }
- opt_age.value = sexage.substr(2,3);
- }
- submit("TRMNW00001",false); // wardcareweb
- /*
- if(pid !=""){
- fSetHosPatTopInfo();
- }
- */
- model.makeValue("/root/send/srchdd" , ""); // 조회기준일자 초기화
- ipt_prcpdd.value = model.getValue("/root/send/srchdd");
-
- fSearchIn();
- fsearchDetail();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /*
- var sPamInfo = getGlobalVariable("paminfo");
- setCSVToNode("/root/main/paminfo",sPamInfo,"pamlist");
- var sIOFlag = model.getValue("/root/main/paminfo/pamlist/ioflag"); // 입원/외래 구분
- var sOrdDrId = model.getValue("/root/main/paminfo/pamlist/medispclid"); // 진료의사ID
- var sCretNo = model.getValue("/root/main/paminfo/pamlist/cretno"); // 환자 일자별 일련번호
- var spid = model.getValue("/root/main/paminfo/pamlist/pid"); // 환자 등록번호
- var sIndd = model.getValue("/root/main/paminfo/pamlist/indd"); // 환자 입원일자
- var sOrddd = model.getValue("/root/main/paminfo/pamlist/orddd"); // 환자 외래일자
-
- var sexage ="";
-
- if(sIOFlag == "I" || sIOFlag == "E" || sIOFlag == "D"){
- sIndd = model.getValue("/root/main/paminfo/pamlist/indd"); // 입원일자
- sOrddd = "-"; // 진료일자
- }else{
- sIndd = "-"; // 입원일자
- sOrddd = model.getValue("/root/main/paminfo/pamlist/orddd"); // 진료일자
- }
- */
- var pid, indd, hngnm, sexage, cretno ,cretdd, crettm, wardcd, atdoctid;
- var vcnstdd;
-
- if(checkOpener()) {
- pid = opener.javascript.getParameter("pid");
- indd = opener.javascript.getParameter("indd");
- hngnm = opener.javascript.getParameter("hngnm");
- sexage = opener.javascript.getParameter("sexage");
- cretdd = opener.javascript.getParameter("cretdd");
- crettm = opener.javascript.getParameter("crettm");
- cretno = opener.javascript.getParameter("cretno");
- wardcd = opener.javascript.getParameter("wardcd");
- atdoctid = opener.javascript.getParameter("atdoctid");
- //model.setValue("/root/send/flag", "Y");
-
- //확인
- //fSetHosPatTopInfo();
- }
- // alert("pid : "+pid);
- // alert("indd : "+indd);
- // alert("hngnm : "+hngnm);
- // alert("sexage : "+sexage);
- // alert("cretdd : "+cretdd);
- // alert("crettm : "+crettm);
- // alert("cretno : "+cretno);
- // alert("wardcd : "+wardcd);
- // alert("atdoctid : "+atdoctid);
-
- if(sexage != ""){
- if( sexage.substr(0,1) == "F" ){
- opt_sex.value = "여성";
- model.setValue("/root/send/sex", "여성");
- }else{
- opt_sex.value = "남성";
- model.setValue("/root/send/sex", "남성");
- }
- opt_age.value = sexage.substr(2,3);
- }
- var sOrdDeptCd = getUserInfo("posdeptcd");
-
- var dutplcecd = getUserInfo("dutplcecd");
- var usernm = getUserInfo("usernm");
- var dt = getCurrentDate();
- var fdt = getAddDay(15);
- var pCode = "'T75'"; // 조회할 CdGrupID 코드정보 (기관코드찾기)
- ipt_prcpdd.value = dt;
- //fGetNursHardCdInfo("'690'", getCurrentDate());
- fGetHardCDList("N", 690,0,"/root/hidden/cnstkindnode");
-
- model.makeNode("/root/code");
- model.makeValue("/root/send/cdgrupid", pCode); // 조회할 CdGrupID 코드정보
- model.makeValue("/root/send/srchdd" , dt); // 조회기준일자
- model.makeValue("/root/send/jobkind" , '0'); // 초기직종 전체
- model.makeValue("/root/send/pid" , ipt_pid.value); // 환자번호
- model.makeValue("/root/send/hngnm" , opt_hngnm.value); // 환자이름
- model.makeValue("/root/send/hngage" , opt_age.value); // 환자나이
- model.makeValue("/root/send/hngsex" , opt_sex.value); // 환자성별
- model.makeValue("/root/send/indd" , indd); // 입원일자
- model.makeValue("/root/send/cretdd" , cretdd); // 생성일자
- model.makeValue("/root/send/cretno" , cretno); // 생성일자
-
-
- //var sPamInfo = getGlobalVariable("paminfo");
- //setCSVToNode("/root/main/paminfo",sPamInfo,"pamlist"); //환자정보내리기
-
- //상단정보를 만듬
- model.removenode("/root/main/paminfo/pamlist");
- model.makeNode("/root/main/paminfo/pamlist");
- model.makeValue("/root/main/paminfo/pamlist/pid", pid);
- model.makeValue("/root/main/paminfo/pamlist/indd", indd);
- model.makeValue("/root/main/paminfo/pamlist/hngnm", hngnm);
- model.makeValue("/root/main/paminfo/pamlist/sex", model.getValue("/root/send/sex"));
- model.makeValue("/root/main/paminfo/pamlist/age", model.getValue("/root/send/age"));
- model.makeValue("/root/main/paminfo/pamlist/cretdd", cretdd);
- model.makeValue("/root/main/paminfo/pamlist/crettm", crettm);
- model.makeValue("/root/main/paminfo/pamlist/cretno", cretno);
- model.makeValue("/root/main/paminfo/pamlist/wardcd", wardcd);
- model.makeValue("/root/main/paminfo/pamlist/atdoctid", atdoctid);
- function fSetHosPatTopInfo(){
- var pid, indd, cretno, cretdd, instcd, roomcd, sexage, orddd, ordtype;
- ordtype = "";
- orddd = "";
- if(model.getValue("/root/send/flag") =="N"){
- var xWardPatListPath = "/root/main/hospice/hospicelist";
- //var xPatInfoPath = "/root/main/patinfo/patinfolist";
-
- //model.makeNode(xPatInfoPath);
- //model.removeNodeSet(xPatInfoPath);
- pid = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/pid");
- indd = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/indd");
- cretno = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/cretno");
- cretdd = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/cretdd");
- instcd = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/instcd");
- //var ordtype = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/ordtype");
- //var orddd = model.getValue("/root/main/cond/orddd");
- roomcd = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/roomcd");
- //var patnm = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/patnm");
- sexage = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/sexage");
- }else{
- pid = model.getValue("/root/send/pid");
- indd = model.getValue("/root/send/indd");
- cretdd = model.getValue("/root/send/cretdd");
- cretno = model.getValue("/root/send/cretno");
- }
- fSetPatInfo(pid,indd,cretno,instcd,orddd,ordtype);
-
- var sPamInfo = getGlobalVariable("paminfo");
- setCSVToNode("/root/main/paminfo",sPamInfo,"pamlist"); //환자정보내리기
-
- sIOFlag = model.getValue("/root/main/paminfo/pamlist/ioflag"); // 입원/외래 구분
- sOrdDrId = model.getValue("/root/main/paminfo/pamlist/medispclid"); // 진료의사ID
- sCretNo = model.getValue("/root/main/paminfo/pamlist/cretno"); // 환자 일자별 일련번호
- spid = model.getValue("/root/main/paminfo/pamlist/pid"); // 환자 등록번호
- sIndd = model.getValue("/root/main/paminfo/pamlist/indd"); // 환자 입원일자
- sOrddd = model.getValue("/root/main/paminfo/pamlist/orddd"); // 환자 외래일자
-
- if(sIOFlag == "I" || sIOFlag == "E" || sIOFlag == "D"){
- sIndd = model.getValue("/root/main/paminfo/pamlist/indd"); // 입원일자
- sOrddd = "-"; // 진료일자
- }else{
- sIndd = "-"; // 입원일자
- sOrddd = model.getValue("/root/main/paminfo/pamlist/orddd"); // 진료일자
- }
- model.setValue("/root/send/indd" , indd); // 입원일자
- model.setValue("/root/send/cretdd" , cretdd); // 생성일자
- model.setValue("/root/send/cretno" , cretno); // 생성번호
-
- if(model.getValue("/root/send/flag") =="Y"){
- fsearchDetail();
- }
- }
-
- function checkGridUpdate(grid)
- {
- var iData = grid.getUpdateDataXml("insert");
- var uData = grid.getUpdateDataXml("update");
- var dData = grid.getUpdateDataXml("delete");
-
- if (iData=="" && uData=="" && dData=="") return false;
- else return true;
- }
-
- function fSearchIn(){
- ipt_fbrthdd.value = fdt;
- ipt_lbrthdd.value = dt;
-
-
- model.makeValue("/root/send/hospicegubun", "3");
- model.setValue("/root/send/fbrthdd", ipt_fbrthdd.value);
- model.setValue("/root/send/lbrthdd", ipt_lbrthdd.value);
- model.setValue("/root/send/pamcgubun", rdo_pamcgubun.value);
-
- model.removenodeset("/root/main/hospice/hospicelist");
- //model.removenodeset("/root/main/hospiceinfo/hospicedetl");
- if(submit("TRMNH01601")){
-
- }else{
- messageBox('조회를', 'E009');
- return false;
- }
-
- //grd_hospicelist.dispatch("ondblclick");
- /////////////////////////////////////////////
- model.refresh();
- }
-
- function fsearchDetail(){
- if(ipt_pid.value ==""){
- messageBox("환자를","C002");
- return;
- }
- model.setValue("/root/send/pid", ipt_pid.value); // 환자번호
- model.setValue("/root/send/hngnm" , opt_hngnm.value); // 환자이름
- model.setValue("/root/send/hngage" , opt_age.value); // 환자나이
- model.setValue("/root/send/hngsex" , opt_sex.value); // 환자성별
-
- /*
- if( model.getValue("/root/send/srchdd") == "" ){
- messageBox("상담일자는","I003");
- return;
- }
- */
- /*
- if( model.getValue("/root/send/pid") == "" ){
- messageBox("환자정보는","I003");
- return;
- }
- */
- //model.removenodeset("/root/main/hospiceinfo/hospicedetl");
-
- submit("TRMNH01600");
- if(grd_famycnst.rows > 1){
- for(var i=1; i<grd_famycnst.rows; i++) {
- model.setValue("/root/main/hospiceinfo/hospicedetl[" + i + "]/indd", model.getValue("/root/send/indd"));
- model.setValue("/root/main/hospiceinfo/hospicedetl[" + i + "]/cretno", model.getValue("/root/send/cretno"));
- model.setValue("/root/main/hospiceinfo/hospicedetl[" + i + "]/cretdd", model.getValue("/root/send/cretdd"));
- }
- }
- model.refresh();
- }
-
- function fMake_SignData(){
- Sign.addnode("/root/hidden/hospiceinfo");
- var xRecinfoPath = Sign.XPATH_SIGNINFO+"/hospiceinfo/hospicedetl";
- }
- function fSign(){
- Sign.certreload = true ; // 전자서명 호출시 인증저장 버튼을 누를때마다 인증서가 뜨도록 처리
-
- /*
- if( vsettime == "") {
- Sign.certchkflag = "Y";
- //alert("인증저장");
- } else {
- var res2 = getTimeInterval(vsettime, getCurrentTime(), 'hhmmss');
- //var res2 = getTimeInterval(vsettime, getCurrentTime());
-
- alert(res2);
-
- if(res2 > signtime* 60 || res2 < 0) {
- Sign.certchkflag = "Y";
- //alert("인증저장");
- } else {
- Sign.certchkflag = "N";
- }
- }
- */
- sOrdDrId = model.getValue("/root/main/paminfo/pamlist/atdoctid"); // 진료의사ID
- sCretNo = model.getValue("/root/main/paminfo/pamlist/cretno"); // 환자 일자별 일련번호
- spid = model.getValue("/root/main/paminfo/pamlist/pid"); // 환자 등록번호
- //sIOFlag = model.getValue("/root/main/paminfo/pamlist/ioflag"); // 입원/외래 구분
- sIndd = model.getValue("/root/main/paminfo/pamlist/indd"); // 환자 입원일자
- //sOrddd = model.getValue("/root/main/paminfo/pamlist/orddd"); // 환자 외래일자
-
-
- var sPid = model.getValue("/root/send/pid");
- var signtime = ""; //인증저장 안뜨는 허용시간( EX) 10이면 10분동안
- var vsettime = ""; //인증저장시간.
- var delcnt = 0;
-
- var xSignPath = "/root/hidden/hospiceinfo";//인증저장관련노드
- model.removeNode("/root/hidden/hospiceinfo");
- model.makeNode("/root/hidden/hospiceinfo");
- for(var i=1; i<grd_famycnst.rows; i++) {
- //alert(grd_famycnst.rowStatus(i));
- if(grd_famycnst.rowStatus(i) != "4" ) { //삭제가 아닐경우
- copyNodeListType("/root/hidden/hospiceinfo", "/root/main/hospiceinfo/hospicedetl["+i+"]", "after");
-
- }else{
- delcnt++;
- }
- }
- var status = ""; //삭제여부
- if(getNodesetCount("/root/hidden/hospiceinfo/hospicedetl") < 1) status = "d";
-
- model.refresh();
-
- /*
- alert("hidden 크기 : " + grd_hiddenfamycnst.rows);
- for(var i=1; i<grd_hiddenfamycnst.rows; i++) {
- alert("상담일자 첫째행 : " + model.getValue("/root/hidden/hospiceinfo/hospicedetl["+1+"]/cnstdd"));
-
- alert("상담일자 : " + model.getValue("/root/hidden/hospiceinfo/hospicedetl["+i+"]/cnstdd"));
- }
- return;
- */
-
- if(Sign.signprocess() == true){
- // 전자인증 관련 환자 인적 정보를 보내줌.
- var vsettime = getCurrentTime();
- model.makeValue("/root/send2/signdata/pid", sPid ); //등록번호
- model.makeValue("/root/send2/signdata/status", status ); //상태값(그리드 전체 삭제)
-
- /*
- if( sIOFlag =="O" ){
- model.makeValue("/root/send2/signdata/orddd", sOrddd); //입원일자(입원,응급)/진료일자(외래)
- }else{
- model.makeValue("/root/send2/signdata/orddd", sIndd); //입원일자(입원,응급)/진료일자(외래)
- }
- */
-
- model.makeValue("/root/send2/signdata/orddd", sIndd); //입원일자로 수정
-
- model.makeValue("/root/send2/signdata/signno", ""); //서명번호
- model.makeValue("/root/send2/signdata/cretno", sCretNo); //생성번호
- //model.makeValue("/root/send2/signdata/recdd", getCurrentDate()); // 실제 기록이 이루어진 기록일자
- model.makeValue("/root/send2/signdata/recdd", model.getValue("/root/send/srchdd")); // 실제(상담) 기록이 이루어진 기록일자
- model.makeValue("/root/send2/signdata/rectm", getCurrentTime()); //실제 기록이 이루어진 기록시간
- model.makeValue("/root/send2/signdata/recsaveflag", "Y"); //전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- model.makeValue("/root/send2/signdata/signflag", "02" ); //서명자료구분 (01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
- model.makeValue("/root/send2/signdata/signgenrflag", "I" ); //외래/입원구분(코드정의서 M0010 참조)
- model.makeValue("/root/send2/signdata/formcd", "1500017050" ); //각 기록지별 서식코드
- model.makeValue("/root/send2/signdata/orddeptcd", sOrdDeptCd); //진료부서코드
- model.makeValue("/root/send2/signdata/orddrid", sOrdDrId ); //진료의사ID
- model.makeValue("/root/send2/signdata/dispyn", "Y"); //기록뷰어에는 조회안되도록
- // 인증할 데이터 정보(미기록 노드 제거된 정보)
- // 미기록 노드 제거전 원본 노드 정보 : Sign.signedInfos[3]
- model.makeValue("/root/send2/signdata/signbfcnts", Sign.signedInfos[1]);
- // 공인인증 처리후 데이터
- model.makeValue("/root/send2/signdata/signaftcnts", Sign.signedInfos[2]);
- model.makeValue("/root/send2/signdata/cnstdd", model.getValue("/root/send/srchdd")); //상담시간
-
-
- model.makeValue("/root/send2/signdata/pid", model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/pid")); //등록번호
- model.makeValue("/root/send2/signdata/pname", model.getValue("/root/send/hngnm")); //환자명
- model.makeValue("/root/send2/signdata/age", model.getValue("/root/send/hngsex") + "/" + model.getValue("/root/send/hngage")); //상담시간
-
- //alert(model.getValue("/root/send2/signdata/cnstdd"));
-
- }else{
- return false;
- }
- model.makeValue("/root/send2/signdata/screenid", getScreenID());
- return true;
- }
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body overflow="visible" scroll="autovscroll" pagewidth="1195" pageheight="760" guideline="1,1195;1,1185;1,1210;2,686;2,748;" style="font-family:굴림; color:#999999; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:15px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:296px; height:14px; font-family:돋움체; ">호스피스 환자 가족상담지</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
- <line id="line97" class="line_1" style="x1:200px; y1:100px; x2:1184px; y2:100px; "/>
- <button id="btn_del" class="btn2_letter3" style="left:1065px; top:79px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_famycnst.rowStatus(grd_famycnst.row) = 4;
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter4" style="left:1120px; top:79px; width:64px; height:19px; ">
- <caption>인증저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( model.getValue("/root/send/pid") == "" ){
- messageBox("환자정보는","I003");
- return;
- }
-
- if(!checkGridUpdate(grd_famycnst))
- {
- messageBox("저장할 자료가","I004");
- return;
- }
-
- if( model.getValue("/root/send/srchdd") == "" ){
- messageBox("상담일자는","I003");
- return;
- }
-
- var vlastupdtrnm;
- var vuserid = getUserId();
- var usernm = getUserInfo("usernm");
-
- for(var i = 1; i < grd_famycnst.rows; i++ ){
- if(grd_famycnst.rowStatus(i) == "1" || grd_famycnst.rowStatus(i) == "2" || grd_famycnst.rowStatus(i) == "4"){
- vlastupdtrnm = (model.getValue("/root/main/hospiceinfo/hospicedetl[" + i + "]/lastupdtrid"));
- if(vlastupdtrnm != vuserid && vlastupdtrnm != "")
- {
- if(messageBox("다른상담자의 상담 내용 입니다. 계속 진행 하시겠습니까?","S001") != "6"){
- return;
- }
- }
- }
- }
-
- var cnstdd;
- var vcnstfromtm;
- var vcnsttotm;
- var vcnstfromtmLen;
- var vcnsttotmLen;
-
- for(var i = 1; i < grd_famycnst.rows; i++ ){
- vcnstfromtm= (model.getValue("/root/main/hospiceinfo/hospicedetl[" + i + "]/cnstfromtm"));
- vcnsttotm= (model.getValue("/root/main/hospiceinfo/hospicedetl[" + i + "]/cnsttotm"));
- vcnstfromtmLen = getStringLength(vcnstfromtm);
- vcnsttotmLen = getStringLength(vcnsttotm);
-
- if(cnstdd == ""){
- messageBox("상담일자를 다시 ", "C001");
- return;
- }
-
- if(vcnstfromtmLen < 4){
- messageBox("상담시작시간을 다시 ", "C001");
- return;
- }
-
- if(vcnsttotmLen < 4){
- messageBox("상담종료시간을 다시 ", "C001");
- return;
- }
- if(vcnstfromtm > vcnsttotm){
- messageBox("상담시작시간이 상담종료시간보다 클 수 ","I004");
- return;
- }
-
- if(vcnstfromtmLen == "" && vcnsttotm == ""){
- messageBox("시간을 확인 바랍니다.","I");
- return;
- }
- }
-
- /*
- if(messageBox("","Q002") != 6) {
- return;
- }
- */
-
- var sData = grd_famycnst.getUpdateData();
-
- model.removenode("/root/send2");
- model.makeNode("/root/send2");
- model.makeValue("/root/send2/sData", sData );
- model.makeValue("/root/send2/pid", model.getValue("/root/send/pid") );
- model.makeValue("/root/send2/cnstdd", model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstdd") );
- model.makeValue("/root/send2/jobkind", model.getValue("/root/send/jobkind") );
- model.makeValue("/root/send2/cnstkind1", model.getValue("/root/send/cnstkind1") );
- model.makeValue("/root/send2/cnstkind2", model.getValue("/root/send/cnstkind2") );
- var msg = messageBox( '[ ' + usernm + ' ] 님의 가족 상담내역의 인증저장을', 'Q004'); //실행 하시겠습니까? yes=6, no=7
- if(Number(msg) == 6){//예
-
- //임시저장 직종컬럼추가로 인증저장 분리
- if (!fSign()) return;
- if(!submit("TXMNH01600")){
- return;
- }
-
- // 인증저장
- if (!fSign()) return;
- if(!submit("TXMNH01601")){
- return;
- }
- fsearchDetail();
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption76" class="tit_2" style="left:200px; top:85px; width:113px; height:13px; font-family:돋움체; ">가족상담</caption>
- <button id="btn_add" class="btn2_letter3" style="left:1010px; top:79px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_pid.value ==""){
- messageBox("환자를 ","C002");
- return;
- }
- grd_famycnst.addRow();
- grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstkind")) = '01';
- //grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstdd")) = getCurrentDate();
- grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstdd")) = ipt_prcpdd.value;
- grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstfromtm")) = getCurrentTime().substring(0,4);
- grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstrecnm")) = '01';
- //grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("lastupdtrnm")) = getUserInfo("userid");
- grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("lastupdtrnm")) = getUserInfo("usernm");
-
- var vcnstkind = model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstkind");
- var hardcdnm= model.getValue("/root/hidden/cnstkindnode/hardcd[hardcd = '" + vcnstkind + "']/hardcdnm");
-
- model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstkindnm", hardcdnm);
- //grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstkindnm")) = hardcdnm;
- var vcnstrecnm = model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstrecnm");
- var cdnm= model.getValue("/root/code/codeinfo/codelist[cdid = '" + vcnstrecnm + "']/cdnm");
-
- model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstrecnmcode", cdnm);
- //grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstrecnmcode")) = cdnm;
- model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/indd", model.getValue("/root/send/indd"));
- model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cretno", model.getValue("/root/send/cretno"));
- model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cretdd", model.getValue("/root/send/cretdd"));
- ]]>
- </script>
- </button>
- <datagrid id="grd_famycnst" nodeset="/root/main/hospiceinfo/hospicedetl" class="datagrid1" autoresize="true" caption="구분^상담일자^상담시간^상담시간^상담시간^상담내용^상담대상자^상담자^직종^seqno^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8" colsep="^" colwidth="50, 100, 50, 50, 50, 363, 100, 100, 100, 45, 100, 100, 100, 100, 100, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:200px; top:105px; width:985px; height:630px; ">
- <col class="gridcombo" ref="cnstkind" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/cnstkindnode/hardcd">
- <label ref="hardcdnm"/>
- <value ref="hardcd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cnstdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cnstfromtm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="cnsttotm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="cnsttm" style="text-align:center; "/>
- <col ref="cnst" type="input" maxbyte="3900"/>
- <col class="gridcombo" ref="cnstrecnm" type="combo">
- <choices>
- <itemset nodeset="/root/code/codeinfo/codelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="lastupdtrnm" style="text-align:center; "/>
- <col ref="jobkindnm" style="text-align:center; "/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="staiud" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="cnstkindnm" visibility="hidden"/>
- <col ref="cnstrecnmcode" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="cretdd" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_famycnst.col == grd_famycnst.colRef("cnsttotm") || grd_famycnst.col == grd_famycnst.colRef("cnstfromtm")) {
- var vcnstfromtm= (model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstfromtm"));
- var vcnsttotm= (model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnsttotm"));
-
- var vcnstfromtmLen = getStringLength(vcnstfromtm);
- var vcnsttotmLen = getStringLength(vcnsttotm);
- if(vcnstfromtmLen < 4){
- messageBox("상담시작시간을 다시 ", "C001");
- return;
- }
-
- if(vcnsttotmLen < 4){
- messageBox("상담종료시간을 다시 ", "C001");
- return;
- }
-
- if(vcnstfromtm > vcnsttotm){
- messageBox("상담시작시간이 종 상담료시간보다 클 수 ","I004");
- return;
- }
-
- if(vcnstfromtmLen == "" && vcnsttotm == ""){
- messageBox("시간을 확인 바랍니다.","I");
- return;
- }
-
- var vcnsttm = getTimeInterval(vcnstfromtm, vcnsttotm)
- var vcnsttm = vcnsttm / 60 + "분";
- model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnsttm", vcnsttm);
- }
- if(grd_famycnst.col == grd_famycnst.colRef("cnstkind")) {
- var vcnstkind = model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstkind");
- var hardcdnm= model.getValue("/root/hidden/cnstkindnode/hardcd[hardcd = '" + vcnstkind + "']/hardcdnm");
-
- model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstkindnm", hardcdnm);
- }
- if(grd_famycnst.col == grd_famycnst.colRef("cnstrecnm")) {
- var vcnstrecnm = model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstrecnm");
- var cdnm= model.getValue("/root/code/codeinfo/codelist[cdid = '" + vcnstrecnm + "']/cdnm");
-
- model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstrecnmcode", cdnm);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_famycnst.col == grd_famycnst.colRef("cnstdd")) {
- ipt_prcpdd.value = model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstdd");
- model.setValue("/root/send/srchdd", ipt_prcpdd.value);
- model.refresh();
- fsearchDetail();
- }
- ]]>
- </script>
- </datagrid>
- <button id="button25" class="btn2_letter4" visibility="visible" style="left:943px; top:79px; width:64px; height:19px; ">
- <caption>구문관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPMNH08000");
-
- var currentRow= model.getValue("/root/main/hospiceinfo/hospicedetl["+grd_famycnst.row+"]/cnstdd");
- if(getParameter("cnst2") == ""){
- return;
- }
-
- if(currentRow == ""){
- messageBox("가족상담 리스트(상담일자)를 ", "C002");
- return;
- }
- var cnst2 = getParameter("cnst2");
- model.setValue("/root/main/hospiceinfo/hospicedetl["+grd_famycnst.row+"]/cnst",cnst2);
- grd_famycnst.addStatus(grd_famycnst.row, "update");
- //grd_famycnst.refresh();
- //model.refresh();
-
- grd_famycnst.resizeCells();
- //grd_famycnst.dispatch("onclick");
- ]]>
- </script>
- </button>
- <caption id="caption12" class="tit_2" style="left:0px; top:87px; width:105px; height:13px; font-family:굴림; ">재원환자 목록</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:100px; x2:195px; y2:100px; "/>
- <datagrid id="grd_hospicelist" nodeset="/root/main/hospice/hospicelist" class="datagrid1" allowbigselection="false" allowselection="false" autoresize="true" backcoloralternate="#ffffff" caption="등록번호^환자명^S/A^caption1^caption2^caption3^caption4" colsep="^" colwidth="60, 75, 55, 100, 100, 100, 100" defaultrows="0" frozencols="0" rowsep="|" style="left:0px; top:105px; width:195px; height:630px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="indd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="cretdd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="roomcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_hospicelist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //fSetPatTopInfo();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var pid = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/pid");
- var hngnm = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/hngnm");
- var sexage = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/sexage");
-
- ipt_pid.value = pid;
- opt_hngnm.value = hngnm;
- opt_age.value = sexage.substr(2,3);
- if( sexage.substr(0,1) == "F" ){
- opt_sex.value = "여성";
- model.setValue("/root/send/sex", "여성");
- }else{
- opt_sex.value = "남성";
- model.setValue("/root/send/sex", "남성");
- }
- opt_age.value = sexage.substr(2,3);
- model.setValue("/root/send/pid", ipt_pid.value); // 환자번호
- model.makeValue("/root/send/hngnm" , opt_hngnm.value); // 환자이름
- model.makeValue("/root/send/hngage" , opt_age.value); // 환자나이
- model.makeValue("/root/send/hngsex" , opt_sex.value); // 환자성별
-
- model.setValue("/root/send/flag", "N");
- //상단정보 UP/Down
- //fSetHosPatTopInfo();
- var pid = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/pid");
- var indd = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/indd");
- var hngnm = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/hngnm");
- var sexage = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/sexage");
-
-
- var cretdd = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/cretdd");
- var crettm = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/crettm");
- var cretno = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/cretno");
- var wardcd = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/wardcd");
- var atdoctid = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/atdoctid");
-
- if(sexage != ""){
- if( sexage.substr(0,1) == "F" ){
- opt_sex.value = "여성";
- var sex = "여성";
- }else{
- opt_sex.value = "남성";
- var sex = "남성";
- }
- opt_age.value = sexage.substr(2,3);
- var age = sexage.substr(2,3);
- }
-
- model.makeValue("/root/send/indd" , indd); // 입원일자
- model.makeValue("/root/send/cretdd" , cretdd); // 생성일자
- model.makeValue("/root/send/cretno" , cretno); // 생성번호
-
- model.removenode("/root/main/paminfo/pamlist");
- model.makeNode("/root/main/paminfo/pamlist");
- model.makeValue("/root/main/paminfo/pamlist/pid", pid);
- model.makeValue("/root/main/paminfo/pamlist/indd", indd);
- model.makeValue("/root/main/paminfo/pamlist/hngnm", hngnm);
- model.makeValue("/root/main/paminfo/pamlist/sex", sex);
- model.makeValue("/root/main/paminfo/pamlist/age", age);
- model.makeValue("/root/main/paminfo/pamlist/cretdd", cretdd);
- model.makeValue("/root/main/paminfo/pamlist/crettm", crettm);
- model.makeValue("/root/main/paminfo/pamlist/cretno", cretno);
- model.makeValue("/root/main/paminfo/pamlist/wardcd", wardcd);
- model.makeValue("/root/main/paminfo/pamlist/atdoctid", atdoctid);
-
- fsearchDetail();
- ]]>
- </script>
- </datagrid>
- <group id="group3" style="left:0px; top:0px; width:195px; height:56px; font-family:굴림; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:195px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/srchdd", ipt_prcpdd.value);
- //fSearch();
- ]]>
- </script>
- <select1 id="rdo_pamcgubun" ref="/root/send/pamcgubun" class="radio_search" navindex="4" appearance="full" cols="3" overflow="visible" style="left:61px; top:8px; width:130px; height:38px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>의뢰</label>
- <value>R</value>
- </item>
- <item>
- <label>대기</label>
- <value>W</value>
- </item>
- <item>
- <label>자문</label>
- <value>D</value>
- </item>
- <item>
- <label>입실</label>
- <value>I</value>
- </item>
- <item>
- <label>퇴실</label>
- <value>L</value>
- </item>
- <!--
- <item>
- <label>서비스종료</label>
- <value>O</value>
- </item>
- <item>
- <label>대기종료</label>
- <value>P</value>
- </item>
- -->
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //fPamcChange();
- fSearchIn();
- //20091009 dhkim 종료버튼 상태값 초기화
- //fInitEndBtn();
- ]]>
- </script>
- </select1>
- <caption id="caption13" class="search_name" style="left:0px; top:7px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
- </group>
- <datagrid id="grd_hiddenfamycnst" nodeset="/root/hidden/hospiceinfo/hospicedetl" visibility="hidden" caption="caption1^caption2^caption3" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:390px; top:485px; width:320px; height:145px; ">
- <col ref="cnstdd"/>
- <col ref="pid"/>
- <col/>
- </datagrid>
- </group>
- <group id="grp_sea" style="left:200px; top:15px; width:995px; height:56px; font-family:굴림; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:985px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_prcpdd" ref="/root/send/cnstdd" class="input_search" inputtype="date" style="left:95px; top:7px; width:110px; height:19px; font-family:굴림; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/srchdd", ipt_prcpdd.value);
- //fSearch();
- fsearchDetail();
- ]]>
- </script>
- <line id="line1" class="line_4" style="x1:839px; y1:8px; x2:839px; y2:48px; "/>
- <caption id="caption7" class="search_name" style="left:5px; top:7px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">상담일자 :</caption>
- <button id="btn_serch" class="btn1_letter2" navindex="59" style="left:850px; top:15px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fSearchIn();
- fsearchDetail();
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn1_letter2" navindex="59" style="left:915px; top:15px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPMNH01600", "XMLSTR");
- ]]>
- </script>
- </button>
- <select1 id="radio4" ref="/root/send/jobkind" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:291px; top:11px; width:229px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>사회복지사</label>
- <value>1</value>
- </item>
- <item>
- <label>간호사</label>
- <value>2</value>
- </item>
- <item>
- <label>의사</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption28" class="search_name" style="left:219px; top:8px; width:90px; height:17px; ">직 종 :</caption>
- <caption id="caption4" class="search_name" style="left:5px; top:32px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
- <button id="btn_pid" class="icon_search" navindex="6" visibility="hidden" style="left:173px; top:33px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //alert("환자 확인");
- model.removenode("/root/temp/pidinfo");
- model.makeNode("/root/temp/pidinfo");
-
- if( ipt_pid.currentText != "" ){
- model.makeValue("/root/temp/pidinfo/pid", ipt_pid.currentText);
- model.makeValue("/root/temp/pidinfo/srchcond","1");
- }else{
- model.makeValue("/root/temp/pidinfo/pid", ipt_pid.currentText);
- model.makeValue("/root/temp/pidinfo/srchcond","2");
- }
-
- modal("SPPMC02500", "","150", "150", "SPPMC02500", "/root/temp/pidinfo","/root/send");
-
- if(model.getValue("/root/main/patinfo/patinfolist/pid") == ""){
- return;
- }
- var sex = "";
-
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/age", model.getValue("/root/main/patinfo/patinfolist/age"));
- if( model.getValue("/root/main/patinfo/patinfolist/sex") == "F" ){
- model.setValue("/root/send/sex", "여성");
- }else{
- model.setValue("/root/send/sex", "남성");
- }
-
- ipt_pid.refresh();
- opt_hngnm.refresh();
- opt_sex.refresh();
- opt_age.refresh();
-
- btn_serch.dispatch("DOMActivate");
- //alert(model.getValue("/root/send/pid"));
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:220px; top:31px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">환자명 :</caption>
- <output id="opt_hngnm" ref="/root/send/hngnm" class="output_fix" style="left:295px; top:32px; width:71px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:375px; top:30px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">성별 :</caption>
- <output id="opt_sex" ref="/root/send/sex" class="output_fix" style="left:440px; top:32px; width:66px; height:19px; text-align:center; "/>
- <caption id="caption9" class="search_name" style="left:515px; top:31px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">나이 :</caption>
- <caption id="caption3" style="left:621px; top:32px; width:25px; height:20px; ">세</caption>
- <output id="opt_age" ref="/root/send/age" class="output_fix" style="left:580px; top:32px; width:41px; height:19px; text-align:center; "/>
- <caption id="caption1" class="search_name" style="left:529px; top:8px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
- <select id="checkbox1" ref="/root/send/cnstkind1" overflow="visible" appearance="full" cols="7" style="left:593px; top:11px; width:57px; height:15px; font-family:돋움체; border-style:none; ">
- <choices>
- <item>
- <label>돌봄</label>
- <value>01</value>
- </item>
- </choices>
- </select>
- <select id="checkbox2" ref="/root/send/cnstkind2" overflow="visible" appearance="full" cols="7" style="left:649px; top:11px; width:57px; height:15px; font-family:돋움체; border-style:none; ">
- <choices>
- <item>
- <label>임종</label>
- <value>02</value>
- </item>
- </choices>
- </select>
- <input id="ipt_pid1" visibility="hidden" style="left:95px; top:28px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- btn_pid.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <output id="ipt_pid" ref="/root/send/pid" class="output_fix" style="left:94px; top:32px; width:71px; height:19px; "/>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:715px; top:35px; width:86px; height:17px; ">조회기간 :</caption>
- <input id="ipt_fbrthdd" ref="/root/send/fbrthdd" class="input_default" navindex="1" visibility="hidden" inputtype="date" style="left:800px; top:33px; width:85px; height:19px; "/>
- <caption id="caption10" class="search_no_b" visibility="hidden" style="left:885px; top:33px; width:12px; height:17px; ">~</caption>
- <input id="ipt_lbrthdd" ref="/root/send/lbrthdd" class="input_default" navindex="2" visibility="hidden" inputtype="date" style="left:895px; top:33px; width:85px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|