SMLBS00100_성분제제별입출고통계.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLBS00100_성분제제별입출고통계.xrw
  4. * 설 명 : 성분제제별입출고통계
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 윤재한
  7. * 작 성 일 : 2007.08.09
  8. * 수정이력 : 2010.03.16 박정은 성분제제 라디오버튼 PRC, L/F PRC, P/F PRC 분리
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>성분제제별입출고통계</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <winlist>
  20. <dt/>
  21. <a/>
  22. <b/>
  23. <o/>
  24. <ab/>
  25. <sum/>
  26. </winlist>
  27. <delivelist>
  28. <dt/>
  29. <a/>
  30. <b/>
  31. <o/>
  32. <ab/>
  33. <sum/>
  34. </delivelist>
  35. </main>
  36. <send>
  37. <usdd/>
  38. <uedd/>
  39. <refflag/>
  40. <blodvol/>
  41. <comprod/>
  42. </send>
  43. <init>
  44. </init>
  45. <hidden>
  46. <usdd/>
  47. <uedd/>
  48. <ustm>0800</ustm>
  49. <uetm>0759</uetm>
  50. <refflag/>
  51. <blodvol/>
  52. <comprod>
  53. </comprod>
  54. <report>
  55. <list/>
  56. </report>
  57. <selectcd/>
  58. </hidden>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. fSetInit();
  67. ]]>
  68. </script>
  69. <submission id="TRLBS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/comprod"/>
  70. <submission id="TRLBS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
  71. </model>
  72. <script type="javascript">
  73. <![CDATA[
  74. //초기화
  75. function fSetInit() {
  76. var toDay = getCurrentDate();
  77. model.setValue("/root/hidden/usdd", toDay);
  78. var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(+1);
  79. model.setValue("/root/hidden/uedd", mDate.getDateFormat("YYYYMMDD"));
  80. model.setValue("/root/hidden/refflag", "1");
  81. model.setValue("/root/hidden/blodvol", "0");
  82. model.removeNodeset("/root/main/winlist");
  83. model.removeNodeset("/root/main/delivelist");
  84. fGetComProd();
  85. model.refresh();
  86. }
  87. //성분제제조회
  88. function fGetComProd() {
  89. model.removeNodeset("/root/hidden/comprod");
  90. model.setValue("/root/send/blodvol", model.getValue("/root/hidden/blodvol"));
  91. if(submit("TRLBS00101")) {
  92. // if(model.getValue("/root/hidden/blodvol") == "0") {
  93. // rdo_comprod.attribute("overflow")= "visible";
  94. // rdo_comprod.attribute("cols")= 20;
  95. // }else {
  96. // rdo_comprod.attribute("cols")= 20;
  97. // }
  98. rdo_comprod.refresh();
  99. }
  100. }
  101. //입출고 조회
  102. function fGetIO() {
  103. var usdd = ipt_usdd.currentText;
  104. var uedd = ipt_uedd.currentText;
  105. usdd = usdd.substr(0, 4);
  106. uedd = uedd.substr(0, 4);
  107. if(model.getValue("/root/hidden/comprod")==""){
  108. //if(model.getValue("/root/hidden/selectcd")==""){
  109. messageBox("성분제제를 " , "C002", ""); //선택하십시오!
  110. return;
  111. }
  112. if(model.getValue("/root/hidden/refflag") == "2") {
  113. model.setValue("/root/send/usdd", usdd);
  114. model.setValue("/root/send/uedd", uedd);
  115. } else {
  116. model.setValue("/root/send/usdd", model.getValue("/root/hidden/usdd"));
  117. model.setValue("/root/send/uedd", model.getValue("/root/hidden/uedd"));
  118. }
  119. model.setValue("/root/send/refflag", model.getValue("/root/hidden/refflag"));
  120. model.setValue("/root/send/comprod", model.getValue("/root/hidden/comprod")); //성분제제
  121. model.setValue("/root/send/blodvol", model.getValue("/root/hidden/blodvol")); //혈액용량
  122. model.makeValue("/root/send/ustm", model.getValue("/root/hidden/ustm"));
  123. model.makeValue("/root/send/uetm", model.getValue("/root/hidden/uetm"));
  124. //model.setValue("/root/send/comprod", model.getValue("/root/hidden/comprod[key="+rdo_comprod.value+"]/cd")); //성분제제
  125. // model.makeValue("/root/send/blodcomcd", model.getValue("/root/hidden/comprod[key="+rdo_comprod.value+"]/bcd"));
  126. // model.makeValue("/root/send/rkey", model.getValue("/root/hidden/selectcd"));
  127. submit("TRLBS00102");
  128. }
  129. //엑셀저장
  130. function fSaveExcel(pGridId) {
  131. var filename = window.fileDialog("save", ",", false, "Excel", "xls", "All Files(*.*)|*.*|Excel File(*.xls)|*.xls");
  132. if(filename != "") {
  133. pGridId.saveExcel(filename);
  134. }
  135. }
  136. // 출력
  137. function fExePrint(){
  138. model.removeNodeset("/root/hidden/report/list/winlist");
  139. model.removeNodeset("/root/hidden/report/list/delivelist");
  140. for(i=1; i<grd_win.rows; i++){
  141. copyNodeListType("/root/hidden/report/list", "/root/main/winlist["+i+"]", "arter");
  142. }
  143. for(j=1; j<grd_delive.rows; j++){
  144. copyNodeListType("/root/hidden/report/list", "/root/main/delivelist["+j+"]", "after");
  145. }
  146. model.makeValue("/root/hidden/report/fromdd", model.getValue("/root/hidden/usdd"));
  147. model.makeValue("/root/hidden/report/todd", model.getValue("/root/hidden/uedd"));
  148. model.makeValue("/root/hidden/report/blodcom", model.getValue("/root/hidden/comprod[cd="+rdo_comprod.value+"]/nm"));
  149. exeReportPreview("RPLBS00100", "XMLSTR", "/root/hidden/report");
  150. }
  151. ]]>
  152. </script>
  153. </xhtml:head>
  154. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  155. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
  156. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  157. <group id="group2" style="left:0px; top:10px; width:1195px; height:80px; vertical-align:top; ">
  158. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:80px; "/>
  159. <button id="btn_ref" class="btn1_letter2" style="left:1123px; top:19px; width:56px; height:22px; ">
  160. <caption>조회</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. fGetIO();
  164. ]]>
  165. </script>
  166. </button>
  167. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:53px; "/>
  168. <caption id="caption5" class="search_name" style="left:450px; top:9px; width:99px; height:17px; ">조회구분 :</caption>
  169. <select1 id="rdo_refflag" ref="/root/hidden/refflag" class="radio_search" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:540px; top:9px; width:115px; height:13px; border-style:none; ">
  170. <choices>
  171. <item>
  172. <label>월별</label>
  173. <value>1</value>
  174. </item>
  175. <item>
  176. <label>년별</label>
  177. <value>2</value>
  178. </item>
  179. </choices>
  180. </select1>
  181. <caption id="caption3" class="search_name" style="left:680px; top:9px; width:99px; height:17px; ">혈액용량 :</caption>
  182. <select1 id="rdo_blodvol" ref="/root/hidden/blodvol" class="radio_search" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:773px; top:9px; width:210px; height:13px; border-style:none; ">
  183. <choices>
  184. <item>
  185. <label>전체</label>
  186. <value>0</value>
  187. </item>
  188. <item>
  189. <label>320 ml</label>
  190. <value>1</value>
  191. </item>
  192. <item>
  193. <label>400 ml</label>
  194. <value>2</value>
  195. </item>
  196. </choices>
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. fGetComProd();
  200. ]]>
  201. </script>
  202. </select1>
  203. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">기준일자 :</caption>
  204. <input id="ipt_usdd" ref="/root/hidden/usdd" class="input_search" inputtype="date" style="left:105px; top:8px; width:90px; height:19px; text-align:center; "/>
  205. <caption id="caption8" class="search_no_b" style="left:238px; top:9px; width:15px; height:17px; vertical-align:middle; ">~</caption>
  206. <input id="ipt_uedd" ref="/root/hidden/uedd" class="input_search" inputtype="date" style="left:252px; top:8px; width:90px; height:19px; text-align:center; "/>
  207. <select1 id="rdo_comprod" ref="/root/hidden/comprod" class="radio_search" appearance="full" cellspacing="20" cols="10" itemheight="20" rows="2" style="left:105px; top:35px; width:995px; height:40px; ">
  208. <choices>
  209. <itemset nodeset="/root/hidden/comprod">
  210. <label ref="nm"/>
  211. <value ref="cd"/>
  212. </itemset>
  213. </choices>
  214. <script type="javascript" ev:event="xforms-value-changed">
  215. <![CDATA[
  216. //fGetIO();
  217. ]]>
  218. </script>
  219. <script type="javascript" ev:event="xforms-select">
  220. <![CDATA[
  221. fGetIO();
  222. ]]>
  223. </script>
  224. </select1>
  225. <caption id="caption7" class="search_name" style="left:15px; top:35px; width:87px; height:17px; ">성분제제 :</caption>
  226. <input id="input1" ref="/root/hidden/ustm" class="input_search" disabled="false" format="hh:nn" style="left:194px; top:8px; width:40px; height:19px; text-align:center; "/>
  227. <input id="input2" ref="/root/hidden/uetm" class="input_search" disabled="false" format="hh:nn" style="left:341px; top:8px; width:40px; height:19px; text-align:center; "/>
  228. </group>
  229. <caption id="caption1" class="tit_2" style="left:5px; top:95px; width:145px; height:13px; ">입고 조회</caption>
  230. <datagrid id="grd_win" nodeset="/root/main/winlist" caption="일자^A^B^O^AB^계" colsep="^" colwidth="100, 80, 80, 80, 80, 100" dataheight="23" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:115px; width:595px; height:624px; text-align:center; ">
  231. <col ref="dt" format="yyyy-mm-dd"/>
  232. <col ref="a"/>
  233. <col ref="b"/>
  234. <col ref="o"/>
  235. <col ref="ab"/>
  236. <col ref="sum"/>
  237. </datagrid>
  238. <line id="line1" class="line_1" style="x1:0px; y1:110px; x2:595px; y2:110px; "/>
  239. <button id="btn_excel" class="btn2_letter2" style="left:1150px; top:89px; width:42px; height:19px; ">
  240. <caption>엑셀</caption>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. fSaveExcel(grd_delive);
  244. ]]>
  245. </script>
  246. </button>
  247. <datagrid id="grd_delive" nodeset="/root/main/delivelist" caption="일자^A^B^O^AB^계" colsep="^" colwidth="100, 80, 80, 80, 80, 100" dataheight="23" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:600px; top:115px; width:595px; height:624px; text-align:center; ">
  248. <col ref="dt" format="yyyy-mm-dd"/>
  249. <col ref="a"/>
  250. <col ref="b"/>
  251. <col ref="o"/>
  252. <col ref="ab"/>
  253. <col ref="sum"/>
  254. </datagrid>
  255. <caption id="caption4" class="tit_2" style="left:605px; top:95px; width:145px; height:13px; ">출고 조회</caption>
  256. <line id="line2" class="line_1" style="x1:600px; y1:110px; x2:1195px; y2:110px; "/>
  257. <caption id="caption9" style="left:92px; top:94px; width:100px; height:15px; ">(입고일 기준)</caption>
  258. <caption id="caption10" style="left:691px; top:94px; width:112px; height:15px; ">(준비일 기준)</caption>
  259. <button id="button1" class="btn2_letter2" style="left:550px; top:90px; width:42px; height:19px; ">
  260. <caption>엑셀</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. fSaveExcel(grd_win);
  264. ]]>
  265. </script>
  266. </button>
  267. <caption id="caption11" style="left:1055px; top:91px; width:85px; height:20px; ">* 실시간 통계</caption>
  268. </group>
  269. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  270. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  271. <caption>초기화</caption>
  272. <script type="javascript" ev:event="onclick">
  273. <![CDATA[
  274. fSetInit();
  275. ]]>
  276. </script>
  277. </button>
  278. <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  279. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:96px; height:22px; ">
  280. <caption>출력</caption>
  281. <script type="javascript" ev:event="DOMActivate">
  282. <![CDATA[
  283. fExePrint();
  284. ]]>
  285. </script>
  286. </button>
  287. </group>
  288. <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
  289. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">성분제제별 입출고 조회</caption>
  290. </group>
  291. </xhtml:body>
  292. </xhtml:html>