123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402 |
- <?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>
- <good>
- <goodlist/>
- </good>
- </list>
- <prntdata>
- <list/>
- </prntdata>
- </main>
- <target>
- <defaultvalue/>
- </target>
- <init>
- <gubun>
- <cdid/>
- <cdnm>전체</cdnm>
- <cdid>U</cdid>
- <cdnm>변경</cdnm>
- <cdid>I</cdid>
- <cdnm>신규</cdnm>
- <cdid>C</cdid>
- <cdnm>취소</cdnm>
- </gubun>
- <ifstatus>
- <cdid/>
- <cdnm>전체</cdnm>
- <cdid>S</cdid>
- <cdnm>적용</cdnm>
- <cdid>C</cdid>
- <cdnm>미적용</cdnm>
- </ifstatus>
- </init>
- <send>
- <goodlist>
- <instcd/>
- <gubun/>
- <fromdd/>
- <todd/>
- <goodflag/>
- <ifstatus/>
- </goodlist>
- <prntparam>
- <gubun/>
- <fromdd/>
- <todd/>
- </prntparam>
- <checkgoodlist/>
- </send>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSC03500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/good"/>
- <submission id="TXRSC03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/checkgoodlist" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
-
- model.resetInstanceNode("/root/send");
-
- misfComboComCdListMulti("Z0007","cmb_instcd");
- //기관코드 읽어오는 부분 넣기
- var instcd = getUserInfo("dutplceinstcd");
-
- if(instcd.length > 0)model.setValue(cmb_instcd.attribute("ref"), instcd);
- else
- {
- if(cmb_instcd.length> 0) cmb_instcd.select(0);
- }
-
- misfGridInit(grd_goodlist);
-
- cmb_gubun.select(0);
-
- misfMsterDetailSet(grd_goodlist,null, "TRRSC03500" ,"N");
-
- var reqdate = getCurrentDate().toDate("YYYYMMDD");
-
- //팝업일 경우 -- 보험수가
- if (checkOpener()) {
- // model.setValue(ipt_fromdd.attribute("ref"), getCurrentDate());
- cmb_ifstatus.select(2);
- btn_select.visible = true;
- btn_unselect.visible = true;
- btn_save.visible = true;
-
- } else {
- // model.setValue(ipt_fromdd.attribute("ref"), reqdate.getAddDate(-3, "M").getDateFormat("YYYYMMDD") );
- cmb_ifstatus.select(0);
- btn_select.visible = false;
- btn_unselect.visible = false;
- btn_save.visible = false;
- grd_goodlist.colDisabled(grd_goodlist.colRef("select")) = true;
- }
-
- model.setValue(ipt_fromdd.attribute("ref"), getCurrentDate());
- model.setValue(ipt_todd.attribute("ref") , getCurrentDate());
- // hidden col
- model.setValue(opt_goodflag.attribute("ref"), "Y");
- model.refresh();
- }
-
- function fCheckRetrieveData(pmsg)
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- }
- return false;
- }
- // if(model.getValue(cmb_gubun.attribute("ref")).length== 0 )
- // {
- // if(pmsg == true)
- // {
- // messageBox("구분을 " ,"C002");
- // model.setFocus("cmb_gubun");
- // }
- // return false;
- // }
- if(model.getValue(ipt_fromdd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("시작일자를 " ,"C001");
- model.setFocus("ipt_fromdd");
- }
- return false;
- }
- if(model.getValue(ipt_todd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("종료일자를 " ,"C001");
- model.setFocus("ipt_todd");
- }
- return false;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1266;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">수가전송</caption>
- </group>
- <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:57px; top:3px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- <button id="btn_print" class="btn6_letter2" visibility="visible" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //===================== 재료 신청 출력 2008-12-03 주희정 start==========================================================
- //model.copyNode("/root/main/prntdata/list", "/root/main/list/good");
-
- //var cnt_node = getNodesetCount("/root/main/prntdata/list/goodlist");
-
- model.setValue("/root/send/prntparam/gubun", cmb_gubun.label);
- model.setValue("/root/send/prntparam/fromdd", ipt_fromdd.value);
- model.setValue("/root/send/prntparam/todd", ipt_todd.value);
-
-
- exeReportPreview("RPRSC03500", "XMLSTR", "/root/send/prntparam"); // 재료신청 내역 출력 ( 코드표준화팀 : 이한분 요청)
- model.refresh();
- //===============================================================================
-
- ]]>
- </script>
- </button>
- <line id="line4" class="line_2" style="left:0; x1:0px; y1:25; x2:1193; y2:25; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1136px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue("/root/send/checkgoodlist", grd_goodlist.getUpdateData());
-
- if(grd_goodlist.getUpdateData() != "")
- {
- submit("TXRSC03501");
- btn_search.dispatch("DOMActivate");
- }
-
- //submit("TXRSC03501");
- //if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group6" style="left:0px; top:40px; width:1193px; height:37px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1193; height:37px; "/>
- <caption id="caption4" class="search_name" style="left:10px; top:9px; width:90px; height:17px; ">기관코드 :</caption>
- <caption id="caption5" class="search_name" style="left:323px; top:9px; width:90px; height:17px; ">구분 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/goodlist/instcd" class="combo_s_essential" appearance="minimal" style="left:99px; top:8px; width:211px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_gubun" ref="/root/send/goodlist/gubun" class="combo_s_essential" appearance="minimal" style="left:385px; top:8px; width:87px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/gubun">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" style="left:745px; top:9px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <caption id="caption11" class="search_name" style="left:484px; top:9px; width:100px; height:17px; ">일자 :</caption>
- <input id="ipt_fromdd" ref="/root/send/goodlist/fromdd" class="input_s_essential" inputtype="date" style="left:548px; top:8px; width:130px; height:19px; text-align:center; "/>
- <input id="ipt_todd" ref="/root/send/goodlist/todd" class="input_s_essential" inputtype="date" style="left:698px; top:8px; width:130px; height:19px; text-align:center; "/>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1124px; top:8px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(false) == false)return;
- misfGridInit(grd_goodlist)
- misfMsterDetailRetrieve();
- //for(licol = 0; licol < grd_goodlist.cols ; licol++)if(grd_goodlist.colRef("gubun") != licol) grd_goodlist.mergecol(licol) = false;
- //grd_goodlist.mergecells = "bycol";
- ]]>
- </script>
- </button>
- <line id="line7" class="line_4" style="x1:1109px; y1:6px; x2:1109px; y2:33px; "/>
- <output id="opt_goodflag" ref="/root/send/goodlist/goodflag" visibility="hidden" style="left:1042px; top:8px; width:58px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:842px; top:9px; width:118px; height:16px; ">수가적용여부 :</caption>
- <select1 id="cmb_ifstatus" ref="/root/send/goodlist/ifstatus" class="combo_s_essential" appearance="minimal" style="left:957px; top:8px; width:77px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/ifstatus">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:84px; width:195px; height:13px; ">수가 신청 및 변경이력 List</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:99px; x2:1195px; y2:99px; "/>
- <datagrid id="grd_goodlist" nodeset="/root/main/list/good/goodlist" caption="구분^구분코드^물품코드^품명^적용일자^EDI코드^수가여부^모델^규격^청구방법^청구주기^그룹여부^불용일자^불용사유^구단가^신단가^All Size^대분류^중분류^소분류^구입가^신청부서^신청자^수불단위^수불환산수량^비고^Set 구분^전송자^수가적용여부^선택" colsep="^" colwidth="38, 28, 70, 290, 73, 81, 60, 100, 84, 61, 60, 58, 78, 121, 87, 81, 57, 100, 100, 100, 100, 100, 74, 65, 80, 170, 57, 100, 81, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:105px; width:1193px; height:672px; ">
- <col ref="gubun" style="text-align:center; vertical-align:top; "/>
- <col ref="chggubn" visibility="hidden"/>
- <col ref="goodcd"/>
- <col ref="totalgoodnm" style="text-align:left; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="edicd" style="text-align:center; "/>
- <col ref="insuyn" style="text-align:center; "/>
- <col ref="goodmodel" style="text-align:center; "/>
- <col ref="goodspec" style="text-align:center; "/>
- <col ref="reqmthdnm" style="text-align:center; ">
- <![CDATA[/>]]>
- </col>
- <col ref="reqpridnm" visibility="hidden" style="text-align:center; "/>
- <col ref="proddrugsetflagnm" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="nonusetretresn"/>
- <col ref="old_goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="allsizeyn" style="text-align:center; "/>
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="exchqtygood" format="#,###" style="text-align:right; "/>
- <col ref="reqdeptnm" style="text-align:center; "/>
- <col ref="reqpsnnm" style="text-align:center; "/>
- <col ref="deliveunit" style="text-align:center; "/>
- <col ref="prcpexchqty" format="#,###" style="text-align:right; "/>
- <col ref="cmt"/>
- <col ref="proddrugsetflag" visibility="hidden" style="text-align:center; "/>
- <col ref="fstrgstrid" style="text-align:center; "/>
- <col ref="ifstatus" style="text-align:center; ">
- <![CDATA[/>]]>
- </col>
- <col checkvalue="Y,N" ref="select" type="checkbox"/>
- <col ref="ifid" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="reqmthd" visibility="hidden"/>
- <col ref="reqprid" visibility="hidden"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col ref="prodcmpynm" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="reqpsn" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (checkOpener()) {
- if (model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/chggubn" ) == "C" ) {
- alert("취소된 내용입니다!! 구매 확인 하십시요");
- return;
- }
- var parm = model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/goodcd" ) + "▦" // 물품코드
- + model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/totalgoodnm" ) + "▦" // 품명 + " " + 규격 + " (" + 제조원 + ")"
- + model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/edicd" ) + "▦" // EDI코드
- + model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/goodunitcost") + "▦" // 신단가
- + model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/fromdd" ) + "▦" // 적용일
- + model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/allsizeyn" ) + "▦" // ALL SIZE
- + model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/lrgcd" ) + "▦" // 처방대분류
- + model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/mdlcd" ) + "▦" // 구매중분류
- + model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/smlcd" ) + "▦" // 구매소분류
- + model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/cmt" ) + "▦"; // 비고
-
- opener.javascript.setParameter("SMPIC00100_RTN","Y");
- opener.javascript.setParameter("SMPIC00100_PARM",parm);
- opener.window.javascript.fDrugItemParmExchange("M");
- }
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn5_letter5" navindex="12" style="left:1116px; top:79px; width:75px; height:19px; ">
- <caption>Excel 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_goodlist.fixedRows != grd_goodlist.rows)
- {
- var fileName = window.fileDialog("save", ",", false, "수가전송관리", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_goodlist.saveExcel(fileName, "재료신청및변경이력");
- }
- }else{
- messageBox("저장할 Data가 없습니다. Data 조회 후 다시 실행하세요.", "I999");
- }
- ]]>
- </script>
- </button>
- <button id="btn_select" class="btn2_letter4" style="left:950px; top:78px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- for(var liRow = grd_goodlist.fixedRows; liRow < grd_goodlist.rows ; liRow++)
- {
-
- if( grd_goodlist.valueMatrix(liRow,grd_goodlist.colRef("select")) == "N" ||grd_goodlist.valueMatrix(liRow,grd_goodlist.colRef("select")).length == 0 )
- {
- grd_goodlist.valueMatrix(liRow, grd_goodlist.colRef("select")) = "Y";
-
- grd_goodlist.rowStatus(liRow) = "2";
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_unselect" class="btn2_letter7" style="left:1017px; top:78px; width:97px; height:19px; ">
- <caption>전체선택 취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var liRow = grd_goodlist.fixedRows; liRow < grd_goodlist.rows ; liRow++)
- {
- ////////////////////////////////////////////////////
- // 일괄처리는 발주상태가 발주중인것만 처리한다.
- ///////////////////////////////////////////////////
- if(grd_goodlist.valueMatrix(liRow,grd_goodlist.colRef("select")) == "Y" )
- {
- grd_goodlist.valueMatrix(liRow, grd_goodlist.colRef("select")) = "N";
-
- grd_goodlist.rowStatus(liRow) = "0";
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|