123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>복약안내</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <resultCCMMByYakpumCd>
- <yakpum_cd/>
- <cmmc/>
- <!--번호-->
- <cmmc_rn/>
- <cmpat/>
- <!--복약내용-->
- <languagetype/>
- </resultCCMMByYakpumCd>
- <orgCCMMByYakpumCd>
- <yakpum_cd/>
- <cmmc/>
- <!--번호-->
- <cmmc_rn/>
- <cmpat/>
- <!--복약내용-->
- <languagetype/>
- </orgCCMMByYakpumCd>
- </list>
- <list2>
- <resultPEMMonograph>
- <pemono/>
- <!--모노그랩번호-->
- <pemtxtei/>
- <!--섹션구분id-->
- <pemtxteidesc/>
- <!--섹션구분-->
- <pemtxte/>
- <!--복약상세정보문내용-->
- </resultPEMMonograph>
- </list2>
- <selecteddrug>
- <edi_nm/>
- <yakhyo_desc/>
- <yakhyo_desc_old/>
- <yakhyo_desc_cust/>
- <yakpum_cd/>
- <status/>
- <eng_nm/>
- <atc3_desc/>
- <atc3_desc_old/>
- <atc3_desc_cust/>
- <languagetype/>
- </selecteddrug>
- <list3>
- <resultCMMLookup>
- <yakpum_cd/>
- <!--약품코드-->
- <drug_nm/>
- <!--약품명및용량-->
- <img_con/>
- <!--성상-->
- <yaksort_nm/>
- <!--효능-->
- <jeyaksa_nm/>
- <!--제약사명-->
- <cmm_guide/>
- <!--복약안내문-->
- </resultCMMLookup>
- </list3>
- </main>
- <send>
- <req>
- <pYakpumCd/>
- <!--약품코드-->
- <pGcnSeqNo/>
- <!--성분명(제형,함량구분)약품코드-->
- <pLanguageType/>
- </req>
- <reqCCMM>
- <pYakpumCd/>
- <pLanguageType/>
- <pImagePath/>
- </reqCCMM>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- /*
- 화면을 초기화 합니다.
- 선택된 약품리스트를 불러온다. zcnfGetDurgList();
- 선택된 약품리스트중에 선택되어진 약픔정보를 가져온다.zcnfGetDurgInfo();
- 선택된 약품정보를 가지고 화면에 출력할 복약정보를 조회한다.getDetailDrugInfo();
- */
- fInitialize();
- zcnfGetDurgList();
- zcnfGetDurgInfo();
- var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
- var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
- var selecredRow = model.getValue("/root/main/selectedDrugInfo/pSelectRow");
- getDetailDrugInfo(param1,param2, selecredRow);
- // model.refresh();
- if(selecredRow == ""){
- selecredRow = 1;
- }
- model.setFocus("left_datagrid1");
- left_datagrid1.select(selecredRow,1) = true;
- left_datagrid1.refresh();
- model.makeValue("/root/send/reqCCMM/pImagePath", getDomain()+"/dif/images/");
- ]]>
- </script>
- <submission id="TRZCR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list"/>
- <submission id="TRZCR00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list2"/>
- <submission id="TXZCR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/resultCCMMByYakpumCd" replace="instance" resultref="/root/temp"/>
- <submission id="TXZCR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/selecteddrug" replace="instance" resultref="/root/temp"/>
- <submission id="TRZCR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqCCMM" resultref="/root/main/list3"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/referenceweb/js/ZCR001.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
- fInitialize1();
- fInitialize2();
-
- // 사용자 권한에 따른 버튼 조작
- // 관리자인 경우 보이게 아닌경우 안보이게
- if(checkAuth("X")){
- button1.attribute("visibility") = "visible";
- button2.attribute("visibility") = "visible";
- button3.attribute("visibility") = "visible";
- button8.attribute("visibility") = "visible";
- button9.attribute("visibility") = "visible";
- button11.attribute("visibility") = "visible";
- button12.attribute("visibility") = "visible";
- button13.attribute("visibility") = "visible";
- button18.attribute("visibility") = "visible";
- button19.attribute("visibility") = "visible";
-
- button5.attribute("visibility") = "visible"; //한글복약안내 출력버튼
- button10.attribute("visibility") = "visible"; //영문복약안내 출력버튼
- /* 출력버튼 활성화시 위치이동
- button5.attribute("left") = "707px";
- button5.attribute("top") = "11px";
- button10.attribute("left") = "707px";
- button10.attribute("top") = "11px";
- */
- } else {
- button1.attribute("visibility") = "hidden";
- button2.attribute("visibility") = "hidden";
- button3.attribute("visibility") = "hidden";
- button8.attribute("visibility") = "hidden";
- button9.attribute("visibility") = "hidden";
- button11.attribute("visibility") = "hidden";
- button12.attribute("visibility") = "hidden";
- button13.attribute("visibility") = "hidden";
- button18.attribute("visibility") = "hidden";
- button19.attribute("visibility") = "hidden";
- button5.attribute("visibility") = "hidden"; //한글복약안내 출력버튼
- button10.attribute("visibility") = "hidden"; //영문복약안내 출력버튼
- /*출력버튼 활성화시 위치이동
- button5.attribute("left") = "768px";
- button5.attribute("top") = "11px";
- button10.attribute("left") = "768px";
- button10.attribute("top") = "11px";
- */
- }
- }
- /*
- 약물상호작용 탭 초기화
- */
- function fInitialize1(){
- model.removeNodeset("/root/main/list/resultCCMMByYakpumCd");
- model.makeValue("/root/send/req/pLanguageType" ,"01");
- }
- /*
- 약물상호작용검사탭 초기화
- */
- function fInitialize2(){
- model.removeNodeset("/root/main/list2/resultPEMMonograph");
- model.makeValue("/root/send/req/pLanguageType" ,"01");
-
- }
- /*
- 약물상호작용 탭 초기화
- */
- function fInitialize3(){
- model.removeNodeset("/root/main/list/resultCCMMByYakpumCd");
- model.makeValue("/root/send/req/pLanguageType" ,"02");
- }
- function fInitialize4(){
- model.removeNodeset("/root/main/list2/resultPEMMonograph");
- model.makeValue("/root/send/req/pLanguageType" ,"02");
-
- }
- /*
- model.getValue(); 를 함수로 만들었습니다.
- param1 : node는 grid의 xPath입니다.
- param2 : row는 grid에서 선택한 row값입니다.
- param3 : element는 getvalue할 해당 element 명입니다.
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function fGetValue(node, row, element) {
- var rtnValue = model.getValue(node + "[" + row + "]/" + element);
- return rtnValue;
- }
- /*
- model.reqGetDetailInfo(); 를 함수로 만들었습니다.
- param1 : 선택된 약품 grid에서 선택된 약품코드 입니다.
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function reqGetDetailInfo(param1,param2, param3) {
- //alert("약품코드= "+param1+" GCN_NO = "+param2);
- //각 화면별 개별처리;
- /*
- 1. 선택된 약품 instance setvalue
- --> "/root/main/selecteddrug"
- -->"/root/send/req/pGcnSeqNo"
- 2. 첫번째 탭 클릭 이벤트 강제 발생
- --> 조회 부분은 탭버튼에 기술
- */
- model.removeNodeset("/root/main/selecteddrug/edi_nm");
- model.removeNodeset("/root/main/selecteddrug/yakhyo_desc");
- model.removeNodeset("/root/main/selecteddrug/yakhyo_desc_cust");
- model.removeNodeset("/root/main/selecteddrug/eng_nm");
- model.removeNodeset("/root/main/selecteddrug/atc3_desc");
- model.removeNodeset("/root/main/selecteddrug/atc3_desc_cust");
-
- opt_DrugNm.refresh();
- output1.refresh();
- output2.refresh();
- input2.refresh();
- opt_DrugNm1.refresh();
- output11.refresh();
- input12.refresh();
-
- model.makeValue("/root/main/selecteddrug/yakpum_cd", model.getValue("/root/main/list4/resultDrugSearchDetail/yakpum_cd"));
- model.makeValue("/root/main/selecteddrug/edi_nm", model.getValue("/root/main/list4/resultDrugSearchDetail/edi_nm"));
- model.makeValue("/root/main/selecteddrug/yakhyo_desc", model.getValue("/root/main/list4/resultDrugSearchDetail/yaksort_nm"));
- model.makeValue("/root/main/selecteddrug/yakhyo_desc_cust", model.getValue("/root/main/list4/resultDrugSearchDetail/yaksort_nm_cust"));
- model.makeValue("/root/main/selecteddrug/yakhyo_desc_old", model.getValue("/root/main/list4/resultDrugSearchDetail/yaksort_nm_cust"));
- model.makeValue("/root/main/selecteddrug/eng_nm", model.getValue("/root/main/list4/resultDrugSearchDetail/eng_nm"));
- model.makeValue("/root/main/selecteddrug/atc3_desc", model.getValue("/root/main/list4/resultDrugSearchDetail/atc3_desc"));
- model.makeValue("/root/main/selecteddrug/atc3_desc_cust", model.getValue("/root/main/list4/resultDrugSearchDetail/atc3_desc_cust"));
- model.makeValue("/root/main/selecteddrug/atc3_desc_old", model.getValue("/root/main/list4/resultDrugSearchDetail/atc3_desc_cust"));
- model.makeValue("/root/send/req/pYakpumCd",param1);
- model.makeValue("/root/send/req/pGcnSeqNo",param2);
-
- if(case1.selected == true){
- fInitialize1();
- submit("TRZCR00101");
- grd_resultCCMMByYakpumCd.refresh();
- }else if(case2.selected == true){
- fInitialize2();
- submit("TRZCR00401");
- }
- else if(case3.selected == true){
- fInitialize3();
- submit("TRZCR00101");
- }else if(case4.selected == true){
- fInitialize4();
- submit("TRZCR00401");
- }
- }
- // 인자로 넘어온 값을 label 로 같은 아이템의 인덱스를 반환
- function labelToIndex(label, tree)
- {
- for(var i=0; i<tree.length; i++)
- {
- if(tree.item(i).label == label)
- return i;
- }
-
- return -1;
- }
- function FirstDIS_Request(){
- model.makeValue("/root/firstDISsend/drugcode",model.getValue("/root/main/selectedDrugInfo/pYakpumCd"));
- if(case1.selected == true){
- model.makeValue("/root/firstDISsend/refno","2"); // 복약안내
- modal("../../referenceweb/xrw/SPZCR00301_복약안내문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
- }else if(case2.selected == true){
- model.makeValue("/root/firstDISsend/refno","3"); // 복약지도전문
- model.makeValue("/root/firstDISsend/refcd",model.getValue("/root/main/list2/resultPEMMonograph[1]/pemono"));
- modal("../../referenceweb/xrw/SPZCR00301_복약지도전문문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
- }
-
- //model.makeValue("/root/difsend/refcd",);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1280" pageheight="990" guideline="2,299;1,1199;2,741;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">복약안내</caption>
- <import id="import1" instancetype="merge" src="../../../com/navigationweb/xrw/SMZCN00201_선택약품.xrw" style="left:5px; top:15px; width:360px; height:765px; "/>
- <button id="btn_PEM" class="btn_sw" group="tab" style="left:577px; top:40px; width:207px; height:22px; ">
- <caption>복약지도 전문</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- 1. submission id : TRZCR00401
- 2. 결과 Instance "/root/main/list2/resultPEMMonograph"
- */
- var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
- var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
- reqGetDetailInfo(param1,param2,0)
- ]]>
- </script>
- </button>
- <button id="btn_CCMM" class="btn_sw" group="tab" selected="true" style="left:370px; top:40px; width:208px; height:22px; ">
- <caption>복약안내문</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- 1. 약물 상호작용 리스트 첫번째 row 클릭 coding 할것
- */
- var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
- var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
- reqGetDetailInfo(param1,param2,0)
- ]]>
- </script>
- </button>
- <button id="btn_ECCMM" class="btn_sw" group="tab" style="left:783px; top:40px; width:208px; height:22px; ">
- <caption>영문복약안내문</caption>
- <toggle case="case3" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- 1. 약물 상호작용 리스트 첫번째 row 클릭 coding 할것
- */
- var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
- var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
- reqGetDetailInfo(param1,param2,0)
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:370px; top:61px; width:831px; height:682px; ">
- <case id="case1" selected="true">
- <line id="line3" class="line_1" style="x1:15px; y1:35px; x2:814px; y2:35px; "/>
- <caption id="caption3" class="tit_2" style="left:19px; top:20px; width:205px; height:13px; ">선택된 약품</caption>
- <datagrid id="grd_resultCCMMByYakpumCd" nodeset="/root/main/list/resultCCMMByYakpumCd" class="datagrid2" allowuserresize="true" caption="순번^Description" colwidth="52, 696, 100, 100" dataheight="25" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:15px; top:95px; width:799px; height:219px; ">
- <col ref="cmmc_rn" style="text-align:center; "/>
- <col ref="cmpat" type="input" style="text-align:left; "/>
- <col ref="yakpum_cd" visibility="hidden"/>
- <col ref="cmmc" visibility="hidden"/>
- </datagrid>
- <caption id="caption10" class="cell_1" style="left:15px; top:40px; width:132px; height:23px; text-align:center; ">약품명</caption>
- <line id="line8" class="line_3" style="x1:15px; y1:62px; x2:814px; y2:62px; "/>
- <output id="opt_DrugNm" ref="/root/main/selecteddrug/edi_nm" class="output_fix" style="left:150px; top:41px; width:664px; height:19px; "/>
- <caption id="caption4" class="tit_2" style="left:19px; top:77px; width:205px; height:13px; ">복약 안내문</caption>
- <line id="line4" class="line_1" style="x1:15px; y1:92px; x2:814px; y2:92px; "/>
- <button id="button10" class="btn2_letter2" style="left:707px; top:11px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- 1. submission id : TRZCR00301
- 2. 결과 Instance "/root/main/list3/resultCMMLookup"
- */
- var rowcnt = left_datagrid1.rows-1;
- var arrfdrugcd ="";
- for (i = 1; i <= rowcnt; i++)
- {
- arrfdrugcd = arrfdrugcd + model.getValue("/root/main/selectedlist/list" + "[" + i + "]/" + "fdrugcd")+"|" ;
- }
-
-
- model.makeValue("/root/send/reqCCMM/pYakpumCd", arrfdrugcd);
- model.makeValue("/root/send/reqCCMM/pLanguageType", model.getValue("/root/send/req/pLanguageType"));
- // model.makeValue("/root/send/reqCCMM/pImagePath", getDomain()+"/dif/images/");
-
-
-
- submit("TRZCR00301");
-
- // rexpert를 이용한 복약안내문 출력
- exeReportPreview("RPDUR00101", "XMLSTR", "/root/main/list3"); //미리보기
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" _auth="X" style="left:754px; top:10px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- CHECK 로직 기술
- 1. 저장대상이 존재하는지? RowCount만 확인한다.
- 2. 저장대상의 Number와 Description 중 누락된 항목은 없는지?
- --> 저장대상중 Description 또는 Number가 존재 하지 않는 경우 저장대상 제외
- (App Layer에서 체크하고 있음)
- 3. 사용 Submission ID : TXZCR00101
- 4. 저장후 처리 메세지 alert 출력(건수로 리턴됨)
- 5. 복약안내문 Refresh 불필요
- */
- if(!checkGridUpdate(grd_resultCCMMByYakpumCd))
- {
- alert("저장할 자료가 존재하지 않습니다.");
- return;
- }
- var cnt_row = grd_resultCCMMByYakpumCd.rows; // 현재 행의 갯수 가져오기
-
- for(i = cnt_row-1; i >=1; i-- ) //순번제지정
- {
- var iStatus = grd_resultCCMMByYakpumCd.rowstatus(i);
- //alert("i= "+i+ " iStatus= "+iStatus+" /cnt_row:"+cnt_row);
- if(iStatus == "4" || iStatus == "6")
- {
- if (grd_resultCCMMByYakpumCd.rows==2){
- model.removenode("/root/main/list/resultCCMMByYakpumCd/cmpat")
- }
- else{
- grd_resultCCMMByYakpumCd.deleteRow(i,false);
- }
- }
- }
- if ( submit("TXZCR00101") ) {
- grd_resultCCMMByYakpumCd.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
- var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
- reqGetDetailInfo(param1,param2,0)
- }
-
- ]]>
- </script>
- </button>
- <button id="button8" class="btn2_letter3" style="left:705px; top:70px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_resultCCMMByYakpumCd.addRow(); // 입력할 행 추가.
- var cur_row = grd_resultCCMMByYakpumCd.row; // 추가된 행 번호 가져오기
- var cnt_row = grd_resultCCMMByYakpumCd.rows; // 현재 행의 갯수 가져오기
-
- var syakpum_cd;
- syakpum_cd = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
- model.setValue("/root/main/list/resultCCMMByYakpumCd["+cur_row+"]/yakpum_cd",syakpum_cd);
- // 그리드에 추가
- //model.copyNode("/root/main/list/scrnlist["+cur_row+"]","/root/main/item");
- for(i = 1; i < cnt_row; i++ ) //순번제지정
- {
- model.makeValue("/root/main/list/resultCCMMByYakpumCd["+i+"]/cmmc_rn",i);
- }
- model.refresh();
- grd_resultCCMMByYakpumCd.row = cur_row;
- //grd_resultCCMMByYakpumCd.select(cur_row, 2)=true;
- //grd_resultCCMMByYakpumCd.editcell();
-
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter3" style="left:760px; top:70px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_resultCCMMByYakpumCd.row; // 행 번호 가져오기
-
- if(cur_row<0) {
- alert("삭제할 행을 선택해주세요.");
- return;
- }
- var all_row = grd_resultCCMMByYakpumCd.selectedRows;
- for(i= 0;i< all_row;i++){
- var delete_row = grd_resultCCMMByYakpumCd.selectedrow(i);
- var iStatus = grd_resultCCMMByYakpumCd.rowstatus(delete_row);
- if (iStatus == 1||iStatus == 3) // 새로 삽입된 행이면
- {
- grd_resultCCMMByYakpumCd.deleteitem(delete_row);
- }
- else if (iStatus == 4) // 삭제로 표시된 행이면
- {
- grd_resultCCMMByYakpumCd.removestatus(delete_row, "delete");
-
- }
- else
- {
- grd_resultCCMMByYakpumCd.addStatus(delete_row, "delete");
- }
- }
-
- ]]>
- </script>
- </button>
- <line id="line1" class="line_3" style="x1:15px; y1:623px; x2:815px; y2:623px; "/>
- <caption id="caption1" class="cell_1" style="left:15px; top:600px; width:132px; height:23px; text-align:center; ">효능(약효분류명)</caption>
- <caption id="caption2" class="tit_2" style="left:19px; top:580px; width:205px; height:13px; ">선택된 약품별 효능관리</caption>
- <line id="line2" class="line_1" style="x1:15px; y1:595px; x2:815px; y2:595px; "/>
- <output id="output1" ref="/root/main/selecteddrug/yakhyo_desc" class="output_fix" style="left:150px; top:601px; width:665px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:15px; top:625px; width:132px; height:23px; text-align:center; ">New 효능</caption>
- <line id="line6" class="line_3" style="x1:15px; y1:648px; x2:815px; y2:648px; "/>
- <input id="input2" ref="/root/main/selecteddrug/yakhyo_desc_cust" class="input_fix" maxlength="50" style="left:150px; top:626px; width:665px; height:19px; "/>
- <button id="button1" class="btn4_letter2" _auth="X" style="left:700px; top:570px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- CHECK 로직 기술
- 1. 저장대상이 존재하는지? 확인한다.
- 2. 사용 Submission ID : TXZCR00101
- 3. 저장후 처리 메세지 alert 출력(건수로 리턴됨)
- 4. 복약안내문 Refresh 불필요
- */
- var yakhyo_desc_cust = model.getValue("/root/main/selecteddrug/yakhyo_desc_cust");
- var yakhyo_desc_old = model.getValue("/root/main/selecteddrug/yakhyo_desc_old");
- model.makeValue("/root/main/selecteddrug/status","insert");
- model.makeValue("/root/main/selecteddrug/languagetype","01");
-
- if(yakhyo_desc_cust ==""){
- alert("내용없이 저장하려면 삭제 버튼을 이용하십시요.");
- model.setValue("/root/main/selecteddrug/yakhyo_desc_cust", yakhyo_desc_old);
- model.refresh();
-
- return;
- }
-
- if(yakhyo_desc_cust == yakhyo_desc_old)
- {
- return;
- }
-
- if ( submit("TXZCR00201") ) {
- model.makeValue("/root/main/selecteddrug/yakhyo_desc_old", yakhyo_desc_cust);
- model.setValue("/root/main/list4/resultDrugSearchDetail/yaksort_nm_cust",yakhyo_desc_cust);
- }
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" _auth="X" style="left:760px; top:570px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- CHECK 로직 기술
- 1. 저장대상이 존재하는지? RowCount만 확인한다.
- 2. 저장대상의 Number와 Description 중 누락된 항목은 없는지?
- --> 저장대상중 Description 또는 Number가 존재 하지 않는 경우 저장대상 제외
- (App Layer에서 체크하고 있음)
- 3. 사용 Submission ID : TXZCR00101
- 4. 저장후 처리 메세지 alert 출력(건수로 리턴됨)
- 5. 복약안내문 Refresh 불필요
- */
- var yakhyo_desc_cust = model.getValue("/root/main/selecteddrug/yakhyo_desc_cust");
- var yakhyo_desc_old = model.getValue("/root/main/selecteddrug/yakhyo_desc_old");
- model.makeValue("/root/main/selecteddrug/status","delete");
- model.makeValue("/root/main/selecteddrug/languagetype","01");
-
- if(model.alert("삭제 처리시 바로 적용됩니다.","삭제처리 하시겠습니까?",1)==1){
- if ( submit("TXZCR00201") ) {
- model.makeValue("/root/main/selecteddrug/yakhyo_desc_cust", "");
- model.makeValue("/root/main/selecteddrug/yakhyo_desc_old", "");
- model.setValue("/root/main/list4/resultDrugSearchDetail/yaksort_nm_cust","");
- input2.refresh();
-
- }
- }else{
- return;
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption9" class="cell_1" style="left:15px; top:650px; width:800px; height:23px; text-align:center; ">50자를 초과 할수 없습니다.</caption>
- <datagrid id="grd_orgCCMMByYakpumCd" nodeset="/root/main/list/orgCCMMByYakpumCd" class="datagrid2" allowuserresize="true" caption="순번^Description" colwidth="52, 696, 100, 100" dataheight="25" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:15px; top:345px; width:799px; height:218px; ">
- <col ref="cmmc_rn" style="text-align:center; "/>
- <col ref="cmpat" style="text-align:left; "/>
- <col ref="yakpum_cd" visibility="hidden"/>
- <col ref="cmmc" visibility="hidden"/>
- </datagrid>
- <caption id="caption15" class="tit_2" style="left:19px; top:327px; width:205px; height:13px; ">원본 복약 안내문</caption>
- <line id="line10" class="line_1" style="x1:15px; y1:342px; x2:814px; y2:342px; "/>
- </case>
- <case id="case2">
- <button id="button4" class="btn2_letter2" style="left:768px; top:11px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- 1. submission id : TRZCR00301
- 2. 결과 Instance "/root/main/list2
- */
- model.makeValue("/root/main/list2/edi_nm",model.getValue("/root/main/selecteddrug/edi_nm"));
- // rexpert를 이용한 복약지도전문 출력
- exeReportPreview("RPDUR00301", "XMLSTR", "/root/main/list2"); //미리보기
- ]]>
- </script>
- </button>
- <output id="opt_DrugNm3" ref="/root/main/selecteddrug/edi_nm" class="output_fix" style="left:150px; top:41px; width:664px; height:19px; "/>
- <caption id="caption5" class="tit_2" style="left:19px; top:20px; width:205px; height:13px; ">선택된 약품</caption>
- <line id="line5" class="line_1" style="x1:15px; y1:35px; x2:814px; y2:35px; "/>
- <caption id="caption8" class="cell_1" style="left:15px; top:40px; width:132px; height:23px; text-align:center; ">약품명</caption>
- <line id="line7" class="line_3" style="x1:15px; y1:62px; x2:814px; y2:62px; "/>
- <datagrid id="grd_PEMMonograph" nodeset="/root/main/list2/resultPEMMonograph" autoresize="true" backcoloralternate="transparent" caption="구 분^상세내용" colsep="^" colwidth="144, 648" dataheight="25" extendlastcol="scroll" mergecells="bycol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:15px; top:91px; width:799px; height:581px; ">
- <col autonext="true" ref="pemtxteidesc" style="text-align:center; vertical-align:top; "/>
- <col ref="pemtxte"/>
- </datagrid>
- <caption id="cap_title3" class="tit_2" style="left:19px; top:72px; width:486px; height:13px; ">복약지도 전문 상세내역</caption>
- <line id="line9" class="line_1" style="x1:15px; y1:87px; x2:814px; y2:87px; "/>
- </case>
- <case id="case3">
- <line id="line13" class="line_1" style="x1:15px; y1:35px; x2:814px; y2:35px; "/>
- <caption id="caption11" class="tit_2" style="left:19px; top:20px; width:205px; height:13px; ">선택된 약품</caption>
- <datagrid id="grd_resultCCMMByYakpumCd1" nodeset="/root/main/list/resultCCMMByYakpumCd" class="datagrid2" allowuserresize="true" caption="순번^Description" colwidth="52, 698, 100, 100" dataheight="25" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:15px; top:95px; width:799px; height:219px; ">
- <col ref="cmmc_rn" style="text-align:center; "/>
- <col ref="cmpat" type="input" style="text-align:left; "/>
- <col ref="yakpum_cd" visibility="hidden"/>
- <col ref="cmmc" visibility="hidden"/>
- </datagrid>
- <caption id="caption20" class="cell_1" style="left:15px; top:40px; width:132px; height:23px; text-align:center; ">약품명</caption>
- <line id="line18" class="line_3" style="x1:15px; y1:62px; x2:814px; y2:62px; "/>
- <output id="opt_DrugNm1" ref="/root/main/selecteddrug/eng_nm" class="output_fix" style="left:150px; top:41px; width:664px; height:19px; "/>
- <caption id="caption14" class="tit_2" style="left:19px; top:77px; width:205px; height:8px; ">복약 안내문</caption>
- <line id="line14" class="line_1" style="x1:15px; y1:92px; x2:814px; y2:92px; "/>
- <button id="button5" class="btn2_letter2" style="left:707px; top:11px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- 1. submission id : TRZCR00301
- 2. 결과 Instance "/root/main/list3/resultCMMLookup"
- */
- var rowcnt = left_datagrid1.rows-1;
- var arrfdrugcd ="";
- for (i = 1; i <= rowcnt; i++)
- {
- arrfdrugcd = arrfdrugcd + model.getValue("/root/main/selectedlist/list" + "[" + i + "]/" + "fdrugcd")+"|" ;
- }
-
- model.makeValue("/root/send/reqCCMM/pYakpumCd", arrfdrugcd);
- model.makeValue("/root/send/reqCCMM/pLanguageType", model.getValue("/root/send/req/pLanguageType"));
-
- submit("TRZCR00301");
-
- // rexpert를 이용한 영문복약안내문 출력
- exeReportPreview("RPDUR00201", "XMLSTR", "/root/main/list3"); //미리보기
- ]]>
- </script>
- </button>
- <button id="button12" class="btn4_letter2" _auth="X" style="left:754px; top:10px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- CHECK 로직 기술
- 1. 저장대상이 존재하는지? RowCount만 확인한다.
- 2. 저장대상의 Number와 Description 중 누락된 항목은 없는지?
- --> 저장대상중 Description 또는 Number가 존재 하지 않는 경우 저장대상 제외
- (App Layer에서 체크하고 있음)
- 3. 사용 Submission ID : TXZCR00101
- 4. 저장후 처리 메세지 alert 출력(건수로 리턴됨)
- 5. 복약안내문 Refresh 불필요
- */
- if(!checkGridUpdate(grd_resultCCMMByYakpumCd1))
- {
- alert("저장할 자료가 존재하지 않습니다.");
- return;
- }
- var cnt_row = grd_resultCCMMByYakpumCd1.rows; // 현재 행의 갯수 가져오기
-
- for(i = cnt_row-1; i >=1; i-- ) //순번제지정
- {
- var iStatus = grd_resultCCMMByYakpumCd1.rowstatus(i);
- //alert("i= "+i+ " iStatus= "+iStatus+" /cnt_row:"+cnt_row);
- if(iStatus == "4" || iStatus == "6")
- {
- if (grd_resultCCMMByYakpumCd1.rows==2){
- model.removenode("/root/main/list/resultCCMMByYakpumCd/cmpat")
- }
- else{
- grd_resultCCMMByYakpumCd1.deleteRow(i,false);
- }
- }
- }
- if ( submit("TXZCR00101") ) {
- grd_resultCCMMByYakpumCd1.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
- var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
- reqGetDetailInfo(param1,param2,0)
- }
-
- ]]>
- </script>
- </button>
- <button id="button18" class="btn2_letter3" style="left:705px; top:70px; width:53px; height:14px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_resultCCMMByYakpumCd1.addRow(); // 입력할 행 추가.
- var cur_row = grd_resultCCMMByYakpumCd1.row; // 추가된 행 번호 가져오기
- var cnt_row = grd_resultCCMMByYakpumCd1.rows; // 현재 행의 갯수 가져오기
-
- var syakpum_cd;
- syakpum_cd = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
- model.setValue("/root/main/list/resultCCMMByYakpumCd["+cur_row+"]/yakpum_cd",syakpum_cd);
- // 그리드에 추가
- //model.copyNode("/root/main/list/scrnlist["+cur_row+"]","/root/main/item");
- for(i = 1; i < cnt_row; i++ ) //순번제지정
- {
- model.makeValue("/root/main/list/resultCCMMByYakpumCd["+i+"]/cmmc_rn",i);
- }
- model.refresh();
- grd_resultCCMMByYakpumCd1.row = cur_row;
- //grd_resultCCMMByYakpumCd.select(cur_row, 2)=true;
- //grd_resultCCMMByYakpumCd.editcell();
-
- ]]>
- </script>
- </button>
- <button id="button19" class="btn2_letter3" style="left:760px; top:70px; width:53px; height:14px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_resultCCMMByYakpumCd1.row; // 행 번호 가져오기
-
- if(cur_row<0) {
- alert("삭제할 행을 선택해주세요.");
- return;
- }
- var all_row = grd_resultCCMMByYakpumCd1.selectedRows;
- for(i= 0;i< all_row;i++){
- var delete_row = grd_resultCCMMByYakpumCd1.selectedrow(i);
- var iStatus = grd_resultCCMMByYakpumCd1.rowstatus(delete_row);
- if (iStatus == 1||iStatus == 3) // 새로 삽입된 행이면
- {
- grd_resultCCMMByYakpumCd1.deleteitem(delete_row);
- }
- else if (iStatus == 4) // 삭제로 표시된 행이면
- {
- grd_resultCCMMByYakpumCd1.removestatus(delete_row, "delete");
-
- }
- else
- {
- grd_resultCCMMByYakpumCd1.addStatus(delete_row, "delete");
- }
- }
- ]]>
- </script>
- </button>
- <line id="line11" class="line_3" style="x1:15px; y1:623px; x2:815px; y2:623px; "/>
- <caption id="caption12" class="cell_1" style="left:15px; top:600px; width:132px; height:23px; text-align:center; ">효능(약효분류명)</caption>
- <caption id="caption13" class="tit_2" style="left:19px; top:580px; width:205px; height:13px; ">선택된 약품별 효능관리</caption>
- <line id="line12" class="line_1" style="x1:15px; y1:595px; x2:815px; y2:595px; "/>
- <output id="output11" ref="/root/main/selecteddrug/atc3_desc" class="output_fix" style="left:150px; top:601px; width:665px; height:19px; "/>
- <caption id="caption17" class="cell_1" style="left:15px; top:625px; width:132px; height:23px; text-align:center; ">New 효능</caption>
- <line id="line16" class="line_3" style="x1:15px; y1:648px; x2:815px; y2:648px; "/>
- <input id="input12" ref="/root/main/selecteddrug/atc3_desc_cust" class="input_fix" maxlength="50" style="left:150px; top:626px; width:665px; height:19px; "/>
- <button id="button11" class="btn4_letter2" _auth="X" style="left:700px; top:570px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- CHECK 로직 기술
- 1. 저장대상이 존재하는지? 확인한다.
- 2. 사용 Submission ID : TXZCR00101
- 3. 저장후 처리 메세지 alert 출력(건수로 리턴됨)
- 4. 복약안내문 Refresh 불필요
- */
- var atc3_desc_cust = model.getValue("/root/main/selecteddrug/atc3_desc_cust");
- var atc3_desc_old = model.getValue("/root/main/selecteddrug/atc3_desc_old");
- model.makeValue("/root/main/selecteddrug/status","insert");
- model.makeValue("/root/main/selecteddrug/languagetype","02");
- if(atc3_desc_cust ==""){
- alert("내용없이 저장하려면 삭제 버튼을 이용하십시요.");
- model.setValue("/root/main/selecteddrug/atc3_desc_cust", atc3_desc_old);
- model.refresh();
- return;
- }
-
- if(atc3_desc_cust == atc3_desc_old)
- {
- return;
- }
- if ( submit("TXZCR00201") ) {
- model.makeValue("/root/main/selecteddrug/atc3_desc_old", atc3_desc_cust);
- model.setValue("/root/main/list4/resultDrugSearchDetail/atc3_desc_cust",atc3_desc_cust);
- }
-
- ]]>
- </script>
- </button>
- <button id="button13" class="btn4_letter2" _auth="X" style="left:760px; top:570px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- CHECK 로직 기술
- 1. 저장대상이 존재하는지? RowCount만 확인한다.
- 2. 저장대상의 Number와 Description 중 누락된 항목은 없는지?
- --> 저장대상중 Description 또는 Number가 존재 하지 않는 경우 저장대상 제외
- (App Layer에서 체크하고 있음)
- 3. 사용 Submission ID : TXZCR00101
- 4. 저장후 처리 메세지 alert 출력(건수로 리턴됨)
- 5. 복약안내문 Refresh 불필요
- */
- var atc3_desc_cust = model.getValue("/root/main/selecteddrug/atc3_desc_cust");
- var atc3_desc_old = model.getValue("/root/main/selecteddrug/atc3_desc_old");
- model.makeValue("/root/main/selecteddrug/status","delete");
- model.makeValue("/root/main/selecteddrug/languagetype","02");
-
- if(model.alert("삭제 처리시 바로 적용됩니다.","삭제처리 하시겠습니까?",1)==1){
- if ( submit("TXZCR00201") ) {
- model.makeValue("/root/main/selecteddrug/atc3_desc_cust", "");
- model.makeValue("/root/main/selecteddrug/atc3_desc_old", "");
- model.setValue("/root/main/list4/resultDrugSearchDetail/atc3_desc_cust","");
- input12.refresh();
-
- }
- }else{
- return;
- }
-
-
- ]]>
- </script>
- </button>
- <caption id="caption19" class="cell_1" style="left:15px; top:650px; width:800px; height:23px; text-align:center; ">50자를 초과 할수 없습니다.</caption>
- <line id="line15" class="line_1" style="x1:15px; y1:342px; x2:814px; y2:342px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/list/orgCCMMByYakpumCd" class="datagrid2" allowuserresize="true" caption="순번^Description" colwidth="52, 697, 100, 100" dataheight="25" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:15px; top:345px; width:799px; height:218px; ">
- <col ref="cmmc_rn" style="text-align:center; "/>
- <col ref="cmpat" style="text-align:left; "/>
- <col ref="yakpum_cd" visibility="hidden"/>
- <col ref="cmmc" visibility="hidden"/>
- </datagrid>
- <caption id="caption16" class="tit_2" style="left:19px; top:327px; width:205px; height:13px; ">원본 복약 안내문</caption>
- </case>
- <case id="case4">
- <button id="button6" class="btn2_letter2" style="left:768px; top:11px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- 1. submission id : TRZCR00301
- 2. 결과 Instance "/root/main/list2
- */
- model.makeValue("/root/main/list2/edi_nm",model.getValue("/root/main/selecteddrug/eng_nm"));
- // rexpert를 이용한 복약지도전문 출력
- exeReportPreview("RPDUR00401", "XMLSTR", "/root/main/list2"); //미리보기
- ]]>
- </script>
- </button>
- <output id="output2" ref="/root/main/selecteddrug/eng_nm" class="output_fix" style="left:150px; top:41px; width:664px; height:19px; "/>
- <caption id="caption18" class="tit_2" style="left:19px; top:20px; width:205px; height:13px; ">선택된 약품</caption>
- <line id="line17" class="line_1" style="x1:15px; y1:35px; x2:814px; y2:35px; "/>
- <caption id="caption21" class="cell_1" style="left:15px; top:40px; width:132px; height:23px; text-align:center; ">약품명</caption>
- <line id="line19" class="line_3" style="x1:15px; y1:62px; x2:814px; y2:62px; "/>
- <datagrid id="datagrid2" nodeset="/root/main/list2/resultPEMMonograph" autoresize="true" backcoloralternate="transparent" caption="구 분^상세내용" colsep="^" colwidth="168, 624" dataheight="25" extendlastcol="scroll" mergecells="bycol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:15px; top:91px; width:799px; height:581px; ">
- <col autonext="true" ref="pemtxteidesc" style="text-align:center; vertical-align:top; "/>
- <col ref="pemtxte"/>
- </datagrid>
- <caption id="caption22" class="tit_2" style="left:19px; top:72px; width:486px; height:13px; ">복약지도 전문 상세내역</caption>
- <line id="line20" class="line_1" style="x1:15px; y1:87px; x2:814px; y2:87px; "/>
- </case>
- </switch>
- <import id="import2" src="../../../com/navigationweb/xrw/SPZCN00101_Copyright.xrw" style="left:370px; top:752px; width:833px; height:27px; "/>
- <button id="button7" class="btn_sw" group="tab" style="left:990px; top:40px; width:211px; height:22px; ">
- <caption>영문복약 전문</caption>
- <toggle case="case4" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- 1. 약물 상호작용 리스트 첫번째 row 클릭 coding 할것
- */
- var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
- var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
- reqGetDetailInfo(param1,param2,0)
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|