SMMNG02400_세탁청구현황.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <porqinfo>
  11. <porqstatelist>
  12. <depthngnm/>
  13. <remark1/>
  14. <fstrgstrid/>
  15. <fstrgstrnm/>
  16. <a001/>
  17. <a002/>
  18. <a003/>
  19. <a004/>
  20. <a005/>
  21. <a006/>
  22. <a007/>
  23. <a008/>
  24. <a009/>
  25. <a010/>
  26. <a011/>
  27. <a012/>
  28. <a013/>
  29. <a014/>
  30. <a015/>
  31. <a016/>
  32. <a017/>
  33. <a018/>
  34. <a019/>
  35. <a020/>
  36. <a021/>
  37. <a022/>
  38. <a023/>
  39. <a024/>
  40. <a025/>
  41. <a026/>
  42. <a027/>
  43. <a028/>
  44. <a029/>
  45. <a030/>
  46. <a031/>
  47. <a032/>
  48. <a033/>
  49. <a034/>
  50. <a035/>
  51. <a036/>
  52. <a037/>
  53. <a038/>
  54. <a039/>
  55. <a040/>
  56. <reqdd/>
  57. </porqstatelist>
  58. <csrdeptlist/>
  59. <csreqdeptcd/>
  60. </porqinfo>
  61. <porqrexlist>
  62. <depthngnm/>
  63. <depthngcd/>
  64. <possyymm/>
  65. <goodscd/>
  66. <cdnm/>
  67. <posscnt/>
  68. <remark1/>
  69. <fstrgstrid/>
  70. </porqrexlist>
  71. <cond>
  72. <reqdd/>
  73. <deptcd/>
  74. <csreqdeptcd>03</csreqdeptcd>
  75. <selyymmdd>DD</selyymmdd>
  76. <seloutreq>OUT</seloutreq>
  77. </cond>
  78. <csrdeptlist/>
  79. <possmenucnt>
  80. <cnt/>
  81. </possmenucnt>
  82. <possmenulist>
  83. <cdnm/>
  84. <goodscd/>
  85. </possmenulist>
  86. </main>
  87. <send>
  88. <reqdd/>
  89. <csreqdeptcd/>
  90. <instcdnm/>
  91. <report>
  92. <porqrexlist/>
  93. </report>
  94. <flag/>
  95. <gubuncd>01</gubuncd>
  96. <instcd/>
  97. <porqyn>Y</porqyn>
  98. </send>
  99. <init>
  100. <csrreqdeptlist/>
  101. </init>
  102. </root>
  103. </instance>
  104. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  107. <script type="javascript" ev:event="xforms-ready">
  108. <![CDATA[
  109. fInitialize();
  110. ]]>
  111. </script>
  112. <submission id="TRMNG02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/possmenucnt"/>
  113. <submission id="TRMNG02203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/possmenulist"/>
  114. <submission id="TRMNG02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/porqinfo"/>
  115. <submission id="TRMNG02402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/porqrexlist"/>
  116. <submission id="TRMNG00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/instcd" resultref="/root/init/csrreqdeptlist"/>
  117. </model>
  118. <script type="javascript">
  119. <![CDATA[
  120. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  121. function fInitialize()
  122. {
  123. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
  124. model.setValue(ipt_reqdd.attribute("ref"), getCurrentDate()); //년월일
  125. model.setValue(cmb_csrreqdeptcd.attribute("ref"), 'all'); //기본값 전체부서
  126. model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
  127. model.setValue("/root/send/porqyn", model.getValue("/root/send/porqyn" )); //보유현황사용유무
  128. rdo_selyymmdd.refresh();
  129. ipt_reqdd.refresh();
  130. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); //기관코드
  131. submit("TRMNG00401"); // 부서구분 조회
  132. addComboItem( "cmb_csrreqdeptcd", "전체", "all", "above");
  133. submit("TRMNG02202");
  134. submit("TRMNG02203");
  135. fSearch();
  136. }
  137. function fSearch() {
  138. var reqdd = model.getValue(ipt_reqdd.attribute("ref"));
  139. if (model.getValue(rdo_selyymmdd.attribute("ref")) == 'MM' ) {
  140. reqdd = reqdd.substr(0,6) ;
  141. } else if (model.getValue(rdo_selyymmdd.attribute("ref")) == 'YY' ){
  142. reqdd = reqdd.substr(0,4);
  143. }
  144. model.setValue("/root/send/reqdd", reqdd );
  145. model.setValue("/root/send/flag", model.getValue(rdo_seloutreq.attribute("ref")) );
  146. submit("TRMNG02401");
  147. fColLqidtys();
  148. }
  149. function fColLqidtys() {
  150. var cnt = model.getValue("/root/main/possmenucnt/posscnt/cnt");
  151. if(Number(cnt) > 0 ){
  152. var hngnm;
  153. var valuechk;
  154. for(var i = 1 ; i <= cnt ; i++) {
  155. hngnm = model.getValue("/root/main/possmenulist/possmenulist["+ i +"]/cdnm");
  156. valuechk = model.getValue("/root/main/possmenulist/possmenulist["+ i +"]/goodscd");
  157. var coltmp = Number(grd_porqstatelist.colRef(valuechk.toLowerCase()));
  158. grd_porqstatelist.colhidden(coltmp) = false; //조회된 컬럼 갯수만큼 그리드의 필드를 보여줌
  159. grd_porqstatelist.colwidth(coltmp) = 50; // 컬럼사이즈 fix
  160. //그리드의 타이틀필드값에 상세내역의 타이틀을 세팅
  161. grd_porqstatelist.valuematrix(0, coltmp) = hngnm;
  162. grd_porqstatelist.valuematrix(1, coltmp) = hngnm;
  163. }
  164. grd_porqstatelist.refresh();
  165. }
  166. }
  167. function fPrintRex() {
  168. model.setValue("/root/send/flag", model.getValue(rdo_seloutreq.attribute("ref")) );
  169. submit("TRMNG02402");
  170. model.makeNode("/root/send/report/porqrexlist");
  171. copyNodesetType("/root/send/report/porqrexlist", "/root/main/porqrexlist");
  172. exeReportPreview("RPMNG02400", "XMLSTR", "/root/send/report/porqrexlist");
  173. }
  174. ]]>
  175. </script>
  176. </xhtml:head>
  177. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  178. <group id="grp_tle" style="left:0px; top:0px; width:580px; height:13px; ">
  179. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">청구현황</caption>
  180. </group>
  181. <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:1175px; height:660px; ">
  182. <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:121px; height:14px; ">청구현황</caption>
  183. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1170px; y2:25px; "/>
  184. <col ref="posscnt" type="input"/>
  185. <col ref="posscnt" type="input"/>
  186. <datagrid id="grd_porqstatelist" nodeset="/root/main/porqinfo/porqstatelist" caption="병동명^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17^caption18^caption19^caption20^caption21^caption22^caption23^caption24^caption25^caption26^caption27^caption28^caption29^caption30^caption31^caption32^caption33^caption34^caption35^caption36^caption37^caption38^caption39^caption40^비고^관리자|병동명^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17^caption18^caption19^caption20^caption21^caption22^caption23^caption24^caption25^caption26^caption27^caption28^caption29^caption30^caption31^caption32^caption33^caption34^caption35^caption36^caption37^caption38^caption39^caption40^비고^관리자" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1170px; height:610px; ">
  187. <col ref="depthngnm" visibility="visible"/>
  188. <col ref="a001" visibility="hidden"/>
  189. <col ref="a002" visibility="hidden"/>
  190. <col ref="a003" visibility="hidden"/>
  191. <col ref="a004" visibility="hidden"/>
  192. <col ref="a005" visibility="hidden"/>
  193. <col ref="a006" visibility="hidden"/>
  194. <col ref="a007" visibility="hidden"/>
  195. <col ref="a008" visibility="hidden"/>
  196. <col ref="a009" visibility="hidden"/>
  197. <col ref="a010" visibility="hidden"/>
  198. <col ref="a011" visibility="hidden"/>
  199. <col ref="a012" visibility="hidden"/>
  200. <col ref="a013" visibility="hidden"/>
  201. <col ref="a014" visibility="hidden"/>
  202. <col ref="a015" visibility="hidden"/>
  203. <col ref="a016" visibility="hidden"/>
  204. <col ref="a017" visibility="hidden"/>
  205. <col ref="a018" visibility="hidden"/>
  206. <col ref="a019" visibility="hidden"/>
  207. <col ref="a020" visibility="hidden"/>
  208. <col ref="a021" visibility="hidden"/>
  209. <col ref="a022" visibility="hidden"/>
  210. <col ref="a023" visibility="hidden"/>
  211. <col ref="a024" visibility="hidden"/>
  212. <col ref="a025" visibility="hidden"/>
  213. <col ref="a026" visibility="hidden"/>
  214. <col ref="a027" visibility="hidden"/>
  215. <col ref="a028" visibility="hidden"/>
  216. <col ref="a029" visibility="hidden"/>
  217. <col ref="a030" visibility="hidden"/>
  218. <col ref="a031" visibility="hidden"/>
  219. <col ref="a032" visibility="hidden"/>
  220. <col ref="a033" visibility="hidden"/>
  221. <col ref="a034" visibility="hidden"/>
  222. <col ref="a035" visibility="hidden"/>
  223. <col ref="a036" visibility="hidden"/>
  224. <col ref="a037" visibility="hidden"/>
  225. <col ref="a038" visibility="hidden"/>
  226. <col ref="a039" visibility="hidden"/>
  227. <col ref="a040" visibility="hidden"/>
  228. <col ref="remark1" visibility="visible"/>
  229. <col ref="fstrgstrnm" visibility="visible"/>
  230. <col ref="fstrgstrrid" visibility="hidden"/>
  231. </datagrid>
  232. <select1 id="rdo_gubuncd" ref="/root/send/gubuncd" disabled="true" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:220px; top:5px; width:390px; height:15px; border-style:none; ">
  233. <choices>
  234. <item>
  235. <label>물품마스터</label>
  236. <value>01</value>
  237. </item>
  238. <item>
  239. <label>창고마스터</label>
  240. <value>02</value>
  241. </item>
  242. </choices>
  243. </select1>
  244. </group>
  245. <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>
  246. <caption id="cap_csrreqdeptcd" class="search_name" style="left:279px; top:30px; width:67px; height:17px; ">년월:</caption>
  247. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1055px; top:27px; width:56px; height:22px; ">
  248. <caption>조회</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. fSearch();
  252. ]]>
  253. </script>
  254. </button>
  255. <input id="ipt_reqdd" ref="/root/main/cond/reqdd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:334px; top:30px; width:95px; height:19px; ">
  256. <script type="javascript" ev:event="xforms-value-changed">
  257. <![CDATA[
  258. fSearch();
  259. ]]>
  260. </script>
  261. </input>
  262. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:95px; top:30px; width:175px; height:19px; text-align:center; "/>
  263. <caption id="cap_instcd" class="search_name" style="left:5px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
  264. <line id="line2" class="line_4" style="x1:1050px; y1:26px; x2:1050px; y2:51px; "/>
  265. <caption id="caption1" class="search_name" style="left:437px; top:30px; width:85px; height:17px; ">병동:</caption>
  266. <button id="btn_outrex" class="btn4_letter2" style="left:1113px; top:62px; width:56px; height:22px; ">
  267. <caption>출력</caption>
  268. <script type="javascript" ev:event="DOMActivate">
  269. <![CDATA[
  270. fPrintRex();
  271. ]]>
  272. </script>
  273. </button>
  274. <select1 id="rdo_selyymmdd" ref="/root/main/cond/selyymmdd" overflow="visible" appearance="full" cols="3" style="left:678px; top:30px; width:139px; height:20px; border-style:none; ">
  275. <choices>
  276. <item>
  277. <label>일별</label>
  278. <value>DD</value>
  279. </item>
  280. <item>
  281. <label>월별</label>
  282. <value>MM</value>
  283. </item>
  284. <item>
  285. <label>년별</label>
  286. <value>YY</value>
  287. </item>
  288. </choices>
  289. <script type="javascript" ev:event="xforms-value-changed">
  290. <![CDATA[
  291. fSearch();
  292. ]]>
  293. </script>
  294. </select1>
  295. <button id="button3" class="btn1_letter2" style="left:1115px; top:27px; width:56px; height:22px; ">
  296. <caption>엑셀</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. var fileName = window.fileDialog("save", ",", false, "세탁물청구현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  300. if (fileName != "")
  301. {
  302. grd_porqstatelist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  303. }
  304. ]]>
  305. </script>
  306. </button>
  307. <caption id="caption2" class="search_name" style="left:598px; top:30px; width:85px; height:17px; ">일자구분:</caption>
  308. <select1 id="rdo_seloutreq" ref="/root/main/cond/seloutreq" overflow="visible" appearance="full" cols="3" style="left:900px; top:30px; width:110px; height:20px; border-style:none; ">
  309. <choices>
  310. <item>
  311. <label>불출량</label>
  312. <value>OUT</value>
  313. </item>
  314. <item>
  315. <label>요청량</label>
  316. <value>REQ</value>
  317. </item>
  318. </choices>
  319. <script type="javascript" ev:event="xforms-value-changed">
  320. <![CDATA[
  321. fSearch();
  322. ]]>
  323. </script>
  324. </select1>
  325. <caption id="caption3" class="search_name" style="left:820px; top:30px; width:85px; height:17px; ">출력구분:</caption>
  326. <select1 id="cmb_csrreqdeptcd" ref="/root/send/csreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:495px; top:30px; width:95px; height:19px; ">
  327. <choices>
  328. <itemset nodeset="/root/init/csrreqdeptlist">
  329. <label ref="csrreqdeptnm"/>
  330. <value ref="csrreqdeptcd"/>
  331. </itemset>
  332. </choices>
  333. <script type="javascript" ev:event="xforms-value-changed">
  334. <![CDATA[
  335. fSearch();
  336. ]]>
  337. </script>
  338. </select1>
  339. </xhtml:body>
  340. </xhtml:html>