123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet ype="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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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>
- <sumlist/>
- </main>
- <send>
- <search>
- <instcd/>
- <sumddfr/>
- <sumddto/>
- <mainusedeptcd/>
- <wareflag/>
- </search>
- <reqcond>
- <instcd/>
- <sumdd/>
- <mainusedeptcd/>
- <wareflag/>
- </reqcond>
- <save/>
- </send>
- <init>
- </init>
- <hidden/>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- misfGridInit(grd_sum);
- misfMsterDetailSet(grd_sum, null, "TRRSD07901" ,"Y");
-
- //화면에 repor 형식으로 보여줄 경우
- //makeReportPreview(0,123,1195,637);
- //model.removenode( "/root/main/sumlist");
- //misfComboComCdListMulti("Z0007","cmb_instcd"); //기관코드
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
-
- misfComboComCdList("030M0001",cmb_wareflag, "Y"); //창고 (Y: 전체 item 추가시)
- misfComboComCdList("R0450",cmb_mainusedeptcd, "Y"); //사용부서 (Y: 전체 item 추가시)
-
- cmb_mainusedeptcd.value = "2"; //중앙공급실로 초기값 설정
- //misfComboComCdListMulti("R0450","grd_sum.mainusedeptcd");
- //misfGridComboComCdList("R0450", "grd_sum", "mainusedeptcd");
-
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
- model.setValue("/root/send/search/sumddfr" , getCurrentDate().toDate().getAddDate(-7, "D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/search/sumddto" , getCurrentDate()); //기간 설정 //.substr(0,6));
-
- //test -> 향후 삭제할 것
- //model.setValue("/root/send/search/reqdd", "20110816");
- model.refresh();
-
-
- ]]>
- </script>
- <submission id="TRRSD07901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/"/>
- <submission id="TXRSD07901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqcond" 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="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">처방집계 청구처리</caption>
- </group>
- <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25px; "/>
- <button id="btn_cust" class="btn3_letter6" style="left:1088px; top:3px; width:104px; height:22px; ">
- <caption>청구자료생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //조회된 자료가 없으면 먼저 조회하라고 message
- if(grd_sum.rows < 3) {
- messageBox("조회된 결과가 존재하지 않습니다. \n\n먼저 조회 후 작업하십시요.", "E999", "");
- return;
- }
-
- //이미 청구된 것은 청구나 청구자료생성이 불가한다.
- if(grd_sum.valueMatrix(grd_sum.row, grd_sum.colRef("reqdd")) != "") {
- messageBox("선택한 처방집계건에 대해 이미 청구자료가 생성되었으므로 처리가 불가합니다 ", "E999", "");
- return;
- }
-
- // confirm
- if (messageBox( "해당 처방집계건에 대해 청구자료를 생성하시겠습니까? \n\n" +
- "집계일자 : " + grd_sum.labelMatrix(grd_sum.row, grd_sum.colRef("sumdd")) + "\n" +
- "사용부서 : " + grd_sum.valueMatrix(grd_sum.row, grd_sum.colRef("mainusedeptnm")) + "\n" +
- "창고구분 : " + grd_sum.valueMatrix(grd_sum.row, grd_sum.colRef("wareflagnm")) + "\n" +
- "순번 : 전체"
- , "Q999","") != 6){
- return;
- }
-
- //청구자료생성을 위한 조건값을 instance에 setting한다.
- model.setValue("/root/send/reqcond/instcd", cmb_instcd.value);
- model.setValue("/root/send/reqcond/sumdd", grd_sum.valueMatrix(grd_sum.row, grd_sum.colRef("sumdd")) );
- model.setValue("/root/send/reqcond/mainusedeptcd", grd_sum.valueMatrix(grd_sum.row, grd_sum.colRef("mainusedeptcd")) );
- model.setValue("/root/send/reqcond/wareflag", grd_sum.valueMatrix(grd_sum.row, grd_sum.colRef("wareflag")) );
-
-
- if(submit("TXRSD07901")) {
-
- misfMsterDetailRetrieve();
-
- messageBox("청구자료가 생성되었습니다.", "I999", "");
-
- }
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="grp_search" style="left:0px; top:9px; width:1195px; height:46px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1079px; top:9px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //2012.08.14 박준범 - 창고 "전체" 를 추가하면서 comment처리
- /*
- //창고에 선택된 값이 없으면, 창고를 선택하라고 alert함
- if(cmb_wareflag.value == "") {
- messageBox("창고가 선택되지 않았습니다. \n\n먼저 창고를 선택하십시요.", "E999", "");
- model.setFocus("cmb_wareflag");
- return;
- }
- */
- //년월에 입력된 값이 올바르지 않으면, 년월을 선택하라고 alert함
- if(ipt_sumddfr.value.length < 8) {
- messageBox("집계일자가 올바로 선택되지 않았습니다. \n\n먼저 집계일자을 선택하십시요.", "E999", "");
- model.setFocus("ipt_sumddfr");
- return;
- }
- if(ipt_sumddto.value.length < 8) {
- messageBox("집계일자가 올바로 선택되지 않았습니다. \n\n먼저 집계일자을 선택하십시요.", "E999", "");
- model.setFocus("ipt_sumddto");
- return;
- }
-
- misfMsterDetailRetrieve();
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:132px; top:10px; width:158px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/init">
- <label ref="cnstnm"/>
- <value ref="cnstcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:53px; top:10px; width:77px; height:17px; ">기관코드</caption>
- <input id="ipt_sumddfr" ref="/root/send/search/sumddfr" navindex="5" inputtype="date" format="yyyy-mm-dd" style="left:394px; top:10px; width:87px; height:19px; "/>
- <line id="line30" class="line_4" style="x1:1060px; y1:7px; x2:1060px; y2:34px; "/>
- <caption id="caption9" class="search_name" style="left:314px; top:10px; width:79px; height:17px; ">집계일자</caption>
- <caption id="caption4" style="left:483px; top:10px; width:10px; height:20px; font-weight:bold; ">-</caption>
- <input id="ipt_sumddto" ref="/root/send/search/sumddto" navindex="6" inputtype="date" format="yyyy-mm-dd" style="left:495px; top:10px; width:87px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:840px; top:10px; width:79px; height:17px; ">창고구분</caption>
- <select1 id="cmb_wareflag" ref="/root/send/search/wareflag" class="combo_default" navindex="4" appearance="minimal" style="left:919px; top:10px; width:99px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/wareflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:611px; top:10px; width:76px; height:17px; ">사용부서</caption>
- <select1 id="cmb_mainusedeptcd" ref="/root/send/search/mainusedeptcd" class="combo_default" disabled="true" navindex="4" appearance="minimal" style="left:690px; top:10px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mainusedeptcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1195px; y2:75px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:58px; width:201px; height:13px; ">처방집계 이력조회 및 청구내역</caption>
- <datagrid id="grd_sum" nodeset="/root/main/sumlist" caption="집계일자^회차^사용부서^사용부서^창고구분^창고구분^집계^집계^출력^출력^청구^청구^청구^청구^청구^청구^출고^출고|집계일자^회차^사용부서^사용부서^창고구분^창고구분^처리일시^처리자^처리일시^처리자^청구일자^청구번호^물품구분^청구부서^처리일시^처리자^출고일자^출고번호" colsep="^" colwidth="72, 18, 53, 91, 40, 84, 104, 54, 104, 54, 76, 56, 81, 96, 104, 54, 69, 56" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:1195px; height:620px; ">
- <col ref="sumdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="sumseq" style="text-align:center; "/>
- <col ref="mainusedeptcd" visibility="hidden"/>
- <col ref="mainusedeptnm"/>
- <col ref="wareflag" visibility="hidden"/>
- <col ref="wareflagnm"/>
- <col ref="sumdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="sumnm" style="text-align:center; "/>
- <col ref="prndt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="prnnm" style="text-align:center; "/>
- <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reqno" style="text-align:center; "/>
- <col ref="reqflagnm"/>
- <col ref="reqdeptnm"/>
- <col ref="reqdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="reqnm" style="text-align:center; "/>
- <col ref="delivedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="deliveno" style="text-align:center; "/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|