SMRSG0620111back_물품불출집계 부서별 월대비.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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. <deptlist/>
  11. </main>
  12. <send>
  13. <instcd/>
  14. <stocyy/>
  15. <deptcd/>
  16. <goodcd/>
  17. <goodnm/>
  18. <shwflag/>
  19. <goodflag/>
  20. </send>
  21. <init>
  22. <shwflag>
  23. <label>부 서 별</label>
  24. <value>1</value>
  25. <label>품 목 별</label>
  26. <value>2</value>
  27. </shwflag>
  28. <radiodept>
  29. <label>외래</label>
  30. <value>1</value>
  31. <label>병동</label>
  32. <value>2</value>
  33. <label>OR</label>
  34. <value>3</value>
  35. <label>ER</label>
  36. <value>4</value>
  37. <label>기타</label>
  38. <value>5</value>
  39. <label>전체</label>
  40. <value/>
  41. </radiodept>
  42. </init>
  43. <temp/>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. //화면 Control을 초기화한다
  49. fInitialize();
  50. ]]>
  51. </script>
  52. <submission id="TRRSG06201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/deptlist"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  58. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  59. <script type="javascript">
  60. <![CDATA[
  61. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  62. function fInitialize()
  63. {
  64. model.resetInstanceNode("/root/send");
  65. misfGridInit(grd_deptlist);
  66. misfComboComCdListMulti("Z0007", "cmb_instcd"); //기관코드
  67. model.refresh();
  68. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  69. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= T) => (goodflag= TM)
  70. model.setValue(ipt_goodflag.attribute("ref"), "TM");
  71. var sBaseDate = getCurrentDate();
  72. sBaseDate = sBaseDate.substr(0, 4);
  73. model.setValue("/root/send/stocyy", sBaseDate);
  74. rdo_shwflag.select(0);
  75. fGridSetting();
  76. misfMsterDetailSet(grd_deptlist,null, "TRRSG06201" ,"Y");
  77. btn_search.dispatch("DOMActivate");
  78. model.refresh();
  79. }
  80. // function fsearch()
  81. // {
  82. // //misfMsterDetailRetrieve();
  83. // }
  84. function fGridSetting()
  85. {
  86. for(licol = 0; licol < grd_deptlist.cols ; licol++)
  87. {
  88. if(grd_deptlist.colRef("deptnm") != licol) grd_deptlist.mergecol(licol) = false;
  89. }
  90. grd_deptlist.mergecells = "bycol";
  91. }
  92. ]]>
  93. </script>
  94. </xhtml:head>
  95. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  96. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  97. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:231px; height:14px; ">CSR 물품 불출 집계(부서별 월대비)</caption>
  98. </group>
  99. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  100. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:61px; vertical-align:top; ">
  101. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  102. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:99px; height:17px; ">기관코드 :</caption>
  103. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" appearance="minimal" style="left:100px; top:8px; width:135px; height:19px; ">
  104. <choices>
  105. <itemset>
  106. <label/>
  107. <value/>
  108. </itemset>
  109. </choices>
  110. </select1>
  111. <input id="ipt_baseyy" ref="/root/send/stocyy" class="input_default" inputtype="date" format="yyyy" style="left:475px; top:8px; width:125px; height:19px; ">
  112. <script type="javascript" ev:event="DOMActivate">
  113. <![CDATA[
  114. btn_search.dispatch("DOMActivate");
  115. ]]>
  116. </script>
  117. </input>
  118. <caption id="cap_baseyy" class="search_name" style="left:390px; top:9px; width:90px; height:17px; ">조회년도 :</caption>
  119. <caption id="cap_eqmtcd" class="search_name" style="left:389px; top:36px; width:86px; height:17px; ">물품코드 :</caption>
  120. <input id="ipt_eqmtcd" ref="/root/send/goodcd" class="input_default" style="left:474px; top:35px; width:125px; height:19px; ">
  121. <script type="javascript" ev:event="xforms-value-changed">
  122. <![CDATA[
  123. if(ipt_eqmtcd.value.length == 0)
  124. ipt_eqmtnm.value = "";
  125. else
  126. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
  127. "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_eqmtcd.attribute("ref")) ,"","goodcd,goodnm",
  128. ipt_eqmtcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  129. model.refresh();
  130. ]]>
  131. </script>
  132. </input>
  133. <button id="btn_eqmtcd" class="icon_search" style="left:604px; top:37px; width:16px; height:16px; ">
  134. <caption/>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. rszfOpenPopUpListByWndName(ipt_eqmtcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  138. btn_search.dispatch("DOMActivate");
  139. model.refresh();
  140. ]]>
  141. </script>
  142. </button>
  143. <input id="ipt_eqmtnm" ref="/root/send/goodnm" class="input_fix" appearance="input" style="left:624px; top:35px; width:399px; height:19px; ">
  144. <script type="javascript" ev:event="xforms-value-changed">
  145. <![CDATA[
  146. if(ipt_eqmtnm.value.length == 0)
  147. ipt_eqmtcd.value = "";
  148. else
  149. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
  150. "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_eqmtnm.attribute("ref")) ,"","goodcd,goodnm",
  151. ipt_eqmtnm,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  152. model.refresh();
  153. ]]>
  154. </script>
  155. </input>
  156. <line id="line30" class="line_4" style="x1:1110px; y1:8px; x2:1110px; y2:51px; "/>
  157. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:19px; width:56px; height:22px; ">
  158. <caption>조회</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. misfMsterDetailRetrieve();
  162. // model.refresh();
  163. ]]>
  164. </script>
  165. </button>
  166. <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:848px; top:10px; width:130px; height:19px; "/>
  167. <caption id="cap_shwflag" class="search_name" style="left:623px; top:10px; width:89px; height:17px; ">출력구분 :</caption>
  168. <select1 id="rdo_shwflag" ref="/root/send/shwflag" overflow="visible" appearance="full" cols="2" style="left:708px; top:10px; width:135px; height:20px; border-style:none; ">
  169. <choices>
  170. <itemset nodeset="/root/init/shwflag">
  171. <label ref="label"/>
  172. <value ref="value"/>
  173. </itemset>
  174. </choices>
  175. <script type="javascript" ev:event="xforms-value-changed">
  176. <![CDATA[
  177. if(rdo_shwflag.selectedIndex == 0)
  178. {
  179. grd_deptlist.colHidden(2) = false;
  180. grd_deptlist.colWidth(4) = 215;
  181. rdo_dept.disabled = false;
  182. ipt_eqmtcd.disabled = true;
  183. ipt_eqmtnm.disabled = true;
  184. ipt_eqmtcd.value = "";
  185. ipt_eqmtnm.value = "";
  186. btn_eqmtcd.disabled = true;
  187. btn_search.dispatch("DOMActivate");
  188. }
  189. else if(rdo_shwflag.selectedIndex == 1)
  190. {
  191. grd_deptlist.colHidden(2) = true;
  192. grd_deptlist.colWidth(4) = grd_deptlist.colWidth(4) + 67;
  193. rdo_dept.disabled = true;
  194. rdo_dept.value = "";
  195. ipt_eqmtcd.disabled = false;
  196. ipt_eqmtnm.disabled = false;
  197. btn_eqmtcd.disabled = false;
  198. btn_search.dispatch("DOMActivate");
  199. }
  200. ]]>
  201. </script>
  202. </select1>
  203. <select1 id="rdo_dept" ref="/root/send/deptcd" overflow="visible" appearance="full" cols="6" style="left:100px; top:35px; width:250px; height:15px; background-color:transparent; border-style:none; ">
  204. <choices>
  205. <itemset nodeset="/root/init/radiodept">
  206. <label ref="label"/>
  207. <value ref="value"/>
  208. </itemset>
  209. </choices>
  210. <script type="javascript" ev:event="xforms-value-changed">
  211. <![CDATA[
  212. btn_search.dispatch("DOMActivate");
  213. ]]>
  214. </script>
  215. </select1>
  216. <caption id="cap_dept" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">불출부서 :</caption>
  217. </group>
  218. <caption id="caption13" class="tit_2" style="left:5px; top:80px; width:157px; height:13px; ">CSR 월말 불출 집계</caption>
  219. <line id="line2" class="line_1" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/>
  220. <datagrid id="grd_deptlist" nodeset="/root/main/deptlist" caption="부서코드^부서명^물품코드^품명^단위^기준량^1^2^3^4^5^6^7^8^9^10^11^12^합계" colsep="^" colwidth="74, 67, 75, 215, 50, 44, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:100px; width:1195px; height:585px; ">
  221. <col ref="deptcd" visibility="hidden"/>
  222. <col ref="deptnm"/>
  223. <col ref="goodcd"/>
  224. <col ref="goodnm"/>
  225. <col ref="deliveunit"/>
  226. <col ref="baseqty" style="text-align:right; "/>
  227. <col ref="jan" format="#,###" style="text-align:right; "/>
  228. <col ref="feb" format="#,###" style="text-align:right; "/>
  229. <col ref="mar" format="#,###" style="text-align:right; "/>
  230. <col ref="apr" format="#,###" style="text-align:right; "/>
  231. <col ref="may" format="#,###" style="text-align:right; "/>
  232. <col ref="jun" format="#,###" style="text-align:right; "/>
  233. <col ref="jul" format="#,###" style="text-align:right; "/>
  234. <col ref="aug" format="#,###" style="text-align:right; "/>
  235. <col ref="sep" format="#,###" style="text-align:right; "/>
  236. <col ref="oct" format="#,###" style="text-align:right; "/>
  237. <col ref="nov" format="#,###" style="text-align:right; "/>
  238. <col ref="dec" format="#,###" style="text-align:right; "/>
  239. <col ref="total" format="#,###" style="text-align:right; "/>
  240. <script type="javascript" ev:event="onaftersort">
  241. <![CDATA[
  242. grd_deptlist.gridToInstance();
  243. ]]>
  244. </script>
  245. </datagrid>
  246. <caption id="caption2" class="tit_2" visibility="hidden" style="left:230px; top:240px; width:542px; height:13px; ">그리드 컬럼 옮기지 마시요... colid를 하드코딩한 부분이 있오.</caption>
  247. </group>
  248. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  249. <line id="line19" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
  250. <line id="line22" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  251. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  252. <caption>초기화</caption>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. fInitialize();
  256. ]]>
  257. </script>
  258. </button>
  259. <button id="btn_prnt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  260. <caption>출력</caption>
  261. </button>
  262. </group>
  263. </xhtml:body>
  264. </xhtml:html>