123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319 |
- <?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: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>
- <workdate>
- <sumdd/>
- <fromdd/>
- <todd/>
- </workdate>
- <worklist/>
- </main>
- <send>
- <search>
- <instcd/>
- <wareflag/>
- <sumdeptcd/>
- <sumdd/>
- <fromdd/>
- <todd/>
- <gubun/>
- </search>
- <save/>
- </send>
- <init>
- </init>
- <hidden/>
- <temp>
- <sumflag>
- <datacount/>
- </sumflag>
- </temp>
- <popdelive>
- <instcd/>
- <wareflag/>
- <wareflagnm/>
- <sumdd/>
- <selectyn/>
- </popdelive>
- <popgood>
- <instcd/>
- <wareflag/>
- <selectyn/>
- <goodcd/>
- </popgood>
- <popreq>
- <instcd/>
- <wareflag/>
- <wareflagnm/>
- <sumdd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <saveyn/>
- </popreq>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- //misfGridInit : model.removeNodeset(grd_work.nodeset); grid.refresh();
- misfGridInit(grd_work);
- misfMsterDetailSet(grd_work, null, "TRRSO20302" ,"N");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- //====> 창고 : 본 프로그램에서는 2(진료재료창고), 3(수술재료창고) 만 hard coding 했음
- //misfComboComCdList("030M0001",cmb_wareflag); //창고
-
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
- model.refresh();
- ]]>
- </script>
- <submission id="TRRSO20302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main"/>
- <submission id="TRRSO20303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
- <submission id="TXRSO20302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp">"</submission>
- </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" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // parameter validation check
- function fValidCheck() {
-
- //창고에 선택된 값이 없으면, 창고를 선택하라고 alert함
- if(cmb_wareflag.value == "") {
- messageBox("창고가 선택되지 않았습니다. \n\n먼저 창고를 선택하십시요.", "E999", "");
- model.setFocus("cmb_wareflag");
- return -1;
- }
-
- //집계일자에 선택된 값이 없으면, 집계일자를 선택하라고 alert함
- if(ipt_sumdd.value.length < 8) {
- messageBox("집계일자가 올바로 선택되지 않았습니다. \n\n먼저 집계일자를 선택하십시요.", "E999", "");
- model.setFocus("ipt_sumdd");
- return -1;
- }
- //처방일자에 선택된 값이 없으면, 처방일자를 선택하라고 alert함
- if(ipt_fromdd.value.length < 8) {
- messageBox("처방일자가 올바로 선택되지 않았습니다. \n\n먼저 처방일자를 선택하십시요.", "E999", "");
- model.setFocus("ipt_fromdd");
- return -1;
- }
- if(ipt_todd.value.length < 8) {
- messageBox("처방일자가 올바로 선택되지 않았습니다. \n\n먼저 처방일자를 선택하십시요.", "E999", "");
- model.setFocus("ipt_todd");
- return -1;
- }
- //처방일자의 fromdd, todd 의 크기를 비교하여 alert함
- if(ipt_fromdd.value > ipt_todd.value) {
- messageBox("기간의 시작일자가 끝일자보다 클 수 없습니다. \n\n먼저 처방일자를 올바로 선택하십시요.", "E999", "");
- model.setFocus("ipt_fromdd");
- return -1;
- }
- return 0;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1220px" pageheight="800px" 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; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:1079px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //parameter validation check
- if( fValidCheck() < 0 ) return;
-
- //실행전 확인
- //return : yes=6, no=7, cancel=2
- var rtn = messageBox("취소 작업을", "Q004");
- if ( rtn != 6 ) {
- return;
- }
-
- //실행전 parameter설정
- model.setValue("/root/send/search/sumdd", model.getValue("/root/main/workdate/sumdd"));
- model.setValue("/root/send/search/fromdd", model.getValue("/root/main/workdate/fromdd"));
- model.setValue("/root/send/search/todd", model.getValue("/root/main/workdate/todd"));
- model.setValue("/root/send/search/gubun", "D"); // I: 집계작업, D:취소작업
-
- /* 2012.07.10 박준범 - 취소시에는 check 생략
-
- //이미 집계작업이 이루어진 것인지 아닌지 data의 count를 조회한다.
- if( submit("TRRSO20303") ) {
- if( parseFloat(model.getValue("/root/temp/sumflag/datacount")) == 0 ) {
- messageBox("취소 작업할 데이타가 없습니다. \n\n집계일자를 확인하십시오.", "E999", "");
- model.setFocus("ipt_sumdd");
- return;
- }
- }
-
- */
- // misfSave : submit 후, grid.clearStatus() 함
- if( submit("TXRSO20302") ) {
-
- //집계대상 처방일자 및 처방집계내역 조회
- misfMsterDetailRetrieve();
-
- messageBox("취소 작업이 완료되었습니다.", "I999", "");
- }
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25px; "/>
- <button id="btn_exec" class="btn4_letter2" navindex="8" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //parameter validation check
- if( fValidCheck() < 0 ) return;
-
- //실행전 확인
- //return : yes=6, no=7, cancel=2
- var rtn = messageBox("처방 집계 작업을", "Q004");
- if ( rtn != 6 ) {
- return;
- }
-
- //실행전 parameter설정
- model.setValue("/root/send/search/sumdd", model.getValue("/root/main/workdate/sumdd"));
- model.setValue("/root/send/search/fromdd", model.getValue("/root/main/workdate/fromdd"));
- model.setValue("/root/send/search/todd", model.getValue("/root/main/workdate/todd"));
- model.setValue("/root/send/search/gubun", "I"); // I: 집계작업, D:취소작업
-
- //이미 집계작업이 이루어진 것인지 아닌지 data의 count를 조회한다.
- if( submit("TRRSO20303") ) {
- if( parseFloat(model.getValue("/root/temp/sumflag/datacount")) > 0 ) {
- messageBox("이미 집계 작업을 한 일자입니다. \n\n집계일자를 확인하십시오.", "E999", "");
- model.setFocus("ipt_sumdd");
- return;
- }
- }
- // misfSave : submit 후, grid.clearStatus() 함
- if( submit("TXRSO20302") ) {
-
- //집계대상 처방일자 및 처방집계내역 조회
- 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:48px; 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; "/>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:112px; top:10px; width:136px; 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:33px; top:10px; width:86px; height:17px; ">기관코드</caption>
- <input id="ipt_sumdd" ref="/root/main/workdate/sumdd" navindex="5" inputtype="date" style="left:746px; top:10px; width:89px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:280px; top:10px; width:106px; height:17px; ">창고</caption>
- <select1 id="cmb_wareflag" ref="/root/send/search/wareflag" class="combo_default" navindex="4" appearance="minimal" style="left:334px; top:10px; width:99px; height:19px; ">
- <choices>
- <item>
- <label>물류관리창고</label>
- <value>1</value>
- </item>
- <item>
- <label>진료재료창고</label>
- <value>2</value>
- </item>
- <item>
- <label>수술재료창고</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //집계부서 setting
-
- //2013.01.30 박준범 - 칠곡병원은 1번 창고의 집계를 사용하기 위해서 집계부서를 중앙공급실로 설정하도록 변경
- //if(cmb_wareflag.value == "1") //1 : 물류관리창고
- // cmb_sumdeptcd.value = "2010302030"; //2010302030 : 내시경실
- if(cmb_wareflag.value == "1") { //1 : 물류관리창고
- if(cmb_instcd.value == "031") {
- cmb_sumdeptcd.value = "2010302030"; //2010302030 : 내시경실
- } else if(cmb_instcd.value == "032") {
- cmb_sumdeptcd.value = "3080000000"; //3080000000 : 중앙공급실 -> 실제로는 진료재료파트 코드입니다.
- }
- }
- else if(cmb_wareflag.value == "2") //2 : 진료재료창고
- cmb_sumdeptcd.value = "3080000000"; //3080000000 : 중앙공급실 -> 실제로는 진료재료파트 코드입니다.
- else if(cmb_wareflag.value == "3") //3 : 수술재료창고
- cmb_sumdeptcd.value = "3070000000"; //3070000000 : 수술실
- else
- cmb_sumdeptcd.value = "";
-
- //집계대상 처방일자 및 처방집계내역 조회
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:666px; top:10px; width:86px; height:17px; ">집계일자</caption>
- <caption id="caption3" class="search_name" style="left:865px; top:10px; width:86px; height:17px; ">처방일자</caption>
- <input id="ipt_fromdd" ref="/root/main/workdate/fromdd" navindex="5" inputtype="date" style="left:945px; top:10px; width:89px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/workdate/todd" navindex="5" inputtype="date" style="left:1050px; top:10px; width:89px; height:19px; "/>
- <caption id="caption4" style="left:1035px; top:10px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <caption id="caption7" class="search_name" style="left:461px; top:10px; width:86px; height:17px; ">집계부서</caption>
- <select1 id="cmb_sumdeptcd" ref="/root/send/search/sumdeptcd" class="combo_default" disabled="true" navindex="4" appearance="minimal" style="left:541px; top:10px; width:94px; height:19px; ">
- <choices>
- <item>
- <label>내시경실</label>
- <value>2010302030</value>
- </item>
- <item>
- <label>수술실</label>
- <value>3070000000</value>
- </item>
- <item>
- <label>중앙공급실</label>
- <value>3080000000</value>
- </item>
- </choices>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:78px; x2:1195px; y2:78px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:63px; width:180px; height:14px; ">집계 작업 이력</caption>
- <datagrid id="grd_work" nodeset="/root/main/worklist" caption="집계일자^처방일자 (From)^처방일자(To)^작업 실행자^작업 실행 일시^기관코드^창고구분" colsep="^" colwidth="132, 132, 132, 100, 180, 61, 57" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:83px; width:1195px; height:622px; ">
- <col ref="sumdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lastupdtrid" style="text-align:center; "/>
- <col ref="lastupdtdt" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden" style="left:1160px; top:23px; width:61px; height:23px; "/>
- <col ref="wareflag" visibility="hidden"/>
- </datagrid>
- <caption id="caption5" visibility="hidden" style="left:0px; top:705px; width:640px; height:20px; ">※ 창고 선택시, 집계일자 기준 최근 1개월 자료만 조회합니다. 이전 자료를 확인하시려면 정보통신실로 연락바랍니다.</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|