123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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>
- <list>
- <resultlist>
- <applyflagnm/>
- <paytype/>
- <hdrugcd/>
- <edicd/>
- <edinm/>
- <kornm/>
- <engnm/>
- <iengnm/>
- <bocheongunit/>
- <hamryang/>
- <jeyaksanm/>
- <yakpumgu/>
- <fdrugcd/>
- <gcnseqno/>
- </resultlist>
- </list>
- <list2>
- </list2>
- <list3/>
- <sublist>
- <resultExceptDrugList/>
- </sublist>
- </main>
- <send>
- <req>
- </req>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- /*
- 화면을 초기화 합니다.
- */
- fInitialize();
- ipt_pKeyword.attribute("style") = "imemode:hangul";
-
- var vMode = model.getValue("/root/send/req/pGubn");
- if(vMode=="S"){
- caption6.value="제외불가 약품 등록";
- } else {
- caption6.value="제외 약품 등록";
- }
-
- submit("TRZCS00201");
-
- ]]>
- </script>
- <submission id="TRZCN01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list"/>
- <submission id="TRZCS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/sublist"/>
- <submission id="TXZCS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/sublist/resultExceptDrugList" replace="instance" resultref="/root/temp"/>
- </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(){
- model.removeNodeset("/root/main/list/resultlist");
- grd_resultlist.refresh();
- }
- /*
- 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에서 선택된 약품코드 입니다.
- param2 : 선택된 약품 grid에서 선택된 GCN코드 입니다.
- param3 : 선택된 약품 grid에서 선택된 ROW값 입니다.
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function mergecolTab1(){
- grd_resultlist.mergecol(1)=false;
- grd_resultlist.mergecol(2)=false;
- grd_resultlist.mergecol(3)=false;
- grd_resultlist.mergecol(4)=false;
- grd_resultlist.mergecol(5)=false;
- grd_resultlist.mergecol(6)=false;
- grd_resultlist.mergecol(7)=false;
- grd_resultlist.mergecells="byrestriccol";
- grd_resultlist.refresh();
- }
- function mergecolTab2(){
- grd_resultlist2.mergecol(1)=false;
- grd_resultlist2.mergecol(2)=false;
- grd_resultlist2.mergecol(3)=false;
- grd_resultlist2.mergecol(4)=false;
- grd_resultlist2.mergecol(5)=false;
- grd_resultlist2.mergecol(6)=false;
- grd_resultlist2.mergecol(7)=false;
- grd_resultlist2.mergecells="byrestriccol";
- grd_resultlist2.refresh();
- }
-
-
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/navigationweb/js/ZCN001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="840" pageheight="700" guideline="2,296;1,1200;2,778;" 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:157px; height:14px; ">제외/제외불가 약품등록</caption>
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:6px; top:50px; width:820px; height:45px; background-color:#fffbf2; border-color:#ffd799; "/>
- <datagrid id="grd_resultlist" nodeset="/root/main/list/resultlist" autoresize="true" caption="급여구분^약품명^약품코드^영문상품명^영문성분명^제조회사" colsep="^" colwidth="70, 192, 100, 180, 160, 120" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:6px; top:100px; width:820px; height:275px; ">
- <col ref="paytype" style="vertical-align:top; "/>
- <col ref="edinm"/>
- <col ref="hdrugcd"/>
- <col ref="engnm"/>
- <col ref="iengnm"/>
- <col ref="jeyaksanm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var selectedrow = grd_resultlist.row;
- if(0 == selectedrow){return;}
- if('-1' != datagrid2.findRow(model.getValue("/root/main/list/resultlist" + "[" + selectedrow + "]/" + "hdrugcd"), 0, 3, false, true)){
- return;
- }
- if(model.getValue("/root/main/list/resultlist" + "[" + selectedrow + "]/" + "scndrgexptyn")=="Y"){
- alert("제외불가 약품으로 동록된 약품입니다.");
- return;
-
- }
-
- datagrid2.addRow();
-
- var rowcnt = datagrid2.rows-1;
-
- model.makeNode("/root/main/sublist/resultExceptDrugList/applyflag_nm");
- model.makeValue("/root/main/sublist/resultExceptDrugList["+rowcnt+"]/applyflag_nm", model.getValue("/root/main/list/resultlist" + "[" + selectedrow + "]/" + "applyflagnm"));
-
- model.makeNode("/root/main/sublist/resultExceptDrugList/edi_nm");
- model.makeValue("/root/main/sublist/resultExceptDrugList["+rowcnt+"]/edi_nm", model.getValue("/root/main/list/resultlist" + "[" + selectedrow + "]/" + "edinm"));
- model.makeNode("/root/main/sublist/resultExceptDrugList/hcode");
- model.makeValue("/root/main/sublist/resultExceptDrugList["+rowcnt+"]/hcode", model.getValue("/root/main/list/resultlist" + "[" + selectedrow + "]/" + "hdrugcd"));
- model.makeNode("/root/main/sublist/resultExceptDrugList/ieng_nm");
- model.makeValue("/root/main/sublist/resultExceptDrugList["+rowcnt+"]/ieng_nm", model.getValue("/root/main/list/resultlist" + "[" + selectedrow + "]/" + "iengnm"));
- model.makeNode("/root/main/sublist/resultExceptDrugList/moduleid");
- model.makeValue("/root/main/sublist/resultExceptDrugList["+rowcnt+"]/moduleid", model.getValue("/root/send/req/pModuleID"));
- model.makeNode("/root/main/sublist/resultExceptDrugList/gubn");
- model.makeValue("/root/main/sublist/resultExceptDrugList["+rowcnt+"]/gubn", model.getValue("/root/send/req/pGubn"));
- model.makeNode("/root/main/sublist/resultExceptDrugList/status");
- model.makeValue("/root/main/sublist/resultExceptDrugList["+rowcnt+"]/status", "i");
-
- datagrid2.refresh();
- //import1.refresh();
-
- ]]>
- </script>
- </datagrid>
- <select1 id="rdo_pSearchType" ref="/root/send/req/pSearchType" class="radio_search" visibility="visible" appearance="full" cols="3" itemwidth="100" overflow="visible" style="left:120px; top:55px; width:255px; height:35px; border-style:none; ">
- <choices>
- <item>
- <label>영문상품명</label>
- <value>01</value>
- </item>
- <item>
- <label>영문성분명</label>
- <value>02</value>
- </item>
- <item>
- <label>한글상품명</label>
- <value>03</value>
- </item>
- <item>
- <label>제조회사명</label>
- <value>04</value>
- </item>
- <item>
- <label>병원코드</label>
- <value>05</value>
- </item>
- <item>
- <label>EDI코드</label>
- <value>06</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(rdo_pSearchType.value=="01"||rdo_pSearchType.value=="02"||rdo_pSearchType.value=="05"||rdo_pSearchType.value=="06"){
- ipt_pKeyword.attribute("style") = "imemode:inactive";
- }
- else
- {
- ipt_pKeyword.attribute("style") = "imemode:hangul";
- }
- ]]>
- </script>
- </select1>
- <caption id="caption13" class="search_name" style="left:30px; top:55px; width:86px; height:17px; ">조회구분 :</caption>
- <input id="ipt_pKeyword" ref="/root/send/req/pKeyword" class="input_search" style="left:455px; top:60px; width:245px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keycode == 13)
- {
- ipt_pKeyword.value = ipt_pKeyword.currentText;
- model.removeNodeset("/root/main/list");
- submit("TRZCN01001");
- mergecolTab1();
- }
- ]]>
- </script>
- </input>
- <button id="btn_ClassficationSearch7" class="btn1_letter2" style="left:705px; top:60px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removeNodeset("/root/main/list");
- submit("TRZCN01001");
- mergecolTab1();
- ]]>
- </script>
- </button>
- <line id="line8" class="line_1" style="x1:5px; y1:40px; x2:834px; y2:40px; "/>
- <group id="group1" style="left:8px; top:25px; width:822px; height:13px; "/>
- <caption id="caption12" class="tit_2" style="left:10px; top:25px; width:70px; height:13px; ">약품검색</caption>
- <datagrid id="datagrid2" nodeset="/root/main/sublist/resultExceptDrugList" autoresize="true" caption="상태^약품명^약품코드^성분명^등록일자" colsep="^" colwidth="80,229, 120, 236, 140" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:405px; width:823px; height:275px; ">
- <col ref="applyflag_nm"/>
- <col ref="edi_nm"/>
- <col ref="hcode"/>
- <col ref="ieng_nm"/>
- <col ref="inputdt"/>
- </datagrid>
- <group id="group2" style="left:8px; top:685px; width:822px; height:13px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:685px; width:820px; height:13px; color:#ff6600; ">SUPER USER 가 지정한 제외 불가 약품은 DB에 저장되지 않습니다.</caption>
- <button id="btn_save" class="btn2_letter3" style="left:770px; top:382px; width:53px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!checkGridUpdate(datagrid2))
- {
- return;
- }
- var cnt_row = datagrid2.rows; // 현재 행의 갯수 가져오기
- var workRow = 0;
- for(i = 1 ; i< cnt_row; i++ ) //순번제지정
- {
- workRow = i;
- var iStatus = datagrid2.rowstatus(i);
- // alert("i= "+i+ " iStatus= "+iStatus+" /cnt_row:"+cnt_row);
- // alert(model.getValue( "/root/main/sublist/resultExceptDrugList["+workRow+"]/edi_nm"));
- if(iStatus == "4")
- {
- model.makeValue("/root/main/sublist/resultExceptDrugList["+workRow+"]/status", "d");
- }else if(iStatus == "1"){
- model.makeValue("/root/main/sublist/resultExceptDrugList["+workRow+"]/status", "i");
- }
-
- }
- if ( submit("TXZCS00201") ) {
- datagrid2.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- submit("TRZCS00201");
- }
-
- //window.opener.fExceptDrug(model.getValue("/root/send/req/pModuleID"));
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter3" style="left:710px; top:382px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = datagrid2.row; // 행 번호 가져오기
-
- if(cur_row<0) {
- alert("삭제할 행을 선택해주세요.");
- return;
- }
-
- var all_row = datagrid2.selectedRows;
- for(i= 0;i< all_row;i++){
- var delete_row = datagrid2.selectedrow(i);
-
- var iStatus = datagrid2.rowstatus(delete_row);
-
- if (iStatus == 1||iStatus == 3) // 새로 삽입된 행이면
- {
- datagrid2.deleteitem(delete_row);
- }
- else if (iStatus == 4) // 삭제로 표시된 행이면
- {
- datagrid2.removestatus(delete_row, "delete");
-
- }
- else
- {
- datagrid2.addStatus(delete_row, "delete");
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:5px; top:385px; width:100px; height:13px; font-weight:bold; color:#800080; ">검토모듈명 :</caption>
- <caption id="caption3" ref="/root/send/req/pModuleNM" style="left:100px; top:385px; width:420px; height:13px; font-weight:bold; color:#800080; "/>
- <button id="button1" class="btn4_letter2" style="left:765px; top:60px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|