SMRSO01501_병원연구소 자료집계.xrw 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>월수불마감작업</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <init>
  10. <acntflag>
  11. <cdid>1</cdid>
  12. <cdnm>불출</cdnm>
  13. <cdid>2</cdid>
  14. <cdnm>의료장비</cdnm>
  15. <cdid>3</cdid>
  16. <cdnm>수선</cdnm>
  17. <cdid>4</cdid>
  18. <cdnm>비품</cdnm>
  19. <cdid>5</cdid>
  20. <cdnm>비품마스터</cdnm>
  21. <cdid>6</cdid>
  22. <cdnm>약품사용정산내역</cdnm>
  23. </acntflag>
  24. </init>
  25. <send>
  26. <instcd/>
  27. <acntflag/>
  28. <stocym/>
  29. <stocfrdd/>
  30. <stoctodd/>
  31. </send>
  32. <main>
  33. <acntflagexcel>
  34. <acntflagexcellist/>
  35. <masterexcellist/>
  36. <rstsyuseexcellist/>
  37. </acntflagexcel>
  38. </main>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. //화면 Control을 초기화한다
  44. fInitialize();
  45. ]]>
  46. </script>
  47. <submission id="TRRSO01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acntflagexcel/acntflagexcellist"/>
  48. <submission id="TRRSO01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acntflagexcel/masterexcellist"/>
  49. <submission id="TRRSO01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acntflagexcel/rstsyuseexcellist"/>
  50. </model>
  51. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  54. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  57. <script type="javascript">
  58. <![CDATA[
  59. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  60. function fInitialize() {
  61. misfComboComCdListMulti("Z0007", "cmb_instcd");
  62. cmb_instcd.value = getUserInfo("dutplceinstcd");
  63. var curdate = getCurrentDate();
  64. //작업년월
  65. model.setValue(ipt_stocym.attribute("ref") ,curdate);
  66. var stocym = model.getValue("/root/send/stocym");
  67. var cvtdate = stocym.toDate("YYYYMM");
  68. var stocfrdd = stocym.substring(0,6)+"01";
  69. var stoctodd = stocym.substring(0,6)+ cvtdate.getMonthDay();
  70. model.setValue("/root/send/stocfrdd",stocfrdd);
  71. model.setValue("/root/send/stoctodd", stoctodd);
  72. cmb_acntflag.select(0);
  73. model.refresh();
  74. }
  75. function fCheckRetrieveData(pmsg)
  76. {
  77. if(model.getValue(cmb_acntflag.attribute("ref")).length== 0 )
  78. {
  79. if(pmsg == true)
  80. {
  81. messageBox("집계구분을 " ,"C002");
  82. model.setFocus("cmb_acntflag");
  83. }
  84. return false;
  85. }
  86. }
  87. ]]>
  88. </script>
  89. </xhtml:head>
  90. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  91. <line id="line7" class="line_1" style="x1:0px; y1:37px; x2:377px; y2:37px; "/>
  92. <line id="line19" class="line_2" style="x1:0px; y1:88px; x2:377px; y2:88px; "/>
  93. <line id="line1" class="line_2" style="x1:0px; y1:64px; x2:377px; y2:64px; "/>
  94. <line id="line35" class="line_3" style="x1:0px; y1:115px; x2:377px; y2:115px; "/>
  95. <line id="line23" class="line_2" style="x1:0px; y1:112px; x2:377px; y2:112px; "/>
  96. <group id="grp_tle" style="left:0px; top:0px; width:380; height:13px; ">
  97. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">병원연구소 자료집계</caption>
  98. </group>
  99. <shape id="rectangle9" fillStyle="solid" shape="rectangle" fillColor="#bbbbbb" style="left:0px; top:12px; width:380px; height:103px; border-color:#788daf; "/>
  100. <button id="btn_gen" class="btn2_letter2" style="left:331px; top:17px; width:42px; height:19px; ">
  101. <caption>생성</caption>
  102. <script type="javascript" ev:event="DOMActivate">
  103. <![CDATA[
  104. if(fCheckRetrieveData(false) == false)return;
  105. var filenm = "연구소집계List_"+ cmb_instcd.label + "_" + model.getValue("/root/send/stocym").substring(0,6)+"_"+ cmb_acntflag.label ;
  106. var localfile = window.fileDialog("save", ",", false, filenm, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  107. if (localfile != "") {
  108. var param = "&instcd=" + model.getValue("/root/send/instcd");
  109. param += "&acntflag=" + model.getValue("/root/send/acntflag");
  110. param += "&stocym=" + model.getValue("/root/send/stocym");
  111. param += "&stocfrdd=" + model.getValue("/root/send/stocfrdd");
  112. param += "&stoctodd=" + model.getValue("/root/send/stoctodd");
  113. if(model.getValue("/root/send/acntflag") == "5") {
  114. model.download(getActionURL("TRRSO01502") + param, localfile, true);
  115. //alert(model.getValue("/root/send/acntflag"));
  116. }else if(model.getValue("/root/send/acntflag") == "6"){
  117. model.download(getActionURL("TRRSO01503") + param, localfile, true);
  118. }else{
  119. //alert(model.getValue("/root/send/acntflag"));
  120. model.download(getActionURL("TRRSO01501") + param, localfile, true);
  121. }
  122. var rtn = messageBox("파일을", "Q004");
  123. if( rtn == 6 ) {
  124. window.exec(localfile);
  125. }
  126. }
  127. ]]>
  128. </script>
  129. </button>
  130. <caption id="caption61" class="tit_2" style="left:5px; top:22px; width:113px; height:14px; ">병원연구소 집계</caption>
  131. <caption id="caption44" class="cell_1" style="left:0px; top:90px; width:108px; height:23px; vertical-align:middle; ">집계년월</caption>
  132. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_essential" appearance="minimal" style="left:110px; top:44px; width:213px; height:19px; ">
  133. <choices>
  134. <itemset nodeset="/root/init/instcd">
  135. <label ref="cdnm"/>
  136. <value ref="cdid"/>
  137. </itemset>
  138. </choices>
  139. </select1>
  140. <input id="ipt_stocym" ref="/root/send/stocym" class="input_default" inputtype="date" format="yyyy-mm" style="left:110px; top:92px; width:90px; height:19px; ">
  141. <script type="javascript" ev:event="xforms-value-changed">
  142. <![CDATA[
  143. var stocym = model.getValue("/root/send/stocym");
  144. var cvtdate = stocym.toDate("YYYYMM");
  145. var stocfrdd = stocym+"01";
  146. var stoctodd = stocym+ cvtdate.getMonthDay();
  147. //alert("stocym="+stocfrdd + " : " + stoctodd);
  148. model.setValue("/root/send/stocfrdd",stocfrdd);
  149. model.setValue("/root/send/stoctodd", stoctodd);
  150. ]]>
  151. </script>
  152. </input>
  153. <caption id="caption8" class="cell_1" style="left:0px; top:42px; width:108px; height:23px; vertical-align:middle; ">기관코드</caption>
  154. <select1 id="cmb_acntflag" ref="/root/send/acntflag" class="combo_default" appearance="minimal" style="left:110px; top:68px; width:213px; height:19px; ">
  155. <choices>
  156. <itemset nodeset="/root/init/acntflag">
  157. <label ref="cdnm"/>
  158. <value ref="cdid"/>
  159. </itemset>
  160. </choices>
  161. </select1>
  162. <caption id="caption3" class="cell_1" style="left:0px; top:66px; width:108px; height:23px; vertical-align:middle; ">집계구분</caption>
  163. <output id="opt_stocfrdd" ref="/root/send/stocfrdd" visibility="hidden" style="left:225px; top:95px; width:55px; height:19px; "/>
  164. <output id="opt_stoctodd" ref="/root/send/stoctodd" visibility="hidden" style="left:300px; top:95px; width:60px; height:19px; "/>
  165. </xhtml:body>
  166. </xhtml:html>