123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="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>
- <endlist/>
- </main>
- <send>
- <search>
- <instcd/>
- <endmonth/>
- <wareflag/>
- <workyn/>
- </search>
- <save>
- </save>
- </send>
- <init>
- </init>
- <temp>
- </temp>
- <hidden>
- </hidden>
- </root>
- </instance>
- <submission id="TRRSO20401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
- <submission id="TRRSO20404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/endlist"/>
- <submission id="TXRSO20401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N"); //기관
- misfComboComCdList("030M0001",cmb_wareflag); //창고
-
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
- model.setValue("/root/send/search/endmonth" , getCurrentDate().substr(0, 6) ); //마감년월 설정
- model.setValue("/root/send/search/workyn", "Y"); //Y:마감작업, N:마감취소
- //창고별 월마감 및 정산완료 현황 조회
- submit("TRRSO20404");
-
- 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/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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1368;" style="font-family:굴림; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:945px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">월마감(창고)</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:945px; height:705px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:38px; x2:270px; y2:38px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:19px; width:180px; height:13px; ">창고재고 월마감 작업</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:148px; x2:270px; y2:148px; "/>
- <caption id="caption26" class="cell_1" style="left:0px; top:96px; width:110px; height:23px; text-align:center; vertical-align:middle; ">창고구분</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:94px; x2:270px; y2:94px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:94px; x2:270px; y2:94px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:120px; x2:270px; y2:120px; "/>
- <caption id="cap_purccondd" class="cell_1" style="left:0px; top:44px; width:110px; height:23px; text-align:center; vertical-align:middle; ">기관코드</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:70px; width:110px; height:23px; text-align:center; vertical-align:middle; ">마감년월</caption>
- <caption id="cap_concmpycd1" class="cell_1" style="left:0px; top:122px; width:110px; height:23px; text-align:center; vertical-align:middle; ">작업구분</caption>
- <line id="line10" class="line_2" style="x1:0px; y1:68px; x2:270px; y2:68px; "/>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:112px; top:46px; width:143px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/init">
- <label ref="cnstnm"/>
- <value ref="cnstcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_wareflag" ref="/root/send/search/wareflag" class="combo_default" navindex="4" appearance="minimal" style="left:112px; top:98px; width:143px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/wareflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_endmonth" ref="/root/send/search/endmonth" navindex="5" inputtype="date" format="yyyy-mm" style="left:112px; top:72px; width:143px; height:19px; "/>
- <select1 id="rdo_workyn" ref="/root/send/search/workyn" appearance="full" cols="2" overflow="visible" style="left:114px; top:126px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>마감작업</label>
- <value>Y</value>
- </item>
- <item>
- <label>마감취소</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" style="left:0px; top:165px; width:540px; height:28px; ">
- <![CDATA[※ 월마감 작업 이후에는 해당월의 검수, 입/출고 작업이 불가합니다.
- 검수, 입/출고 작업을 위해서는 우선 해당월의 마감취소가 이루어져야 합니다.]]>
- </caption>
- <caption id="caption2" style="left:0px; top:205px; width:530px; height:28px; ">
- <![CDATA[※ 정산완료 처리 이후에는 해당월의 검수, 입/출고 및 마감/마감취소 작업이 모두 불가합니다.
- 월말 정산완료 취소를 위해서는 물류파트 담당자에게 연락바랍니다.]]>
- </caption>
- <caption id="caption3" class="tit_2" style="left:0px; top:290px; width:206px; height:13px; ">창고별 월마감 및 정산완료 현황</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:310px; x2:790px; y2:310px; "/>
- <datagrid id="grd_end" nodeset="/root/main/endlist" caption="마감년월^물류관리창고^진료재료창고^수술재료창고^검사재료창고^진단재료창고^시설재료창고^물류팀창고^정산완료" colsep="^" colwidth="85, 85, 85, 86, 86, 86, 86, 86, 86" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:315px; width:790px; height:325px; ">
- <col ref="endmonth" format="yyyy-mm" style="text-align:center; "/>
- <col ref="ware1" style="text-align:center; "/>
- <col ref="ware2" style="text-align:center; "/>
- <col ref="ware3" style="text-align:center; "/>
- <col ref="ware4" style="text-align:center; "/>
- <col ref="ware5" style="text-align:center; "/>
- <col ref="ware8" style="text-align:center; "/>
- <col ref="ware9" style="text-align:center; "/>
- <col ref="allend" style="text-align:center; "/>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:945px; height:27px; ">
- <line id="line7" class="line_6" style="x1:0px; y1:25; x2:270px; y2:25; "/>
- <button id="btn_exec" class="btn4_letter2" navindex="41" style="left:211px; top:3px; width:56px; height:22px; ">
- <caption>실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //마감년월에 입력된 값이 올바르지 않으면, 마감년월을 선택하라고 alert함
- if(ipt_endmonth.value.length < 6) {
- messageBox("마감년월이 올바로 선택되지 않았습니다. \n\n먼저 마감년월을 선택하십시요.", "E999", "");
- model.setFocus("ipt_endmonth");
- return;
- }
- //창고에 선택된 값이 없으면, 창고를 선택하라고 alert함
- if(cmb_wareflag.value == "") {
- messageBox("창고가 선택되지 않았습니다. \n\n먼저 창고를 선택하십시요.", "E999", "");
- model.setFocus("cmb_wareflag");
- return;
- }
- //2013.01.18 박준범 추가
- //본원(031)은 2012년부터 사용가능, 칠곡(032)은 2011년부터 사용가능하도록 제한한다.
- if(cmb_instcd.value == "031") {
- if(ipt_endmonth.value < "201201") {
- messageBox("2012년부터 Himed를 적용하여 월마감작업을 실행하고 있으므로 \n\n이전 자료에 대한 작업을 중단합니다. \n\n궁금한 점은 의료정보센터로 문의바랍니다. ", "E999", "");
- model.setFocus("cmb_endmonth");
- return;
- }
- } else if(cmb_instcd.value == "032") {
- if(cmb_wareflag.value == "1") { //물류관리창고
- if(ipt_endmonth.value < "201101") {
- messageBox("칠곡병원 물류관리창고의 경우, 2011년부터 Himed를 적용하여 월마감작업을 실행하고 있으므로 \n\n이전 자료에 대한 작업을 중단합니다. \n\n궁금한 점은 의료정보센터로 문의바랍니다. ", "E999", "");
- model.setFocus("cmb_endmonth");
- return;
- }
- //2013.01.31 박준범 - 칠곡병원 진료재료창고도 한시적으로 2011년 12월의 마감이 가능토록 수정.
- } else if(cmb_wareflag.value == "2") { //진료재료창고
- if(ipt_endmonth.value < "201112") {
- messageBox("칠곡병원 진료재료창고의 경우, 2011년 12월부터 Himed를 적용하여 월마감작업을 실행하고 있으므로 \n\n이전 자료에 대한 작업을 중단합니다. \n\n궁금한 점은 의료정보센터로 문의바랍니다. ", "E999", "");
- model.setFocus("cmb_endmonth");
- return;
- }
- //2013.02.13 박준범 - 칠곡병원 수술재료창고도 한시적으로 2011년 12월의 마감이 가능토록 수정.
- } else if(cmb_wareflag.value == "3") { //수술재료창고
- if(ipt_endmonth.value < "201112") {
- messageBox("칠곡병원 수술재료창고의 경우, 2011년 12월부터 Himed를 적용하여 월마감작업을 실행하고 있으므로 \n\n이전 자료에 대한 작업을 중단합니다. \n\n궁금한 점은 의료정보센터로 문의바랍니다. ", "E999", "");
- model.setFocus("cmb_endmonth");
- return;
- }
- } else {
- if(ipt_endmonth.value < "201201") {
- messageBox("2012년부터 Himed를 적용하여 월마감작업을 실행하고 있으므로 \n\n이전 자료에 대한 작업을 중단합니다. \n\n궁금한 점은 의료정보센터로 문의바랍니다. ", "E999", "");
- model.setFocus("cmb_endmonth");
- return;
- }
- }
- }
-
- /* 아래의 마감확정에 대한 process는 Himed로 오면서 없어졌음. -> AS_IS 도 2007년 이후 단 1차례만 사용한 이력이 있음
- if(rdo_workyn.value == "N") { //N:마감취소
- if(submit("TRRSO20401")) {
- if(model.getValue("") == "") {
- messageBox("이미 마감확정된 월이므로 마감취소를 할 수 없습니다. \n\n정보통신실로 문의하십시요.", "E999", "");
- model.setFocus("ipt_endmonth");
- return;
- }
- }
- }
- */
-
- if(submit("TXRSO20401")) {
- //창고별 월마감 및 정산완료 현황 조회
- submit("TRRSO20404");
- messageBox("작업이 완료되었습니다.", "I999", "");
-
- }
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|