SMAEB03403_조영제재고전체조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. <dyestoclist>
  11. <item>
  12. <ord/>
  13. <lrgcd/>
  14. <goodcd/>
  15. <usernm/>
  16. <dayused/>
  17. </item>
  18. </dyestoclist>
  19. </main>
  20. <send>
  21. <srchiodd/>
  22. <globalinstance>
  23. <instance1/>
  24. </globalinstance>
  25. <srchsectcd/>
  26. <srchgoodcd/>
  27. <srchgoodnm/>
  28. <srchexcuroomgrp/>
  29. <srchtodd/>
  30. <srchfromdd/>
  31. <excuroomgrpcdid/>
  32. <srchsuppdeptcd/>
  33. <excuroomcd/>
  34. </send>
  35. <cmb_info>
  36. <initexcuroomgrp2>
  37. <excuroomgrpcdid/>
  38. <excuroomgrpcdnm/>
  39. </initexcuroomgrp2>
  40. <goodlist>
  41. <item/>
  42. </goodlist>
  43. </cmb_info>
  44. <init>
  45. <cmb_info2/>
  46. <excuroomcdlist/>
  47. </init>
  48. </root>
  49. </instance>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. aezfSetSuppDeptcd();
  53. model.setValue("/root/send/srchfromdd", getCurrentDate());
  54. model.setValue("/root/send/srchtodd", getCurrentDate());
  55. model.removeNodeset("/root/main/mainlist");
  56. //model.removeNodeset("/root/main/speclist/item");
  57. submit("TRAEA01301");
  58. model.removeNodeset("/root/init/cmb_info2/initexecroom");
  59. var cnt = getNodesetCount("/root/cmb_info/initexcuroomgrp2");
  60. for( var i = 1; i <= cnt ; i++ ){
  61. model.makeNode("/root/init/cmb_info2/initexecroom[" + i + "]");
  62. model.copyNode("/root/init/cmb_info2/initexecroom[" + i + "]", "/root/cmb_info/initexcuroomgrp2[" + i + "]");
  63. }
  64. model.removeNodeset("/root/cmb_info/initexcuroomgrp2[" + 1 + "]");
  65. model.removeNodeset("/root/cmb_info/initexcuroomgrp[" + 1 + "]");
  66. addComboItem("cmb_sectcd", "-- 전체 --", "", "above");
  67. addComboItem("cmb_sudpt", "-- 전체 --", "", "above");
  68. model.setValue("/root/send/srchsuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  69. cmb_sudpt.dispatch("xforms-value-changed");
  70. cmb_excuroomgrp.select(0);
  71. model.refresh();
  72. makeReportPreview(0,70,1195,670);
  73. ]]>
  74. </script>
  75. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/cmb_info"/>
  76. <submission id="TRAEA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/excuroomcdlist"/>
  77. <submission id="TRAEB03407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dyestoclist"/>
  78. <submission id="TRAEA01306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
  79. </model>
  80. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  83. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  84. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  85. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  87. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  88. <script type="javascript">
  89. <![CDATA[
  90. function getGridData() {
  91. if(model.getValue("/root/send/srchiodd") != "") {
  92. model.setValue("/root/temp/goodnm", cmb_goodcd.label);
  93. model.setValue("/root/temp/inswlnqty", "0");
  94. model.setValue("/root/temp/setwlnqty", "0");
  95. model.setValue("/root/temp/insuseqty", "0");
  96. model.setValue("/root/temp/setuseqty", "0");
  97. model.removeNodeset("/root/main/mainlist");
  98. model.removeNodeset("/root/main/goodlist/item");
  99. btn_inSave.disabled = true;
  100. btn_inUpdt.disabled = true;
  101. btn_outSave.disabled = true;
  102. btn_outUpdt.disabled = true;
  103. ipt_inswlnday.disabled = true;
  104. ipt_insuseday.disabled = true;
  105. submit("TRAEB03401");
  106. model.setValue("/root/send/srchiodd", getCurrentDate());
  107. var srchgoodcd = model.getValue("/root/send/srchgoodcd");
  108. if (srchgoodcd != "") {
  109. btn_inSave.disabled = false;
  110. btn_outSave.disabled = false;
  111. ipt_inswlnday.disabled = false;
  112. ipt_insuseday.disabled = false;
  113. }
  114. model.refresh();
  115. }
  116. else
  117. {
  118. messageBox("날짜를", "C001");
  119. }
  120. }
  121. function getDyeList()
  122. {
  123. if( model.getValue("/root/send/srchfromdd") == "" || model.getValue("/root/send/srchtodd") == "" ){
  124. messageBox("입고일자를", "I007");
  125. return;
  126. }
  127. // 2011.02.07 c y w 조회시 환자정보리스트 클리어
  128. model.removeNodeset("/root/main/dyestoclist/item");
  129. if(submit("TRAEB03407")){
  130. model.makeValue("/root/main/dyestoclist/srchfromdd", model.getValue("/root/send/srchfromdd"));
  131. model.makeValue("/root/main/dyestoclist/srchtodd", model.getValue("/root/send/srchtodd"));
  132. model.makeValue("/root/main/dyestoclist/srchsectcd", model.getValue("/root/send/srchsectcd"));
  133. model.makeValue("/root/main/dyestoclist/srchexcuroomgrp", model.getValue("/root/send/srchexcuroomgrp"));
  134. model.makeValue("/root/main/dyestoclist/srchsuppdeptcd", model.getValue("/root/send/srchsuppdeptcd"));
  135. //exeReportPreview("RPAEB03407", "XMLSTR", "/root/main/dyestoclist");
  136. exeReportPreview("RPAEB03407", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  137. }
  138. model.refresh();
  139. }
  140. ]]>
  141. </script>
  142. </xhtml:head>
  143. <xhtml:body pagewidth="1210" pageheight="780" style="margin-left:7; margin-top:0; margin-right:8; margin-bottom:0; ">
  144. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  145. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:205px; height:15px; ">조영제/재료 소모관리 전체</caption>
  146. </group>
  147. <group id="group2" scroll="auto" style="left:0px; top:15px; width:1195px; height:730px; ">
  148. <group id="group4" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  149. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  150. <caption id="caption19" class="search_name" style="left:10px; top:9px; width:105px; height:17px; ">소모일 기간 :</caption>
  151. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:120px; top:8px; width:90px; height:19px; "/>
  152. <line id="line6" class="line_4" style="x1:1116px; y1:6px; x2:1116px; y2:28px; "/>
  153. <caption id="caption20" class="search_name" style="left:777px; top:9px; width:83px; height:17px; ">검사실 :</caption>
  154. <button id="button3" class="btn1_letter2" navindex="5" style="left:1129px; top:7px; width:56px; height:22px; ">
  155. <caption>조회</caption>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. //20151016 기간 체크
  159. //start
  160. var cTime = getCurrentTime().substr(0, 4);
  161. if(cTime > "1700" || cTime < "0830") {
  162. } else {
  163. var ddInterval = getDateInterval(ipt_fromdd.value, ipt_todd.value);
  164. if(ddInterval > 32){
  165. messageBox("업무시간[08:30 ~ 17:00]에는 31일까지만 조회", "I006");
  166. return;
  167. }
  168. }
  169. //end
  170. getDyeList();
  171. ]]>
  172. </script>
  173. </button>
  174. <select1 id="cmb_sectcd" ref="/root/send/srchsectcd" navindex="4" appearance="minimal" style="left:857px; top:9px; width:187px; height:19px; ">
  175. <choices>
  176. <itemset nodeset="/root/init/excuroomcdlist/excuroom">
  177. <label ref="basecdflagdesc"/>
  178. <value ref="basecd"/>
  179. </itemset>
  180. </choices>
  181. </select1>
  182. <caption id="lbl_srchdd" class="search_name" style="left:568px; top:10px; width:86px; height:17px; ">구 분 :</caption>
  183. <select1 id="cmb_excuroomgrp" ref="/root/send/srchexcuroomgrp" class="combo_search" navindex="3" appearance="minimal" style="left:640px; top:9px; width:123px; height:19px; ">
  184. <choices>
  185. <itemset nodeset="/root/cmb_info/initexcuroomgrp">
  186. <label ref="excuroomgrpcdnm"/>
  187. <value ref="excuroomgrpcdid"/>
  188. </itemset>
  189. </choices>
  190. <script type="javascript" ev:event="xforms-select">
  191. <![CDATA[
  192. model.removeNodeset("/root/init/cmb_info2/initexecroom");
  193. model.removeNodeset("/root/init/excuroomcdlist/excuroom");
  194. model.setValue("/root/send/excuroomgrpcdid", model.getValue("/root/send/srchexcuroomgrp") );
  195. if(submit("TRAEA01306")){
  196. var cnt = getNodesetCount("/root/init/cmb_info2/initexecroom");
  197. for(var i = 1; i <= cnt; i++ ){
  198. model.makeNode("/root/init/excuroomcdlist/excuroom[" + i + "]");
  199. model.makeValue("/root/init/excuroomcdlist/excuroom[" + i + "]/basecdflagdesc", model.getValue("/root/init/cmb_info2/initexecroom["+ i +"]/excuroomcdnm"));
  200. model.makeValue("/root/init/excuroomcdlist/excuroom[" + i + "]/basecd", model.getValue("/root/init/cmb_info2/initexecroom["+ i +"]/excuroomcdid"));
  201. }
  202. if(model.getValue("/root/init/excuroomcdlist/excuroom[1]/basecd") != "" ){
  203. addComboItem("cmb_sectcd", "-- 전체 --", "", "above");
  204. }
  205. cmb_sectcd.select(0);
  206. }
  207. model.refresh();
  208. ]]>
  209. </script>
  210. </select1>
  211. <caption id="lbl_~" class="search_no_b" style="left:214px; top:10px; width:12px; height:17px; ">~</caption>
  212. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_search" navindex="2" inputtype="date" style="left:230px; top:8px; width:90px; height:19px; "/>
  213. <caption id="caption1" class="search_name" style="left:340px; top:10px; width:86px; height:17px; ">지원부서 :</caption>
  214. <select1 id="cmb_sudpt" ref="/root/send/srchsuppdeptcd" class="combo_search" appearance="minimal" editmode="inputsearch" style="left:431px; top:9px; width:120px; height:19px; text-align:left; ">
  215. <choices>
  216. <itemset nodeset="/root/cmb_info/suppdept">
  217. <label ref="depthngnm"/>
  218. <value ref="suppdeptcd"/>
  219. </itemset>
  220. </choices>
  221. <script type="javascript" ev:event="xforms-value-changed">
  222. <![CDATA[
  223. model.removeNodeset("/root/init/excuroomcdlist/excuroom");
  224. if(model.getValue("/root/send/srchsuppdeptcd") == "" ){
  225. model.setValue("/root/send/globalinstance/instance1", "");
  226. cmb_excuroomgrp.select(0);
  227. cmb_excuroomgrp.dispatch("xforms-select");
  228. }else{
  229. model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/send/srchsuppdeptcd"));
  230. model.setValue("/root/send/excuroomcd", "");
  231. submit("TRAEA00902");
  232. if(model.getValue("/root/init/excuroomcdlist/excuroom[1]/basecd") != "" ){
  233. addComboItem("cmb_sectcd", "-- 전체 --", "", "above");
  234. }
  235. cmb_sectcd.select(0);
  236. }
  237. model.refresh();
  238. ]]>
  239. </script>
  240. </select1>
  241. </group>
  242. <caption id="caption22" class="tit_2" style="left:0px; top:58px; width:143px; height:15px; ">조영제/재료 소모 현황</caption>
  243. <line id="line7" class="line_1" style="x1:0px; y1:74px; x2:1193px; y2:74px; "/>
  244. </group>
  245. <group id="grp_btn" style="left:0px; top:745px; width:1195px; height:25px; "/>
  246. </xhtml:body>
  247. </xhtml:html>