123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398 |
- <?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="">
- <send>
- <fromdd/>
- <todd/>
- <srchcond1>1</srchcond1>
- <srchcond2/>
- <dtlselectyn>N</dtlselectyn>
- <exceptfromdd/>
- <offset/>
- <pagesize>5000</pagesize>
- <iokindyn/>
- </send>
- <main>
- <list01>
- <gridpurcdetl>
- <chk/>
- <edicd/>
- <goodcd/>
- <goodhngnm/>
- <spec/>
- <unit/>
- <windd/>
- <winqty/>
- <winunitcost/>
- <winamt/>
- <makecmpycd/>
- <makecmpynm/>
- <cmpyno/>
- <cmpynm/>
- <estmamt/>
- <rem/>
- <purcdmnddd/>
- </gridpurcdetl>
- </list01>
- </main>
- <init/>
- <hidden>
- <chkall/>
- <sppie00130_h802>
- <rslt>
- <h802>
- <reptcd/>
- <itemflagno/>
- <makecmpynm/>
- <item/>
- <spec/>
- <unit/>
- <lnnoremark/>
- <avg/>
- <fstpurcflag/>
- <calcscorcd/>
- </h802>
- </rslt>
- </sppie00130_h802>
- <sppie00130_h803>
- <rslt>
- <h803>
- <reptcd/>
- <lnno/>
- <cmpyno/>
- <cmpynm/>
- <purcdd/>
- <purcqty/>
- <purcunitcost/>
- <purctotamt/>
- <cmpyremark/>
- <itemflaglnkno/>
- </h803>
- </rslt>
- </sppie00130_h803>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPIE00130" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/list01/gridpurcdetl"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNode("/root/main/list01/gridpurcdetl" );
- if (checkOpener()) {
- fCheckOpener(); // 팝업용인 경우
- } else {
- fInitialize(); // 화면을 초기화한다.
- }
- //fCheckAuth(); // 화면 권한을 설정한다.
- ]]>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
-
- // 팝업용인 경우
- function fCheckOpener() {
- ipt_srchcond2.attribute("_chartype") = "upper"; // (tfHelper.js) 대문자로 입력을 제한한다.
- model.copyNode("/root/send", "/root/init");
- ipt_fromdd.value = model.getValue("/root/send/fromdd");
- ipt_todd.value = model.getValue("/root/send/todd");
- model.refresh();
- if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- if (model.getValue("/root/init/srchcond1") || model.getValue("/root/init/srchcond2")) {
- submit("TRPIE00130");
- }
- }
- }
- // 화면 권한을 설정한다.
- // function fCheckAuth() {
- // if (getAuth() == "") { // (common.js) 현재 화면의 권한 정보를 확인
- // // 메뉴에서 열리는 화면이 아닌 경우 메뉴가 없는 Local Test를 위해 임시로 설정함
- // model.setValue("/root/hidden/properties/auth", "10000000"); // R권한만 있는 경우
- // }
- // var xAuth = !checkAuth("X");
- // btn_close.disabled = xAuth; // 닫기
- // }
- // 화면을 초기화한다.
- function fInitialize() {
-
- ipt_srchcond2.attribute("_chartype") = "upper"; // (tfHelper.js) 대문자로 입력을 제한한다.
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/init");
-
- // 기본적으로 EDI코드로 초기화
- model.setValue("/root/send/srchcond1","1");
-
- ipt_fromdd.value = getCurrentDate();
- ipt_todd.value = getCurrentDate();
- model.refresh();
- }
-
- function fSubmitOnScroll() {
- if(grd_purcdetl.vscroll.attribute("max") == grd_purcdetl.vscroll.attribute("pos")) {
- // end of scroll
- model.setValue("/root/send/offset", grd_purcdetl.rows-grd_purcdetl.fixedRows); // grid의 header row는 제외
- submit("TRPIE00130");
- grd_purcdetl.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1000" 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:980px; height:487px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:28px; x2:980px; y2:28px; "/>
- <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="C^EDI코드^물품코드^물품명^규격^단위^입고일자^입고수량^입고단가^입고금액^제조(수입)회사^구입기관
사업자번호^구입기관
사업자명^견적단가^비고^발주일자^생성^등록번호^청구일자^입원일자^적용일자^환자유형^조합기호^장애수첩^접수번호^심사차수^일련번호^처리구분^총진료비(청구)^본인부담(청구)^청구금액^비고^생성여부" colsep="^" colwidth="25, 80, 80, 168, 50, 51, 80, 60, 60, 80, 100, 100, 100, 100, 120, 100" dataheight="25" ellipsis="true" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:34px; width:980px; height:451px; ">
- <col ref="chk" type="checkbox" style="text-align:left; "/>
- <col ref="edicd" style="text-align:left; "/>
- <col ref="goodcd" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="goodhngnm" style="text-align:left; "/>
- <col ref="spec" style="text-align:right; "/>
- <col ref="unit" style="text-align:right; "/>
- <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="winqty" format="#,###" style="text-align:right; "/>
- <col ref="winunitcost" format="#,###" style="text-align:right; "/>
- <col ref="winamt" format="#,###" style="text-align:right; "/>
- <col ref="makecmpynm" style="text-align:left; "/>
- <col ref="cmpyno" style="text-align:left; "/>
- <col ref="cmpynm" style="text-align:left; "/>
- <col ref="estmamt" format="#,###" style="text-align:right; "/>
- <col ref="rem" style="text-align:left; "/>
- <col ref="purcdmnddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="onscrolldown">
- <![CDATA[
- fSubmitOnScroll();
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" style="left:75px; top:13px; width:160px; height:15px; color:#ff6600; ">(실제 입고한 내역 조회결과)</caption>
- <select id="chk_all" ref="/root/hidden/chkall" overflow="visible" appearance="full" style="left:235px; top:8px; width:70px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>전체선택</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var chkall = model.getValue("/root/hidden/chkall");
- var nodeList = instance1.selectNodes("/root/main/list01/gridpurcdetl");
- if (chkall == "Y") {
- for (var i = 1; i <= nodeList.length; i++) {
- model.setValue("/root/main/list01/gridpurcdetl["+ i +"]/chk", "true");
- }
- } else {
- for (var i = 1; i <= nodeList.length; i++) {
- model.setValue("/root/main/list01/gridpurcdetl["+ i +"]/chk", "false");
- }
- }
- grd_purcdetl.refresh();
- ]]>
- </script>
- </select>
- <button id="button1" class="btn1_letter2" style="left:919px; top:4px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "입고내역", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_purcdetl.saveExcel(fileName, "SheetName", false, false, "", "", "false");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:560px; width:980px; height:25px; ">
- <button id="btn_close" class="btn4_letter2" style="left:921px; top:2px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 윈도우 닫기
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_judgdiag" class="btn4_letter6" navindex="6" style="left:809px; top:2px; width:104px; height:22px; ">
- <caption>입고내역선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_purcdetl.colsort(grd_purcdetl.colRef("chk")) = "desc";
- grd_purcdetl.colsort(grd_purcdetl.colRef("edicd")) = "asc";
- var maxRow = parseInt(grd_purcdetl.rows) - 1; // rows는 타이틀부분 부터 개수를 센다.
- var maxCol = parseInt(grd_purcdetl.cols) - 1;
- grd_purcdetl.sort(grd_purcdetl.fixedRows, grd_purcdetl.fixedCols, maxRow, maxCol) = "usersort";
- // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
- grd_purcdetl.gridToInstance();
-
- model.removeNodeset("/root/hidden/sppie00130_h802/rslt");
- model.removeNodeset("/root/hidden/sppie00130_h803/rslt");
-
- var max = 1;
- var oldedicd = "";
- var edicd = ""
- for (var iRow = 1; iRow < grd_purcdetl.rows; iRow++) {
- edicd = model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/edicd");
- if (model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/chk") == "true" && edicd != oldedicd) {
- model.makeValue("/root/hidden/sppie00130_h802/rslt/h802[" + max + "]/reptcd", model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/edicd"));
- model.makeValue("/root/hidden/sppie00130_h802/rslt/h802[" + max + "]/itemflagno", "");
- model.makeValue("/root/hidden/sppie00130_h802/rslt/h802[" + max + "]/makecmpynm", model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/makecmpynm"));
- model.makeValue("/root/hidden/sppie00130_h802/rslt/h802[" + max + "]/item", model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/goodhngnm"));
- model.makeValue("/root/hidden/sppie00130_h802/rslt/h802[" + max + "]/spec", model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/spec"));
- model.makeValue("/root/hidden/sppie00130_h802/rslt/h802[" + max + "]/unit", model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/unit"));
- model.makeValue("/root/hidden/sppie00130_h802/rslt/h802[" + max + "]/lnnoremark", "");
- model.makeValue("/root/hidden/sppie00130_h802/rslt/h802[" + max + "]/avg", "");
- model.makeValue("/root/hidden/sppie00130_h802/rslt/h802[" + max + "]/fstpurcflag", "B");
- model.makeValue("/root/hidden/sppie00130_h802/rslt/h802[" + max + "]/calcscorcd", model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/goodcd"));
- oldedicd = model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/edicd");
- max++;
- }
- }
-
- max = 1;
- for (var iRow = 1; iRow < grd_purcdetl.rows; iRow++) {
- if (model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/chk") == "true") {
- model.makeValue("/root/hidden/sppie00130_h803/rslt/h803[" + max + "]/reptcd", model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/edicd"));
- model.makeValue("/root/hidden/sppie00130_h803/rslt/h803[" + max + "]/lnno", "");
- model.makeValue("/root/hidden/sppie00130_h803/rslt/h803[" + max + "]/cmpyno", model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/cmpyno"));
- model.makeValue("/root/hidden/sppie00130_h803/rslt/h803[" + max + "]/cmpynm", model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/cmpynm"));
- model.makeValue("/root/hidden/sppie00130_h803/rslt/h803[" + max + "]/purcdd", model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/windd"));
- model.makeValue("/root/hidden/sppie00130_h803/rslt/h803[" + max + "]/purcqty", model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/winqty"));
- model.makeValue("/root/hidden/sppie00130_h803/rslt/h803[" + max + "]/purcunitcost", model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/winunitcost"));
- model.makeValue("/root/hidden/sppie00130_h803/rslt/h803[" + max + "]/purctotamt", model.getValue("/root/main/list01/gridpurcdetl[" + iRow + "]/winamt"));
- model.makeValue("/root/hidden/sppie00130_h803/rslt/h803[" + max + "]/cmpyremark", "");
- model.makeValue("/root/hidden/sppie00130_h803/rslt/h803[" + max + "]/itemflaglnkno", "");
- max++;
- }
- }
- opener.model.removeNodeset("/root/hidden/sppie00130_h802/rslt");
- opener.model.removeNodeset("/root/hidden/sppie00130_h803/rslt");
- opener.model.makeNode("/root/hidden/sppie00130_h802/rslt");
- opener.model.makeNode("/root/hidden/sppie00130_h803/rslt");
- model.copyNode(opener.root.hidden.sppie00130_h802.rslt, "/root/hidden/sppie00130_h802/rslt");
- model.copyNode(opener.root.hidden.sppie00130_h803.rslt, "/root/hidden/sppie00130_h803/rslt");
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:20px; width:980px; height:40px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:980px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_srch" class="btn1_letter2" navindex="4" style="left:901px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removeNodeset("/root/main/list01/gridpurcdetl" );
- if(ipt_fromdd.value == "" & ipt_srchcond2.value == "") {
- messageBox("입고일자 또는 EDI코드나 처방코드를","C001");
- model.setFocus("ipt_fromdd");
- return true;
- }
- //model.removenode("/root/main/list01");
- //model.refresh();
-
- //model.removenode("/root/send/offset");
- model.makeValue("/root/send/offset", "0");
- model.makeValue("/root/send/pagesize", "5000");
-
- submit("TRPIE00130");
-
- model.setValue("/root/hidden/chkall", "Y");
- model.refreshpart("/root/hidden/chkall");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:879px; y1:10px; x2:879px; 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:479px; 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("TRPIE00130");
- }
- */
- ]]>
- </script>
- </input>
- <select1 id="rdo_srchcond1" ref="/root/send/srchcond1" appearance="full" cols="4" rows="1" overflow="visible" style="left:364px; 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/exceptfromdd" visibility="hidden" overflow="visible" appearance="full" style="left:589px; top:13px; width:130px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>EDI코드 적용일 제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox2" ref="/root/send/exceptfromdd" visibility="hidden" overflow="visible" appearance="full" style="left:605px; top:12px; width:130px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>입고상세조회여부</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox3" ref="/root/send/iokindyn" overflow="visible" appearance="full" style="left:775px; top:12px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>이송입고포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- </xhtml:body>
- </xhtml:html>
|