12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPMMP01200.xrw
- * 설 명 : CP검색
- * 설 계 자 : 조범준
- * 작 성 자 : 전지은
- * 작 성 일 : 2007
- * 수정이력 : 2008-06 /손주연 / 외래CP추가로 인한 CP/CPG정보조회시 IOFLAG추가 및 외래/입원별 CP선택시 CHECK 추가.
- * 기 타 :
- -->
- <?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>CP 검색</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <search_cond>
- <cpgflagcd>ALL</cpgflagcd>
- <cpgorddeptcd/>
- <cpgnm/>
- <getflag/>
- <no/>
- <seq/>
- <authflag/>
- <delyn>N</delyn>
- <cpgtypecd/>
- <tmpyn>N</tmpyn>
- <indxyn>Y</indxyn>
- </search_cond>
- <cpglist>
- </cpglist>
- <temp/>
- <paminfo>
- <list/>
- </paminfo>
- <cpgappinfo>
- <info/>
- </cpgappinfo>
- </main>
- <hidden>
- </hidden>
- <send>
- </send>
- <init>
- <orddeptlist>
- <dept>
- <depthngnm/>
- <deptcd/>
- </dept>
- </orddeptlist>
- <cpmasterlist/>
- <cpgmasterlist/>
- </init>
- <temp>
- <getdata/>
- <reqdata>
- <cpgno/>
- <cpghistseq/>
- <cpgflagcd/>
- <cpgnm/>
- <selectindxcd/>
- <selectindxnm/>
- </reqdata>
- <rsltgetdata/>
- <selected>
- <cpgno/>
- <cpghistseq/>
- <cpgnm/>
- <cpgflagcd/>
- </selected>
- <appdata>
- <rtncase/>
- <prtlflagcd/>
- <cpgnm/>
- <appstat/>
- <trnsinptyn/>
- </appdata>
- <publcpglist/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- grd_cpglist.explorerbar = "sortshow";
- if(getGlobalVariable("paminfo")){
- btn_app.disabled = false;
- }
-
- fGetCodeList(); //부서코드 조회
- fGetAuthFlag(); //사용자의 근무부서에 따른 권한 설정
- ivw_indxmngt.window.javascript.fInitialize(); //좌측 CP Tree 조회
- ivw_indxmngt.model.setValue("/root/temp/openeruid", getMyUID());
-
- fGetCPGInfo(); //우측 Grid 조회
-
- ivw_histlist.datagrid1.colhidden(4) = true;
-
- var scrnwnd = getOpenWindow("SPMMB08400");
- if(scrnwnd != null){
- scrnwnd.javascript.fCloseOpenEmrWnd();
- }
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMP01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cpglist"/>
- <submission id="TXMMP01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/cpgappinfo"/>
- <submission id="TRMMP00807" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/pamdata" resultref="/root/temp/rsltgetdata"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <bind id="bind1" ref="/root/main/cpglist/cpginfo/cpgorddeptcd" readonly="../status = "S""/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
- var flag = "1";
- var paminfo = "";
- var old_paminfo_pid = "";
- var srcMode = 1; //2008.06.16 pymi 추가
- var authFlag = "";
- var dutPlceCd = "";
- var dutPlceNm = "";
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 공통코드를 조회한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetCodeList() {
- var standard_yn = "orduseyn";
- var ord_deptflag = "D";
- var rslt_ref = "/root/init/orddeptlist";
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddeptlist" , "A"); //부서코드 콤보
- addComboItem( "cmb_cpgorddeptcd" , "전체", "");
- //마스터 권한 정보 조회 (2010.03.26 JJE)
- mmbfGetHardCodeInfoNm("/root/send/reqdata", "/root/init/cpmasterlist", 203); //CP
- mmbfGetHardCodeInfoNm("/root/send/reqdata", "/root/init/cpgmasterlist", 204); //CPG
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 사용자의 권한을 설정한다
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetAuthFlag(){
- //<<Rule>>
- // 1. 마스터 권한: [신규] [조회] [닫기] => true
- // 2. 사용자 권한: [조회] [선택] [닫기] => true (단 사용자 권한만 있는 경우, [미리보기]도 true)
-
- dutPlceCd = getUserInfo("dutplcecd");
- dutPlceNm = getUserInfo("dutplcenm"); //근무지명
- var dutPlceInstCd = getUserInfo("dutplceinstcd"); //근무기관코드
- var jobKindCd = getUserInfo("jobkindcd"); //직종코드(0330:의사, 0332:치과의사)
- var userId = getUserInfo("userid"); //사용자ID
-
- var Master_authYN = "N";
- var User_authYN = "N";
- var btn_XPos = parseInt(btn_cancel.attribute("left")) - 5;
-
- var hardcd1 = model.getValue("/root/init/cpmasterlist/hardcd[hardcd='" + dutPlceCd + "' or hardcd='" + jobKindCd + "']/hardcd");
- var hardcd2 = model.getValue("/root/init/cpgmasterlist/hardcd[hardcd='" + dutPlceCd + "' or hardcd='" + jobKindCd + "']/hardcd");
- if( !isNull(hardcd1) || !isNull(hardcd2) ){
- Master_authYN = "Y";
- }else{
- setSpclScrnAuth("R", false);
- }
-
- model.makeNode("/root/cpinitsrch");
- if( getOrderBasicInfo("/root/cpinitsrch") ){
- var trgtcd = model.getValue ( "/root/cpinitsrch/drjobkindcd[trgtcd='" + jobKindCd + "']/trgtcd" );
- if ( !isNull(trgtcd) ){
- User_authYN = "Y";
- setSpclScrnAuth("X", false);
- }
- }
-
- if( Master_authYN == "N" && User_authYN == "N" ){
- model.setValue("/root/main/search_cond/authflag", "S"); //select mode
- btn_srchver.attribute("left") = btn_XPos - parseInt(btn_srchver.attribute("width"));
- btn_srchver.visible = true;
- }
- else if( Master_authYN == "Y" && User_authYN == "Y" ){
- model.setValue("/root/main/search_cond/authflag", "U"); //user
- btn_newver.visible = true;
- btn_srchver.visible = true;
- btn_app.visible = true;
- }
- else if( Master_authYN == "Y" ){
- model.setValue("/root/main/search_cond/authflag", "M"); //administrator
- btn_XPos = btn_XPos - parseInt(btn_srchver.attribute("width"));
- btn_srchver.attribute("left") = btn_XPos;
- btn_XPos = btn_XPos - 3; //간격
- btn_XPos = btn_XPos - parseInt(btn_newver.attribute("width"));
- btn_newver.attribute("left") = btn_XPos;
- btn_srchver.visible = true;
- btn_newver.visible = true;
- }
- else if( User_authYN == "Y" ){
- model.setValue("/root/main/search_cond/authflag", "U"); //user
- btn_XPos = btn_XPos - parseInt(btn_app.attribute("width"));
- btn_app.attribute("left") = btn_XPos;
- btn_XPos = btn_XPos - 3; //간격
- btn_XPos = btn_XPos - parseInt(btn_srchver.attribute("width"));
- btn_srchver.attribute("left") = btn_XPos;
- btn_app.visible = true;
- btn_srchver.visible = true;
- }
-
- if( Master_authYN == "Y" ){
- btn_view.visible = true;
- btn_srchver.visible = true;
- }else{
- btn_view.visible = true;
- btn_srchver.visible = false;
- btn_controlsize.visible = false;
- btn_controlsize.dispatch("DOMActivate");
- bool1.disabled = true;
- bool2.disabled = true;
- cap_delyn.disabled = true;
- cap_tmpyn.disabled = true;
- }
-
- //부서 콤보 설정
- if( instance1.selectSingleNode("/root/init/orddeptlist/dept[deptcd='"+dutPlceCd+"']") != null ){
- model.setValue("/root/main/search_cond/cpgorddeptcd", dutPlceCd);
- }else{
- model.setValue("/root/main/search_cond/cpgorddeptcd", "");
- }
- cmb_cpgorddeptcd.refresh();
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 윈도우 사이즈를 조정한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fControlWindowSize(){
- model.makeNode("/root/temp/size");
- if(flag == "!")
- flag = 2;
- else
- flag = 1;
- model.setValue("/root/temp/size", flag);
-
- modal("SPMMP01600", 1,1,1,"SPMMP01600", "/root/temp/size", "/root/temp/size");
- model.setValue("/root/temp/size", "");
- model.removeNodeset("/root/temp/size");
- }
-
- /**
- * @group :
- * @ver : 2007.08
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 변경이력 아이뷰어의 그리드를 초기화시킨다..
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fClearHist(){
- ivw_histlist.model.removeNodeset("/root/main/cpglist/cpginfo");
- ivw_histlist.datagrid1.refresh();
- }
-
- /**
- * @group :
- * @ver : 2007.08
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : generater가 열리면서 포커스가 이동하고, 현재 선택한 cp key 를 넘긴다.
- * @param : btnKind (버튼종류: 1-조회버튼, 2-미리보기버튼)
- * @return :
- * @---------------------------------------------------
- */
- function fOpenGenerator( btnKind ){
- //2008.06.16 pymi(s)
- //node가 refresh 되지 않고 밑으로 add되는 문제때문에 추가함
- model.removeNodeset("/root/main/temp");
- model.makeNode("/root/main/temp");
- //2008.06.16 pymi(e)
-
- var vRow = ivw_histlist.datagrid1.row;
- if( grd_cpglist.row > 0 || vRow > 0 ){
- //if( vRow >= ivw_histlist.datagrid1.fixedRows) {
- model.makeValue( "/root/main/temp/setdata/cpgno", ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + vRow + "]/cpgno") );
- model.makeValue( "/root/main/temp/setdata/cpghistseq", ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + vRow + "]/orghistseq") );
- //} else {
- // model.makeValue( "/root/main/temp/setdata/cpgno", model.getValue("/root/main/cpglist/cpginfo[" + grd_cpglist.row + "]/cpgno") );
- // model.makeValue( "/root/main/temp/setdata/cpghistseq", fModifyCpgHistSeq(model.getValue("/root/main/cpglist/cpginfo[" + grd_cpglist.row + "]/cpghistseq")) );
- //}
-
- vRow = ivw_indxmngt.treeview1.focusIndex + 1;
- model.makeValue("/root/main/temp/setdata/indxno", ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + vRow + "]/indxno"));
- model.makeValue("/root/main/temp/setdata/supindxno", ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + vRow + "]/supindxno"));
- model.makeValue("/root/main/temp/setdata/indxrefseq", ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + vRow + "]/indxrefseq"));
- model.makeValue("/root/main/temp/setdata/indxseq", ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + vRow + "]/indxseq"));
- model.makeValue("/root/main/temp/setdata/cpgnm", ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + vRow + "]/indxnm"));
-
- model.makeValue("/root/main/temp/setdata/authflag", model.getValue("/root/main/search_cond/authflag"));
- if( btnKind == 1 ){
- model.makeValue("/root/main/temp/setdata/saveasflag", "SR");
- }else{
- model.makeValue("/root/main/temp/setdata/saveasflag", "VW");
- }
- //팝업에서 메인을 타겟으로 네비게이트 하면, 메인뷰어의 프로그램이 리플레이스된다.
- //메인과 본화면(팝업)은 서로 다른 뷰어이기 때문에, 두 화면끼리 데이터 전달이 직접적으로 안된다.(메인은 메인끼리 데이터 전달)
- //메인이 reay 되기 전에 미리 메인에 값을 전달해 두었다가, 화면 로딩할때, 메인끼리 데이터를 주고 받으면 된다.
- var mainObj = getMainViewer();
- if( model.getValue("/root/main/search_cond/authflag") == "M" && btnKind == 1 ) {
- //관리자는 main viewer로 조회한다.
- mainObj.model.removeNodeset("/root/main/temp");
- mainObj.model.makeNode("/root/main/temp");
- copyNodesetType("/root/main/temp", "/root/main/temp", "replace", mainObj.model, model);
- mainObj.window.javascript.navigate("SMMQP00600", "1","0","0", "SMMQP00600", "/root/main/temp/setdata", "/root/temp/getdata", "X");
- window.close();
-
- }else{
- //의사/간호사 선생님은 팝업으로 조회한다.
- var mon = getCurrentMonitorNumber();
- model.removeNodeset("/root/main/temp/getdata");
- var node = instance1.selectSingleNode("/root/main/temp/setdata");
- node.nodeName = "getdata";
-
- //2008.06.16 pymi(시작)
- //popup으로 열리기 때문에 mainObj를 control 할 필요 없음
- //mainObj.model.removeNodeset("/root/main/temp");
- //mainObj.model.makeNode("/root/main/temp");
- //copyNodesetType("/root/main/temp", "/root/main/temp", "replace", mainObj.model, model);
-
- //생성기화면이 이미 열려있으면 재조회만 하도록 수정
- var openObj = getOpenWindow("SMMQP00600");
- if(openObj != null) {
- //생성기에서 fSizeControl() 처음 한번만 수행하도록 setting 하기 위해 srcMode setting
- model.makeValue("/root/main/temp/getdata/srcMode", srcMode);
- copyNodeType("/root/temp/getdata", "/root/main/temp/getdata", "replace", openObj.model, model);
- openObj.window.javascript.fInitialize();
- srcMode ++;
-
- } else {
- model.makeValue("/root/main/temp/getdata/srcMode", "1");
- //if( btnKind == 1 ){
- open("SMMQP00600", mon,"0","0", "SMMQP00600", "/root/main/temp/getdata", "/root/temp/getdata", "", false, "R");
- //}else{
- // open("SMMQP00600", mon,"0","0", "SMMQP00600", "/root/main/temp/getdata", "/root/temp/getdata", "", false, "R");
- //mainObj.window.javascript.open("SMMQP00600", mon,"0","0", "SMMQP00600", "/root/main/temp/getdata", "/root/temp/getdata", "", false, "R");
- //}
- srcMode ++;
- }
- //2008.06.16 pymi(완료)
- }
-
- } else {
- messageBox("CP를 ", "C002");
- }
- }
-
- /**
- * @group :
- * @ver : 2007.10
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 선택한 CP가 임시일 경우 이력순번 T 를 9999 로 치환한다
- * @param :
- * @return : cpghistseq
- * @---------------------------------------------------
- */
- function fModifyCpgHistSeq( selectHistSeq ){
- if( selectHistSeq == "임시" ){
- return "9999";
- }else{
- return selectHistSeq;
- }
- }
-
- /**
- * @group :
- * @ver : 2007.08
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 상단(session)에 환자 정보가 존재하는지 체크한다.
- * @param :
- * @return : true / false
- * @---------------------------------------------------
- */
- function fCheckSessionInfo(){
- var pamInfoCvs = getGlobalVariable("paminfo");
- model.removeNodeset("/root/main/paminfo/list");
- setCSVToNode("/root/main/paminfo", pamInfoCvs);
-
- var node = instance1.selectSingleNode("/root/main/paminfo/list/pid");
- var req_ioflag = model.getValue ( "/root/main/paminfo/list/ioflag" );
- if ( req_ioflag == "O" ) {
- var req_orddd = model.getValue ( "/root/main/paminfo/list/orddd" );
- }else{
- var req_orddd = model.getValue ( "/root/main/paminfo/list/indd" );
- }
-
- if( node != null ){ //cvs가 null이 아닌 경우에만 처리함.
- old_paminfo_pid = model.getValue("/root/main/paminfo/list/pid");
- return true;
-
- } else {
- messageBox("환자를 선택하지 ", "E007");
- return false;
- }
-
- if( req_orddd > getCurrentDate() ){
- messageBox("수진일이 미래인 환자에게는 CP를 적용", "E001");
- return;
- }
- }
-
- /**
- * @group :
- * @ver : 2007.09
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : cpg 정보를 조회한다
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetCPGInfo(){
- var getFlag = model.getValue("/root/main/search_cond/getflag");
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
-
- model.copyNode("/root/send/reqdata", "/root/main/search_cond");
-
- if(getFlag == ""){
- model.setValue("/root/send/reqdata/getflag", "S");
- }else if(getFlag == "C" || getFlag == "F"){
- model.setValue("/root/send/reqdata/cpgorddeptcd", "");
- }
-
- var srch_str = model.getValue("/root/main/search_cond/cpgnm");
- //if(srch_str.charCodeAt(0) >= 97){
- srch_str = "'%" + srch_str.toUpperCase() + "%'";
- //} else {
- // srch_str = "'%" + srch_str + "%'";
- //}
- //스페이스를 or 조건으로 해야 함 ( like 조건이므로 조건문을 미리 만들어서 보냄. ex: like %A% , and like %b%...)
- var str = srch_str.setReplaceWord(" ", "%' AND UPPER(cpgnm) like '%");
- model.setValue("/root/send/reqdata/cpgnm", str);
- //model.makeValue("/root/send/reqdata/authdept", dutPlceCd); //추가
- model.makeValue("/root/send/reqdata/authdept", cmb_cpgorddeptcd.value); //변경 (2010.03.29)
-
- submit("TRMMP01201", true);
- model.setValue("/root/main/search_cond/getflag", "");
- model.setValue("/root/main/search_cond/no", "");
-
- if( grd_cpglist.rows > 1 ){
- grd_cpglist.row = 1;
- grd_cpglist.dispatch("onclick");
-
- }else{
- fClearHist();
- }
-
- //@@공유 CP/CPG list를 따로 copy (2010.04.07 JJE)
- if( btn_app.visible == true && model.getValue("/root/main/search_cond/cpgorddeptcd") == dutPlceCd ){ //진료의 로그인하여 선택 버튼 활성화 시, (선택 버튼 클릭 시 이 리스트와 비교하여 타부서인지 확인)
- copyNodeListType( "/root/temp/publcpglist", "/root/main/cpglist/cpginfo[cpgtypecd='H']", "replace", model, model );
- }
- }
-
- /**
- * @group :
- * @ver : 2007.10
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 처방창 및 본 창을 닫는다
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fClosePrcpWindow(){
- var prcpWindow = getOpenWindow("SMMMO00100");
- if( prcpWindow ){
- prcpWindow.javascript.fClose_SMMMO00100();
- //opener.model.close();
- }
- }
-
- /**
- * @group :
- * @ver : 2007.10
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 상단의 환자가 CP 적용 유효환자인지 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetCpAppPattValiYN(){
- model.resetInstanceNode("/root/temp/appdata");
- model.removeNodeSet ( "/root/send/pamdata" );
- model.makeNode( "/root/send/pamdata" );
- model.makeNode( "/root/temp/rsltgetdata" );
-
- var req_pid = model.getValue ( "/root/main/paminfo/list/pid" );
- var req_cretno = model.getValue ( "/root/main/paminfo/list/cretno" );
- var req_orddd = model.getValue ( "/root/main/paminfo/list/orddd" );
- var req_ioflag = model.getValue ( "/root/main/paminfo/list/ioflag" );
-
- if ( req_ioflag == "O" ) {
- req_orddd = model.getValue ( "/root/main/paminfo/list/orddd" );
- }else{
- req_orddd = model.getValue ( "/root/main/paminfo/list/indd" );
- }
-
- model.makeValue("/root/send/pamdata/pid", req_pid);
- model.makeValue("/root/send/pamdata/cretno",req_cretno );
- model.makeValue("/root/send/pamdata/orddd", req_orddd);
- model.makeValue("/root/send/pamdata/prcpgenrflag",req_ioflag );
- model.makeValue("/root/send/pamdata/getanticncryn", "Y" );
-
- if( submit("TRMMP00807", false) ){ //CP가 유효한지를 조회한다
-
- // 2008.09.05 pymi - 입원중
- if( model.getValue ( "/root/main/paminfo/list/ioflag" )== "O" ) {
- if( instance1.selectSingleNode("/root/temp/rsltgetdata/inptdata/pid") ) {
- model.setValue("/root/temp/appdata/rtncase", "1");
- model.setValue("/root/temp/appdata/trnsinptyn", "Y");
- return "_onInpt"; //(1) 외래 탭에서 선택 시 입원전환된 환자인 경우
- }
- }
- if( instance1.selectSingleNode("/root/temp/rsltgetdata/getdata/cpgappno") ){
- var appstat = model.getValue("/root/temp/rsltgetdata/getdata/appstat");
- var cpnm = model.getValue("/root/temp/rsltgetdata/getdata/cpgnm");
- var prtlflagcd = model.getValue("/root/temp/rsltgetdata/getdata/prtlflagcd"); //2008.09.30 프로토콜상태
-
- model.removeNodeset("/root/temp/rsltgetdata/getdata");
-
- /*
- if(prtlflagcd == "10"){
- model.setValue("/root/temp/appdata/prtlflagcd", "10");
- return "_onAntiCncr"; //(2) 제한항생제 진행중
- }
- */
- if(appstat != "52"){
- model.setValue("/root/temp/appdata/rtncase", "2");
- model.setValue("/root/temp/appdata/prtlflagcd", prtlflagcd);
- model.setValue("/root/temp/appdata/cpgnm", cpnm);
- model.setValue("/root/temp/appdata/appstat", appstat);
- return cpnm; //(3) 진행중인 CP
- }else{
- return "_empty";
- }
- }
- return "_empty";
- }else {
- return "_empty";
- }
- }
- /**
- * @group :
- * @ver : 2007.10
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 선택한 cp 적용하기
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAppCp(){
- if( fCheckSessionInfo() ){
- var cpgNo = model.getValue("/root/main/cpglist/cpginfo[" + grd_cpglist.row + "]/cpgno");
- var cpgFlagCd = model.getValue("/root/main/cpglist/cpginfo[" + grd_cpglist.row + "]/cpgflagcd");
- var cpgTypeCd = model.getValue("/root/main/cpglist/cpginfo[" + grd_cpglist.row + "]/cpgtypecd");
- var cpgDeptCd = model.getValue("/root/main/cpglist/cpginfo[" + grd_cpglist.row + "]/cpgorddeptcd");
- var appDD = model.getValue("/root/main/cpglist/cpginfo[" + grd_cpglist.row + "]/appdd"); //tmpyn 대신 미등록CP임을 알 수 있음 (2010.03.26 JJE)
- var toDD = model.getValue("/root/main/cpglist/cpginfo[" + grd_cpglist.row + "]/todd");
- var cpgFlagNm = "";
- if( cpgFlagCd == "01" ) cpgFlagNm = "CP";
- else if( cpgFlagCd == "02" ) cpgFlagNm = "CPG";
-
- //hardcoding.. 외과는 유방센터 포함..
- if(dutPlceCd == "2040000000" && cpgDeptCd == "2040400000") cpgDeptCd = "2040000000";
-
- if( cpgTypeCd != "H" && cpgDeptCd != dutPlceCd ){ //과코드로 비교 (2009.03.06)
- messageBox("타부서 " + cpgFlagNm + "는 적용할 수", "I004");
- return;
- }else if( cpgTypeCd == "H" ){
- var publcpgNode = instance1.selectSingleNode("/root/temp/publcpglist/cpginfo[cpgno='"+cpgNo+"']");
- if( publcpgNode == null ){
- messageBox("타부서의 공유 " + cpgFlagNm + "는 적용할 수", "I004");
- return;
- }
- }
-
- //미등록CP 적용 blocking (2010.03.26 JJE)
- if( isNull(appDD) ){ //과코드로 비교 (2009.03.06)
- messageBox("미등록 CP는 적용할 수", "I004");
- return;
- }
- if( getCurrentDate().toDate("YYYYMMDD") >= toDD.toDate("YYYYMMDD") ){ //과코드로 비교 (2009.03.06)
- messageBox("종료 CP는 적용할 수", "I004");
- return;
- }
-
- //이미 CP 적용 된 환자라면, 저장하지 않고, 메세지만 띄운다
- var cpName = fGetCpAppPattValiYN();
-
- //if( cpName != "_empty" && cpName != "_onInpt" && cpName != "_onAntiCncr" ){
- if( model.getValue("/root/temp/appdata/rtncase") == "2" ){
- if( model.getValue("/root/temp/appdata/prtlflagcd") == "01" ){
- messageBox("현재 '" + cpName + "' CP 진행중인 환자", "E008");
- return;
-
- }else if( model.getValue("/root/temp/appdata/prtlflagcd") == "10" ){
- messageBox("현재 항암프로토콜을 진행중인 환자", "E008");
- return;
- }
-
- }
-
- // 2008.09.05 pymi 외래환자가 당일 입원했을 경우 외래진료Tab 에서 CP 적용 불가처리
- //if( model.getValue ( "/root/main/paminfo/list/ioflag" )== "O" ) {
- //if( cpName == "_onInpt" && cpName != "_empty") {
- if( model.getValue("/root/temp/appdata/rtncase") == "1" ){
- messageBox("당일 입원되었습니다. 입원대상자리스트에서 CP를 적용", "I008");
- return;
- }
-
-
- var vRow = ivw_histlist.datagrid1.row;
- var sRow = "";
- var node = ivw_histlist.instance1.selectSingleNode("/root/main/cpglist/cpginfo[" + vRow + "]/cpghistseq");
- if( node != null && !isNull(node.text) ){ //if( !isNull(model.getValue("/root/main/search_cond/no")) )
- //var cpTimes = model.getValue("/root/main/cpglist/cpginfo[" + grd_cpglist.row + "]/times");
- var cpTimes = ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + vRow + "]/times");
-
- if( cpgFlagCd == "01" ){
- //외래/입원 구분으로 인한 check 수정. 2008-06-26 by 손주연 시작.
- var cpIOFlag = ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + vRow + "]/ioflag");
- if ( (model.getValue("/root/main/paminfo/list/ioflag") != "O" )
- && ( cpTimes == "D0" ) ){
- messageBox("외래환자가 아닐 경우 D0 CP를 적용 ", "E001");
- return;
- }
- else
- if( ( model.getValue("/root/main/paminfo/list/ioflag") != "O" )
- && (cpIOFlag == "O" ) ){
- messageBox("외래환자가 아닐 경우 외래CP를 적용 ", "E001");
- return;
- }
- else
- if ( (model.getValue("/root/main/paminfo/list/ioflag") == "O" )
- && ( cpTimes == "D1" )
- && (cpIOFlag == "I" ) ){
- messageBox("외래환자에게는 D1 CP를 적용 ", "E001");
- return;
- }
- /*
- if ( model.getValue("/root/main/paminfo/list/ioflag") != "O" && cpTimes == "D0" ){
- messageBox("외래환자가 아닐 경우 D0 CP를 적용 ", "E001");
- return;
- }
- if ( model.getValue("/root/main/paminfo/list/ioflag") == "O" && cpTimes == "D1" ){
- messageBox("외래환자에게는 D1 CP를 적용 ", "E001");
- return;
- }*/
- //외래/입원 구분으로 인한 check 수정. 2008-06-26 by 손주연 종료.
- }
-
- model.setValue("/root/main/search_cond/no", ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + vRow + "]/cpgno"));
- //model.setValue("/root/main/search_cond/seq", fModifyCpgHistSeq(ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + vRow + "]/cpghistseq")) );
- model.setValue("/root/main/search_cond/seq", ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + vRow + "]/orghistseq") );
-
- var selectedCpgNm = model.getValue("/root/temp/selected/cpgnm");
- var selectedCpgFlag = "";
- if( model.getValue("/root/temp/selected/cpgflagcd") == "02" ) selectedCpgFlag = "CPG";
- else selectedCpgFlag = "CP";
- var msg = messageBox("[" + selectedCpgNm + "] " + selectedCpgFlag + "를", "Q013");
-
- if(msg == 6){
- model.makeValue( "/root/main/temp/getdata/cpgno", ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + vRow + "]/cpgno") );
- model.makeValue( "/root/main/temp/getdata/cpghistseq", ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + vRow + "]/orghistseq") );
- model.makeValue("/root/main/temp/getdata/indxno", ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + vRow + "]/indxno"));
- model.makeValue("/root/main/temp/getdata/supindxno", ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + vRow + "]/supindxno"));
- model.makeValue("/root/main/temp/getdata/indxrefseq", ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + vRow + "]/indxrefseq"));
- model.makeValue("/root/main/temp/getdata/indxseq", ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + vRow + "]/indxseq"));
- model.makeValue("/root/main/temp/getdata/cpgnm", ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + vRow + "]/indxnm"));
- model.makeValue("/root/main/temp/getdata/cpgappno", "");
- model.makeValue("/root/main/temp/getdata/histseq", "");
- model.makeValue("/root/main/temp/getdata/appdd", getCurrentDate());
- model.makeValue("/root/main/temp/getdata/pid", model.getValue("/root/main/paminfo/list/pid"));
- model.makeValue("/root/main/temp/getdata/cretno", model.getValue("/root/main/paminfo/list/cretno"));
- model.makeValue("/root/main/temp/getdata/ioflag", model.getValue("/root/main/paminfo/list/ioflag"));
- if (model.getValue("/root/main/paminfo/list/ioflag") == "O"){
- model.makeValue("/root/main/temp/getdata/orddd", model.getValue("/root/main/paminfo/list/orddd"));
- }else{
- model.makeValue("/root/main/temp/getdata/orddd", model.getValue("/root/main/paminfo/list/indd"));
- }
- model.makeValue("/root/main/temp/getdata/appstepstatflag", "i");
- model.makeValue("/root/main/temp/getdata/prcpgenrflag", "");
- model.makeValue("/root/main/temp/getdata/checkyn", "");
- model.makeValue("/root/main/temp/getdata/appstat", "00");
- model.makeValue("/root/main/temp/getdata/getformyn", "");
- model.makeValue("/root/main/temp/getdata/appyn", "N");
- model.makeValue("/root/main/temp/getdata/prtlflagcd", cpgFlagCd ); //프로토콜구분코드
- model.makeValue("/root/main/temp/getdata/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd"));
-
- //MGPS 를 띄우는 수행 창을 메인으로 바꾸어서, MPGS(팝업)dml opener가 Main Viewer가 되도록 한다
- var mainObj = getMainViewer();
-
- //CP도 초기 blind 처리 하기 위해 수정-주석처리 (2009.03.16)
- /*
- var ordPatObj = getOpenWindow("SMMMO04100");
- if (ordPatObj != null) {
- ordPatObj.javascript.clearParameter("SMMMO04100_ANSWCNT");
- }
- */
- mainObj.model.removeNodeset("/root/main/temp/cpsetdata");
- mainObj.model.makeNode("/root/main/temp/cpsetdata");
- copyNodesetType("/root/main/temp/cpsetdata", "/root/main/temp/getdata", "replace", mainObj.model, model);
-
- mainObj.window.javascript.open("SMMMP00800", "2","0","0", "SMMMP00800", "/root/main/temp/cpsetdata", "/root/temp1/getdata", "", false);
-
- } else if(msg == 7){
- return;
- }
- } else{
- messageBox("적용할 CP를 ", "C002");
- return;
- }
- }
- }
-
- /**
- * @group :
- * @ver : 2007.10
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 창닫기
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCpSrchWndClose(){
- window.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pageheight="775" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <iviewer id="ivw_indxmngt" src="../../../emr/cpgweb/xrw/SPMMP01500_CP색인관리.xrw" style="left:0px; top:70px; width:350px; height:675px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; "/>
- <iviewer id="ivw_histlist" src="../../../emr/cpgweb/xrw/SPMMP02000_변경이력조회.xrw" style="left:762px; top:70px; width:433px; height:675px; "/>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:1px; width:1195px; height:35px; "/>
- <group id="group1" scroll="auto" style="left:1px; top:748px; width:1194px; height:27px; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCpSrchWndClose();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter5" visibility="hidden" style="left:361px; top:4px; width:92px; height:22px; ">
- <caption>새버전으로</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //cpgno : 동일, cpghistno : +1
- model.makeValue("/root/main/temp/setdata/saveasflag", "VR");
- fOpenGenerator();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter5" visibility="hidden" style="left:455px; top:4px; width:92px; height:22px; ">
- <caption>새이름으로</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //cpgno: +1, cpghistno : +1
- model.makeValue("/root/main/temp/setdata/saveasflag", "NM");
- fOpenGenerator();
- ]]>
- </script>
- </button>
- <button id="btn_app" class="btn3_letter2" visibility="hidden" style="left:1078px; top:3px; width:56px; height:22px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //상단(session)에 환자 정보가 존재하는지 체크 후, cp를 선택받고,
- //선택했다면, cp적용 테이블에 데이터를 저장
- if( grd_cpglist.row > 0 ){
- fAppCp();
- }
- ]]>
- </script>
- </button>
- <button id="btn_newver" class="btn3_letter2" visibility="hidden" style="left:962px; top:3px; width:56px; height:22px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/temp/setdata/saveasflag", "OP");
- model.makeValue("/root/main/temp/setdata/authflag", model.getValue("/root/main/search_cond/authflag"));
- model.makeNode("/root/main/temp/setdata/savedeptnm");
- model.makeNode("/root/main/temp/setdata/savedeptcd");
- model.makeNode("/root/main/temp/setdata/savesupindxno");
- model.makeNode("/root/main/temp/setdata/savesuprefseq");
- if( ivw_indxmngt.treeview1.focusIndex > -1 ){
- var tRow = ivw_indxmngt.treeview1.focusIndex + 1;
- if( ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + tRow + "]/cpgno") == "0" ){
- //선택한 색인(서브폴더 색인 포함)
- model.setValue("/root/main/temp/setdata/savesupindxno", ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + tRow + "]/indxno"));
- if( ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + tRow + "]/supindxno") != "0" ){
- //최상위폴더는 조회순서를 지정해 줄 필요가 없음. 서브폴더는 순번이 맨 끝이 아니므로, 지정해줌(서브폴더와 똑같은 순번..)
- model.setValue("/root/main/temp/setdata/savesuprefseq", ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + tRow + "]/indxrefseq"));
- }
- //색인-진료과
- var val = ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + tRow + "]/supfolderno");
- var no = ivw_indxmngt.window.javascript.fSrchItemIndxNo(val) + 1;
- var deptNm = ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + no + "]/indxnm");
- var deptCd = ivw_indxmngt.model.getValue("/root/main/indxlist/itemlist/item[" + no + "]/orgindxnm");
- model.setValue("/root/main/temp/setdata/savedeptnm", deptNm);
- model.setValue("/root/main/temp/setdata/savedeptcd", deptCd);
- }
- }
-
- if( model.getValue("/root/main/search_cond/authflag") == "M" ){
- var mainObj = getMainViewer();
- var scrnID = mainObj.javascript.getScreenID();
-
- mainObj.model.removeNodeset("/root/main/temp");
- mainObj.model.makeNode("/root/main/temp");
- copyNodesetType("/root/main/temp", "/root/main/temp", "replace", mainObj.model, model);
-
- mainObj.model.removeNodeset("/root/temp/getdata");
- mainObj.model.makeNode("/root/temp/getdata");
-
- mainObj.window.javascript.navigate("SMMQP00600", "1","0","0", "SMMQP00600", "/root/main/temp/setdata", "/root/temp/getdata", "", false, "X");
- model.removeNodeset("/root/main/temp/setdata");
- window.close();
- }else{
- var mon = getCurrentMonitorNumber();
- //model.removeNodeset("/root/main/temp/getdata");
- //var node = instance1.selectSingleNode("/root/main/temp/setdata");
- //node.nodeName = "getdata";
-
- //생성기화면이 이미 열려있으면 재조회만 하도록 수정
- var openObj = getOpenWindow("SMMQP00600");
- if(openObj != null) {
- model.makeValue("/root/main/temp/getdata/srcMode", srcMode);
- copyNodeType("/root/temp/getdata", "/root/main/temp/setdata", "replace", openObj.model, model);
- openObj.window.javascript.fInitialize();
- srcMode ++;
- }else{
- model.makeValue("/root/main/temp/getdata/srcMode", "1");
- open("SMMQP00600", mon,"0","0", "SMMQP00600", "/root/main/temp/setdata", "/root/temp/getdata", "", false, "R");
- srcMode ++;
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_srchver" class="btn3_letter2" visibility="hidden" style="left:1020px; top:3px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenGenerator( 1 );
- ]]>
- </script>
- </button>
- <button id="btn_view" class="btn3_letter4" visibility="hidden" style="left:4px; top:3px; width:56px; height:22px; ">
- <caption>미리보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenGenerator( 2 );
- ]]>
- </script>
- </button>
- </group>
- <select1 id="radio1" ref="/root/main/search_cond/cpgflagcd" navindex="1" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:75px; top:10px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>CP</label>
- <value>01</value>
- </item>
- <item>
- <label>ALL</label>
- <value>ALL</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //ivw_indxmngt.window.javascript.fInitialize();
- ivw_indxmngt.window.javascript.fGetIndxList("F");
- btn_srchindxcd.dispatch("DOMActivate");
-
- if( model.getValue("/root/main/search_cond/cpgflagcd") == "02" ){
- chk_cpgtypecd.disabled = true;
- }else{
- chk_cpgtypecd.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_cpgnm" ref="/root/main/search_cond/cpgnm" class="input_search" navindex="4" style="left:676px; top:9px; width:224px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("btn_srchindxcd", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_srchindxcd" class="btn1_letter2" navindex="5" style="left:1125px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srchStr = model.getValue("/root/main/search_cond/cpgnm");
-
- fGetCPGInfo();
-
- var indxyn = model.getValue("/root/main/search_cond/indxyn");
- if(indxyn == "Y"){
- ivw_indxmngt.window.javascript.fInitialize(); //좌측 CP Tree 조회
- }
-
- var cpgno = model.getValue("/root/main/search_cond/no");
- if( !isNull(cpgno) ){
- //조회 끝난 후, CP 수동으로 선택(focusing)
- var indxnoNode = ivw_indxmngt.instance1.selectSingleNode("/root/main/indxlist/itemlist/item" + "[cpgno='" + cpgno + "']/indxno");
- if( indxnoNode != null ){
- ivw_indxmngt.model.makeValue("/root/temp/reqdata/selectindxcd", indxnoNode.text);
- ivw_indxmngt.treeview1.refresh();
- }
- }
- //model.setValue("/root/main/search_cond/cpgnm", "");
- ]]>
- </script>
- </button>
- <line id="line27" class="line_4" style="x1:1107px; y1:9px; x2:1107px; y2:31px; "/>
- <button id="button40" class="btn_sw" visibility="hidden" group="tab" style="left:51px; top:43px; width:69px; height:22px; ">
- <caption>즐겨찾기</caption>
- <toggle case="Action" ev:event="onclick"/>
- </button>
- <caption id="caption15" class="search_name" style="left:251px; top:10px; width:82px; height:17px; ">진료과 :</caption>
- <caption id="cap_outlineinfo" class="tit_2" style="left:364px; top:50px; width:98px; height:14px; ">CP정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:350px; y2:65px; "/>
- <line id="line2" class="line_1" style="x1:355px; y1:65px; x2:757px; y2:65px; "/>
- <line id="line3" class="line_1" style="x1:762px; y1:65px; x2:1194px; y2:65px; "/>
- <datagrid id="grd_cpglist" nodeset="/root/main/cpglist/cpginfo" class="datagrid2" autoresize="true" caption="구분^CP명^cpgorddeptcd^진료과^재원
일수^D^메모^Ver^생성일^적용일^종료일^CP
No^caption1^caption3^cpgflagcd^ioflag^cpgtypecd" colsep="^" colwidth="48, 182, 16, 100, 35, 14, 352, 32, 75, 75, 75, 24, 31, 30, 38, 39,10" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:355px; top:70px; width:402px; height:675px; ">
- <col ref="cpgflagnm" type="output"/>
- <col ref="cpgnm"/>
- <col disabled="true" ref="cpgorddeptcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="cpgorddeptnm"/>
- <col ref="fcstinhospdayno" style="left:357px; top:32px; width:35px; height:23px; "/>
- <col ref="times" visibility="hidden"/>
- <col ref="cpgmemo"/>
- <col ref="cpghistseq"/>
- <col ref="cretdd" format="yyyy-mm-dd"/>
- <col ref="appdd" format="yyyy-mm-dd"/>
- <col ref="todd" format="yyyy-mm-dd"/>
- <col ref="cpgno"/>
- <col ref="cpghistseq" visibility="hidden"/>
- <col ref="cpglasthistyn" visibility="hidden"/>
- <col disabled="true" ref="cpgflagcd" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>CP</label>
- <value>01</value>
- </item>
- <item>
- <label>CPG</label>
- <value>02</value>
- </item>
- </choices>
- </col>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="cpgtypecd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //이력조회
- var vRow = ivw_histlist.datagrid1.row;
- if( grd_cpglist.row > 0 ){
- model.setValue( "/root/main/search_cond/no", model.getValue("/root/main/cpglist/cpginfo[" + grd_cpglist.row + "]/cpgno") );
- model.setValue( "/root/main/search_cond/seq" , ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + vRow + "]/orghistseq") );
- model.setValue("/root/main/search_cond/getflag", "H");
-
- if( model.getValue("/root/main/cpglist/cpginfo[" + grd_cpglist.row + "]/todd") <= getCurrentDate() ){
- model.setValue("/root/main/search_cond/delyn", "Y");
- }else{
- model.setValue("/root/main/search_cond/delyn", "N");
- }
-
- ivw_histlist.window.javascript.fGetCpgHist();
- if( ivw_histlist.instance1.selectSingleNode("/root/main/cpglist/cpginfo[" + 1 + "]/cpgno") != null ){
- ivw_histlist.datagrid1.row = ivw_histlist.datagrid1.rows - ivw_histlist.datagrid1.fixedRows;
- ivw_histlist.datagrid1.isselected( ivw_histlist.datagrid1.rows - ivw_histlist.datagrid1.fixedRows ) = true;
-
- model.setValue("/root/temp/selected/cpgno", ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + ivw_histlist.datagrid1.row + "]/cpgno"));
- model.setValue("/root/temp/selected/cpghistseq", ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + ivw_histlist.datagrid1.row + "]/cpghistseq"));
- model.setValue("/root/temp/selected/cpgnm", ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + ivw_histlist.datagrid1.row + "]/cpgnm"));
- model.setValue("/root/temp/selected/cpgflagcd", model.getValue("/root/main/cpglist/cpginfo[" + grd_cpglist.row + "]/cpgflagcd"));
- }
- } else {
- ivw_histlist.datagrid1.isselected(vRow) = false;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_cpglist.row > 0 ){
- if( model.getValue("/root/main/search_cond/authflag") == "U" ){
- fAppCp();
- }else{
- //S or M : 생성기 조회
- if( ivw_histlist.instance1.selectSingleNode("/root/main/cpglist/cpginfo[" + 1 + "]/cpgno") != null ){
- ivw_histlist.datagrid1.row = ivw_histlist.datagrid1.rows - ivw_histlist.datagrid1.fixedRows;
- ivw_histlist.datagrid1.isselected( ivw_histlist.datagrid1.rows - ivw_histlist.datagrid1.fixedRows ) = true;
-
- model.setValue("/root/temp/selected/cpgno", ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + ivw_histlist.datagrid1.row + "]/cpgno"));
- model.setValue("/root/temp/selected/cpghistseq", ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + ivw_histlist.datagrid1.row + "]/cpghistseq"));
- model.setValue("/root/temp/selected/cpgnm", ivw_histlist.model.getValue("/root/main/cpglist/cpginfo[" + ivw_histlist.datagrid1.row + "]/cpgnm"));
- model.setValue("/root/temp/selected/cpgflagcd", model.getValue("/root/main/cpglist/cpginfo[" + grd_cpglist.row + "]/cpgflagcd"));
- }
-
- fOpenGenerator( 1 );
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cpglist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="search_name" style="left:10px; top:10px; width:62px; height:17px; ">구분 :</caption>
- <line id="line4" class="line_3" style="x1:0px; y1:745px; x2:350px; y2:745px; "/>
- <line id="line5" class="line_3" style="x1:355px; y1:745px; x2:758px; y2:745px; "/>
- <line id="line6" class="line_3" style="x1:761px; y1:745px; x2:1194px; y2:745px; "/>
- <button id="ivw_detail" class="btn2_letter2" visibility="hidden" style="left:307px; top:44px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ivw_indxmngt.window.javascript.fSaveCpgIndxList();
- ivw_indxmngt.window.javascript.fGetIndxList("A");
-
- ]]>
- </script>
- </button>
- <group id="grp_msg" visibility="hidden" style="left:0px; top:85px; width:220px; height:40px; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:220px; height:40px; background-color:#ffffff; border-color:#00ccff; "/>
- <caption id="caption1" style="left:27px; top:12px; width:184px; height:18px; ">적용할 CP를 선택하십시오!</caption>
- <img id="img1" src="D:\CMCProject\application\webapps\com\commonweb\images\icon_hand.gif" style="left:5px; top:16px; width:20px; height:9px; background-stretch:stretch; "/>
- </group>
- <select1 id="cmb_cpgorddeptcd" ref="/root/main/search_cond/cpgorddeptcd" class="combo_search" navindex="2" appearance="minimal" editmode="search" style="left:330px; top:10px; width:205px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_controlsize" class="icon_right" style="left:731px; top:44px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //402 -> 839, 839 -> 402
- if(btn_controlsize.attribute("class") == "icon_right"){
- btn_controlsize.attribute("class") = "icon_left"
- btn_controlsize.attribute("left") = 1167;
- ivw_histlist.visible = false;
- cap_history.visible = false;
- line3.visible = false;
- grd_cpglist.attribute("width") = 839;
- grd_cpglist.colWidth(2) = grd_cpglist.colWidth(2) + 80;
-
- line2.attribute("x2") = 1194;
- }else{
- btn_controlsize.attribute("class") = "icon_right"
- btn_controlsize.attribute("left") = 731;
- ivw_histlist.visible = true;
- cap_history.visible = true;
- line3.visible = true;
- grd_cpglist.attribute("width") = 402;
- grd_cpglist.colWidth(2) = grd_cpglist.colWidth(2) - 80;
- line2.attribute("x2") = 757;
- }
-
-
- ]]>
- </script>
- </button>
- <caption id="cap_history" class="tit_2" style="left:770px; top:50px; width:95px; height:13px; ">변경이력</caption>
- <button id="brn_srchtree" class="btn2_letter2" visibility="hidden" style="left:262px; top:44px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ivw_indxmngt.window.javascript.fInitialize();
- ]]>
- </script>
- </button>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "27") {
- btn_app.disabled = false;
- btn_app.visible = true;
- btn_app.attribute("left") = "0px";
- }
- ]]>
- </script>
- <caption id="cap_cpgnm" class="search_name" style="left:570px; top:10px; width:102px; height:17px; ">CP명 :</caption>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:235px; top:10px; width:89px; height:17px; ">CPG종류 :</caption>
- <select id="chk_cpgtypecd" ref="/root/main/search_cond/cpgtypecd" visibility="hidden" overflow="visible" appearance="full" cellspacing="5" cols="2" sep="|" style="left:330px; top:10px; width:150px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병원공유</label>
- <value>H</value>
- </item>
- <item>
- <label>과내공유</label>
- <value>D</value>
- </item>
- </choices>
- </select>
- <shape id="roundrect3" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:466px; top:44px; width:170px; height:20px; background-color:#ffffff; border-color:#00ccff; "/>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/search_cond/delyn" style="left:905px; top:2px; width:20px; height:20px; "/>
- <bool id="bool2" checkvalue="Y,N" ref="/root/main/search_cond/tmpyn" style="left:905px; top:17px; width:20px; height:20px; "/>
- <caption id="cap_delyn" style="left:922px; top:4px; width:73px; height:15px; ">
- <![CDATA[삭제CP 포함]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( bool1.disabled == false ){
- if( model.getValue("/root/main/search_cond/delyn") != "Y" )
- bool1.selected = true;
- else bool1.selected = false;
- }
- ]]>
- </script>
- </caption>
- <button id="btn_indexInitialize" class="btn_sw" group="tab" selected="true" style="left:0px; top:43px; width:50px; height:22px; ">
- <caption>색인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ivw_indxmngt.window.javascript.fInitialize(); //좌측 CP Tree 조회
- // fGetCPGInfo(); //우측 Grid 조회
- ]]>
- </script>
- </button>
- <caption id="cap_tmpyn" style="left:922px; top:19px; width:83px; height:15px; ">
- <![CDATA[미등록CP 포함]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( bool2.disabled == false ){
- if( model.getValue("/root/main/search_cond/tmpyn") != "Y" )
- bool2.selected = true;
- else bool2.selected = false;
- }
- ]]>
- </script>
- </caption>
- <bool id="bool3" checkvalue="Y,N" ref="/root/main/search_cond/indxyn" style="left:1010px; top:2px; width:20px; height:20px; "/>
- <caption id="caption5" style="left:1027px; top:4px; width:62px; height:18px; ">
- <![CDATA[색인재조회]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( bool3.disabled == false ){
- if( model.getValue("/root/main/search_cond/indxyn") != "Y" )
- bool3.selected = true;
- else bool3.selected = false;
- }
- ]]>
- </script>
- </caption>
- </xhtml:body>
- </xhtml:html>
|