SMMNG02401_세탁청구현황(칠곡병원).xrw 8.9 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. <main>
  10. <lnrqact>
  11. <lnrqactinfo/>
  12. <lnrqdept/>
  13. </lnrqact>
  14. </main>
  15. <send>
  16. <reqfromdd/>
  17. <instcdnm/>
  18. <instcd/>
  19. <reqtodd/>
  20. <deptcd/>
  21. </send>
  22. <init>
  23. <csrreqdeptlist/>
  24. </init>
  25. <temp>
  26. <lnrqact>
  27. <lnrqactinfo/>
  28. <lnrqdept/>
  29. </lnrqact>
  30. </temp>
  31. </root>
  32. </instance>
  33. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. fInitialize();
  39. ]]>
  40. </script>
  41. <submission id="TRMNG02403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/lnrqact"/>
  42. <submission id="TRMNG00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/instcd" resultref="/root/init/csrreqdeptlist"/>
  43. </model>
  44. <script type="javascript">
  45. <![CDATA[
  46. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  47. function fInitialize()
  48. {
  49. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
  50. model.setValue(ipt_reqfromdd.attribute("ref"), getCurrentDate()); //년월일
  51. model.setValue(ipt_reqtodd.attribute("ref"), getCurrentDate()); //년월일
  52. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); //기관코드
  53. submit("TRMNG00401"); // 부서구분 조회
  54. addComboItem( "cmb_deptcd", "전체", "", "above");
  55. }
  56. function fSearch() {
  57. submit("TRMNG02403");
  58. fDataset();
  59. }
  60. function fDataset() {
  61. var caption = "린넨품명^물품코드^상세코드";
  62. var caption1 = "린넨품명^물품코드^상세코드";
  63. grd_lnrqactinfo.colWidth(grd_lnrqactinfo.colRef("lngoodnm")) = 150;
  64. // caption 및 컬럼 동적생성
  65. for ( i = 1; i < getNodesetCount("/root/temp/lnrqact/lnrqdept/deptcd"); i++) {
  66. caption += "^" + model.getValue("/root/temp/lnrqact/lnrqdept[" + i + "]/deptnm") + "^" + model.getValue("/root/temp/lnrqact/lnrqdept[" + i + "]/deptnm")
  67. + "^" + model.getValue("/root/temp/lnrqact/lnrqdept[" + i + "]/deptnm") + "^" + model.getValue("/root/temp/lnrqact/lnrqdept[" + i + "]/deptnm");
  68. caption1 += "^안전재고량^청구량^불출량^실재고량";
  69. for ( j=1; j < 5; j++) {
  70. grd_lnrqactinfo.addColumn("ref:col" + grd_lnrqactinfo.cols + "; type:text;", false);
  71. grd_lnrqactinfo.colWidth(grd_lnrqactinfo.cols-1) = 60;
  72. }
  73. }
  74. grd_lnrqactinfo.refresh();
  75. grd_lnrqactinfo.addColumn("ref:lnsfsum; type:text;", false);
  76. grd_lnrqactinfo.addColumn("ref:reqsum; type:text;", false);
  77. grd_lnrqactinfo.addColumn("ref:outsum; type:text;", false);
  78. grd_lnrqactinfo.addColumn("ref:lnrlsum; type:text;", false);
  79. caption += "^TOTAL^TOTAL^TOTAL^TOTAL";
  80. caption1 += "^안전재고량^청구량^불출량^실재고량";
  81. var cap = caption + "|" + caption1;
  82. grd_lnrqactinfo.caption = cap;
  83. var lnsfcol = 0;
  84. var reqcol = 0;
  85. var outcol = 0;
  86. var lnrlcol = 0;
  87. for ( h=1; h< model.getValue("/root/temp/lnrqact/lnrqmaxrow/maxrow"); h++) {
  88. grd_lnrqactinfo.addRow(false, false);
  89. }
  90. grd_lnrqactinfo.refresh();
  91. for ( k=1; k< getNodesetCount("/root/temp/lnrqact/lnrqactinfo/deptcd"); k++) {
  92. // grd_lnrqactinfo.addRow(false, false);
  93. //for ( k=1; k< 3; k++) {
  94. var row = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k +"]/rnum");
  95. var col = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k +"]/col");
  96. if ( col == "") {
  97. lnsfcol = grd_lnrqactinfo.colRef("lnsfsum");
  98. reqcol = grd_lnrqactinfo.colRef("reqsum");
  99. outcol = grd_lnrqactinfo.colRef("outsum");
  100. lnrlcol = grd_lnrqactinfo.colRef("lnrlsum");
  101. } else {
  102. lnsfcol = (col-1)*4 + 3;
  103. reqcol = (col-1)*4 + 4;
  104. outcol = (col-1)*4 + 5;
  105. lnrlcol = (col-1)*4 + 6;
  106. }
  107. if ( model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/lngoodnm") != "" ) {
  108. grd_lnrqactinfo.valueMatrix(row, grd_lnrqactinfo.colRef("lngoodnm")) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/lngoodnm");
  109. }
  110. grd_lnrqactinfo.valueMatrix(row, grd_lnrqactinfo.colRef("goodcd")) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/goodcd");
  111. grd_lnrqactinfo.valueMatrix(row, grd_lnrqactinfo.colRef("goodcdseq")) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/goodcdseq");
  112. grd_lnrqactinfo.valueMatrix(row, lnsfcol) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/lnsfcnt");
  113. grd_lnrqactinfo.valueMatrix(row, reqcol) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/reqcnt");
  114. grd_lnrqactinfo.valueMatrix(row, outcol) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/outcnt");
  115. grd_lnrqactinfo.valueMatrix(row, lnrlcol) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/lnrlcnt");
  116. }
  117. }
  118. ]]>
  119. </script>
  120. </xhtml:head>
  121. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  122. <group id="grp_tle" style="left:0px; top:0px; width:580px; height:13px; ">
  123. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">청구현황</caption>
  124. </group>
  125. <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:1175px; height:660px; ">
  126. <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:121px; height:14px; ">청구현황</caption>
  127. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1170px; y2:25px; "/>
  128. <col ref="posscnt" type="input"/>
  129. <col ref="posscnt" type="input"/>
  130. <datagrid id="grd_lnrqactinfo" nodeset="/root/main/lnrqact/lnrqactinfo" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1170px; height:610px; ">
  131. <col ref="lngoodnm" visibility="visible"/>
  132. <col ref="goodcd" visibility="visible"/>
  133. <col ref="goodcdseq" visibility="visible"/>
  134. </datagrid>
  135. </group>
  136. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1175px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
  137. <caption id="cap_csrreqdeptcd" class="search_name" style="left:279px; top:30px; width:67px; height:17px; ">년월:</caption>
  138. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1055px; top:27px; width:56px; height:22px; ">
  139. <caption>조회</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. fSearch();
  143. ]]>
  144. </script>
  145. </button>
  146. <input id="ipt_reqfromdd" ref="/root/send/reqfromdd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:334px; top:30px; width:95px; height:19px; "/>
  147. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:95px; top:30px; width:175px; height:19px; text-align:center; "/>
  148. <caption id="cap_instcd" class="search_name" style="left:5px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
  149. <line id="line2" class="line_4" style="x1:1050px; y1:26px; x2:1050px; y2:51px; "/>
  150. <caption id="caption1" class="search_name" style="left:557px; top:30px; width:85px; height:17px; ">병동:</caption>
  151. <button id="button3" class="btn1_letter2" style="left:1115px; top:27px; width:56px; height:22px; ">
  152. <caption>엑셀</caption>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. var fileName = window.fileDialog("save", ",", false, "린넨부서별청구현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  156. if (fileName != "")
  157. {
  158. grd_lnrqactinfo.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  159. }
  160. ]]>
  161. </script>
  162. </button>
  163. <select1 id="cmb_deptcd" ref="/root/send/deptcd" class="combo_s_essential" appearance="minimal" style="left:615px; top:30px; width:95px; height:19px; ">
  164. <choices>
  165. <itemset nodeset="/root/init/csrreqdeptlist">
  166. <label ref="csrreqdeptnm"/>
  167. <value ref="csrreqdeptcd"/>
  168. </itemset>
  169. </choices>
  170. <script type="javascript" ev:event="xforms-value-changed">
  171. <![CDATA[
  172. fSearch();
  173. ]]>
  174. </script>
  175. </select1>
  176. <input id="ipt_reqtodd" ref="/root/send/reqtodd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:444px; top:30px; width:95px; height:19px; "/>
  177. <caption id="caption2" style="left:430px; top:34px; width:15px; height:15px; ">~</caption>
  178. </xhtml:body>
  179. </xhtml:html>