SMMNG02200_린넨보유현황.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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. <possinfo>
  11. <possstatelist>
  12. <depthngnm/>
  13. <remark1/>
  14. <fstrgstrid/>
  15. <a001/>
  16. <a002/>
  17. <a003/>
  18. <a004/>
  19. <a005/>
  20. <a006/>
  21. <a007/>
  22. <a008/>
  23. <a009/>
  24. <a010/>
  25. <a011/>
  26. <a012/>
  27. <a013/>
  28. <a014/>
  29. <a015/>
  30. <a016/>
  31. <a017/>
  32. <a018/>
  33. <a019/>
  34. <a020/>
  35. <a021/>
  36. <a022/>
  37. <a023/>
  38. <a024/>
  39. <a025/>
  40. <a026/>
  41. <a027/>
  42. <a028/>
  43. <a029/>
  44. <a030/>
  45. <a031/>
  46. <a032/>
  47. <a033/>
  48. <a034/>
  49. <a035/>
  50. <a036/>
  51. <a037/>
  52. <a038/>
  53. <a039/>
  54. <a040/>
  55. <possyymm/>
  56. </possstatelist>
  57. <csrdeptlist/>
  58. </possinfo>
  59. <possrexlist>
  60. <depthngnm/>
  61. <depthngcd/>
  62. <possyymm/>
  63. <goodscd/>
  64. <cdnm/>
  65. <posscnt/>
  66. <remark1/>
  67. <fstrgstrid/>
  68. <fstrgstrnm/>
  69. </possrexlist>
  70. <cond>
  71. <possyymm/>
  72. <deptcd/>
  73. <csreqdeptcd/>
  74. </cond>
  75. <csrdeptlist/>
  76. <possmenucnt>
  77. <cnt/>
  78. </possmenucnt>
  79. <possmenulist>
  80. <cdnm/>
  81. <goodscd/>
  82. </possmenulist>
  83. <csrreqdeptcd/>
  84. </main>
  85. <send>
  86. <possyymm/>
  87. <csreqdeptcd/>
  88. <instcdnm/>
  89. <report>
  90. <possrexlist/>
  91. </report>
  92. <gubuncd>01</gubuncd>
  93. <instcd/>
  94. <possyn>Y</possyn>
  95. </send>
  96. <init>
  97. <csrreqdeptlist/>
  98. </init>
  99. </root>
  100. </instance>
  101. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript" ev:event="xforms-ready">
  105. <![CDATA[
  106. fInitialize();
  107. ]]>
  108. </script>
  109. <submission id="TRMNG02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/possinfo"/>
  110. <submission id="TRMNG02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/possmenucnt"/>
  111. <submission id="TRMNG02203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/possmenulist"/>
  112. <submission id="TRMNG02204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/possrexlist"/>
  113. <submission id="TRMNG00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/instcd" resultref="/root/init/csrreqdeptlist"/>
  114. </model>
  115. <script type="javascript">
  116. <![CDATA[
  117. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  118. function fInitialize()
  119. {
  120. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관명
  121. model.setValue(ipt_possyymm.attribute("ref"), getCurrentDate().substr(0,6)); //년월
  122. model.setValue(cmb_csrreqdeptcd.attribute("ref"), 'all'); //기본값 전체부서
  123. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); //기관코드
  124. model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
  125. model.setValue("/root/send/possyn", model.getValue("/root/send/possyn" )); //보유현황사용유무
  126. ipt_possyymm.refresh();
  127. submit("TRMNG00401"); // 부서구분 조회
  128. addComboItem( "cmb_csrreqdeptcd", "전체", "all", "above");
  129. submit("TRMNG02202");
  130. submit("TRMNG02203");
  131. fSearch();
  132. }
  133. function fSearch() {
  134. model.setValue("/root/send/possyymm", model.getValue(ipt_possyymm.attribute("ref")));
  135. model.setValue("/root/send/csreqdeptcd", model.getValue(cmb_csrreqdeptcd.attribute("ref")));
  136. model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
  137. submit("TRMNG02201");
  138. fColLqidtys();
  139. }
  140. function fColLqidtys() {
  141. var cnt = model.getValue("/root/main/possmenucnt/posscnt/cnt");
  142. if(Number(cnt) > 0 ){
  143. var hngnm;
  144. var valuechk;
  145. for(var i = 1 ; i <= cnt ; i++) {
  146. hngnm = model.getValue("/root/main/possmenulist/possmenulist["+ i +"]/cdnm");
  147. valuechk = model.getValue("/root/main/possmenulist/possmenulist["+ i +"]/goodscd");
  148. var coltmp = Number(grd_possstatelist.colRef(valuechk.toLowerCase())); //같은이름의컬럼의 번호를 가져온다
  149. grd_possstatelist.colhidden(coltmp) = false; //조회된 컬럼 갯수만큼 그리드의 필드를 보여줌
  150. grd_possstatelist.colwidth(coltmp) = 50; // 컬럼사이즈 fix
  151. //그리드의 타이틀필드값에 상세내역의 타이틀을 세팅
  152. grd_possstatelist.valuematrix(0, coltmp) = hngnm;
  153. grd_possstatelist.valuematrix(1, coltmp) = hngnm;
  154. }
  155. grd_possstatelist.refresh();
  156. }
  157. }
  158. function fPrintRex() {
  159. submit("TRMNG02204");
  160. model.makeNode("/root/send/report/possrexlist");
  161. copyNodesetType("/root/send/report/possrexlist", "/root/main/possrexlist");
  162. //copyNodesetType("/root/send/report/possmenulist", "/root/main/possmenulist");
  163. exeReportPreview("RPMNG02200", "XMLSTR", "/root/send/report/possrexlist");
  164. }
  165. ]]>
  166. </script>
  167. </xhtml:head>
  168. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  169. <group id="grp_tle" style="left:0px; top:0px; width:580px; height:13px; ">
  170. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">세탁물보유현황</caption>
  171. </group>
  172. <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:1175px; height:665px; ">
  173. <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:121px; height:14px; ">세탁물보유현황</caption>
  174. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1175px; y2:25px; "/>
  175. <col ref="posscnt" type="input"/>
  176. <col ref="posscnt" type="input"/>
  177. <datagrid id="grd_possstatelist" nodeset="/root/main/possinfo/possstatelist" caption="병동명^caption1^caption1^caption1^caption1|병동명^안전재고^청구^불출^실재고" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:31px; width:1175px; height:624px; ">
  178. <col ref="depthngnm" visibility="visible"/>
  179. <col ref="a001" visibility="hidden"/>
  180. <col ref="a002" visibility="hidden"/>
  181. <col ref="a003" visibility="hidden"/>
  182. <col ref="a004" visibility="hidden"/>
  183. <col ref="a005" visibility="hidden"/>
  184. <col ref="a006" visibility="hidden"/>
  185. <col ref="a007" visibility="hidden"/>
  186. <col ref="a008" visibility="hidden"/>
  187. <col ref="a009" visibility="hidden"/>
  188. <col ref="a010" visibility="hidden"/>
  189. <col ref="a011" visibility="hidden"/>
  190. <col ref="a012" visibility="hidden"/>
  191. <col ref="a013" visibility="hidden"/>
  192. <col ref="a014" visibility="hidden"/>
  193. <col ref="a015" visibility="hidden"/>
  194. <col ref="a016" visibility="hidden"/>
  195. <col ref="a017" visibility="hidden"/>
  196. <col ref="a018" visibility="hidden"/>
  197. <col ref="a019" visibility="hidden"/>
  198. <col ref="a020" visibility="hidden"/>
  199. <col ref="a021" visibility="hidden"/>
  200. <col ref="a022" visibility="hidden"/>
  201. <col ref="a023" visibility="hidden"/>
  202. <col ref="a024" visibility="hidden"/>
  203. <col ref="a025" visibility="hidden"/>
  204. <col ref="a026" visibility="hidden"/>
  205. <col ref="a027" visibility="hidden"/>
  206. <col ref="a028" visibility="hidden"/>
  207. <col ref="a029" visibility="hidden"/>
  208. <col ref="a030" visibility="hidden"/>
  209. <col ref="a031" visibility="hidden"/>
  210. <col ref="a032" visibility="hidden"/>
  211. <col ref="a033" visibility="hidden"/>
  212. <col ref="a034" visibility="hidden"/>
  213. <col ref="a035" visibility="hidden"/>
  214. <col ref="a036" visibility="hidden"/>
  215. <col ref="a037" visibility="hidden"/>
  216. <col ref="a038" visibility="hidden"/>
  217. <col ref="a039" visibility="hidden"/>
  218. <col ref="a040" visibility="hidden"/>
  219. <col ref="remark1" visibility="visible"/>
  220. <col ref="fstrgstrnm" visibility="visible"/>
  221. <col ref="fstrgstrid" visibility="hidden"/>
  222. </datagrid>
  223. <select1 id="rdo_gubuncd" ref="/root/send/gubuncd" disabled="true" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:220px; top:5px; width:390px; height:15px; border-style:none; ">
  224. <choices>
  225. <item>
  226. <label>물품마스터</label>
  227. <value>01</value>
  228. </item>
  229. <item>
  230. <label>창고마스터</label>
  231. <value>02</value>
  232. </item>
  233. </choices>
  234. </select1>
  235. </group>
  236. <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>
  237. <caption id="cap_csrreqdeptcd" class="search_name" style="left:300px; top:30px; width:67px; height:17px; ">년월:</caption>
  238. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:999px; top:27px; width:56px; height:22px; ">
  239. <caption>조회</caption>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. fSearch();
  243. ]]>
  244. </script>
  245. </button>
  246. <input id="ipt_possyymm" ref="/root/main/cond/possyymm" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm" style="left:355px; top:30px; width:68px; height:19px; ">
  247. <script type="javascript" ev:event="xforms-value-changed">
  248. <![CDATA[
  249. ]]>
  250. </script>
  251. </input>
  252. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:30px; width:175px; height:19px; text-align:center; "/>
  253. <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
  254. <line id="line2" class="line_4" style="x1:993px; y1:25px; x2:993px; y2:50px; "/>
  255. <caption id="caption1" class="search_name" style="left:440px; top:30px; width:85px; height:17px; ">부서구분:</caption>
  256. <button id="btn_prt" class="btn1_letter2" style="left:1114px; top:27px; width:56px; height:22px; ">
  257. <caption>출력</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. fPrintRex();
  261. ]]>
  262. </script>
  263. </button>
  264. <button id="button3" class="btn1_letter2" style="left:1057px; top:27px; width:56px; height:22px; ">
  265. <caption>엑셀</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. var fileName = window.fileDialog("save", ",", false, "보유현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  269. if (fileName != "")
  270. {
  271. grd_possstatelist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  272. }
  273. ]]>
  274. </script>
  275. </button>
  276. <select1 id="cmb_csrreqdeptcd" ref="/root/main/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:525px; top:30px; width:95px; height:19px; ">
  277. <choices>
  278. <itemset nodeset="/root/init/csrreqdeptlist">
  279. <label ref="csrreqdeptnm"/>
  280. <value ref="csrreqdeptcd"/>
  281. </itemset>
  282. </choices>
  283. <script type="javascript" ev:event="xforms-value-changed">
  284. <![CDATA[
  285. fSearch();
  286. ]]>
  287. </script>
  288. </select1>
  289. </xhtml:body>
  290. </xhtml:html>