SMRSO20400_월마감(창고)(경북대).xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>월마감(창고)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <endlist/>
  11. </main>
  12. <send>
  13. <search>
  14. <instcd/>
  15. <endmonth/>
  16. <wareflag/>
  17. <workyn/>
  18. </search>
  19. <save>
  20. </save>
  21. </send>
  22. <init>
  23. </init>
  24. <temp>
  25. </temp>
  26. <hidden>
  27. </hidden>
  28. </root>
  29. </instance>
  30. <submission id="TRRSO20401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
  31. <submission id="TRRSO20404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/endlist"/>
  32. <submission id="TXRSO20401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
  33. </model>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. //화면 Control을 초기화한다
  37. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N"); //기관
  38. misfComboComCdList("030M0001",cmb_wareflag); //창고
  39. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
  40. model.setValue("/root/send/search/endmonth" , getCurrentDate().substr(0, 6) ); //마감년월 설정
  41. model.setValue("/root/send/search/workyn", "Y"); //Y:마감작업, N:마감취소
  42. //창고별 월마감 및 정산완료 현황 조회
  43. submit("TRRSO20404");
  44. model.refresh();
  45. ]]>
  46. </script>
  47. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  50. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  51. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  54. <script type="javascript">
  55. <![CDATA[]]>
  56. </script>
  57. </xhtml:head>
  58. <xhtml:body guideline="1,1368;" style="font-family:굴림; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  59. <group id="group1" style="left:0px; top:0px; width:945px; height:13px; ">
  60. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">월마감(창고)</caption>
  61. </group>
  62. <group id="group3" scroll="auto" style="left:0px; top:40px; width:945px; height:705px; ">
  63. <line id="line1" class="line_1" style="x1:0px; y1:38px; x2:270px; y2:38px; "/>
  64. <caption id="caption1" class="tit_2" style="left:0px; top:19px; width:180px; height:13px; ">창고재고 월마감 작업</caption>
  65. <line id="line2" class="line_1" style="x1:0px; y1:148px; x2:270px; y2:148px; "/>
  66. <caption id="caption26" class="cell_1" style="left:0px; top:96px; width:110px; height:23px; text-align:center; vertical-align:middle; ">창고구분</caption>
  67. <line id="line3" class="line_2" style="x1:0px; y1:94px; x2:270px; y2:94px; "/>
  68. <line id="line4" class="line_2" style="x1:0px; y1:94px; x2:270px; y2:94px; "/>
  69. <line id="line5" class="line_2" style="x1:0px; y1:120px; x2:270px; y2:120px; "/>
  70. <caption id="cap_purccondd" class="cell_1" style="left:0px; top:44px; width:110px; height:23px; text-align:center; vertical-align:middle; ">기관코드</caption>
  71. <caption id="caption5" class="cell_1" style="left:0px; top:70px; width:110px; height:23px; text-align:center; vertical-align:middle; ">마감년월</caption>
  72. <caption id="cap_concmpycd1" class="cell_1" style="left:0px; top:122px; width:110px; height:23px; text-align:center; vertical-align:middle; ">작업구분</caption>
  73. <line id="line10" class="line_2" style="x1:0px; y1:68px; x2:270px; y2:68px; "/>
  74. <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; ">
  75. <choices>
  76. <itemset nodeset="/root/main/init">
  77. <label ref="cnstnm"/>
  78. <value ref="cnstcd"/>
  79. </itemset>
  80. </choices>
  81. </select1>
  82. <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; ">
  83. <choices>
  84. <itemset nodeset="/root/init/wareflag">
  85. <label ref="cdnm"/>
  86. <value ref="cdid"/>
  87. </itemset>
  88. </choices>
  89. </select1>
  90. <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; "/>
  91. <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; ">
  92. <choices>
  93. <item>
  94. <label>마감작업</label>
  95. <value>Y</value>
  96. </item>
  97. <item>
  98. <label>마감취소</label>
  99. <value>N</value>
  100. </item>
  101. </choices>
  102. </select1>
  103. <caption id="caption4" style="left:0px; top:165px; width:540px; height:28px; ">
  104. <![CDATA[※ 월마감 작업 이후에는 해당월의 검수, 입/출고 작업이 불가합니다.
  105. 검수, 입/출고 작업을 위해서는 우선 해당월의 마감취소가 이루어져야 합니다.]]>
  106. </caption>
  107. <caption id="caption2" style="left:0px; top:205px; width:530px; height:28px; ">
  108. <![CDATA[※ 정산완료 처리 이후에는 해당월의 검수, 입/출고 및 마감/마감취소 작업이 모두 불가합니다.
  109. 월말 정산완료 취소를 위해서는 물류파트 담당자에게 연락바랍니다.]]>
  110. </caption>
  111. <caption id="caption3" class="tit_2" style="left:0px; top:290px; width:206px; height:13px; ">창고별 월마감 및 정산완료 현황</caption>
  112. <line id="line6" class="line_1" style="x1:0px; y1:310px; x2:790px; y2:310px; "/>
  113. <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; ">
  114. <col ref="endmonth" format="yyyy-mm" style="text-align:center; "/>
  115. <col ref="ware1" style="text-align:center; "/>
  116. <col ref="ware2" style="text-align:center; "/>
  117. <col ref="ware3" style="text-align:center; "/>
  118. <col ref="ware4" style="text-align:center; "/>
  119. <col ref="ware5" style="text-align:center; "/>
  120. <col ref="ware8" style="text-align:center; "/>
  121. <col ref="ware9" style="text-align:center; "/>
  122. <col ref="allend" style="text-align:center; "/>
  123. </datagrid>
  124. </group>
  125. <group id="group4" scroll="auto" style="left:0px; top:13px; width:945px; height:27px; ">
  126. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:270px; y2:25; "/>
  127. <button id="btn_exec" class="btn4_letter2" navindex="41" style="left:211px; top:3px; width:56px; height:22px; ">
  128. <caption>실행</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. //마감년월에 입력된 값이 올바르지 않으면, 마감년월을 선택하라고 alert함
  132. if(ipt_endmonth.value.length < 6) {
  133. messageBox("마감년월이 올바로 선택되지 않았습니다. \n\n먼저 마감년월을 선택하십시요.", "E999", "");
  134. model.setFocus("ipt_endmonth");
  135. return;
  136. }
  137. //창고에 선택된 값이 없으면, 창고를 선택하라고 alert함
  138. if(cmb_wareflag.value == "") {
  139. messageBox("창고가 선택되지 않았습니다. \n\n먼저 창고를 선택하십시요.", "E999", "");
  140. model.setFocus("cmb_wareflag");
  141. return;
  142. }
  143. //2013.01.18 박준범 추가
  144. //본원(031)은 2012년부터 사용가능, 칠곡(032)은 2011년부터 사용가능하도록 제한한다.
  145. if(cmb_instcd.value == "031") {
  146. if(ipt_endmonth.value < "201201") {
  147. messageBox("2012년부터 Himed를 적용하여 월마감작업을 실행하고 있으므로 \n\n이전 자료에 대한 작업을 중단합니다. \n\n궁금한 점은 의료정보센터로 문의바랍니다. ", "E999", "");
  148. model.setFocus("cmb_endmonth");
  149. return;
  150. }
  151. } else if(cmb_instcd.value == "032") {
  152. if(cmb_wareflag.value == "1") { //물류관리창고
  153. if(ipt_endmonth.value < "201101") {
  154. messageBox("칠곡병원 물류관리창고의 경우, 2011년부터 Himed를 적용하여 월마감작업을 실행하고 있으므로 \n\n이전 자료에 대한 작업을 중단합니다. \n\n궁금한 점은 의료정보센터로 문의바랍니다. ", "E999", "");
  155. model.setFocus("cmb_endmonth");
  156. return;
  157. }
  158. //2013.01.31 박준범 - 칠곡병원 진료재료창고도 한시적으로 2011년 12월의 마감이 가능토록 수정.
  159. } else if(cmb_wareflag.value == "2") { //진료재료창고
  160. if(ipt_endmonth.value < "201112") {
  161. messageBox("칠곡병원 진료재료창고의 경우, 2011년 12월부터 Himed를 적용하여 월마감작업을 실행하고 있으므로 \n\n이전 자료에 대한 작업을 중단합니다. \n\n궁금한 점은 의료정보센터로 문의바랍니다. ", "E999", "");
  162. model.setFocus("cmb_endmonth");
  163. return;
  164. }
  165. //2013.02.13 박준범 - 칠곡병원 수술재료창고도 한시적으로 2011년 12월의 마감이 가능토록 수정.
  166. } else if(cmb_wareflag.value == "3") { //수술재료창고
  167. if(ipt_endmonth.value < "201112") {
  168. messageBox("칠곡병원 수술재료창고의 경우, 2011년 12월부터 Himed를 적용하여 월마감작업을 실행하고 있으므로 \n\n이전 자료에 대한 작업을 중단합니다. \n\n궁금한 점은 의료정보센터로 문의바랍니다. ", "E999", "");
  169. model.setFocus("cmb_endmonth");
  170. return;
  171. }
  172. } else {
  173. if(ipt_endmonth.value < "201201") {
  174. messageBox("2012년부터 Himed를 적용하여 월마감작업을 실행하고 있으므로 \n\n이전 자료에 대한 작업을 중단합니다. \n\n궁금한 점은 의료정보센터로 문의바랍니다. ", "E999", "");
  175. model.setFocus("cmb_endmonth");
  176. return;
  177. }
  178. }
  179. }
  180. /* 아래의 마감확정에 대한 process는 Himed로 오면서 없어졌음. -> AS_IS 도 2007년 이후 단 1차례만 사용한 이력이 있음
  181. if(rdo_workyn.value == "N") { //N:마감취소
  182. if(submit("TRRSO20401")) {
  183. if(model.getValue("") == "") {
  184. messageBox("이미 마감확정된 월이므로 마감취소를 할 수 없습니다. \n\n정보통신실로 문의하십시요.", "E999", "");
  185. model.setFocus("ipt_endmonth");
  186. return;
  187. }
  188. }
  189. }
  190. */
  191. if(submit("TXRSO20401")) {
  192. //창고별 월마감 및 정산완료 현황 조회
  193. submit("TRRSO20404");
  194. messageBox("작업이 완료되었습니다.", "I999", "");
  195. }
  196. ]]>
  197. </script>
  198. </button>
  199. </group>
  200. </xhtml:body>
  201. </xhtml:html>