123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <druglist>
- <item>
- <reqflag/>
- <drugcd/>
- <hngnm/>
- <engnm/>
- <ordnm/>
- <comdesc/>
- <edicd/>
- <goodunitcost/>
- <drugfromdd/>
- <delivecrite/>
- <calcmthdcd/>
- <lrgcls/>
- <lrgclsnm/>
- <mdlcls/>
- <mdlclsnm/>
- <smlcls/>
- <smlclsnm/>
- <hosinresn/>
- <goodpurccost/>
- <absnyn/>
- <absnreusedd/>
- <etccau/>
- <calcscorrgstyn/>
- <reqseqno/>
- <prcpclscd/>
- </item>
- </druglist>
- </main>
- <send>
- <srchflag>N</srchflag>
- <fromdd/>
- <todd/>
- <reqflag/>
- <popupflag/>
- <data>
- <item/>
- </data>
- <cancelyn/>
- <calcscorrgstyn/>
- </send>
- <init>
- <baseinfo>
- <hosinresn>
- <M0037>
- <cdid/>
- <cdnm/>
- </M0037>
- </hosinresn>
- <absnyn>
- <A0600>
- <cdid/>
- <cdnm/>
- </A0600>
- </absnyn>
- <delivecrite>
- <A0637>
- <cdid/>
- <cdnm/>
- </A0637>
- </delivecrite>
- <calcmthdcd>
- <P0133>
- <cdid/>
- <cdnm/>
- </P0133>
- </calcmthdcd>
- </baseinfo>
- </init>
- <temp>
- <ret/>
- <prntdata/>
- <popup>
- <mouserght>
- <name>취소</name>
- <func>fChgReqFlag</func>
- </mouserght>
- </popup>
- </temp>
- <hidden>
- <reqflag/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRZBC00101"/>
- <submission id="TRADB03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/druglist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList( new Array("M0037","A0600","A0637","P0133"), new Array("/root/init/baseinfo/hosinresn","/root/init/baseinfo/absnyn","/root/init/baseinfo/delivecrite","/root/init/baseinfo/calcmthdcd"));
- //========================================================================================
- //===================== 약품마스터/임상마스터와 수가에서 팝업시 구분 추가 ======================
- //========================================================================================
- // 약품정보관리/임상시험 약품정보에서 팝업시 reqflag = "AST|?"
-
- var tmp_var = model.getValue("/root/hidden/reqflag").split("|");
- model.makeNode("/root/hidden/popupflag");
- if(tmp_var[0] == ""){
- button10.visible = true;
- cmb_drug.visible=true;
- cmb_crdrug.visible=false;
- model.setValue("/root/hidden/popupflag", "PAM");
- model.setValue("/root/send/popupflag", "PAM");
- model.setValue("/root/send/reqflag", "-");
- model.refresh();
- }else{
- model.setValue("/root/hidden/popupflag", tmp_var[0]);
- model.setValue("/root/send/popupflag", tmp_var[0]);
- model.setValue("/root/hidden/reqflag", tmp_var[1]);
-
- if ( model.getValue("/root/hidden/reqflag") =="C" ){
- cmb_crdrug.visible=true;
- cmb_drug.visible=false;
- model.setValue("/root/send/reqflag", "A");
- model.refresh();
- } else {
- cmb_drug.visible=true;
- cmb_crdrug.visible=false;
- model.setValue("/root/send/reqflag", "-");
- model.refresh();
- }
- }
- model.setValue("/root/send/fromdd", getCurrentDate());
- model.setValue("/root/send/todd", getCurrentDate());
- submit("TRADB03001");
- ]]>
- </script>
- <submission id="TXADB03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" add="bottom" resultref="/root/temp/ret"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 상태값 변경처리
- function fChgReqFlag() {
- if ( model.getValue("/root/main/druglist/item/calcscorrgstyn") =="N") {
- model.setValue("/root/main/druglist/item["+ grd_list.row +"]/reqflag" ,"D");
- grd_list.addStatus(grd_list.row,"update"); //강제 상태변경
- model.refresh();
- }else{
- messageBox("이미 수가요청된 코드입니다. [취소]처리 할 수 없습니다. 약품코드를 확인하여주시기 바랍니다","I999");
- return;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,803;2,803;2,802;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">약제 신청 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:285px; top:9px; width:60px; height:17px; ">기간 :</caption>
- <button id="button3" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRADB03001");
- for ( i= grd_list.fixedRows; i < grd_list.rows; i++ ) {
- var mngtcls = grd_list.valueMatrix(i, grd_list.colRef("mngtcls") );
- if ( mngtcls =="13") {
- grd_list.rowStyle(i, "all", "background-color") = "#fff000";
- }
- }
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <caption id="caption1" class="search_name" style="left:5px; top:9px; width:60px; height:17px; ">구분 :</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:348px; top:9px; width:100px; height:19px; "/>
- <caption id="caption2" class="search_no_b" style="left:451px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" style="left:466px; top:9px; width:100px; height:19px; "/>
- <select id="checkbox1" ref="/root/send/cancelyn" overflow="visible" appearance="full" style="left:185px; top:11px; width:75px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>취소포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select1 id="cmb_crdrug" ref="/root/send/reqflag" appearance="minimal" style="left:75px; top:9px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>신규</label>
- <value>N</value>
- </item>
- <item>
- <label>변경</label>
- <value>C</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_drug" ref="/root/send/reqflag" appearance="minimal" style="left:75px; top:9px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>변경</label>
- <value>U</value>
- </item>
- <item>
- <label>신규</label>
- <value>I</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:595px; top:9px; width:112px; height:17px; ">수가적용여부 :</caption>
- <select1 id="cmb_calcscorrgstyn" ref="/root/send/srchflag" appearance="minimal" style="left:715px; top:9px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>적용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미적용</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="button7" class="btn2_letter2" style="left:1152px; top:50px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_list.saveExcel(fileName, "SheetName", true, true, "", "");
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:55px; width:136px; height:13px; ">신규/변경 신청내역</caption>
- <datagrid id="grd_list" nodeset="/root/main/druglist/item" caption="구분^수가코드^한글명^영문명^처방명^성분명^EDI코드^급여구분^처방단가^적용일^최소단위^수가계산방법^처방대분류코드^처방대분류^처방중분류코드^처방중분류^처방소분류코드^처방소분류^분업예외사유^구입단가^처방입력구분^품절일자^비고^수가적용여부^관리분류^reqseqno" colsep="^" colwidth="47, 76, 96, 92, 93, 72, 73, 75, 71, 67, 55, 138, 86, 100, 84, 100, 77, 100, 300, 70, 140, 100, 190, 85, 100" dataheight="23" explorerbar="sort" extendlastcol="scroll" focuscolor="#b9e5fb" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:75px; width:1194px; height:669px; ">
- <col disabled="true" ref="reqflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>신규</label>
- <value>I</value>
- </item>
- <item>
- <label>변경</label>
- <value>U</value>
- </item>
- <item>
- <label>신규</label>
- <value>N</value>
- </item>
- <item>
- <label>변경</label>
- <value>C</value>
- </item>
- <item>
- <label>취소</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="drugcd"/>
- <col ref="hngnm"/>
- <col ref="engnm"/>
- <col ref="ordnm"/>
- <col ref="comdesc"/>
- <col ref="edicd"/>
- <col ref="purccls" type="combo">
- <choices>
- <item>
- <label>급여</label>
- <value>P</value>
- </item>
- <item>
- <label>비급여</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="goodunitcost" format="###,###,###.##" style="text-align:right; "/>
- <col ref="drugfromdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="delivecrite" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/delivecrite">
- <label ref="A0637/cdnm"/>
- <value ref="A0637/cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="calcmthdcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/calcmthdcd/P0133">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="lrgcls" visibility="hidden"/>
- <col ref="lrgclsnm" style="text-align:center; "/>
- <col disabled="true" ref="mdlcls" visibility="hidden" style="left:970px; top:45px; width:75px; height:25px; "/>
- <col ref="mdlclsnm" style="text-align:center; "/>
- <col disabled="true" ref="smlcls" visibility="hidden"/>
- <col ref="smlclsnm" style="text-align:center; "/>
- <col disabled="true" ref="hosinresn" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/hosinresn/M0037">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="goodpurccost" format="#,###.##" style="text-align:right; "/>
- <col disabled="true" ref="absnyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/absnyn/A0600">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="absnreusedd" visibility="hidden"/>
- <col ref="etccau" type="input"/>
- <col ref="calcscorrgstyn" type="output" style="text-align:center; "/>
- <col ref="mngtclsnm"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="efcycls" visibility="hidden"/>
- <col ref="prcpclscd" visibility="hidden"/>
- <col ref="mngtcls" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- button10.dispatch("DOMActivate");
- /*
- if(checkOpener() && model.getValue("/root/send/popupflag") == "PAM") {
-
- var cur_row = grd_list.row ;
-
- parent.model.setValue ("/root/main/item1/mchrginfo/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/drugcd")); //수가코드
- var reqflag = model.getvalue("/root/main/druglist/item["+cur_row+"]/reqflag");
- //신규.
- if(reqflag == "I" || reqflag == "N"){
- opener.window.javascript.fInitialize();
- }
-
- //변경(기존수가를 불러옴)
- if(reqflag == "U" || reqflag == "C"){
- parent.model.setvalue("/root/send/data5", "0");
- parent.model.setValue("/root/send/data4", model.getvalue("/root/main/druglist/item["+cur_row+"]/drugcd"));
- opener.window.javascript.fGetPrcpCodeList();
- }
-
-
- //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/reqflag")); //구분
- //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/lrgclsnm")); //처방대분류
- //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/mdlclsnm")); //처방중분류
- //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/smlclsnm")); //처방소분류
- //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/goodpurccost")); //구입가
- //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/calcscorrgstyn")); //수가적용여부
-
- parent.model.setValue ("/root/main/item1/mchrginfo/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/drugcd")); //수가코드
- parent.model.setValue ("/root/main/item1/mchrginfo/hngnm" , model.getvalue("/root/main/druglist/item["+cur_row+"]/hngnm")); //한글
- parent.model.setValue ("/root/main/item1/mchrginfo/engnm" , model.getvalue("/root/main/druglist/item["+cur_row+"]/engnm")); //영문
- parent.model.setValue ("/root/main/item1/mchrginfo/ordnm" , model.getvalue("/root/main/druglist/item["+cur_row+"]/ordnm")); //처방명
- parent.model.setValue ("/root/main/item1/mchrginfo/comnm" , model.getvalue("/root/main/druglist/item["+cur_row+"]/comdesc")); //성분명
- parent.model.setValue ("/root/main/item1/mchrginfo/insuedicd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/edicd")); //EDI코드
- parent.model.setValue ("/root/main/item1/mchrginfo/purcamt" , model.getvalue("/root/main/druglist/item["+cur_row+"]/goodunitcost")); //단가
- parent.model.setValue ("/root/main/item1/mchrginfo/fromdd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/drugfromdd")); //적용일
- parent.model.setValue ("/root/main/item1/mchrginfo/minunit" , model.getvalue("/root/main/druglist/item["+cur_row+"]/delivecrite")); //최소단위
- parent.model.setValue ("/root/main/item1/mchrginfo/earncls1" , model.getvalue("/root/main/druglist/item["+cur_row+"]/lrgcls")); //처방대분류코드
- parent.model.setValue ("/root/main/item1/mchrginfo/earncls2" , model.getvalue("/root/main/druglist/item["+cur_row+"]/mdlcls")); //처방중분류코드
- parent.model.setValue ("/root/main/item1/mchrginfo/earncls3" , model.getvalue("/root/main/druglist/item["+cur_row+"]/smlcls")); //처방소분류코드
- parent.model.setValue ("/root/main/item1/mchrginfo/absnyn" , model.getvalue("/root/main/druglist/item["+cur_row+"]/absnyn")); //품절여부
- parent.model.setValue ("/root/main/item1/mchrginfo/absnreusedd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/absnreusedd")); //품절일자
- parent.model.setValue ("/root/main/item1/mchrginfo/remfact" , model.getvalue("/root/main/druglist/item["+cur_row+"]/etccau")); //비고
-
-
- parent.combo59.dispatch("DOMFocusIn"); //분류명 refresh
- parent.combo14.dispatch("DOMFocusIn");
- parent.combo58.dispatch("DOMFocusIn");
-
- parent.button7.dispatch("onclick"); //약제탭으로.
-
- //=========================================================================
- // 약제신청관리 - 코드표준화팀 (이한분) 요청 - 약제신청 변경항목의 색상변경
- // 담당 : 유정란 대리
- // 2008-12-02 김귀남
- parent.ipt_calcscorcd.attribute("background-color") = "#ffccee"; //수가코드
- parent.input6.attribute("background-color") = "#ffccee"; //한글명
- parent.input9.attribute("background-color") = "#ffccee"; //영문명
- parent.input10.attribute("background-color") = "#ffccee"; //처방명
- parent.input20.attribute("background-color") = "#ffccee"; //EDI
- parent.input73.attribute("background-color") = "#ffccee"; //구입가
- parent.ipt_fromdd.attribute("background-color") = "#ffccee"; //시작일자
- parent.input2.attribute("background-color") = "#ffccee"; //최소단위
- parent.combo59.attribute("background-color") = "#ffccee"; //처방대분류
- parent.combo14.attribute("background-color") = "#ffccee"; //처방중분류
- parent.combo58.attribute("background-color") = "#ffccee"; //처방소분류
- parent.output22.attribute("background-color") = "#ffccee"; //품절여부
- parent.output10.attribute("background-color") = "#ffccee"; //품절일자
- parent.input16.attribute("background-color") = "#ffccee"; //메모
- //=========================================================================
- parent.model.refresh();
-
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_list", false, "/root/temp/popup/mouserght", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_list.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button2" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //===================== 약제신청관리 출력 2008-11-18 김귀남 start==========================================================
- model.copyNode("/root/temp/prntdata", "/root/main/druglist");
- var cnt_node = getNodesetCount("/root/temp/prntdata/item");
- for(var i = 1; i <= cnt_node; i++){
- //================== [구분] 코드를 명칭으로 변경
- model.setValue("/root/temp/prntdata/item["+i+"]/reqflag", grd_list.labelMatrix(i, grd_list.colRef("reqflag")));
-
- //================== [최소단위] 코드를 명칭으로 변경
- model.setValue("/root/temp/prntdata/item["+i+"]/delivecrite", grd_list.labelMatrix(i, grd_list.colRef("delivecrite")));
-
- //================== [품절여부] 코드를 명칭으로 변경
- model.setValue("/root/temp/prntdata/item["+i+"]/absnyn", grd_list.labelMatrix(i, grd_list.colRef("absnyn")));
-
- //================== [의약분업예외사유] 코드를 명칭으로 변경
- //model.setValue("/root/temp/prntdata/item["+i+"]/hosinresn", grd_list.labelMatrix(i, grd_list.colRef("hosinresn")));
-
- //================== [신청/완료] 코드를 명칭으로 변경
- //model.makeValue("/root/temp/prntdata/item["+i+"]/srchflag", cmb_srchflag.label);
-
- //================== [검색시작일] 코드를 명칭으로 변경
- model.makeValue("/root/temp/prntdata/item["+i+"]/fromdd", ipt_fromdd.value);
-
- //================== [검색종료일] 코드를 명칭으로 변경
- model.makeValue("/root/temp/prntdata/item["+i+"]/todd", ipt_todd.value);
-
- //================== [구분] 코드를 명칭으로 변경
- if ( model.getValue("/root/hidden/reqflag") =="C" ){
- model.makeValue("/root/temp/prntdata/item["+i+"]/drugreqflag", cmb_crdrug.label);
- }else{
- model.makeValue("/root/temp/prntdata/item["+i+"]/drugreqflag", cmb_drug.label);
- }
-
- }
- exeReportPreview("RPADB03001", "XMLSTR", "", "", "true","","","","","true"); // 약제신청관리 내역 출력 ( 코드표준화팀 : 이한분 요청)
- model.refresh();
- //===================== 약제신청관리 출력 2008-11-18 김귀남 end==========================================================
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/data/item", grd_list.getUpdateData());
- submit("TXADB03001");
- submit("TRADB03001");
- ]]>
- </script>
- </button>
- <button id="button10" class="btn4_letter2" visibility="hidden" style="left:1079px; top:5px; width:56px; height:22px; ">
- <caption>반영</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(checkOpener() && model.getValue("/root/send/popupflag") == "PAM") {
- var cur_row = grd_list.row ;
- var cur_delivecrite = grd_list.colRef("delivecrite");
- var drug = model.getvalue("/root/main/druglist/item["+cur_row+"]/drugcd");
- var clindrugflag = drug.substring(0,1);
-
- parent.model.setValue ("/root/main/item1/mchrginfo/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/drugcd")); //수가코드
- var reqflag = model.getvalue("/root/main/druglist/item["+cur_row+"]/reqflag");
- //신규.
- if(reqflag == "I" || reqflag == "N"){
- // ********** 2009-04-16 코드관리 이한분 요청사항 - 김귀남 ***********
- // 초기화 or 재조회 기능 삭제
- //***************************************************************
- //opener.window.javascript.fInitialize();
- }
-
- //변경(기존수가를 불러옴)
- if(reqflag == "U" || reqflag == "C"){
- // ********** 2009-04-16 코드관리 이한분 요청사항 - 김귀남 ***********
- // 초기화 or 재조회 기능 삭제
- //***************************************************************
- //parent.model.setvalue("/root/send/data5", "0");
- //parent.model.setValue("/root/send/data4", model.getvalue("/root/main/druglist/item["+cur_row+"]/drugcd"));
- //opener.window.javascript.fGetPrcpCodeList();
- }
- //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/reqflag")); //구분
- //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/lrgclsnm")); //처방대분류
- //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/mdlclsnm")); //처방중분류
- //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/smlclsnm")); //처방소분류
- //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/goodpurccost")); //구입가
- //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/calcscorrgstyn")); //수가적용여부
-
- parent.model.setValue ("/root/main/item1/mchrginfo/calcscorcd" , model.getValue("/root/main/druglist/item["+cur_row+"]/drugcd")); // 수가코드
- // 영문명 옆에 성분명을 한글명에 붙이는걸로 수정 20111130 노회식
- parent.model.setValue ("/root/main/item1/mchrginfo/hngnm" , model.getValue("/root/main/druglist/item["+cur_row+"]/hngnm")); // 한글
- parent.model.setValue ("/root/main/item1/mchrginfo/engnm" , model.getValue("/root/main/druglist/item["+cur_row+"]/engnm")); // 영문
- parent.model.setValue ("/root/main/item1/mchrginfo/ordnm" , model.getValue("/root/main/druglist/item["+cur_row+"]/ordnm")); // 처방명
- //처방한글명 추가 by 박영우 2011.05.18
- parent.model.setValue ("/root/main/item1/mchrginfo/ordhngnm" , model.getValue("/root/main/druglist/item["+cur_row+"]/hngnm")); // 처방한글명
- parent.model.setValue ("/root/main/item1/mchrginfo/comnm" , model.getValue("/root/main/druglist/item["+cur_row+"]/comdesc")); // 성분명
- if ( model.getValue("/root/main/druglist/item[" + cur_row +"]/purccls") == "P" ) {
- parent.model.setValue ("/root/main/item1/mchrginfo/insuedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
- parent.model.setValue ("/root/main/item1/mchrginfo/procedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
- parent.model.setValue ("/root/main/item1/mchrginfo/autmbedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
- parent.model.setValue ("/root/main/item1/mchrginfo/inducsedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
- parent.model.setValue ("/root/main/item1/mchrginfo/gnrledicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
- parent.model.setValue ("/root/main/item1/mchrginfo/forgnedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
- parent.model.setValue ("/root/main/item1/mchrginfo/mouedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
- if ( clindrugflag == "T") {
- parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"4");
- parent.model.setValue("/root/main/item1/mchrginfo/insupynpy1", "2");
- } else {
- parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"3");
- parent.model.setValue("/root/main/item1/mchrginfo/insupynpy1", "0");
- }
- } else if ( model.getValue("/root/main/druglist/item[" + cur_row +"]/purccls") == "N" ) {
- parent.model.setValue ("/root/main/item1/mchrginfo/insuedicd" , "-"); // EDI코드
- parent.model.setValue ("/root/main/item1/mchrginfo/procedicd" , "-"); // EDI코드
- parent.model.setValue ("/root/main/item1/mchrginfo/autmbedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
- parent.model.setValue ("/root/main/item1/mchrginfo/inducsedicd" , "-"); // EDI코드
- parent.model.setValue ("/root/main/item1/mchrginfo/gnrledicd" , "-"); // EDI코드
- parent.model.setValue ("/root/main/item1/mchrginfo/forgnedicd" , "-"); // EDI코드
- parent.model.setValue ("/root/main/item1/mchrginfo/mouedicd" , "-"); // EDI코드
- if ( clindrugflag == "T" ) {
- parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"4");
- parent.model.setValue("/root/main/item1/mchrginfo/insupynpy1", "2");
- } else {
- parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"3");
- parent.model.setValue("/root/main/item1/mchrginfo/insupynpy1", "2");
- }
- }
- // edicd 첫자리가 알파벳이면 비급여, 숫자면 급여. 급여일때 코드 구분 3 비급여 일때 4, edicd가 없을때 - 를 설정 20111018 노회식
- // if (65 <= model.getValue("/root/main/druglist/item["+cur_row+"]/edicd").charCodeAt(0) && 90 >= model.getValue("/root/main/druglist/item["+cur_row+"]/edicd").charCodeAt(0)) {
- // parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"4");
- // } else if (45 == model.getValue("/root/main/druglist/item["+cur_row+"]/edicd").charCodeAt(0)) {
- // parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"-");
- // } else {
- // parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"3");
- // }
- parent.model.setValue ("/root/main/item1/mchrginfo/purcamt" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodpurccost").replace(/,/gi,"")); // 단가
- parent.model.setValue ("/root/main/item1/mchrginfo/fromdd" , model.getValue("/root/main/druglist/item["+cur_row+"]/drugfromdd")); // 적용일
- parent.model.setValue ("/root/main/item1/mchrginfo/minunit" , grd_list.labelMatrix(cur_row, cur_delivecrite)); // 최소단위
- //parent.model.setValue ("/root/main/item1/mchrginfo/minunit" , model.getvalue("/root/main/druglist/item["+cur_row+"]/delivecrite")); // 최소단위
- parent.model.setValue ("/root/main/item1/mchrginfo/earncls1" , model.getValue("/root/main/druglist/item["+cur_row+"]/lrgcls")); // 처방대분류코드
- parent.model.setValue ("/root/main/item1/mchrginfo/earncls2" , model.getValue("/root/main/druglist/item["+cur_row+"]/mdlcls")); // 처방중분류코드
- parent.model.setValue ("/root/main/item1/mchrginfo/earncls3" , model.getValue("/root/main/druglist/item["+cur_row+"]/smlcls")); // 처방소분류코드
- parent.model.setValue("/root/main/item1/mchrginfo/prcpclscd" , model.getValue("/root/main/druglist/item["+cur_row+"]/prcpclscd")); // 처방상세
- parent.model.setValue ("/root/main/item1/mchrginfo/absnyn" , model.getValue("/root/main/druglist/item["+cur_row+"]/absnyn")); // 품절여부
- parent.model.setValue ("/root/main/item1/mchrginfo/absnreusedd" , model.getValue("/root/main/druglist/item["+cur_row+"]/absnreusedd")); // 품절일자
- parent.model.setValue ("/root/main/item1/mchrginfo/remfact" , model.getValue("/root/main/druglist/item["+cur_row+"]/etccau")); // 비고
- // 복지부효능과 분업예외사유 항목 추가 20111018 노회식
- parent.model.setValue ("/root/main/item1/mchrginfo/insuclsno" , model.getValue("/root/main/druglist/item["+cur_row+"]/efcycls")); // 복지부효능(분류번호)
- parent.model.setValue ("/root/main/item1/mchrginfo/hosinresncd" , model.getValue("/root/main/druglist/item["+cur_row+"]/hosinresn")); // 분업예외사유
- parent.model.setValue ("/root/main/item1/mchrginfo/insurbpnt" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodunitcost").replace(/,/gi,""));
- parent.model.setValue ("/root/main/item1/mchrginfo/insuunitcost" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodunitcost").replace(/,/gi,""));
- parent.model.setValue ("/root/main/item1/mchrginfo/calcmthdcd" , model.getValue("/root/main/druglist/item["+cur_row+"]/calcmthdcd")); //수가계산방법 //2010-03-02 물류정보갱신 항목 추가 ( 영문상품명 / 병원용량 /병원단위/수가계산방법 / 그룹여부) - 수가계산방법 보험으로 넘긴다
- // 계산방법 수가 두번째 자리가 주사약(I), 복용약(O) 일때 1, 외용약(E) 일때 5 설정 20111018 노회식
- // 외용약도 1번 설정하도록 수정 심사팀 배미화선생님. 20120521 노회식
- // if ("I" == model.getValue("/root/main/druglist/item["+cur_row+"]/drugcd").substr(1,1) || "O" == model.getValue("/root/main/druglist/item["+cur_row+"]/drugcd").substr(1,1)) {
- // parent.model.setValue ("/root/main/item1/mchrginfo/calcmthdcd" ,"1");
- // } else if ("E" == model.getValue("/root/main/druglist/item["+cur_row+"]/drugcd").substr(1,1)) {
- // parent.model.setValue ("/root/main/item1/mchrginfo/calcmthdcd" ,"5");
- // } else {
- // parent.model.setValue ("/root/main/item1/mchrginfo/calcmthdcd" ,"-");
- // }
- parent.model.setValue ("/root/main/item1/mchrginfo/insurbpnt" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodpurccost").replace(/,/gi,"")); // 구입가 - > RB점수
- parent.model.setValue ("/root/main/item1/mchrginfo/insuunitcost" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodpurccost").replace(/,/gi,"")); // 구입가 - > RB단가
- parent.model.setValue ("/root/main/item1/mchrginfo/druglimitamt" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodunitcost").replace(/,/gi,"")); // RB단가 -> 상한액
- //parent.model.setValue ("/root/main/item1/mchrginfo/insurbpnt" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodunitcost").replace(/,/gi,""));
-
- parent.combo59.dispatch("DOMFocusIn"); //분류명 refresh
- parent.combo14.dispatch("DOMFocusIn");
- parent.combo58.dispatch("DOMFocusIn");
-
- parent.button7.dispatch("onclick"); //약제탭으로.
- //=========================================================================
- // 약제신청관리 - 코드표준화팀 (이한분) 요청 - 약제신청 변경항목의 색상변경
- // 담당 : 유정란 대리
- // 2008-12-02 김귀남
- parent.ipt_calcscorcd.attribute("background-color") = "#ffccee"; //수가코드
- parent.input6.attribute("background-color") = "#ffccee"; //한글명
- parent.input9.attribute("background-color") = "#ffccee"; //영문명
- parent.input10.attribute("background-color") = "#ffccee"; //처방명
- //처방한글명 추가 by 박영우 2011.05.18
- parent.input4.attribute("background-color") = "#ffccee"; //처방한글명
- parent.input20.attribute("background-color") = "#ffccee"; //EDI
- parent.input73.attribute("background-color") = "#ffccee"; //구입가
- parent.ipt_fromdd.attribute("background-color") = "#ffccee"; //시작일자
- parent.input2.attribute("background-color") = "#ffccee"; //최소단위
- parent.combo59.attribute("background-color") = "#ffccee"; //처방대분류
- parent.combo14.attribute("background-color") = "#ffccee"; //처방중분류
- parent.combo58.attribute("background-color") = "#ffccee"; //처방소분류
- parent.combo5.attribute("background-color") = "#ffccee"; //처방상세
- parent.output22.attribute("background-color") = "#ffccee"; //품절여부
- parent.output10.attribute("background-color") = "#ffccee"; //품절일자
- parent.input16.attribute("background-color") = "#ffccee"; //메모
- parent.combo15.attribute("background-color") = "#ffccee"; //수가계산방법 //2010-03-05 보험수가연계시 연계된 데이타 색깔표시 (수가계산방법 항목추가)
- parent.input97.attribute("background-color") = "#ffccee"; //분류번호
- parent.combo8.attribute("background-color") = "#ffccee"; //코드구분
- parent.combo15.attribute("background-color") = "#ffccee"; //계산방법
- parent.combo37.attribute("background-color") = "#ffccee"; //분업예외사유
- parent.input5.attribute("background-color") = "#ffccee"; //상한액
- parent.input71.attribute("background-color") = "#ffccee"; //구입가
- parent.input37.attribute("background-color") = "#ffccee"; //가산수량
- parent.input74.attribute("background-color") = "#ffccee"; //성분명
- parent.input82.attribute("background-color") = "#ffccee"; //규격 추가 by 조중래 20150223
-
- //=========================================================================
-
- parent.model.refresh();
-
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|