SMRSE00130_CSR물품차수별불출현황.xrw 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 수정이력 :
  4. [2007.10.18 HBH : 공급실 불출구분이 "응급"이면 마감차수를 입력받지 않는다.
  5. -->
  6. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  7. <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">
  8. <xhtml:head>
  9. <xhtml:title>CSR 분출관리</xhtml:title>
  10. <model id="model1">
  11. <instance id="instance1">
  12. <root xmlns="">
  13. <main>
  14. <cond>
  15. <instcd/>
  16. <delivefrdd/>
  17. <delivetodd/>
  18. </cond>
  19. <dlvlist>
  20. <delivedd/>
  21. <goodcd/>
  22. <csrgoodnm/>
  23. <exchng1/>
  24. <lend1/>
  25. <dinf1/>
  26. <exchng2/>
  27. <lend2/>
  28. <dinf2/>
  29. <exchng3/>
  30. <lend3/>
  31. <dinf3/>
  32. <exchng4/>
  33. <lend4/>
  34. <dinf4/>
  35. <dlvexchngemc/>
  36. <dlvlendemc/>
  37. <dlvdinfemc/>
  38. <dlvsum/>
  39. </dlvlist>
  40. </main>
  41. <send>
  42. </send>
  43. <init>
  44. <mlist>
  45. <Z0007>
  46. <cdid/>
  47. <cdnm/>
  48. </Z0007>
  49. </mlist>
  50. </init>
  51. </root>
  52. </instance>
  53. <bind id="savedeliveprcsflag" ref="/root/main/list/goodreq/goodreqlist/savedeliveprcsflag" calculate="../deliveprcsflag"/>
  54. <script type="javascript" ev:event="xforms-ready">
  55. <![CDATA[
  56. //화면 Control을 초기화한다
  57. fCheckAuth();
  58. fInitialize();
  59. ]]>
  60. </script>
  61. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  62. <submission id="TRRSE00130" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dlvlist"/>
  63. </model>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  68. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. function fInitialize() {
  72. zbcfGetCodeList( new Array ( "Z0007" //직업
  73. )
  74. , new Array ( "/root/init/mlist" //직업과거병력내역
  75. )
  76. );
  77. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  78. model.setValue(ipt_delivefrdd.attribute("ref"), getCurrentDate());
  79. model.setValue(ipt_delivetodd.attribute("ref"), getCurrentDate());
  80. model.removeNodeset(grd_dlvlist.nodeset);
  81. fsearch();
  82. model.refresh();
  83. }
  84. function fCheckAuth() {
  85. // btn_search.disabled = !checkAuth("R") ;
  86. // btn_save.disabled = !checkAuth("X") ;
  87. }
  88. function fsearch() {
  89. model.makeValue("/root/send/instcd" , model.getValue("/root/main/cond/instcd"));
  90. model.makeValue("/root/send/delivefrdd", model.getValue("/root/main/cond/delivefrdd"));
  91. model.makeValue("/root/send/delivetodd", model.getValue("/root/main/cond/delivetodd"));
  92. submit("TRRSE00130");
  93. grd_dlvlist.subtotalPosition = "below";
  94. for(var i = grd_dlvlist.colRef("exchng1"); i <= grd_dlvlist.colRef("dlvsum"); i++) {
  95. grd_dlvlist.subtotal("sum", grd_dlvlist.colRef("delivedd"),i, "#,###", "background-color:#99ff99", 0, "합계");
  96. }
  97. }
  98. ]]>
  99. </script>
  100. </xhtml:head>
  101. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  102. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  103. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">CSR 분출관리</caption>
  104. </group>
  105. <group id="grp_biz" scroll="auto" style="left:0px; top:18px; width:1195px; height:744px; ">
  106. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:37px; "/>
  107. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1010px; top:18px; width:56px; height:22px; text-align:left; ">
  108. <caption>조회</caption>
  109. <script type="javascript" ev:event="DOMActivate">
  110. <![CDATA[
  111. fsearch();
  112. ]]>
  113. </script>
  114. </button>
  115. <line id="line14" class="line_4" style="x1:1000px; y1:16px; x2:1000px; y2:38px; "/>
  116. <caption id="caption14" class="search_name" style="left:15; top:19; width:86px; height:17px; ">기관코드 :</caption>
  117. <select1 id="cmb_instcd" ref="/root/main/cond/instcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:19px; width:115px; height:19px; ">
  118. <choices>
  119. <itemset nodeset="/root/init/mlist/Z0007">
  120. <label ref="cdnm"/>
  121. <value ref="cdid"/>
  122. </itemset>
  123. </choices>
  124. </select1>
  125. <button id="button2" class="btn1_letter2" navindex="7" style="left:1070px; top:18px; width:56px; height:22px; text-align:left; ">
  126. <caption>엑셀</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. var reqfrdd = model.getValue(ipt_reqfrdd.attribute("ref"));
  130. var reqtodd = model.getValue(ipt_reqtodd.attribute("ref"));
  131. var fileName = window.fileDialog("save", ",", false, "차수별불출List"+"(" + reqfrdd + "~" + reqtodd + ")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  132. if (fileName != "")
  133. {
  134. grd_dlvlist.saveExcel(fileName, "CSR물품차수별불출List");
  135. }
  136. ]]>
  137. </script>
  138. </button>
  139. <button id="button3" class="btn1_letter2" navindex="7" style="left:1130px; top:18px; width:56px; height:22px; text-align:left; ">
  140. <caption>출력</caption>
  141. <script type="javascript" ev:event="DOMActivate">
  142. <![CDATA[
  143. ]]>
  144. </script>
  145. </button>
  146. <caption id="caption1" class="search_name" style="left:235px; top:20px; width:86px; height:17px; ">불출일자 :</caption>
  147. <caption id="caption2" class="tit_2" style="left:5px; top:56px; width:157px; height:14px; ">불출 현황LIST</caption>
  148. <line id="line2" class="line_1" style="x1:0px; y1:71px; x2:1195px; y2:71px; "/>
  149. <input id="ipt_delivefrdd" ref="/root/main/cond/delivefrdd" class="input_s_defualt" inputtype="date" style="left:325px; top:19px; width:100px; height:19px; "/>
  150. <datagrid id="grd_dlvlist" nodeset="/root/main/dlvlist" caption="불출일자^물품코드^물품명^정기1차^정기1차^정기1차^정기2차^정기2차^정기2차^정기3차^정기3차^정기3차^정기4차^정기4차^정기4차^응급^응급^응급^합계|불출일자^물품코드^물품명^교환^대여^멸균^교환^대여^멸균^교환^대여^멸균^교환^대여^멸균^교환^대여^멸균^합계" colsep="^" colwidth="70, 80, 217, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 60" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:76px; width:1195px; height:668px; ">
  151. <col ref="delivedd" format="yyyy-mm-dd" style="text-align:center; "/>
  152. <col ref="goodcd"/>
  153. <col ref="csrgoodnm"/>
  154. <col ref="exchng1" style="text-align:right; "/>
  155. <col ref="lend1" style="text-align:right; "/>
  156. <col ref="dinf1" style="text-align:right; "/>
  157. <col ref="exchng2" style="text-align:right; "/>
  158. <col ref="lend2" style="text-align:right; "/>
  159. <col ref="dinf2" style="text-align:right; "/>
  160. <col ref="exchng3" style="text-align:right; "/>
  161. <col ref="lend3" style="text-align:right; "/>
  162. <col ref="dinf3" style="text-align:right; "/>
  163. <col ref="exchng4" style="text-align:right; "/>
  164. <col ref="lend4" style="text-align:right; "/>
  165. <col ref="dinf4" style="text-align:right; "/>
  166. <col ref="dlvexchngemc" style="text-align:right; "/>
  167. <col ref="dlvlendemc" style="text-align:right; "/>
  168. <col ref="dlvdinfemc" style="text-align:right; "/>
  169. <col ref="dlvsum" style="text-align:right; "/>
  170. </datagrid>
  171. <caption id="caption3" style="left:430px; top:20px; width:15px; height:20px; ">~</caption>
  172. <input id="ipt_delivetodd" ref="/root/main/cond/delivetodd" class="input_s_defualt" inputtype="date" style="left:445px; top:20px; width:100px; height:19px; "/>
  173. </group>
  174. </xhtml:body>
  175. </xhtml:html>