SMRSS00102_공급실물품조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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. <main>
  10. <goodslist>
  11. <flag/>
  12. <goodflag/>
  13. <goodcd/>
  14. <goodnm/>
  15. <goodspec/>
  16. <goodmodel/>
  17. <sepcunit/>
  18. <goodpurccost/>
  19. </goodslist>
  20. </main>
  21. <send>
  22. <retvcond>
  23. <instcd/>
  24. <goodflag/>
  25. <goodcd/>
  26. <goodnm/>
  27. <lrgcd/>
  28. <mdlcd/>
  29. <reqflag/>
  30. <deptcd/>
  31. <proddrugsetflag/>
  32. <smlcd/>
  33. <proddrugsetflag1/>
  34. </retvcond>
  35. <goodbaseqtylist/>
  36. <goodcd/>
  37. </send>
  38. <init>
  39. <lrgcd/>
  40. <mdlcd/>
  41. <smlcd/>
  42. </init>
  43. <hidden>
  44. <a/>
  45. <lrgcd/>
  46. <mdlcd/>
  47. </hidden>
  48. <temp/>
  49. <copynode/>
  50. </root>
  51. </instance>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  54. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  55. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. fInitialize();
  59. ]]>
  60. </script>
  61. <submission id="TRRSS00121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/lrgcd"/>
  62. <submission id="TRRSS00122" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/mdlcd"/>
  63. <submission id="TRRSS00123" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retvcond" resultref="/root/main/goodslist"/>
  64. <submission id="TRRSC05111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retvcond" resultref="/root/init/lrgcd"/>
  65. <submission id="TRRSC05112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/mdlcd"/>
  66. <submission id="TRRSC05113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/smlcd"/>
  67. </model>
  68. <script type="javascript">
  69. <![CDATA[
  70. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  71. function fInitialize()
  72. {
  73. var oprnerId = opener.window.javascript.getScreenID();
  74. if(oprnerId =="SMRSS00101"){
  75. rdo_proddrugsetflag.visible = true;
  76. rdo_proddrugsetflag1.visible = false;
  77. model.setValue("/root/send/retvcond/proddrugsetflag", "");
  78. rdo_proddrugsetflag.refresh();
  79. }else if(oprnerId ="SMRSC06101"){
  80. rdo_proddrugsetflag.visible = false;
  81. rdo_proddrugsetflag1.visible = true;
  82. if(getUserInfo("dutplceinstcd") == "012") {
  83. model.setValue("/root/send/retvcond/proddrugsetflag1", "3");
  84. } else {
  85. model.setValue("/root/send/retvcond/proddrugsetflag1", "2");
  86. }
  87. rdo_proddrugsetflag1.refresh();
  88. }
  89. model.removeNodeset("/root/main/goodslist");
  90. //model.resetInstanceNode("/root/send");
  91. //misfGridInit(grd_goodslist);
  92. misfComboComCdListMulti("Z0007,R0025", "cmb_instcd,cmb_goodflag");
  93. //misfGridComboComCdList("R0025", grd_goodslist, "goodflag");
  94. /*
  95. if(model.property("copynode") == "Y") {
  96. //서울성모병원 일때만 Single set 셋팅,그외는 Single
  97. if(getUserInfo("dutplceinstcd") == "012") {
  98. model.makeValue("/root/send/retvcond/proddrugsetflag1", "3");
  99. } else {
  100. model.makeValue("/root/send/retvcond/proddrugsetflag1", "2");
  101. }
  102. } else {
  103. model.makeValue("/root/send/retvcond/proddrugsetflag", "");
  104. }*/
  105. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  106. model.setValue(cmb_goodflag.attribute("ref"), "T");
  107. model.setValue(rdo_reqflag.attribute("ref"), model.property("reqflag"));
  108. rdo_reqflag.refresh();
  109. model.setValue(ipt_deptcd.attribute("ref"), model.property("deptcd"));
  110. ipt_deptcd.refresh();
  111. // submit("TRRSS00121");
  112. // submit("TRRSS00122");
  113. submit("TRRSC05111");
  114. addComboItem("cmb_lrgcd", "--전체--", "", "above");
  115. fSerachData();
  116. //
  117. // //화면 권한 설정
  118. //// btn_save.disabled = !(checkAuth("X"));
  119. //// btn_prt.disabled= !(checkAuth("P"));
  120. // cmb_goodflag.dispatch("xforms-value-changed");
  121. // model.refresh();
  122. }
  123. function fSerachData()
  124. {
  125. submit("TRRSS00123");
  126. model.refresh();
  127. }
  128. ]]>
  129. </script>
  130. </xhtml:head>
  131. <xhtml:body pagewidth="740" pageheight="730" guideline="1,733;2,748;2,744;2,732;1,737;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  132. <group id="grp_tle" style="left:0px; top:0px; width:720px; height:13px; ">
  133. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">공급실 물품조회</caption>
  134. </group>
  135. <group id="grp_biz" scroll="auto" style="left:0px; top:12px; width:720px; height:690px; ">
  136. <group id="grp_sea" style="left:0px; top:10px; width:720px; height:65px; vertical-align:top; ">
  137. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:720px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  138. <caption id="caption2" class="search_name" visibility="hidden" style="left:550px; top:5px; width:89px; height:17px; ">기관코드 :</caption>
  139. <button id="btn_search" class="btn1_letter2" style="left:661px; top:20px; width:56px; height:22px; ">
  140. <caption>조회</caption>
  141. <script type="javascript" ev:event="DOMActivate">
  142. <![CDATA[
  143. fSerachData();
  144. ]]>
  145. </script>
  146. </button>
  147. <select1 id="cmb_instcd" ref="/root/send/retvcond/instcd" class="combo_s_essential" disabled="true" visibility="hidden" appearance="minimal" style="left:545px; top:0px; width:110px; height:19px; ">
  148. <choices>
  149. <itemset>
  150. <label/>
  151. <value/>
  152. </itemset>
  153. </choices>
  154. </select1>
  155. <line id="line3" class="line_4" style="x1:657px; y1:17px; x2:657px; y2:43px; border-color:#ffe4bb; border-left-style:solid; "/>
  156. <input id="ipt_goodnm" ref="/root/send/retvcond/goodnm" class="input_search" appearance="input" style="left:254px; top:35px; width:101px; height:19px; ">
  157. <script type="javascript" ev:event="onkeydown">
  158. <![CDATA[
  159. if(event.keyCode == "13") {
  160. setInputNodeCurText();
  161. fSerachData();
  162. }
  163. ]]>
  164. </script>
  165. </input>
  166. <input id="ipt_goodcd" ref="/root/send/retvcond/goodcd" class="input_fix" style="left:95px; top:35px; width:80px; height:19px; ">
  167. <script type="javascript" ev:event="onkeydown">
  168. <![CDATA[
  169. if(event.keyCode == "13") {
  170. setInputNodeCurText();
  171. fSerachData();
  172. }
  173. ]]>
  174. </script>
  175. </input>
  176. <caption id="cap_goodcd" class="search_name" style="left:5px; top:36px; width:91px; height:17px; ">물품코드 :</caption>
  177. <caption id="caption3" class="search_name" visibility="hidden" style="left:545px; top:10px; width:89px; height:17px; ">물품구분 :</caption>
  178. <select1 id="cmb_goodflag" ref="/root/send/retvcond/goodflag" class="combo_s_essential" disabled="true" visibility="hidden" appearance="minimal" style="left:532px; top:9px; width:110px; height:19px; ">
  179. <choices>
  180. <itemset>
  181. <label/>
  182. <value/>
  183. </itemset>
  184. </choices>
  185. <script type="javascript" ev:event="xforms-value-changed">
  186. <![CDATA[
  187. if(cmb_goodflag.value != "") {
  188. model.resetInstanceNode("/root/hidden/lrgcd");
  189. model.resetInstanceNode("/root/hidden/mdlcd");
  190. copyNodesetType("/root/hidden/lrgcd", "/root/init/lrglist[goodflag='" + cmb_goodflag.value + "']");
  191. cmb_lrgcd.disabled = false;
  192. cmb_mdlcd.disabled = true;
  193. addComboItem("cmb_lrgcd", "--전체--", "", "above");
  194. model.refresh();
  195. }
  196. ]]>
  197. </script>
  198. </select1>
  199. <select1 id="cmb_lrgcd" ref="/root/send/retvcond/lrgcd" navindex="1" appearance="minimal" style="left:84px; top:10px; width:91px; height:19px; ">
  200. <choices>
  201. <itemset nodeset="/root/init/lrglist">
  202. <label ref="lrgnm"/>
  203. <value ref="lrgcd"/>
  204. </itemset>
  205. </choices>
  206. <script type="javascript" ev:event="xforms-value-changed">
  207. <![CDATA[
  208. if(cmb_lrgcd.value != "") {
  209. // alert(instance1.selectNodesXml("/root/init/mdlcd[goodflag='" + cmb_goodflag.value + "' and lrgcd='" + cmb_lrgcd.value +"']"));
  210. model.resetInstanceNode("/root/init/mdllist");
  211. submit("TRRSC05112");
  212. cmb_mdlcd.disabled = false;
  213. model.refresh();
  214. addComboItem("cmb_mdlcd", "--전체--", "", "above");
  215. fSerachData();
  216. }
  217. ]]>
  218. </script>
  219. </select1>
  220. <caption id="caption4" class="search_name" style="left:5px; top:10px; width:74px; height:17px; ">대분류 :</caption>
  221. <select1 id="cmb_mdlcd" ref="/root/send/retvcond/mdlcd" disabled="true" appearance="minimal" style="left:254px; top:10px; width:91px; height:19px; ">
  222. <choices>
  223. <itemset nodeset="/root/init/mdllist">
  224. <label ref="mdlnm"/>
  225. <value ref="mdlcd"/>
  226. </itemset>
  227. </choices>
  228. <script type="javascript" ev:event="xforms-value-changed">
  229. <![CDATA[
  230. if(cmb_mdlcd.value != "") {
  231. // alert(instance1.selectNodesXml("/root/init/mdlcd[goodflag='" + cmb_goodflag.value + "' and lrgcd='" + cmb_lrgcd.value +"']"));
  232. model.resetInstanceNode("/root/init/smllist");
  233. submit("TRRSC05113");
  234. cmb_smlcd.disabled = false;
  235. model.refresh();
  236. addComboItem("cmb_smlcd", "--전체--", "", "above");
  237. fSerachData();
  238. }
  239. ]]>
  240. </script>
  241. </select1>
  242. <caption id="caption5" class="search_name" style="left:179px; top:10px; width:74px; height:17px; ">중분류 :</caption>
  243. <caption id="caption7" class="search_name" visibility="hidden" style="left:410px; top:0px; width:89px; height:17px; ">비품구분 :</caption>
  244. <select1 id="rdo_reqflag" ref="/root/send/retvcond/reqflag" disabled="true" visibility="hidden" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:495px; top:0px; width:190px; height:15px; border-style:none; ">
  245. <choices>
  246. <item>
  247. <label>전체</label>
  248. <value/>
  249. </item>
  250. <item>
  251. <label>비품</label>
  252. <value>1</value>
  253. </item>
  254. <item>
  255. <label>소모품</label>
  256. <value>2</value>
  257. </item>
  258. </choices>
  259. </select1>
  260. <select1 id="cmb_smlcd" ref="/root/send/retvcond/smlcd" disabled="true" appearance="minimal" style="left:437px; top:10px; width:91px; height:19px; ">
  261. <choices>
  262. <itemset nodeset="/root/init/smllist">
  263. <label ref="smlnm"/>
  264. <value ref="smlcd"/>
  265. </itemset>
  266. </choices>
  267. <script type="javascript" ev:event="xforms-value-changed">
  268. <![CDATA[
  269. fSerachData();
  270. ]]>
  271. </script>
  272. </select1>
  273. <caption id="caption8" class="search_name" style="left:362px; top:10px; width:74px; height:17px; ">소분류 :</caption>
  274. <caption id="cap_proddrugsetflag" class="search_name" style="left:362px; top:36px; width:86px; height:17px; ">SET구분 :</caption>
  275. <select1 id="rdo_proddrugsetflag" ref="/root/send/retvcond/proddrugsetflag" appearance="full" cols="3" overflow="visible" style="left:449px; top:37px; width:180px; height:15px; border-style:none; ">
  276. <choices>
  277. <item>
  278. <label>전체</label>
  279. <value/>
  280. </item>
  281. <item>
  282. <label>Set</label>
  283. <value>1</value>
  284. </item>
  285. <item>
  286. <label>Single</label>
  287. <value>2</value>
  288. </item>
  289. </choices>
  290. </select1>
  291. <caption id="caption9" class="search_name" style="left:179px; top:36px; width:74px; height:17px; ">물품명 :</caption>
  292. <select1 id="rdo_proddrugsetflag1" ref="/root/send/retvcond/proddrugsetflag1" appearance="full" cols="4" overflow="visible" style="left:450px; top:37px; width:213px; height:15px; border-style:none; ">
  293. <choices>
  294. <item>
  295. <label>전체</label>
  296. <value/>
  297. </item>
  298. <item>
  299. <label>Single</label>
  300. <value>2</value>
  301. </item>
  302. <item>
  303. <label>Single Set</label>
  304. <value>3</value>
  305. </item>
  306. </choices>
  307. </select1>
  308. </group>
  309. <caption id="caption1" class="tit_2" style="left:5px; top:104px; width:157px; height:13px; ">공급실물품조회 List</caption>
  310. <line id="line1" class="line_1" style="x1:0px; y1:120px; x2:720px; y2:120px; "/>
  311. <datagrid id="grd_goodslist" nodeset="/root/main/goodslist" caption="^물품구분^물품코드^물품명^규격^모델^단위^reqflag^구매단가" colsep="^" colwidth="26, 80, 90, 253, 100, 100, 50, 100, -99" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:125px; width:720px; height:565px; ">
  312. <col checkvalue="Y,N" ref="flag" type="checkbox"/>
  313. <col disabled="true" ref="goodflag" type="combo" visibility="hidden" style="text-align:center; ">
  314. <choices>
  315. <itemset nodeset="/root/init/comcd/R00251/R00251">
  316. <label ref="cdnm"/>
  317. <value ref="cdid"/>
  318. </itemset>
  319. </choices>
  320. </col>
  321. <col ref="goodcd" style="text-align:center; "/>
  322. <col ref="csrgoodnm"/>
  323. <col ref="csrgoodspec"/>
  324. <col ref="csrgoodmodel"/>
  325. <col ref="csrrequnit" format="#,###" style="text-align:right; "/>
  326. <col ref="reqflag" visibility="hidden"/>
  327. <col ref="goodpurccost" format="#,###" style="text-align:right; "/>
  328. </datagrid>
  329. <button id="button1" class="btn2_letter4" style="left:656px; top:100px; width:64px; height:19px; ">
  330. <caption>선택적용</caption>
  331. <script type="javascript" ev:event="DOMActivate">
  332. <![CDATA[
  333. if(grd_goodslist.rows - grd_goodslist.fixedRows == 0)
  334. {
  335. messageBox("적용할 내역이","I004");
  336. window.close();
  337. return;
  338. }
  339. var iParam = model.getValue(grd_goodslist.nodeset);
  340. var nodelist = instance1.selectNodes(grd_goodslist.nodeset + "[flag='Y']");
  341. var rCVS = getNodeListCSV(nodelist);
  342. if ( checkOpener() ) {
  343. opener.javascript.setParameter("SMRSD00400_", rCVS);
  344. } else {
  345. var rtn = messageBox("상위화면을 찾을 수", "E001");
  346. }
  347. window.close();
  348. ]]>
  349. </script>
  350. </button>
  351. <input id="ipt_deptcd" ref="/root/send/retvcond/deptcd" visibility="hidden" style="left:360px; top:100px; width:100px; height:20px; "/>
  352. </group>
  353. </xhtml:body>
  354. </xhtml:html>