123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- <?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="">
- <send>
- <fromdd/>
- <todd/>
- <srchcond1>1</srchcond1>
- <srchcond2/>
- <exceptfromdd/>
- <temp/>
- <srchcond3/>
- </send>
- <main>
- <list01>
- <gridpurcdetl>
- <notiyn/>
- <edicd/>
- <goodcd/>
- <itemnm/>
- <purcdmnddd/>
- <windd/>
- <winqty/>
- <winamt/>
- <oneunitcost/>
- <goodspec/>
- <winunit/>
- <entrregno/>
- <custnm/>
- <reptflag/>
- </gridpurcdetl>
- </list01>
- </main>
- <init/>
- <hidden/>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPIE00120" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
- <submission id="TXPIE00120" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/temp" resultref="/root/hidden"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- CommCode_Load();
- var vcalcscorcd = "";
- vcalcscorcd = opener.javascript.getParameter("calcscorcd");
-
- if(vcalcscorcd != "") {
- model.setValue("/root/send/srchcond1", "2");
- model.setValue("/root/send/srchcond2", opener.javascript.getParameter("calcscorcd"));
- btn_srch.dispatch("onclick");
- } else {
- model.removeNodeset("/root/main/list01/gridpurcdetl");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- // 공통코드 Load작업
- function CommCode_Load() {
- // submit("TRPIE00120");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="600" tracing-position="center" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:325px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:325px; height:14px; ">발주내역조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:68px; width:780px; height:487px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:30px; x2:780px; y2:30px; "/>
- <caption id="caption2" class="tit_2" style="left:5px; top:13px; width:121px; height:14px; ">발주내역</caption>
- <datagrid id="grd_purcdetl" nodeset="/root/main/list01/gridpurcdetl" class="datagrid2" caption="신고
여부^EDI코드^물품코드^물품명^구매일자^발주일자^발주량^발주금액^단가^전 발주량^전 발주금액^전 단가^수정일시^수가보험가^규격^단위^사업자등록번호^거래처명^신고서구분^^생성^등록번호^청구일자^입원일자^적용일자^환자유형^조합기호^장애수첩^접수번호^심사차수^일련번호^처리구분^총진료비(청구)^본인부담(청구)^청구금액^비고^생성여부" colsep="^" colwidth="38, 80, 100, 149, 80, 80, 85, 85, 80, 85, 85, 80, 120, 80, 100, 76, 96, 106, 75, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:34px; width:780px; height:451px; ">
- <col checkvalue="Y,N" ref="notiyn" type="checkbox"/>
- <col ref="edicd" type="input" style="text-align:center; "/>
- <col ref="goodcd" type="inputbutton" style="text-align:center; "/>
- <col ref="itemnm" type="input"/>
- <col ref="purcdmnddd" type="input" format="yyyy-mm-dd"/>
- <col ref="windd" type="input" format="yyyy-mm-dd"/>
- <col ref="winqty" type="input"/>
- <col ref="winamt" type="output" format="#,###"/>
- <col ref="oneunitcost" savetype="digit" type="input" format="(-)#,###"/>
- <col ref="bfwinqty" type="output"/>
- <col ref="bfwinamt" type="output" format="#,###"/>
- <col ref="bfoneunitcost" savetype="digit" type="output" format="(-)#,###"/>
- <col ref="systemdt" type="output" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="insurbpnt" savetype="auto" type="input" format="(-)#,###"/>
- <col ref="goodspec" type="input"/>
- <col ref="winunit" type="input"/>
- <col ref="entrregno" type="input"/>
- <col ref="custnm" type="input" style="text-align:center; "/>
- <col ref="reptflag" type="input"/>
- <col ref="appdd" visibility="hidden"/>
- <col ref="appseqno" visibility="hidden"/>
- <col ref="ucostequalyn" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_purcdetl.col == grd_purcdetl.colRef("goodcd")) {
- var rowno = grd_purcdetl.row;
- //setParameter("openflag", "hngnm");
- modal("../../../pam/calcscormngtweb/xrw/SMPIC00200_수가조회", "", "200", "200" ,"SMPIC00200_수가조회", "", "");
-
- grd_purcdetl.valueMatrix(rowno, grd_purcdetl.colRef("goodcd")) = model.getValue("/root/temp/picmmech/picmmech_calcscorcd");
- grd_purcdetl.valueMatrix(rowno, grd_purcdetl.colRef("itemnm")) = model.getValue("/root/temp/picmmech/picmmech_hngnm");
- grd_purcdetl.valueMatrix(rowno, grd_purcdetl.colRef("edicd")) = model.getValue("/root/temp/picmmech/picmmech_insuedicd");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var winqty = grd_purcdetl.valueMatrix(grd_purcdetl.row, grd_purcdetl.colRef("winqty"));
- var oneunitcost = grd_purcdetl.valueMatrix(grd_purcdetl.row, grd_purcdetl.colRef("oneunitcost"));
-
- if(grd_purcdetl.col == grd_purcdetl.colRef("winqty")) {
- var amt = winqty * oneunitcost;
- grd_purcdetl.valueMatrix(grd_purcdetl.row, grd_purcdetl.colRef("winamt")) = amt;
- } else if (grd_purcdetl.col == grd_purcdetl.colRef("oneunitcost")) {
- var amt = winqty * oneunitcost;
- grd_purcdetl.valueMatrix(grd_purcdetl.row, grd_purcdetl.colRef("winamt")) = amt;
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" style="left:75px; top:13px; width:160px; height:15px; color:#ff6600; ">(실제 발주한 내역 조회결과)</caption>
- <button id="button7" class="btn2_letter4" style="left:716px; top:9px; width:64px; height:19px; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_purcdetl.rows <= 1) {
- messageBox("저장할 데이터가","I004");
- return false;
- }
- var fileName = window.fileDialog("save", ",", false, "발주내역조회", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_purcdetl.saveExcel(fileName, "SheetName", true, true, "", "", "");
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" visibility="visible" style="left:600px; top:9px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_purcdetl.addRow();
- grd_purcdetl.valueMatrix(grd_purcdetl.row,grd_purcdetl.colRef("appdd")) = getCurrentDate();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" visibility="visible" style="left:658px; top:9px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_purcdetl.row;
- grd_purcdetl.deleteRow(row);
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:560px; width:780px; height:25px; ">
- <button id="button1" class="btn4_letter2" style="left:720px; top:0px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 윈도우 닫기
- window.close();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:660px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/temp");
- if ( messageBox("","Q002")==6 ) {
- var update = getGridUpdateData(grd_purcdetl);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
- } else {
- model.setValue("/root/send/temp", update);
- submit("TXPIE00120");
- }
- }
-
- //grd_picmrulelist.dispatch("onclick");
-
- var rowcnt = grd_purcdetl.rows;
- for(var i = 1 ; i < rowcnt ; i++) {
- grd_purcdetl.rowStatus(i) = 0;
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption4" style="left:20px; top:5px; width:345px; height:15px; font-weight:bold; color:#ff0000; ">EDI 코드 '-'는 심평원 치료재료 구입 통보대상이 아님</caption>
- </group>
- <group id="group2" style="left:0px; top:20px; width:780px; height:40px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:780px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_srch" class="btn1_letter2" navindex="4" style="left:715px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(ipt_fromdd.value == "" & ipt_srchcond2.value == "") {
- messageBox("발주일자 또는 EDI코드나 처방코드를","C001");
- model.setFocus("ipt_fromdd");
- return true;
- }
-
- model.removenode("/root/main/list01");
- model.refresh();
-
- submit("TRPIE00120");
-
- setRowStyle( "grd_purcdetl" , "14" , "N" , "ucostequalyn" , "equal" );
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:707px; y1:10px; x2:707px; y2:32px; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" navindex="2" inputtype="date" maxlength="8" format="yyyy-mm-dd" appearance="input" style="left:211px; top:11px; width:95px; height:19px; "/>
- <input id="ipt_srchcond2" ref="/root/send/srchcond2" class="input_search" navindex="3" appearance="input" style="left:435px; top:11px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- if(ipt_srchcond2.value == "") {
- return false;
- }
- model.removenode("/root/main/list01");
- model.refresh();
-
- submit("TRPIE00120");
-
- setRowStyle( "grd_purcdetl" , "14" , "N" , "ucostequalyn" , "equal" );
- }
- ]]>
- </script>
- </input>
- <select1 id="rdo_srchcond1" ref="/root/send/srchcond1" appearance="full" cols="4" rows="1" overflow="visible" style="left:320px; top:12px; width:110px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>EDI</label>
- <value>1</value>
- </item>
- <item>
- <label>처방코드</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.resetInstanceNode("/root/send/srchcond2");
- model.setFocus("ipt_srchcond2");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption1" style="left:195px; top:14px; width:15px; height:15px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" navindex="1" autonext="true" inputtype="date" maxlength="8" format="yyyy-mm-dd" appearance="input" style="left:96px; top:11px; width:95px; height:19px; ">
- <caption id="caption7"/>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- ipt_todd.value = ipt_fromdd.value;
- ]]>
- </script>
- </input>
- <caption id="caption6" class="search_name" style="left:6px; top:11px; width:89px; height:17px; ">발주일자 :</caption>
- <select id="checkbox1" ref="/root/send/srchcond3" visibility="visible" overflow="visible" appearance="full" style="left:545px; top:13px; width:140px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>단가차이 품목만 조회</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- </xhtml:body>
- </xhtml:html>
|