SMRSG06100_물품불출집계(일계).xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  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. <send>
  10. <instcd/>
  11. <dept/>
  12. <day/>
  13. <goodflag/>
  14. <goodcd/>
  15. <goodnm/>
  16. <shwflag/>
  17. <instnm/>
  18. <reqflag/>
  19. </send>
  20. <main>
  21. <goodlist>
  22. <deptcd/>
  23. <deptnm/>
  24. <goodcd/>
  25. <goodnm/>
  26. <goodunit/>
  27. <num1/>
  28. <num2/>
  29. <num3/>
  30. <num4/>
  31. <num5/>
  32. <num6/>
  33. <num7/>
  34. <num8/>
  35. <num9/>
  36. <num10/>
  37. <num11/>
  38. <num12/>
  39. <num13/>
  40. <num14/>
  41. <num15/>
  42. <num16/>
  43. <num17/>
  44. <num18/>
  45. <num19/>
  46. <num20/>
  47. <num21/>
  48. <num22/>
  49. <num23/>
  50. <num24/>
  51. <num25/>
  52. <num26/>
  53. <num27/>
  54. <num28/>
  55. <num29/>
  56. <num30/>
  57. <num31/>
  58. <total/>
  59. </goodlist>
  60. </main>
  61. <init>
  62. <radiodept>
  63. <label>외래</label>
  64. <value>1</value>
  65. <label>병동</label>
  66. <value>2</value>
  67. <label>OR</label>
  68. <value>3</value>
  69. <label>ER</label>
  70. <value>4</value>
  71. <label>기타</label>
  72. <value>5</value>
  73. <label>전체</label>
  74. <value/>
  75. </radiodept>
  76. <shwflag>
  77. <label>부 서 별</label>
  78. <value>1</value>
  79. <label>품 목 별</label>
  80. <value>2</value>
  81. </shwflag>
  82. </init>
  83. <temp/>
  84. </root>
  85. </instance>
  86. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  89. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  90. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  92. <script type="javascript" ev:event="xforms-ready">
  93. <![CDATA[
  94. fInitialize();
  95. ]]>
  96. </script>
  97. <script type="javascript">
  98. <![CDATA[
  99. function fsearch()
  100. {
  101. ipt_day.value = ipt_day.value.substr(0,6);
  102. misfMsterDetailRetrieve();
  103. }
  104. function fInitialize()
  105. {
  106. misfGridInit(grd_goodlist);
  107. // misfComboComCdList("Z0007", cmb_instcd);
  108. // cmb_instcd.value = getUserInfo("dutplceinstcd");
  109. //기관코드, 명 설정.
  110. opt_instcd.value = getUserInfo("dutplceinstcd");
  111. opt_instnm.value = getUserInfo("dutplceinstnm");
  112. rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"5","S"); // '5' csr
  113. addComboItem( "cmb_reqflag", "전체", "", "above" );
  114. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= T) => (goodflag= TM)
  115. ipt_goodflag.value = "TM";
  116. ipt_day.value = getCurrentDate();
  117. grd_goodlist.frozenCols = grd_goodlist.colRef("goodunit");
  118. rdo_shwflag.select(0);
  119. fGridSetting();
  120. misfMsterDetailSet(grd_goodlist, null, "TRRSG06101", "N");
  121. // btn_search.dispatch("DOMActivate");
  122. }
  123. function fGridSetting()
  124. {
  125. for(licol = 0; licol < grd_goodlist.cols ; licol++)
  126. {
  127. if(grd_goodlist.colRef("deptnm") != licol) grd_goodlist.mergecol(licol) = false;
  128. }
  129. grd_goodlist.mergecells = "bycol";
  130. }
  131. ]]>
  132. </script>
  133. <submission id="TRRSG06101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/goodlist"/>
  134. </model>
  135. </xhtml:head>
  136. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  137. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  138. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:135px; height:14px; ">물품불출집계(일계)</caption>
  139. </group>
  140. <group id="grp_biz" scroll="auto" style="left:0px; top:37px; width:1195px; height:744px; ">
  141. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:61px; vertical-align:top; ">
  142. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  143. <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:99px; height:17px; ">기관코드 :</caption>
  144. <input id="ipt_day" ref="/root/send/day" class="input_default" inputtype="date" format="yyyy-mm" style="left:370px; top:10px; width:95px; height:19px; text-align:center; ">
  145. <script type="javascript" ev:event="xforms-value-changed">
  146. <![CDATA[
  147. fsearch();
  148. ]]>
  149. </script>
  150. </input>
  151. <caption id="cap_day" class="search_name" style="left:285px; top:10px; width:99px; height:17px; ">조회년월 :</caption>
  152. <caption id="cap_dept" class="search_name" style="left:285px; top:35px; width:86px; height:17px; ">불출부서 :</caption>
  153. <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_default" style="left:715px; top:35px; width:90px; height:19px; ">
  154. <script type="javascript" ev:event="xforms-value-changed">
  155. <![CDATA[
  156. if(ipt_goodcd.value.length == 0)
  157. ipt_goodnm.value = "";
  158. else
  159. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
  160. "goodcd," + model.getValue(opt_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) ,"","goodcd,goodnm",
  161. ipt_goodcd,"SPRSD00210","instcd,goodflag","opt_instcd,ipt_goodflag");
  162. model.refresh();
  163. ]]>
  164. </script>
  165. </input>
  166. <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_fix" disabled="true" appearance="input" style="left:829px; top:35px; width:221px; height:19px; ">
  167. <script type="javascript" ev:event="xforms-value-changed">
  168. <![CDATA[
  169. if(ipt_goodnm.value.length == 0)
  170. ipt_goodcd.value = "";
  171. else
  172. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
  173. "goodnm," + model.getValue(opt_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd,goodnm",
  174. ipt_goodcd,"SPRSD00210","instcd,goodflag","opt_instcd,ipt_goodflag");
  175. model.refresh();
  176. ]]>
  177. </script>
  178. </input>
  179. <caption id="cap_goodcd" class="search_name" style="left:630px; top:35px; width:86px; height:17px; ">물품코드 :</caption>
  180. <line id="line30" class="line_4" style="x1:1110px; y1:9px; x2:1110px; y2:52px; "/>
  181. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:20px; width:56px; height:22px; ">
  182. <caption>조회</caption>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. fsearch();
  186. ]]>
  187. </script>
  188. </button>
  189. <select1 id="rdo_dept" ref="/root/send/dept" overflow="visible" appearance="full" cols="6" style="left:370px; top:35px; width:250px; height:15px; background-color:transparent; border-style:none; ">
  190. <choices>
  191. <itemset nodeset="/root/init/radiodept">
  192. <label ref="label"/>
  193. <value ref="value"/>
  194. </itemset>
  195. </choices>
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. fsearch();
  199. ]]>
  200. </script>
  201. </select1>
  202. <button id="btn_goodcd" class="icon_search" style="left:809px; top:37px; width:16px; height:16px; ">
  203. <caption/>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","opt_instcd,ipt_goodflag");
  207. model.refresh();
  208. ]]>
  209. </script>
  210. </button>
  211. <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:1075px; top:5px; width:25px; height:19px; "/>
  212. <select1 id="rdo_shwflag" ref="/root/send/shwflag" overflow="visible" appearance="full" cols="2" style="left:715px; top:10px; width:135px; height:20px; border-style:none; ">
  213. <choices>
  214. <itemset nodeset="/root/init/shwflag">
  215. <label ref="label"/>
  216. <value ref="value"/>
  217. </itemset>
  218. </choices>
  219. <script type="javascript" ev:event="xforms-value-changed">
  220. <![CDATA[
  221. if(rdo_shwflag.selectedIndex == 0)
  222. {
  223. grd_goodlist.colHidden(2) = false;
  224. grd_goodlist.colWidth(4) = 215;
  225. rdo_dept.disabled = false;
  226. ipt_goodcd.disabled = true;
  227. ipt_goodnm.disabled = true;
  228. ipt_goodcd.value = "";
  229. ipt_goodnm.value = "";
  230. btn_goodcd.disabled = true;
  231. fsearch();
  232. }
  233. else if(rdo_shwflag.selectedIndex == 1)
  234. {
  235. grd_goodlist.colHidden(2) = true;
  236. grd_goodlist.colWidth(4) = grd_goodlist.colWidth(4) + 67;
  237. rdo_dept.disabled = true;
  238. rdo_dept.value = "";
  239. ipt_goodcd.disabled = false;
  240. ipt_goodnm.disabled = false;
  241. btn_goodcd.disabled = false;
  242. fsearch();
  243. }
  244. ]]>
  245. </script>
  246. </select1>
  247. <caption id="cap_shwflag" class="search_name" style="left:630px; top:10px; width:89px; height:17px; ">출력구분 :</caption>
  248. <output id="opt_instcd" ref="/root/send/instcd" visibility="hidden" style="left:1050px; top:5px; width:25px; height:19px; "/>
  249. <output id="opt_instnm" ref="/root/send/instnm" class="output_fix" style="left:101px; top:10px; width:144px; height:19px; text-align:center; "/>
  250. <caption id="caption1" class="search_name" style="left:15px; top:34px; width:99px; height:17px; ">청구구분 :</caption>
  251. <select1 id="cmb_reqflag" ref="/root/send/reqflag" class="combo_default" appearance="minimal" style="left:101px; top:35px; width:144px; height:19px; text-align:center; ">
  252. <choices>
  253. <itemset>
  254. <label/>
  255. <value/>
  256. </itemset>
  257. </choices>
  258. <script type="javascript" ev:event="xforms-value-changed">
  259. <![CDATA[
  260. fsearch();
  261. ]]>
  262. </script>
  263. </select1>
  264. </group>
  265. <caption id="cap_title" class="tit_2" style="left:5px; top:80px; width:157px; height:14px; ">물품불출집계(일계)</caption>
  266. <line id="line2" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:95px; "/>
  267. <datagrid id="grd_goodlist" nodeset="/root/main/goodlist" caption="부서코드^부서명^물품코드^품명^규격^단위^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^합계" colsep="^" colwidth="100, 100, 78, 197, 100, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:100px; width:1195px; height:634px; ">
  268. <col ref="deptcd" visibility="hidden"/>
  269. <col ref="deptnm"/>
  270. <col ref="goodcd"/>
  271. <col ref="goodnm"/>
  272. <col ref="goodspec"/>
  273. <col ref="goodunit" style="text-align:center; "/>
  274. <col ref="num1" format="#,###" style="text-align:right; "/>
  275. <col ref="num2" format="#,###" style="text-align:right; "/>
  276. <col ref="num3" format="#,###" style="text-align:right; "/>
  277. <col ref="num4" format="#,###" style="text-align:right; "/>
  278. <col ref="num5" format="#,###" style="text-align:right; "/>
  279. <col ref="num6" format="#,###" style="text-align:right; "/>
  280. <col ref="num7" format="#,###" style="text-align:right; "/>
  281. <col ref="num8" format="#,###" style="text-align:right; "/>
  282. <col ref="num9" format="#,###" style="text-align:right; "/>
  283. <col ref="num10" format="#,###" style="text-align:right; "/>
  284. <col ref="num11" format="#,###" style="text-align:right; "/>
  285. <col ref="num12" format="#,###" style="text-align:right; "/>
  286. <col ref="num13" format="#,###" style="text-align:right; "/>
  287. <col ref="num14" format="#,###" style="text-align:right; "/>
  288. <col ref="num15" format="#,###" style="text-align:right; "/>
  289. <col ref="num16" format="#,###" style="text-align:right; "/>
  290. <col ref="num17" format="#,###" style="text-align:right; "/>
  291. <col ref="num18" format="#,###" style="text-align:right; "/>
  292. <col ref="num19" format="#,###" style="text-align:right; "/>
  293. <col ref="num20" format="#,###" style="text-align:right; "/>
  294. <col ref="num21" format="#,###" style="text-align:right; "/>
  295. <col ref="num22" format="#,###" style="text-align:right; "/>
  296. <col ref="num23" format="#,###" style="text-align:right; "/>
  297. <col ref="num24" format="#,###" style="text-align:right; "/>
  298. <col ref="num25" format="#,###" style="text-align:right; "/>
  299. <col ref="num26" format="#,###" style="text-align:right; "/>
  300. <col ref="num27" format="#,###" style="text-align:right; "/>
  301. <col ref="num28" format="#,###" style="text-align:right; "/>
  302. <col ref="num29" format="#,###" style="text-align:right; "/>
  303. <col ref="num30" format="#,###" style="text-align:right; "/>
  304. <col ref="num31" format="#,###" style="text-align:right; "/>
  305. <col ref="total" format="#,###" style="text-align:right; "/>
  306. </datagrid>
  307. <caption id="caption2" class="tit_2" visibility="hidden" style="left:190px; top:245px; width:542px; height:13px; ">그리드 컬럼 옮기지 마시요... colid를 하드코딩한 부분이 있오.</caption>
  308. </group>
  309. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  310. <line id="line19" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
  311. <line id="line22" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  312. <button id="btm_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  313. <caption>초기화</caption>
  314. <script type="javascript" ev:event="DOMActivate">
  315. <![CDATA[
  316. fInitialize();
  317. ]]>
  318. </script>
  319. </button>
  320. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:92px; height:22px; ">
  321. <caption>출력</caption>
  322. <script type="javascript" ev:event="DOMActivate">
  323. <![CDATA[
  324. if( rdo_shwflag.value == '1' )
  325. {
  326. exeReportPreview("RPRSG06101", "XMLSTR");
  327. }else if( rdo_shwflag.value == '2' )
  328. {
  329. exeReportPreview("RPRSG06102", "XMLSTR");
  330. }
  331. ]]>
  332. </script>
  333. </button>
  334. </group>
  335. </xhtml:body>
  336. </xhtml:html>