123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772 |
- /*
-
- 복막투석실시관리(SMMND00800.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
-
- //**전역변수**//
- var sRecHistRow = "";
- var XmlInstNm = "pdinfospeclist/pdinfospec" + " " // 복막투석정보
- + "epospeclist/epospec" + " " // EPO 내역
- + "insulinspeclist/insulinspec" + " " // 인슐린 내역
- + "bizexecspeclist/bizexecspec"; // 업무실시 내역
- //20090902-kys=======================
- var zbcResultRef = "/root/hidden/zbc/resultref";
- var zbcM0132Ref = "/root/init/M0132list/M0132";
- function makeZbcResultRef(){ model.makeNode(zbcResultRef); }
- function removeZbcResultRef(){ model.removeNode(zbcResultRef); }
- function removeM0132ResultRef(){ model.removeNodeset(zbcM0132Ref); }
- //20090902-kys=============================
- /**
- * @group :
- * @ver : 2007.05.31
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDone(){
- //**그리드 초기화**//
- model.removeNodeset("/root/main/pdmatnpatlist"); // 복막투석 유지환자 리스트
- model.removeNodeset("/root/main/rechistlist"); // 복막투석 실시등록 리스트
-
- //model.refresh();
-
- //**공통코드 가져오기**//
- zbcfGetCodeList( new Array ( "M0130" // APD종류
- , "M0131" // 복막투석액 회사명
- , "M0132" // 복막투석액
- )
- , new Array ( "/root/init/M0130list" // APD종류
- , "/root/init/M0131list" // 복막투석액 회사명
- , "/root/init/M0132list" // 복막투석액
- )
- );
-
- //** 상단환자 화면설정 **//
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/temp/paminfo", node);
-
- if(getNodesetCount("/root/temp/paminfo") > 0) {
- var sSelPid = model.getValue("/root/temp/paminfo/list/pid"); // 등록번호
-
- model.setValue("/root/main/condition/pid", sSelPid);
- }
- fSrchPDMatnPatList(); // 복막투석 유지환자리스트 조회
-
- if(model.getValue("/root/main/condition/pid") != "") {
- var iRow = 1;
- fInit(); // 초기화
- var sSelPid = grd_pdmatnpatinfo.textmatrix(iRow, 1); // 등록번호
- var sMaintePatRgstDD = grd_pdmatnpatinfo.textmatrix(iRow, 4); // 유지환자 등록일자
-
- // 선택 행 셀 색상 지정
- grd_pdmatnpatinfo.cellstyle("background-color", iRow, 1, iRow, 4) = "#ffd9ff";
-
- fGetPatInfo(sSelPid, sMaintePatRgstDD); // 환자정보 설정
- fSrchPatHist(); // 복막투석 실시등록 리스트 조회
- }
-
-
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 회사명별 투석액 콤보 설정
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetDialLiqList(){
- /*zbcfGetKindCodeList(
- new Array("M0028"), //업무규칙
- new Array("M0132"), //코드군
- new Array("/root/init/M0132list"), //노드
- true, //minimum : true TRZBC00105
- new Array("cdid"), //sorting 항목
- new Array("asc")
- ); */
- //20090923-kys수정(회사별 투석액설정)
- var sSelCmpyCd = model.getValue("root/main/reclist/recinfo/recinfolists/cmpycd");
- fGetChildCodeList("M0132", "/root/init/M0132list", sSelCmpyCd);//20090902-kys
- cmb_dialliqdcd.refresh();
- }
- /**
- * @group :
- * @ver : 2007.06.08
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 복막투석 유지환지리스트 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchPDMatnPatList(){
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/reqdata/pid",model.getValue("/root/main/condition/pid"));
- model.makeValue("/root/send/reqdata/dialflag", "P"); // 투석구분 (P:복막)
-
- //model.removeNodeset("/root/main/pdmatnpatlist/pdmatnpatinfo");
- model.removeNodeset("/root/main/pdmatnpatlist");
-
- submit("TRMND00801");
-
- if(model.getValue("/root/main/condition/pid") != "") {
- // grd_pdmatnpatinfo.cellstyle("background-color", 1, 1, 1, 3) = "#ffd9ff"; // 복막투석 유지환자리스트 셀 색상 지정
- for(var i=1; i<=grd_rechistinfo.rows; i++) {
- grd_rechistinfo.cellstyle("background-color", i, 1, i, 3) = "white"; // 복막투석 실시등록 리스트 셀 색상 초기화 (white)
- }
- //fGetPatInfo(model.getValue("/root/main/pdmatnpatlist/pdmatnpatinfo[1]/pid"), model.getValue("/root/main/pdmatnpatlist/pdmatnpatinfo[1]/maintepatrgstdd")); // 환자정보 설정
- //fSrchPatHist(); // 복막투석 실시등록 리스트 조회 // 환자별 도관기록 리스트 조회
- }
- }
- /**
- * @group :
- * @ver : 2015.07.22
- * @by : 권영애
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 복막투석적절도검사일과 결과 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchPDKTVInfo(sSelPid){
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/reqdata/pid",sSelPid);
- model.makeValue("/root/send/reqdata/dialflag", "P"); // 투석구분 (P:복막)
-
- //model.removeNodeset("/root/main/pdmatnpatlist/pdmatnpatinfo");
- model.removeNodeset("/root/main/pdktvinfo");
-
- submit("TRMND00808");
-
- }
- /**
- * @group :
- * @ver : 2007.06.25
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- // 초기화
- if(getNodesetCount("/root/main/reclist/recinfo/recinfolists")>0){
- fClearChildNode("/root/main/reclist/recinfo/recinfolists"); // 복막투석정보
- }
- if(getNodesetCount("/root/main/reclist/recinfo/pdinfospeclist")>0){
- fClearChildNode("/root/main/reclist/recinfo/pdinfospeclist/pdinfospec"); // 복막투석정보(XML)
- }
- if(getNodesetCount("/root/main/reclist/recinfo/epospeclist")>0){
- fClearChildNode("/root/main/reclist/recinfo/epospeclist/epospec"); // EPO내역
- }
- if(getNodesetCount("/root/main/reclist/recinfo/insulinspeclist")>0){
- fClearChildNode("/root/main/reclist/recinfo/insulinspeclist/insulinspec"); // 인슐린내역
- }
- if(getNodesetCount("/root/main/reclist/recinfo/bizexecspeclist")>0){
- fClearChildNode("/root/main/reclist/recinfo/bizexecspeclist/bizexecspec"); // 업무실시 내역
- }
-
- model.setValue("/root/main/condition/recfromdd", ""); // 조회기간 초기화
- model.setValue("/root/main/condition/rectodd", "");
-
- model.makeValue("/root/main/pdktvinfo/execdt",""); //20150723 적절도평가일자 초기화
- model.makeValue("/root/main/pdktvinfo/ktvrsltcnts",""); //20150723 적절도결과일자 초기화
-
- grp_pdrecinfo.disabled = true; // 복막투석실시기록 활성화
- btn_newrgst.disabled = false; // 신규등록버튼 활성화
- grp_optapd.visible = false;
-
- //기록자 정보 설정
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recid", getUserId()); // 현재 로그인한 사용자 ID
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recnm", getUserName()); // 현재 로그인한 사용자명
-
- // 유지환자 리스트 셀 색상 초기화 (white)
- for(var i=1; i<=grd_pdmatnpatinfo.rows; i++) {
- grd_pdmatnpatinfo.cellstyle("background-color", i, 1, i, 4) = "white";
- }
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.06.08
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 선택 환자 정보 설정(복막투석 유지환자리스트 더블클릭 시)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetPatInfo(sSelPid, sMaintePatRgstDD){
- // 환자정보 설정
- model.makeValue("/root/main/reclist/recinfo/recinfolists/pid", sSelPid); // 선택환자 등록번호
- model.makeValue("/root/main/reclist/recinfo/recinfolists/maintepatrgstdd", sMaintePatRgstDD); // 선택환자 유지환자등록일자
-
- //2008-08-07 : 기록일자- default 지정
- model.setValue("/root/main/condition/rectodd", getCurrentDate());
- model.setValue("/root/main/condition/recfromdd", getDateCalc(getCurrentDate(), 365*2, '-'));
-
- //model.refresh();
- }
-
- /**
- * @group :
- * @ver : 2007.06.08
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 복막투석 간호기록 저장
- * @param : pFlag : 저장구분("T":임시저장, "C":인증저장)
- * @return :
- * @---------------------------------------------------
- */
- function fSavePDRecInfo(pFlag){
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/recdd")=="" || model.getValue("/root/main/reclist/recinfo/recinfolists/rectm")==""){
- messageBox("기록일시를 입력하십시오.", "E");
- model.setFocus("ipt_recdd"); return;
- }
- //** 2011.05.25 권영애 **//
-
- if(pFlag == "C" && model.getValue("/root/main/reclist/recinfo/recinfolists/histstat") == "O") {
- messageBox("외래환자는 인증저장할 수 없습니다. 저장하세요", "E");
- return;
- }
- //** 동일기록일시에 복막투석 실시기록 존재여부 확인 **//
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/status") == "i") {
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/recinfolists/pid") );
- model.makeValue ("/root/send/reqdata/recdd", model.getValue("/root/main/reclist/recinfo/recinfolists/recdd"));
- model.makeValue ("/root/send/reqdata/rectm", model.getValue("/root/main/reclist/recinfo/recinfolists/rectm"));
- model.removeNodeset("/root/main/chklist");
- submit("TRMND00805");
-
- // 동일기록일자에 복막실시기록 존재 할 경우
- if(model.getValue("/root/main/chklist/chkinfo/pid") != "") {
- messageBox("동일일시에 복막투석 실시기록이 존재합니다.", "E");
- // 기록일시 설정
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recdd", getCurrentDate()); // 기록일자
- model.makeValue("/root/main/reclist/recinfo/recinfolists/rectm", getCurrentTime().substr(0,4)); // 기록시간
- //fSrchPastPDInfo(); // 최근 복막투석 실시기록 조회
- model.refresh();
- return;
- }
- }
-
- //** 저장실행 **//
- XmlDataCheck(XmlInstNm);
-
- model.removenode("/root/send");
- model.makeNode ("/root/send/savedata");
- copyNodeType ("/root/send/savedata", "/root/main/reclist/recinfo/recinfolists");
- model.makeValue("/root/send/savedata/certflag", pFlag); // 인증여부( T : 임시저장, C : 인증저장)
-
- model.removeNodeset("/root/send/savedata/pdinfospeclist");
- sXml = instance1.selectNodesXml("/root/main/reclist/recinfo/pdinfospeclist/pdinfospec"); // 투석정보
- model.makeValue("/root/send/savedata/pdinfospeclist", sXml);
-
- model.removeNodeset("/root/send/savedata/epospeclist");
- sXml = instance1.selectNodesXml("/root/main/reclist/recinfo/epospeclist/epospec"); // epo 내역
- model.makeValue("/root/send/savedata/epospeclist", sXml);
-
- model.removeNodeset("/root/send/savedata/insulinspeclist");
- sXml = instance1.selectNodesXml("/root/main/reclist/recinfo/insulinspeclist/insulinspec"); // 인슐린 내역
- model.makeValue("/root/send/savedata/insulinspeclist", sXml);
-
- model.removeNodeset("/root/send/savedata/bizexecspeclist");
- sXml = instance1.selectNodesXml("/root/main/reclist/recinfo/bizexecspeclist/bizexecspec"); // 업무실시 내역
- model.makeValue("/root/send/savedata/bizexecspeclist", sXml);
-
- //** 복막투석실시관리 인증저장기능 삭제됨. 주석처리(2007-12-17) **//
- // 인증저장일 경우
- if(pFlag == "C"){
- if(Sign.signprocess() == true){ // 인증 로직 호출
- model.removeNodeset("/root/send/savedata/signinfo");
- model.makeValue("/root/send/savedata/signinfo/pid" , model.getValue("/root/main/reclist/recinfo/recinfolists/pid") ); // 등록번호
- model.makeValue("/root/send/savedata/signinfo/orddd" , model.getValue("/root/main/reclist/recinfo/recinfolists/orddd") ); // 진료일자
- model.makeValue("/root/send/savedata/signinfo/signno" , model.getValue("/root/main/reclist/recinfo/recinfolists/signno") ); // 서명번호
- model.makeValue("/root/send/savedata/signinfo/cretno" , model.getValue("/root/main/reclist/recinfo/recinfolists/cretno") ); // 생성번호
- model.makeValue("/root/send/savedata/signinfo/recdd" , model.getValue("/root/main/reclist/recinfo/recinfolists/recdd") ); // 실제 기록이 이루어진 기록일자(통합기록에서 보여짐)
- model.makeValue("/root/send/savedata/signinfo/rectm" , model.getValue("/root/main/reclist/recinfo/recinfolists/rectm") ); // 실제 기록이 이루어진 기록시간(통합기록에서 보여짐)
- model.makeValue("/root/send/savedata/signinfo/recsaveflag" , "Y" ); // 전자서명 인적정보 변경여부(기록일시 변경되는 경우: Y, 그외: N)
- model.makeValue("/root/send/savedata/signinfo/signflag" , "02"); // 서명자료구분(01 : 진료, 02 : 간호)
- model.makeValue("/root/send/savedata/signinfo/signgenrflag", model.getValue("/root/main/reclist/recinfo/recinfolists/histstat")); // 서명발생구분 (코드정의서 M0010 참조)
- model.makeValue("/root/send/savedata/signinfo/formcd" , "1100011162"); // 각 기록지별 서식코드
- model.makeValue("/root/send/savedata/signinfo/orddeptcd" , model.getValue("/root/main/reclist/recinfo/recinfolists/orddeptcd")); // 진료부서코드
- model.makeValue("/root/send/savedata/signinfo/orddrid" , model.getValue("/root/main/reclist/recinfo/recinfolists/orddrid") ); // 진료의사ID
- model.makeValue("/root/send/savedata/signinfo/signbfcnts" , Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
- model.makeValue("/root/send/savedata/signinfo/signaftcnts" , Sign.signedInfos[2]); // 공인인증 처리후 데이터
- }else{
- return false;
- }
- }
- submit("TXMND00801");
-
- //** 복막투석 실시등록 리스트 조회 **//
- fSrchPatHist(); // 복막투석 실시등록 리스트 조회
-
- var sRecdd = model.getValue("/root/main/reclist/recinfo/recinfolists/recdd");
- var sRectm = model.getValue("/root/main/reclist/recinfo/recinfolists/rectm");
- var sRecnm = model.getValue("/root/main/reclist/recinfo/recinfolists/recnm");
- var sPid = model.getValue("/root/main/reclist/recinfo/recinfolists/pid");
- var sSignno = model.getValue("/root/main/reclist/recinfo/recinfolists/signno");
-
- //** 복막투석 실시기록 조회 **//
- fSrchPDInfo(sRecHistRow); // 복막투석 실시기록 조회
- model.setValue("/root/main/reclist/recinfo/recinfolists/status" , "u");
- }
-
- /* ------------------------------------------------- */
- /* desc : 인증데이터 만들기 */
- /* param : pModel - Model */
- /* tNode - Target Node */
- /* sNode - Source Node */
- /* return : */
- /* -------------------------------------------------- */
- function fMake_SignData(){
- Sign.addnode("/root/main/reclist/recinfo"); //기록 관련 인스턴스 전체를 copy
- // 인스턴스 copy 후에 콤보나 체크박스 같은 경우 코드값은 명칭으로 변경
- var xRecinfoPath = Sign.XPATH_SIGNINFO+"/recinfo/recinfolists";
-
- // 투석종류
- model.makeValue(xRecinfoPath + "/dialkindflag", rdo_dialkindflag.label);
-
- // APD종류
- var sApdKindFlag = model.getValue(xRecinfoPath+"/apdkindflag");
- if(sApdKindFlag != ""){
- model.makeValue(xRecinfoPath+"/apdkindflag",model.getValue("/root/init/M0130list/M0130[cdid='"+sApdKindFlag+"']/cdnm"));
- }
-
- // 회사명
- var sCmpyCd = model.getValue(xRecinfoPath+"/cmpycd");
- if(sCmpyCd != ""){
- model.makeValue(xRecinfoPath+"/cmpycd",model.getValue("/root/init/M0131list/M0131[cdid='"+sCmpyCd+"']/cdnm"));
- }
-
- // 투석액
- var sDialLiqdCd = model.getValue(xRecinfoPath+"/dialliqdcd");
- if(sDialLiqdCd != ""){
- model.makeValue(xRecinfoPath+"/dialliqdcd",model.getValue("/root/init/M0132list/M0132[cdid='"+sDialLiqdCd+"']/cdnm"));
- }
-
- // Break Point
- var xBreakPointYnPath = Sign.XPATH_SIGNINFO + "/recinfo/pdinfospeclist/pdinfospec/breakpointyn";
- var sBreakPointYn = model.getValue(xBreakPointYnPath);
- switch(sBreakPointYn){
- case '1':
- model.makeValue(xBreakPointYnPath, "무"); break;
- case '2':
- model.makeValue(xBreakPointYnPath, "유"); break;
- }
-
- // 자가간호
- var sSelfCareYn = model.getValue(xRecinfoPath + "/selfcareyn");
- switch(sSelfCareYn){
- case '1':
- model.makeValue(xRecinfoPath + "/selfcareyn", "무"); break;
- case '2':
- model.makeValue(xRecinfoPath +"/selfcareyn", "유"); break;
- }
-
- // 헤파린
- var sHeparinYn = model.getValue(xRecinfoPath + "/heparinyn");
- switch(sHeparinYn){
- case '1':
- model.makeValue(xRecinfoPath + "/heparinyn", "무"); break;
- case '2':
- model.makeValue(xRecinfoPath + "/heparinyn", "유"); break;
- }
-
- // EPO
- var xEpoYnPath = Sign.XPATH_SIGNINFO + "/recinfo/epospeclist/epospec/epoyn";
- var sEpoYn = model.getValue(xEpoYnPath);
- switch(sEpoYn){
- case '1':
- model.makeValue(xEpoYnPath, "무"); break;
- case '2':
- model.makeValue(xEpoYnPath, "유"); break;
- }
- // 실시업무
- var xExecBizPath = Sign.XPATH_SIGNINFO + "/recinfo/bizexecspeclist/bizexecspec/execbiz";
- var sExecBiz = model.getValue(xExecBizPath);
- var sExecBizVal = sExecBiz.split(" ");
- var sExecBizStr = "";
-
- for(var i=0; i<sExecBizVal.length; i++){
- switch(sExecBizVal[i]){
- case '1':
- sExecBizStr = sExecBizStr + ",카테터 고정"; break;
- case '2':
- sExecBizStr = sExecBizStr + ",출구소독"; break;
- case '3':
- sExecBizStr = sExecBizStr + ",도관길들이기"; break;
- case '4':
- sExecBizStr = sExecBizStr + ",부종확인"; break;
- case '5':
- sExecBizStr = sExecBizStr + ",PET"; break;
- case '6':
- sExecBizStr = sExecBizStr + ",KT/V"; break;
- case '7':
- sExecBizStr = sExecBizStr + ",투석액 교환"; break;
- }
- }
- model.makeValue(xExecBizPath, sExecBizStr);
-
- // 교육내용
- var xEduCntsPath = Sign.XPATH_SIGNINFO + "/recinfo/bizexecspeclist/bizexecspec/educnts";
- var sEduCnts = model.getValue(xEduCntsPath);
- var sEduCntsVal = sEduCnts.split(" ");
- var sEduCntsStr = "";
-
- for(var i=0; i<sEduCntsVal.length; i++){
- switch(sEduCntsVal[i]){
- case '1':
- sEduCntsStr = sEduCntsStr + ",출구관리"; break;
- case '2':
- sEduCntsStr = sEduCntsStr + ",식이교육"; break;
- case '3':
- sEduCntsStr = sEduCntsStr + ",투약교육"; break;
- case '4':
- sEduCntsStr = sEduCntsStr + ",검사설명"; break;
- case '5':
- sEduCntsStr = sEduCntsStr + ",일상생활관리"; break;
- }
- }
- model.makeValue(xEduCntsPath, sEduCntsStr);
- }
-
- /**
- * @group :
- * @ver : 2007.06.08
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 복막투석 실시등록 리스트 조회 (복막투석 유지환자 리스트 더블 클릭 시)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchPatHist(){
- // var iRow = grd_pdmatnpatinfo.row;
- var sSelPid = model.getValue("/root/main/reclist/recinfo/recinfolists/pid"); //grd_pdmatnpatinfo.textmatrix(iRow, 1);
-
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/reqdata/pid", sSelPid);
- model.makeValue("/root/send/reqdata/recfromdd", model.getValue("/root/main/condition/recfromdd"));
- model.makeValue("/root/send/reqdata/rectodd ", model.getValue("/root/main/condition/rectodd "));
- model.removeNodeset("/root/main/rechistlist/rechistinfo");
-
- submit("TRMND00802");
- }
- /**
- * @group :
- * @ver : 2007.06.11
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 최근 복막투석 실시기록 조회 (신규등록 버튼 클릭 시)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchPastPDInfo(){
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/pid") == "") {
- messageBox("복막투석 유지환자를 선택한 후", "I", "신규등록을 할 수 있습니다.");
- return;
- }
-
- var sRecdd = grd_rechistinfo.textmatrix(1, 1); // 기록일자 (복막투석 실시리스트)
- var sRectm = grd_rechistinfo.textmatrix(1, 2); // 기록시간
- var sRecnm = grd_rechistinfo.textmatrix(1, 3); // 기록자
- var sPid = grd_rechistinfo.textmatrix(1, 4); // 등록번호
-
- grp_pdrecinfo.disabled = "false"; // 복막투석실시기록 활성화
-
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/reqdata/recdd", sRecdd); // 기록일자
- model.makeValue("/root/send/reqdata/rectm", sRectm); // 기록시간
- model.makeValue("/root/send/reqdata/recnm", sRecnm); // 기록자
- model.makeValue("/root/send/reqdata/pid" , sPid ); // 등록번호
-
- // model.removeNodeset("/root/main/reclist/recinfo/recinfolists");
- model.removeNodeset("/root/main/xmlformatlist/epospeclist");
- model.removeNodeset("/root/main/xmlformatlist/insulinspeclist");
-
- submit("TRMND00803", false);
-
- // 조회 된 데이터 실인스턴스에 매핑
- var sTmpNode = "dialkindflag apdkindflag vol cycleval concenval cmpycd dialliqdcd selfcareyn heparinyn";
- sTmpNode = sTmpNode.split(" ");
-
- for(var i=0; i<sTmpNode.length; i++) {
- model.setValue("/root/main/reclist/recinfo/recinfolists/" + sTmpNode[i], model.getValue("/root/main/xmlformatlist/recinfolists/" + sTmpNode[i]));
- }
- copyNodeType("/root/main/reclist/recinfo/epospeclist/epospec", "/root/main/xmlformatlist/epospeclist/epospec");
- copyNodeType("/root/main/reclist/recinfo/insulinspeclist/insulinspec", "/root/main/xmlformatlist/insulinspeclist/insulinspec");
-
- // Default 설정
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/dialkindflag") == ""){
- model.makeValue("/root/main/reclist/recinfo/recinfolists/dialkindflag", "1"); // 투석종류 Default 설정 (1 :CAPD)
- }
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/selfcareyn") == ""){
- model.makeValue("/root/main/reclist/recinfo/recinfolists/selfcareyn", "1"); // 자가간호 Default 설정 (1 :무)
- }
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/heparinyn") == ""){
- model.makeValue("/root/main/reclist/recinfo/recinfolists/heparinyn", "1"); // 헤파린 Default 설정 (1 :무)
- }
- if(model.getValue("/root/main/reclist/recinfo/epospeclist/epospec/epoyn") == ""){
- model.makeValue("/root/main/reclist/recinfo/epospeclist/epospec/epoyn", "1"); // EPO Default 설정 (1 :무)
- }
-
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/dialkindflag") == "1"){ // 투석종류("1":CAPD 일 경우)
- cmb_apdkindflag.disabled = true;
- grp_optapd.visible = false;
- model.makeValue("/root/main/reclist/recinfo/recinfolists/apdkindflag", "");
- }else{
- cmb_apdkindflag.disabled = false;
- grp_optapd.visible = true;
- }
- if(model.getValue("/root/main/reclist/recinfo/epospeclist/epospec/epoyn") == "1"){ // EPO("1":무 일 경우)
- ipt_drugnm.disabled = true;
- ipt_vol.disabled = true;
- ipt_weektims.disabled = true;
- }
-
- // 기록일시 설정
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recid", getUserId());
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recnm", getUserName());
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recdd", getCurrentDate()); // 기록일자
- model.makeValue("/root/main/reclist/recinfo/recinfolists/rectm", getCurrentTime().substr(0,4)); // 기록시간
-
- model.makeValue("/root/main/reclist/recinfo/recinfolists/status", "i"); // 상태값 설정 (insert)
-
- fClearChildNode("/root/main/reclist/recinfo/pdinfospeclist/pdinfospec"); // 복막투석정보 초기화
- fClearChildNode("/root/main/reclist/recinfo/bizexecspeclist/bizexecspec"); // 업무실시내역 등록 초기화
- //20090923-kys=======
- fGetDialLiqList();
- //20090923-kys==========
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.06.11
- * @by : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 복막투석 실시기록 조회 (복막투석 실시등록 리스트 더블 클릭 시)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchPDInfo(sRecHistRow){
- var sRecdd = model.getValue("/root/main/rechistlist/rechistinfo["+sRecHistRow+"]/recdd"); // 기록일자
- var sRectm = model.getValue("/root/main/rechistlist/rechistinfo["+sRecHistRow+"]/rectm"); // 기록시간간
- var sRecnm = model.getValue("/root/main/rechistlist/rechistinfo["+sRecHistRow+"]/recnm"); // 기록자
- var sPid = model.getValue("/root/main/rechistlist/rechistinfo["+sRecHistRow+"]/pid"); // 등록번호
-
- if(sRecHistRow == 0) { // title 클릭 시
- messageBox("복막투석 실시등록 내역을 정확히", "C002", "");
- return;
- } else {
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/reqdata/recdd", sRecdd); // 기록일자
- model.makeValue("/root/send/reqdata/rectm", sRectm); // 기록시간
- model.makeValue("/root/send/reqdata/recnm", sRecnm); // 기록자
- model.makeValue("/root/send/reqdata/pid" , sPid); // 등록번호
-
- // model.removeNodeset("/root/main/reclist/recinfo/recinfolists");
- model.removeNodeset("/root/main/reclist/recinfo/pdinfospeclist");
- model.removeNodeset("/root/main/reclist/recinfo/epospeclist");
- model.removeNodeset("/root/main/reclist/recinfo/insulinspeclist");
- model.removeNodeset("/root/main/reclist/recinfo/bizexecspeclist");
-
- submit("TRMND00804");
-
- grp_pdrecinfo.disabled = false; // 복막투석실시기록 활성화
- if(model.getValue("/root/main/rechistlist/rechistinfo["+sRecHistRow+"]/signno") != ""){ // 인증저장된 기록의 경우 임시저장버튼 비활성화
- btn_tmpsave.disabled = true;
- }
-
- // 복막투석종류별 APD내역 그룹 활성화 여부 설정
- if(model.getValue("/root/main/reclist/recinfo/recinfolists/dialkindflag") == 1) { // CAPD
- grp_optapd.visible = false; // APD내역 그룹 비활성화
- cmb_apdkindflag.disabled = true; // APD세부정보 콤보 비활성화
- model.setValue("/root/main/reclist/recinfo/recinfolists/apdkindflag", "");
- } else { // APD
- grp_optapd.visible = true; // APD내역 그룹 활성화
- cmb_apdkindflag.disabled = false; // APD세부정보 콤보 활성화
- }
-
- if(model.getValue("/root/main/reclist/recinfo/epospeclist/epospec/epoyn") == "1"){
- ipt_drugnm.disabled = true;
- ipt_vol.disabled = true;
- ipt_weektims.disabled = true;
- }
-
- // 상태값 설정 (update)
- model.makeValue("/root/main/reclist/recinfo/recinfolists/status", "u");
- //20090923-kys=======
- fGetDialLiqList();
- //20090923-kys==========
- model.refresh();
- }
- }
- /* ------------------------------------------------- */
- /* desc : Instance NodeCopy 하기 (SMMNP007.js 참조) */
- /* param : pModel - Model */
- /* tNode - Target Node */
- /* sNode - Source Node */
- /* return : */
- /* -------------------------------------------------- */
-
- function InstanceNodeCopy(pModel, tNode, sNode) {
- pModel.copyNode(tNode, sNode );
- }
-
- /* ------------------------------------------------- */
- /* desc : Instance NodeCopy 하기(SMMNP007.js 참조) */
- /* param : pModel - Model */
- /* tNode - Target Node */
- /* sNode - Source Node */
- /* return : */
- /* -------------------------------------------------- */
-
- function XmlDataCheck(XmlInstNm) {
- XmlInstNm = XmlInstNm.split(" ");
- var tNode = "";
- var sNode = "";
-
- for (var i=0; i < XmlInstNm.length; i++){
-
- tNode = "/root/main/reclist/recinfo/" + XmlInstNm[i];
- if (instance1.selectSingleNode(tNode).childNodes.length < 1) {
- sNode = "/root/main/xmlformatlist/" + XmlInstNm[i];
- InstanceNodeCopy(model, tNode, sNode);
- }
- }
- }
- /**
- * @group :
- * @ver : 2007.07.25 // 수정일자 : 2007.09.21
- * @by : 최경용 // 수정자 : 김진아
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 참여자 정보 팝업 조회
- * @param : originalNode
- * @param : copyNode
- * @return : "true"/"false"
- * @---------------------------------------------------
- */
- function fClickUserBtn(userflag){
- var jobkindcd = "11";
- //var deptcd = "2010702070"; // 인공신장실Unit 부서코드:"2010702070"
- //하드코드수정-20090416
- var deptcd = model.getValue("/root/code/codeinfo/codelist/cdid");
- //alert("deptcd = " + deptcd);
- var titlenm = "인공신장실 간호사 리스트";
-
- setParameter("SPMNN02100_deptcd" , deptcd);
- setParameter("SPMNN02100_jobkindcd", jobkindcd);
- setParameter("SPMNN02100_titlenm" , titlenm);
-
- modal("SPMNN02100", 1);
-
- var userid = getParameter("SPMNN02100_userid");
- var usernm = getParameter("SPMNN02100_usernm");
- if(userid != ""){
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recid", userid);
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recnm", usernm);
- } else{
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recid", "");
- model.makeValue("/root/main/reclist/recinfo/recinfolists/recnm", "");
- model.setFocus("ipt_recid");
- }
-
- setParameter("SPMNN02100_userid", "");
- setParameter("SPMNN02100_usernm", "");
- ipt_recid.refresh();
- ipt_recnm.refresh();
- }
- /**
- * @group :
- * @ver : 2009.09.23
- * @by : 김양수
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 투석액 조회(회사명선택시-콤보박스)
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetChildCodeList(cd_grup_id_list, rslt_ref_list, supid){
- makeZbcResultRef();
- setParameter("cdgrupid", cd_grup_id_list);
- setParameter("supid", supid);
- var success = submit("TRMND00807", "false", getParameterPath(), zbcResultRef);
- var sourceNode = instance1.selectNodes(zbcResultRef+"/"+cd_grup_id_list+"/"+cd_grup_id_list);
- removeM0132ResultRef();
- for(i=0; i<sourceNode.length; i++){
- model.duplicate(rslt_ref_list, sourceNode.item(i));
- }
- removeZbcResultRef();
- clearParameter("cdgrupid");
- clearParameter("supid");
- }
|