123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>검토결과 보기</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <codeList/>
- </main>
- <send>
- <req>
- <pScope>01</pScope>
- </req>
- <screen>
- </screen>
- <prcpdd/>
- <reqDDIM>
- <pCodeType/>
- <pMonograpCd/>
- </reqDDIM>
- </send>
- <init/>
- <hidden/>
- <temp>
- </temp>
- <screenMessageList>
- <정상처리여부/>
- <메세지유무/>
- <patientInfoList>
- <patientid/>
- <gender/>
- <age/>
- <brthdd/>
- <diseasecd/>
- <diseasenm/>
- </patientInfoList>
- <drugInofList>
- <currentyn/>
- <prcpdd/>
- <deptnm/>
- <ordusernm/>
- <firstordusernm/>
- <orddrugcd/>
- <orddrugnm/>
- <dosageonceqty/>
- <dosagedaycount/>
- <execstartdate/>
- </drugInofList>
- <screenResultList>
- <modulenm/>
- <sldesc/>
- <orddrugnm/>
- <scnmessage/>
- <resncd/>
- <resnnm/>
- <resncnts/>
- <difguid/>
- <moduleid/>
- <monograpid/>
- <처방식별키1/>
- <처방식별키2/>
- <처방식별키3/>
- <처방식별키4/>
- </screenResultList>
- </screenMessageList>
- <paminfo/>
- <telinfo>
- <srchgrupid>
- <initgrupid/>
- </srchgrupid>
- </telinfo>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- /*
- 화면을 초기화 합니다.
- */
- fInitialize();
-
- //submit("TRZCS00301");
-
- model.setValue("/root/send/prcpdd", model.getValue("/root/screenMessageList/drugInofList[1]/prcpdd"));
-
- submit("TRZCS09901");
-
- fCreateComboItemSet();
-
- //2009-10-27수정 var moduleID = model.getValue("/root/screenMessageList/screenResultList[1]/moduleid");
- var moduleID = model.getValue("/root/screenMessageList/screenResultList[1]/subgrup");
-
- fSetResnCodeList(moduleID);
-
- datagrid1.select(1,1) = true;
- //var vloc = model.getValue("/root/screenMessageList/patientInfoList[1]/loc");
- var vloc = opener.model.getValue ( "/root/paminfo/list/roomcd" );
- var vpid = model.getValue("/root/screenMessageList/patientInfoList[1]/patientid");
- var vhngnm = model.getValue("/root/screenMessageList/patientInfoList[1]/hngnm");
- var vgender = model.getValue("/root/screenMessageList/patientInfoList[1]/gender");
- var vage = model.getValue("/root/screenMessageList/patientInfoList[1]/age");
-
- output1.value ="병실:"+vloc+", 등록번호:"+vpid+", 환자명:"+vhngnm+", 성별/나이:"+vgender+"/"+vage;
-
- var vdiseasecd = model.getValue("/root/screenMessageList/patientInfoList[1]/diseasecd");
- var diseasenm = model.getValue("/root/screenMessageList/patientInfoList[1]/diseasenm");
-
- output2.value = " "+vdiseasecd+" "+diseasenm;
- output2.refresh();
- // 20091123 이남익 추가(전체 처방검토 모듈 Trace를 위한 instance)
- model.makeValue("/root/paminfo/list/roomcd", opener.model.getValue( "/root/paminfo/list/pid"));
- var rowCnt = datagrid1.rows;
- for(i=1; i<=rowCnt;i++){
- if("A"==model.getValue("/root/screenMessageList/screenResultList["+i+"]/defaulta")){
- model.makeValue("/root/screenMessageList/screenResultList["+i+"]/resncd","A");
- model.makeValue("/root/screenMessageList/screenResultList["+i+"]/resnnm", "사유 필요없음. (default)");
- datagrid1.refresh();
- }
- }
- datagrid1.mergecol(2)=false;
- datagrid1.mergecol(3)=false;
- datagrid1.mergecol(4)=false;
- datagrid1.mergecol(6)=false;
- datagrid1.mergecol(7)=false;
- datagrid1.mergecol(8)=false;
- datagrid1.mergecol(9)=false;
- datagrid1.mergecol(10)=false;
- datagrid1.mergecells="byrestriccol";
- datagrid1.refresh();
-
- ]]>
- </script>
- <submission id="TRZCS09901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRZCS00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/screen" resultref="/root/screenMessageList"/>
- <submission id="TXZCS00101"/>
- <submission id="TXZCS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/result"/>
- <submission id="TRADB00001"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/referenceweb/js/ZCR001.js"/>
- <script type="javascript" src="../../../com/navigationweb/js/ZCN001.js"/>
- <script type="javascript" src="../../../ast/pharmacybaseweb/js/pharmacycombolist.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
- pharmacyGetCodeList( new Array("DUR1"), new Array("/root/telinfo/srchgrupid/initgrupid") );
- /*
- model.removeNodeset("/root/screenMessageList");
- grd_resultlist.refresh();
- */
- model.removenode("/root/telinfo/srchgrupid/initgrupid/DUR1[1]");
- }
- /*
- 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;
- }
- function fCreateComboItemSet(){
-
- var node = instance1.selectNodes("/root/temp/codeList");
- var codeCnt = node.length;
- for(j=1; j<=codeCnt;j++){
- var moduleid = model.getValue("/root/temp/codeList["+j+"]/moduleid");
- var seq = model.getValue("/root/temp/codeList["+j+"]/seq");
- var modulenm = model.getValue("/root/temp/codeList["+j+"]/modulenm");
- var resncd = model.getValue("/root/temp/codeList["+j+"]/resncd");
- var resnnm = model.getValue("/root/temp/codeList["+j+"]/resnnm");
- var edityn = model.getValue("/root/temp/codeList["+j+"]/edityn");
-
- if(seq =="1"){
- var node = instance1.createNode("", "itemSet"+moduleid, ""); // 입력컨트롤의 입력값으로 createNode 수행
-
- var selnode = instance1.selectSingleNode("/root/main/codeList"); // 생성할 엘리먼트를 위치할 노드 선택함
-
- selnode.appendChild(node); // 생성한 엘리먼트를 선택한 노드의 하위에 적용함
-
- var att = instance1.createNode("attribute", "newAtt", ""); // createNode 메서드로 newAtt 라는 attribute node 를 생성함
-
-
- att.text = "style"; // 생성한 attribute 에 style 이라는 값을 설정
-
- var namedNodeMap = node.attributes; // 생성한 element node 의 attribute 리스트를 namedNodeMap 객체로 반환
-
- namedNodeMap.setNamedItem(att); // namedNodeMap 객체에 생성한 attribute 를 설정함
-
-
- }
- model.makeValue("/root/main/codeList/itemSet"+moduleid+"["+seq+"]/moduleid",moduleid);
- model.makeValue("/root/main/codeList/itemSet"+moduleid+"["+seq+"]/modulenm",modulenm);
- model.makeValue("/root/main/codeList/itemSet"+moduleid+"["+seq+"]/resncd",resncd);
- model.makeValue("/root/main/codeList/itemSet"+moduleid+"["+seq+"]/resnnm",resnnm);
- model.makeValue("/root/main/codeList/itemSet"+moduleid+"["+seq+"]/edityn",edityn);
- }
- }
-
- function fSetResnCodeList(param1){
- var resnNodeSet = "/root/main/codeList/itemSet"+ param1;
- datagrid3.nodeset = resnNodeSet;
- datagrid3.refresh();
- }
- function fCellDisabled(param1, param2){
- var colDisabledYN = "";
- var colDisabledCol = "";
-
- if(param2=="Y"){
- colDisabledYN = "true";
- colDisabledCol = "#f0f0f0"
- }else{
- colDisabledYN = "false";
- colDisabledCol = "#FFFFFF"
- }
- datagrid1.cellAttribute("disabled", param1, 9, param1, 9) = colDisabledYN;
- datagrid1.cellstyle("background-color", param1, 9, param1, 9) = colDisabledCol;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1100" pageheight="745" guideline="2,296;1,1200;2,779;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <line id="line1" class="line_1" style="x1:5px; y1:511px; x2:1080px; y2:511px; "/>
- <caption id="caption2" class="tit_2" style="left:5px; top:35px; width:70px; height:13px; ">검토결과</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:50px; x2:1080px; y2:50px; "/>
- <button id="btn_save" class="btn4_letter4" style="left:1003px; top:718px; width:80px; height:22px; ">
- <caption>처방취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //처방창에 취소플래그 리턴, 차현철, 2009-10-29
- opener.javascript.setParameter ( "SPZCS00301_rtn1", "N" );
- window.close();
- /* if ( submit("TXZCS00101") ) {
- datagrid1.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- submit("TRZCS00101");
- } */
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter4" style="left:921px; top:718px; width:80px; height:22px; ">
- <caption>계속저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var uPdatagrid1RowSize = datagrid1.rows
- var uPdatagrid4RowSize = datagrid4.rows
- for(i=1; i<uPdatagrid1RowSize; i++){
- var mappingID = datagrid1.valuematrix(i, 2) ;
- var resnseqNO = datagrid1.valuematrix(i, 3) ;
- var resnnm = datagrid1.valuematrix(i, 7) ;
- var resnCD = datagrid1.valuematrix(i, 8) ;
- var resncntsNM = datagrid1.valuematrix(i, 9) ;
- // var resncnts = datagrid1.valuematrix(i-1, 9) ;
- // var mappingID = model.getValue("/root/screenMessageList/screenResultList["+i+"]/mappingid");
- // var resnseqNO = model.getValue("/root/screenMessageList/screenResultList["+i+"]/resnseqno");
- // var resnCD = model.getValue("/root/screenMessageList/screenResultList["+i+"]/resncd");
- //사유명 null 오류로 수정함, 차현철, 2009-11-08
- //var resncntsNM = model.getValue("/root/screenMessageList/screenResultList["+i+"]/resncnts");
- //var resncntsNM = model.getValue("/root/screenMessageList/screenResultList["+i+"]/resnnm");
- if(resnCD==""){
- alert("사유입력 누락된 부분이 있습니다. 모듈명을 클릭후 사유 선택 하십시요.");
- return;
- }
- if(resnCD=="Z"&&resncntsNM==""){
- alert("스크린 사유를 기타(Z)로 선택한 경우 기타사유 항목이 누락 되었습니다. 기타사유 항목을 입력해 주세요...!!");
- return;
- }
- for(j=1;j<uPdatagrid4RowSize;j++){
- var mappingID4 = model.getValue("/root/screenMessageList/screenRenList["+j+"]/mappingid");
- var resnseqNO4 = model.getValue("/root/screenMessageList/screenRenList["+j+"]/resnseqno")
- if(mappingID==mappingID4 &&resnseqNO==resnseqNO4){
-
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/resncd",resnCD);
- if(resnCD=="Z"){
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/resncnts", resncntsNM);
- }else{
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/resncnts", resnnm);
- }
-
-
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/pid", opener.model.getValue( "/root/paminfo/list/pid"));
- if (opener.model.getValue( "/root/paminfo/list/ioflag") == "O" || opener.model.getValue( "/root/paminfo/list/ioflag") == "S" ) {
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/orddd", opener.model.getValue( "/root/paminfo/list/orddd"));
- } else {
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/orddd", opener.model.getValue( "/root/paminfo/list/indd"));
- }
-
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/cretno", opener.model.getValue( "/root/paminfo/list/cretno"));
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/ordtype", opener.model.getValue( "/root/paminfo/list/ioflag"));
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/orddeptcd", opener.model.getValue( "/root/paminfo/list/orddeptcd"));
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/resnflag", "P");
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/lastupdtrid", getUserInfo("userid"));
-
- }
- }
- }
- /*
- if(!checkGridUpdate(datagrid1))
- {
- alert("개발진행중.");
- return;
- }
- if ( submit("TXZCS00101") ) {
- datagrid1.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- submit("TRZCS00101");
- }
- */
- //처방입력사유저장, 차현철, 2009-11-07
- var ResnInfoHeader = "instcd▦pid▦orddd▦cretno▦ordtype▦orddeptcd▦prcpdd▦prcpno▦prcphistno▦resnflag▦resncd▦resncnts▦lastupdtrid▦resnseqno▩";
- var ResnInfoData = "";
-
- for (var i = 1; i<= getNodesetCount("/root/screenMessageList/screenRenList"); i++) {
- ResnInfoData += model.getValue("/root/screenMessageList/screenRenList["+i+"]/instcd")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/pid")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/orddd")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/cretno")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/ordtype")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/orddeptcd")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/prcpdd")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/prcpno")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/prcphistno")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/mappingid")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/resncd")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/resncnts")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/lastupdtrid")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/resnseqno")
- + "▩";
- }
-
- model.makeValue("/root/send/resninfo", ResnInfoHeader + ResnInfoData);
-
- //처방창에 저장완료플래그 리턴 후 화면 종료, 차현철, 2009-10-29
- if(submit("TXZCS00102")) {
- opener.javascript.setParameter ( "SPZCS00301_rtn1", "Y" );
- } else {
- opener.javascript.setParameter ( "SPZCS00301_rtn1", "N" );
- }
- window.close();
-
- ]]>
- </script>
- </button>
- <datagrid id="datagrid3" autoresize="true" caption="모듈명^선택^코드^상세사유^모듈ID^입력가능여부" colsep="^" colwidth="128, 34, 48, 782, 0, 0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:330px; width:1075px; height:155px; ">
- <col ref="modulenm"/>
- <col editable="false" ref="chk" type="inputbutton" visibility="hidden"/>
- <col ref="resncd" style="text-align:center; "/>
- <col ref="resnnm"/>
- <col ref="moduleid" visibility="hidden"/>
- <col ref="edityn" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var rcnt = (datagrid3.row);
- var pScope = model.getValue("/root/send/req/pScope");
- var resnCD = datagrid3.valuematrix(datagrid3.row, 3) ;
- var resnNM = datagrid3.valuematrix(datagrid3.row, 4) ;
- var moduleID = datagrid3.valuematrix(datagrid3.row, 5) ;
- var editYN = datagrid3.valuematrix(datagrid3.row, 6) ;
- var uPdatagridRow = datagrid1.row
- var uPdatagridRowSize = datagrid1.rows
- // alert("[moduleID:"+moduleID+"] [resnCD:"+resnCD+"] [resnNM:"+resnNM+"] [pScope:"+pScope+"] [uPdatagridRow:"+uPdatagridRow+"]");
-
- if (pScope == "01"){ // 모듈 일괄사유등록
- for(i=1; i<=uPdatagridRowSize; i++){
- //2009-10-27수정 if(moduleID == model.getValue("/root/screenMessageList/screenResultList["+i+"]/moduleid")){
- if(moduleID == model.getValue("/root/screenMessageList/screenResultList["+i+"]/subgrup")){
- model.makeValue("/root/screenMessageList/screenResultList["+i+"]/resncd",resnCD);
- model.makeValue("/root/screenMessageList/screenResultList["+i+"]/resnnm", resnNM);
- if(editYN=="Y"){
- fCellDisabled(i, "N");
- }else{
- fCellDisabled(i, "N");
- model.makeValue("/root/screenMessageList/screenResultList["+i+"]/resncnts", "");
- }
- }
- }
- }
- else if(pScope == "02"){ // 개별사유등록
- model.makeValue("/root/screenMessageList/screenResultList["+uPdatagridRow+"]/resncd",resnCD);
- model.makeValue("/root/screenMessageList/screenResultList["+uPdatagridRow+"]/resnnm", resnNM);
- if(editYN=="Y"){
- fCellDisabled(uPdatagridRow, "N");
- }else{
- fCellDisabled(uPdatagridRow, "N");
- model.makeValue("/root/screenMessageList/screenResultList["+uPdatagridRow+"]/resncnts", "");
- }
- }
- datagrid1.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var rcnt = (datagrid3.row);
- var pScope = model.getValue("/root/send/req/pScope");
- var resnCD = datagrid3.valuematrix(datagrid3.row, 3) ;
- var resnNM = datagrid3.valuematrix(datagrid3.row, 4) ;
- var moduleID = datagrid3.valuematrix(datagrid3.row, 5) ;
- var editYN = datagrid3.valuematrix(datagrid3.row, 6) ;
- var uPdatagridRow = datagrid1.row
- var uPdatagridRowSize = datagrid1.rows
- // alert("[moduleID:"+moduleID+"] [resnCD:"+resnCD+"] [resnNM:"+resnNM+"] [pScope:"+pScope+"] [uPdatagridRow:"+uPdatagridRow+"]");
-
- if (pScope == "01"){ // 모듈 일괄사유등록
- for(i=1; i<=uPdatagridRowSize; i++){
- //2009-10-27수정 if(moduleID == model.getValue("/root/screenMessageList/screenResultList["+i+"]/moduleid")){
- if(moduleID == model.getValue("/root/screenMessageList/screenResultList["+i+"]/subgrup")){
- model.makeValue("/root/screenMessageList/screenResultList["+i+"]/resncd",resnCD);
- model.makeValue("/root/screenMessageList/screenResultList["+i+"]/resnnm", resnNM);
- if(editYN=="Y"){
- fCellDisabled(i, "N");
- }else{
- fCellDisabled(i, "N");
- model.makeValue("/root/screenMessageList/screenResultList["+i+"]/resncnts", "");
- }
- }
- }
- }
- else if(pScope == "02"){ // 개별사유등록
- model.makeValue("/root/screenMessageList/screenResultList["+uPdatagridRow+"]/resncd",resnCD);
- model.makeValue("/root/screenMessageList/screenResultList["+uPdatagridRow+"]/resnnm", resnNM);
- if(editYN=="Y"){
- fCellDisabled(uPdatagridRow, "N");
- }else{
- fCellDisabled(uPdatagridRow, "N");
- model.makeValue("/root/screenMessageList/screenResultList["+uPdatagridRow+"]/resncnts", "");
- }
- }
- datagrid1.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" autoresize="true" style="left:5px; top:310px; width:760px; height:13px; ">사유선택 (더블 클릭시 사유를 입력할 수 있습니다.)</caption>
- <line id="line3" class="line_1" style="x1:5px; y1:325px; x2:1080px; y2:325px; "/>
- <select1 id="rdo_pScope" ref="/root/send/req/pScope" class="radio_search" visibility="visible" appearance="full" cols="2" itemwidth="120" overflow="visible" style="left:859px; top:307px; width:220px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>동일모듈일괄입력</label>
- <value>01</value>
- </item>
- <item>
- <label>결과별사유입력</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:775px; top:307px; width:86px; height:17px; ">적용범위 :</caption>
- <button id="button2" class="btn2_letter10" style="left:950px; top:30px; width:130px; height:19px; ">
- <caption>처방검토결과(전체)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- modal("../../screenweb/xrw/SPZCS00501_DurMessage", "", "", "", "SPZCS00501","/root/screenMessageList/otherInfoList","/root/send/screen");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter4" style="left:1000px; top:2px; width:80px; height:22px; ">
- <caption>처방취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //처방창에 취소플래그 리턴, 차현철, 2009-10-29
- opener.javascript.setParameter ( "SPZCS00301_rtn1", "N" );
- window.close();
- /* if ( submit("TXZCS00101") ) {
- datagrid1.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- submit("TRZCS00101");
- } */
- ]]>
- </script>
- </button>
- <datagrid id="datagrid2" nodeset="/root/screenMessageList/drugInofList" autoresize="true" caption="현처방^처방일^진료부서^주치의^처방의^약품코드^약품명^총용량^총용량^수량^수량^횟수^일수^투여시작일" colsep="^" colwidth="48, 75, 90, 50, 50, 90, 313, 45, 45, 40, 35, 40, 40, 85" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:515px; width:1075px; height:200px; ">
- <col ref="currentordflag" style="text-align:center; "/>
- <col ref="prcpdd" style="text-align:center; "/>
- <col ref="deptnm" style="text-align:center; "/>
- <col ref="ordusernm" style="text-align:center; "/>
- <col ref="firstordusernm" style="text-align:center; "/>
- <col ref="orddrugcd"/>
- <col ref="orddrugnm"/>
- <col ref="sumcntsvol" style="text-align:right; "/>
- <col ref="cntsunit" style="text-align:right; "/>
- <col ref="dosageoriginonceqty" style="text-align:right; "/>
- <col ref="dosageunit" style="text-align:right; "/>
- <col ref="dosageonedayfrq" style="text-align:right; "/>
- <col ref="dosagedaycount" style="text-align:right; "/>
- <col ref="execstartdate" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var selectedrow = (datagrid2.row );
- if(0 == selectedrow){return;}
-
- var param1 = model.getValue("/root/screenMessageList/drugInofList["+selectedrow+"]/orddrugcd");
- model.makeValue("/root/difParam/pYakpumCd", param1);
- window.load("../../../com/navigationweb/xrw/SMZCN00301_Opener.xrw","modal","","","/root/difParam","/root/resultParam");
- ]]>
- </script>
- </datagrid>
- <button id="button7" class="icon_top" style="left:85px; top:29px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid1.attribute("height") = 245;
- datagrid1.refresh();
-
- datagrid3.attribute("top") = 330;
- datagrid3.attribute("height") = 155;
- caption3.attribute("top") = 310;
- line3.attribute("y1") = 325;
- line3.attribute("y2") = 325;
- caption8.attribute("top") = 307;
- rdo_pScope.attribute("top") = 307;
-
- caption1.attribute("top") = 495;
- button5.attribute("top") = 490;
- button6.attribute("top") = 490;
- line1.attribute("y1") = 511;
- line1.attribute("y2") = 511;
- datagrid2.attribute("top") = 515;
- caption1.visible = true;
- button5.visible = true;
- button6.visible = true;
- line1.visible = true;
- datagrid2.visible = true;
-
- //top:130px; width:1075px; height:245px;
- //datagrid2.attribute("top") = 10;
- //datagrid2.attribute("top") = 10;
- //datagrid2.attribute("top") = 10;
- ]]>
- </script>
- </button>
- <button id="button8" class="icon_bottom" style="left:110px; top:29px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid1.attribute("height") = 430;
- datagrid1.refresh();
-
- datagrid3.attribute("top") =330 + 185;
- datagrid3.attribute("height") = 155 + 45;
- caption3.attribute("top") = 310 + 185;
- line3.attribute("y1") = 325 + 185;
- line3.attribute("y2") = 325 + 185;
- caption8.attribute("top") = 307 + 185;
- rdo_pScope.attribute("top") = 307 + 185;
-
- caption1.attribute("top") = 495 + 185;
- button5.attribute("top") = 490 + 185;
- button6.attribute("top") = 490 + 185;
- line1.attribute("y1") = 511 + 185;
- line1.attribute("y2") = 511 + 185;
- datagrid2.attribute("top") = 515 + 185;
- caption1.visible=false;
- button5.visible = false;
- button6.visible = false;
- line1.visible = false;
- datagrid2.visible = false;
-
- //datagrid2.attribute("top") = 10;
- //datagrid2.attribute("top") = 10;
- //datagrid2.attribute("top") = 10;
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" autoresize="true" style="left:5px; top:495px; width:1075px; height:13px; background-color:#ffffff; border-color:#ffffff; border-style:solid; ">약물복용정보 (약제를 더블 클릭 시 약품정보를 볼 수 있습니다.)</caption>
- <button id="button5" class="icon_top" style="left:410px; top:490px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid2.attribute("top") = 330;
- datagrid2.attribute("height") = 385;
- button5.attribute("top") = 304;
- button6.attribute("top") = 304;
- caption1.attribute("top") = 309;
- datagrid2.refresh();
- ]]>
- </script>
- </button>
- <button id="button6" class="icon_bottom" style="left:435px; top:490px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid2.attribute("top") = 515;
- datagrid2.attribute("height") = 200;
- button5.attribute("top") = 490;
- button6.attribute("top") = 490;
- caption1.attribute("top") = 495;
- datagrid2.refresh();
- ]]>
- </script>
- </button>
- <output id="output1" style="left:6px; top:5px; width:454px; height:19px; font-weight:bold; "/>
- <caption id="caption4" class="cell_1" style="left:470px; top:6px; width:87px; height:18px; font-family:돋움; vertical-align:middle; ">진단정보</caption>
- <button id="button61" class="icon_search" style="left:535px; top:7px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPZCS00601", "1","150", "150", "SPZCS00601", "/root/screenMessageList", "/root/screenMessageList");
- ]]>
- </script>
- </button>
- <output id="output2" style="left:557px; top:6px; width:349px; height:19px; border-color:#3366ff; border-width:1px; border-style:solid; "/>
- <caption id="caption5" ref="/root/telinfo/srchgrupid/initgrupid/DUR1/cdnm" class="tit_2" autoresize="true" style="left:6px; top:725px; width:284px; height:13px; background-color:#ffffff; border-color:#ffffff; border-style:solid; "/>
- <datagrid id="datagrid1" nodeset="/root/screenMessageList/screenResultList" autoresize="true" caption="모듈명^모듈맵핑코드^SEQ^등급^처방내용^결과내용^사유명^사유코드^기타사유^상세정보" colsep="^" colwidth="93, 0, 0, 91, 340, 251, 100, 0, 100, 55" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:55px; width:1075px; height:245px; ">
- <col ref="modulenm"/>
- <col ref="mappingid" visibility="hidden"/>
- <col ref="resnseqno" visibility="hidden"/>
- <col ref="sldesc"/>
- <col ref="orddrugnm"/>
- <col ref="scnmessage"/>
- <col ref="resnnm"/>
- <col ref="resncd" visibility="hidden"/>
- <col disabled="false" ref="resncnts" type="input" style="color:transparent; background-color:#f0f0f0; border-color:#ff0000; border-left-style:none; "/>
- <col editable="false" ref="monograpnm" type="inputbutton" style="text-align:right; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var rcnt = (datagrid1.row);
-
- //2009-10-27 수정 var moduleID = model.getValue("/root/screenMessageList/screenResultList["+rcnt+"]/moduleid");
- var moduleID = model.getValue("/root/screenMessageList/screenResultList["+rcnt+"]/subgrup");
- fSetResnCodeList(moduleID);
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var rcnt = (datagrid1.row);
- var pMonograpCd = model.getValue("root/screenMessageList/screenResultList["+rcnt+"]/monograpid");
- var vModuleID = model.getValue("root/screenMessageList/screenResultList["+rcnt+"]/moduleid");
- if (pMonograpCd!=""){
- model.setValue("/root/send/reqDDIM/pMonograpCd",pMonograpCd);
- if (vModuleID=="I"){
- model.setValue("/root/send/reqDDIM/pCodeType", '14');
- modal("../../referenceweb/xrw/SPZCR00201", "", "", "", "SPZCR00201","/root/send/reqDDIM","/root/send/reqDDIM");
- }
- else if(vModuleID=="W"){
- model.setValue("/root/send/reqDDIM/pCodeType", '16');
- modal("../../referenceweb/xrw/SPZCR00201", "", "", "", "SPZCR00201","/root/send/reqDDIM","/root/send/reqDDIM");
- }
- }
-
-
- ]]>
- </script>
- </datagrid>
- <button id="button3" class="btn4_letter4" style="left:918px; top:2px; width:80px; height:22px; ">
- <caption>계속저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var uPdatagrid1RowSize = datagrid1.rows
- var uPdatagrid4RowSize = datagrid4.rows
- for(i=1; i<uPdatagrid1RowSize; i++){
- var mappingID = datagrid1.valuematrix(i, 2) ;
- var resnseqNO = datagrid1.valuematrix(i, 3) ;
- var resnnm = datagrid1.valuematrix(i, 7) ;
- var resnCD = datagrid1.valuematrix(i, 8) ;
- var resncntsNM = datagrid1.valuematrix(i, 9) ;
- // var resncnts = datagrid1.valuematrix(i-1, 9) ;
- // var mappingID = model.getValue("/root/screenMessageList/screenResultList["+i+"]/mappingid");
- // var resnseqNO = model.getValue("/root/screenMessageList/screenResultList["+i+"]/resnseqno");
- // var resnCD = model.getValue("/root/screenMessageList/screenResultList["+i+"]/resncd");
- //사유명 null 오류로 수정함, 차현철, 2009-11-08
- //var resncntsNM = model.getValue("/root/screenMessageList/screenResultList["+i+"]/resncnts");
- //var resncntsNM = model.getValue("/root/screenMessageList/screenResultList["+i+"]/resnnm");
- if(resnCD==""){
- alert("사유입력 누락된 부분이 있습니다. 모듈명을 클릭후 사유 선택 하십시요.");
- return;
- }
- if(resnCD=="Z"&&resncntsNM==""){
- alert("스크린 사유를 기타(Z)로 선택한 경우 기타사유 항목이 누락 되었습니다. 기타사유 항목을 입력해 주세요...!!");
- return;
- }
- for(j=1;j<uPdatagrid4RowSize;j++){
- var mappingID4 = model.getValue("/root/screenMessageList/screenRenList["+j+"]/mappingid");
- var resnseqNO4 = model.getValue("/root/screenMessageList/screenRenList["+j+"]/resnseqno")
- if(mappingID==mappingID4 &&resnseqNO==resnseqNO4){
-
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/resncd",resnCD);
- if(resnCD=="Z"){
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/resncnts", resncntsNM);
- }else{
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/resncnts", resnnm);
- }
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/pid", opener.model.getValue( "/root/paminfo/list/pid"));
- if (opener.model.getValue( "/root/paminfo/list/ioflag") == "O" ) {
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/orddd", opener.model.getValue( "/root/paminfo/list/orddd"));
- } else {
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/orddd", opener.model.getValue( "/root/paminfo/list/indd"));
- }
-
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/cretno", opener.model.getValue( "/root/paminfo/list/cretno"));
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/ordtype", opener.model.getValue( "/root/paminfo/list/ioflag"));
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/orddeptcd", opener.model.getValue( "/root/paminfo/list/orddeptcd"));
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/resnflag", "P");
- model.makeValue("/root/screenMessageList/screenRenList["+j+"]/lastupdtrid", getUserInfo("userid"));
-
- }
- }
- }
- /*
- if(!checkGridUpdate(datagrid1))
- {
- alert("개발진행중.");
- return;
- }
- if ( submit("TXZCS00101") ) {
- datagrid1.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- submit("TRZCS00101");
- }
- */
- //처방입력사유저장, 차현철, 2009-11-07
- var ResnInfoHeader = "instcd▦pid▦orddd▦cretno▦ordtype▦orddeptcd▦prcpdd▦prcpno▦prcphistno▦resnflag▦resncd▦resncnts▦lastupdtrid▦resnseqno▩";
- var ResnInfoData = "";
-
- for (var i = 1; i<= getNodesetCount("/root/screenMessageList/screenRenList"); i++) {
- ResnInfoData += model.getValue("/root/screenMessageList/screenRenList["+i+"]/instcd")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/pid")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/orddd")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/cretno")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/ordtype")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/orddeptcd")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/prcpdd")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/prcpno")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/prcphistno")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/mappingid")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/resncd")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/resncnts")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/lastupdtrid")
- + "▦" + model.getValue("/root/screenMessageList/screenRenList["+i+"]/resnseqno")
- + "▩";
- }
-
- model.makeValue("/root/send/resninfo", ResnInfoHeader + ResnInfoData);
-
- //처방창에 저장완료플래그 리턴 후 화면 종료, 차현철, 2009-10-29
- if(submit("TXZCS00102")) {
- opener.javascript.setParameter ( "SPZCS00301_rtn1", "Y" );
- } else {
- opener.javascript.setParameter ( "SPZCS00301_rtn1", "N" );
- }
- window.close();
-
- ]]>
- </script>
- </button>
- <datagrid id="datagrid4" nodeset="/root/screenMessageList/screenRenList" visibility="hidden" autoresize="true" caption="모듈ID^처방코드^SEQ^사유^기타사유" colsep="^" colwidth="37, 72, 60, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:490px; top:385px; width:455px; height:320px; ">
- <col ref="mappingid"/>
- <col ref="orddrugcd"/>
- <col ref="resnseqno"/>
- <col ref="resncd"/>
- <col ref="resncnts"/>
- </datagrid>
- <caption id="caption6" class="tit_2" visibility="hidden" autoresize="true" style="left:310px; top:725px; width:284px; height:13px; background-color:#ffffff; border-color:#ffffff; border-style:solid; ">약품정보문의 : 2523, 전산운영문의 : 5809</caption>
- </xhtml:body>
- </xhtml:html>
|