SPRSD06003_비품조회HELP.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  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. <csrbipumlist>
  11. <chkyn/>
  12. <deptcd/>
  13. <deptnm/>
  14. <goodcd/>
  15. <goodnm/>
  16. <goodspec/>
  17. <goodmodel/>
  18. <deliveunit/>
  19. <safestocqty/>
  20. <chngsafestocqty/>
  21. <goodmngtflag/>
  22. <cmt/>
  23. <certyn/>
  24. <reqflag/>
  25. <instcd/>
  26. <goodflag/>
  27. <purcunit/>
  28. <minexch/>
  29. <ddavguseqty/>
  30. <lrgcd/>
  31. <lrgnm/>
  32. <mdlcd/>
  33. <mdlnm/>
  34. <smlcd/>
  35. <smlnm/>
  36. </csrbipumlist>
  37. <duplnode>
  38. <csrbipumlist/>
  39. </duplnode>
  40. <goodlist/>
  41. <lrglist/>
  42. <mdllist/>
  43. <csrreqdeptlist/>
  44. <setlist>
  45. <chkyn/>
  46. <csrreqdeptcd/>
  47. <deptnm/>
  48. <deptcd/>
  49. <instcd/>
  50. <setcd/>
  51. <setnm/>
  52. <cmt/>
  53. </setlist>
  54. <setdetllist>
  55. <chkyn/>
  56. <csrreqdeptcd/>
  57. </setdetllist>
  58. </main>
  59. <send>
  60. <goodcd/>
  61. <csrreqdeptcd/>
  62. <instcd/>
  63. <searchflag>1</searchflag>
  64. <deptcd/>
  65. <deptnm/>
  66. <csrreqdeptcd2/>
  67. <goodnm/>
  68. <goodflag>T</goodflag>
  69. <lrgcd/>
  70. <mdlcd/>
  71. <deptcd/>
  72. <deptnm/>
  73. <csrreqdeptcd/>
  74. </send>
  75. <init>
  76. <lrgcd/>
  77. <mdlcd/>
  78. </init>
  79. <hidden>
  80. <a/>
  81. <lrgcd/>
  82. <mdlcd/>
  83. </hidden>
  84. <temp/>
  85. <copynode/>
  86. </root>
  87. </instance>
  88. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  90. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  91. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  92. <script type="javascript" ev:event="xforms-ready">
  93. <![CDATA[
  94. fInitialize();
  95. ]]>
  96. </script>
  97. <submission id="TRRSS01211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/csrreqdeptlist"/>
  98. <submission id="TRRSD00191" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main"/>
  99. <submission id="TRRSD06021" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrbipumlist"/>
  100. <submission id="TRRSC07011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rscdgooddata"/>
  101. <submission id="TRRSC05111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lrglist"/>
  102. <submission id="TRRSC05112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/mdllist"/>
  103. <submission id="TRRSS00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/setlist"/>
  104. <submission id="TRRSS00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/setdetllist"/>
  105. </model>
  106. <script type="javascript">
  107. <![CDATA[
  108. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  109. function fInitialize()
  110. {
  111. //misfGridInit(grd_goodslist);
  112. misfComboComCdListMulti("Z0007", "cmb_instcd");
  113. model.removeNodeset(grd_setlist.nodeset);
  114. model.removeNodeset(grd_setdetllist.nodeset);
  115. //misfGridComboComCdList("R0025", grd_goodslist, "goodflag");
  116. var deptcd = model.property("deptcd");
  117. var deptnm = model.property("deptnm");
  118. if(deptcd == "") {
  119. model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("dutplcecd"));
  120. model.setValue(ipt_deptnm.attribute("ref") , getUserInfo("dutplcenm"));
  121. } else {
  122. model.setValue(ipt_deptcd.attribute("ref"), deptcd);
  123. model.setValue(ipt_deptnm.attribute("ref"), deptnm);
  124. }
  125. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  126. cmb_instcd.refresh();
  127. model.makeValue("/root/main/cond/instcd", model.getValue(cmb_instcd.attribute("ref")));
  128. model.makeValue("/root/main/cond/useyn", "Y");
  129. submit("TRRSS01211");
  130. addComboItem( "cmb_csrreqdeptcd", "전체", "", "above");
  131. fSerachData();
  132. }
  133. function fSerachData()
  134. {
  135. var searchData = model.getValue("/root/send/searchflag");
  136. if(searchData == "1") {
  137. submit("TRRSS00401");
  138. } else {
  139. model.makeValue("/root/send/reqdata/instcd", cmb_instcd.value);
  140. model.makeValue("/root/send/reqdata/deptcd", ipt_deptcd.value);
  141. model.makeValue("/root/send/reqdata/rgstflag", "4");
  142. submit("TRRSD06021");
  143. }
  144. }
  145. ]]>
  146. </script>
  147. </xhtml:head>
  148. <xhtml:body pagewidth="870" pageheight="650" guideline="1,963;2,771;" style="font-family:굴림체; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  149. <group id="grp_tle" style="left:0px; top:0px; width:850px; height:13px; ">
  150. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">청구물품등록</caption>
  151. </group>
  152. <group id="grp_biz" scroll="auto" style="left:0px; top:12px; width:850px; height:603px; ">
  153. <datagrid id="grd_csrbipumlist" nodeset="/root/main/csrbipumlist" class="datagrid2" visibility="hidden" caption="^부서코드^부서명^물품코드^물품명^규격^모델^단위^기준량^변경&#xA;기준량^사유^청구구분^instcd^goodflag^purcunit^minexch^ddavguseqty^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^재고&#xA;수량^한계&#xA;수량" colsep="^" colwidth="25, 0, 90, 100, 150, 124, 136, 40, 50, 67, 137, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 45, 40" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:115px; width:843px; height:485px; ">
  154. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  155. <col class="input_essential" ref="deptcd" visibility="hidden" _key="true"/>
  156. <col ref="deptnm" style="text-align:center; "/>
  157. <col class="input_essential" ref="goodcd" _key="true"/>
  158. <col ref="goodnm"/>
  159. <col ref="goodspec"/>
  160. <col ref="goodmodel"/>
  161. <col ref="deliveunit"/>
  162. <col ref="safestocqty" style="background-color:#e3e3e3; "/>
  163. <col ref="chngsafestocqty" visibility="hidden" style="background-color:#e3e3e3; "/>
  164. <col ref="cmt" visibility="hidden"/>
  165. <col ref="reqflag" visibility="hidden"/>
  166. <col ref="instcd" visibility="hidden"/>
  167. <col ref="goodflag" visibility="hidden"/>
  168. <col ref="purcunit" visibility="hidden"/>
  169. <col ref="minexch" visibility="hidden"/>
  170. <col ref="ddavguseqty" visibility="hidden"/>
  171. <col ref="lrgcd" visibility="hidden"/>
  172. <col ref="lrgnm" visibility="hidden"/>
  173. <col ref="mdlcd" visibility="hidden"/>
  174. <col ref="mdlnm" visibility="hidden"/>
  175. <col ref="smlcd" visibility="hidden"/>
  176. <col ref="smlnm" visibility="hidden"/>
  177. <col ref="realqty"/>
  178. <col ref="reqlmtqty"/>
  179. </datagrid>
  180. <group id="group2" style="left:5px; top:10px; width:843px; height:75px; vertical-align:top; ">
  181. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:843px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
  182. <caption id="caption7" class="search_name" style="left:15px; top:10px; width:89px; height:17px; ">조회구분 :</caption>
  183. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:430px; top:8px; width:165px; height:19px; ">
  184. <choices>
  185. <itemset>
  186. <label/>
  187. <value/>
  188. </itemset>
  189. </choices>
  190. </select1>
  191. <line id="line2" class="line_4" style="x1:770px; y1:22px; x2:770px; y2:48px; border-color:#ffe4bb; border-left-style:solid; "/>
  192. <button id="btn_search" class="btn1_letter2" style="left:780px; top:25px; width:56px; height:22px; ">
  193. <caption>조회</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. fSerachData();
  197. ]]>
  198. </script>
  199. </button>
  200. <caption id="caption9" class="search_name" style="left:340px; top:10px; width:89px; height:17px; ">기관코드 :</caption>
  201. <select1 id="rdo_searchflag" ref="/root/send/searchflag" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:105px; top:10px; width:175px; height:13px; border-style:none; ">
  202. <choices>
  203. <item>
  204. <label>상용SET</label>
  205. <value>1</value>
  206. </item>
  207. <item>
  208. <label>비품</label>
  209. <value>2</value>
  210. </item>
  211. </choices>
  212. <script type="javascript" ev:event="xforms-value-changed">
  213. <![CDATA[
  214. var searchFlag = model.getValue("/root/send/searchflag");
  215. if(searchFlag == "1") {
  216. grp_setsearch.visible = true;
  217. grp_bipum.visible = false;
  218. grd_setlist.visible = true;
  219. grd_setlist.visible = true;
  220. grd_csrbipumlist.visible = false;
  221. } else {
  222. grp_setsearch.visible = false;
  223. grp_bipum.visible = true;
  224. grd_setlist.visible = false;
  225. grd_setdetllist.visible = false;
  226. grd_csrbipumlist.visible = true;
  227. }
  228. fSerachData();
  229. ]]>
  230. </script>
  231. </select1>
  232. <group id="grp_setsearch" visibility="hidden" style="left:0px; top:35px; width:770px; height:30px; background-color:transparent; border-color:transparent; ">
  233. <caption id="caption10" class="search_name" style="left:15px; top:6px; width:88px; height:17px; ">부 서 명 :</caption>
  234. <input id="ipt_deptnm" ref="/root/send/deptnm" class="input_search" style="left:215px; top:5px; width:172px; height:19px; ">
  235. <script type="javascript" ev:event="xforms-value-changed">
  236. <![CDATA[
  237. ]]>
  238. </script>
  239. </input>
  240. <input id="ipt_deptcd" ref="/root/send/deptcd" class="input_default" style="left:102px; top:5px; width:85px; height:19px; "/>
  241. <button id="btn_reqdept" class="icon_search" style="left:193px; top:5px; width:16px; height:16px; ">
  242. <caption/>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. modal("SPRSS01203");
  246. model.setValue(ipt_deptcd.attribute("ref"), model.property("deptcd"));
  247. model.setValue(ipt_deptnm.attribute("ref"), model.property("deptnm"));
  248. ipt_deptcd.refresh();
  249. ipt_deptnm.refresh();
  250. btn_search.dispatch("DOMActivate");
  251. ]]>
  252. </script>
  253. </button>
  254. </group>
  255. <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:680px; top:5px; width:25px; height:19px; "/>
  256. <group id="grp_bipum" style="left:0px; top:31px; width:765px; height:35px; background-color:transparent; ">
  257. <caption id="caption2" class="search_name" style="left:195px; top:10px; width:88px; height:17px; ">부 서 명 :</caption>
  258. <button id="button7" class="icon_search" style="left:358px; top:10px; width:16px; height:16px; ">
  259. <caption/>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. modal("SPRSS01203");
  263. model.setValue(ipt_reqdeptcd.attribute("ref"), model.property("deptcd"));
  264. model.setValue(ipt_reqdeptnm.attribute("ref"), model.property("deptnm"));
  265. model.setValue(ipt_csrreqdeptcd2.attribute("ref"), model.property("csrreqdeptcd"));
  266. ipt_reqdeptcd.refresh();
  267. ipt_reqdeptnm.refresh();
  268. ipt_csrreqdeptcd2.refresh();
  269. //grd_csrdeptnm.valueMatrix(1,0) = model.getValue("/root/send/deptnm");
  270. //getCsrDeptList();
  271. cmb_csrreqdeptcd.value = model.getValue(ipt_csrreqdeptcd2.attribute("ref"));
  272. //btn_search.dispatch("DOMActivate");
  273. ]]>
  274. </script>
  275. </button>
  276. <caption id="caption5" class="search_name" style="left:15px; top:10px; width:89px; height:17px; ">부서구분 :</caption>
  277. <select1 id="cmb_csrreqdeptcd" ref="/root/send/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:104px; top:9px; width:76px; height:19px; ">
  278. <choices>
  279. <itemset nodeset="/root/main/csrreqdeptlist">
  280. <label ref="csrreqdeptnm"/>
  281. <value ref="csrreqdeptcd"/>
  282. </itemset>
  283. </choices>
  284. <script type="javascript" ev:event="xforms-value-changed">
  285. <![CDATA[
  286. model.setValue(ipt_reqdeptcd.attribute("ref"), "");
  287. model.setValue(ipt_reqdeptnm.attribute("ref"), "");
  288. ipt_reqdeptcd.refresh();
  289. ipt_reqdeptnm.refresh();
  290. btn_search.dispatch("DOMActivate");
  291. ]]>
  292. </script>
  293. </select1>
  294. <input id="input1" ref="/root/send/deptnm" class="input_search" style="left:380px; top:10px; width:160px; height:19px; ">
  295. <script type="javascript" ev:event="xforms-value-changed">
  296. <![CDATA[
  297. misfValidationCheck("02", "", "deptcd,deptnm");
  298. model.refresh();
  299. ]]>
  300. </script>
  301. </input>
  302. <input id="input2" ref="/root/send/deptcd" class="input_default" maxlength="10" style="left:285px; top:9px; width:70px; height:19px; "/>
  303. </group>
  304. </group>
  305. <caption id="caption12" class="tit_2" style="left:5px; top:94px; width:121px; height:14px; ">비픔현황조회</caption>
  306. <line id="line4" class="line_1" style="x1:5px; y1:110px; x2:848px; y2:110px; "/>
  307. <button id="button4" class="btn2_letter4" style="left:783px; top:90px; width:64px; height:19px; ">
  308. <caption>선택적용</caption>
  309. <script type="javascript" ev:event="DOMActivate">
  310. <![CDATA[
  311. var search = rdo_searchflag.value;
  312. var iParam;
  313. var nodelist;
  314. if(search == "1") {
  315. iParam = model.getValue(grd_setdetllist.nodeset);
  316. nodelist = instance1.selectNodes(grd_setdetllist.nodeset + "[chkyn='Y']");
  317. } else if(search == "2") {
  318. iParam = model.getValue(grd_csrbipumlist.nodeset);
  319. nodelist = instance1.selectNodes(grd_csrbipumlist.nodeset + "[chkyn='Y']");
  320. }
  321. var rCVS = getNodeListCSV(nodelist);
  322. if ( checkOpener() ) {
  323. opener.javascript.setParameter("SMRSD06003_", rCVS);
  324. } else {
  325. var rtn = messageBox("상위화면을 찾을 수", "E001");
  326. }
  327. window.close();
  328. ]]>
  329. </script>
  330. </button>
  331. <datagrid id="grd_setlist" nodeset="/root/main/setlist" caption="^부서구분^부서명^deptcd^instcd^Set코드^Set 명^비고" colsep="^" colwidth="20, 69, 100, 0, 0, 69, 331, 213" dataheight="35" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" style="left:5px; top:115px; width:840px; height:215px; ">
  332. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  333. <col ref="csrreqdeptcd" type="combo">
  334. <choices>
  335. <itemset nodeset="/root/main/csrreqdeptlist">
  336. <label ref="csrreqdeptnm"/>
  337. <value ref="csrreqdeptcd"/>
  338. </itemset>
  339. </choices>
  340. </col>
  341. <col ref="deptnm"/>
  342. <col ref="deptcd" visibility="hidden"/>
  343. <col ref="instcd"/>
  344. <col ref="setcd" type="input"/>
  345. <col ref="setnm" type="input"/>
  346. <col ref="cmt" type="input"/>
  347. <script type="javascript" ev:event="onclick">
  348. <![CDATA[
  349. if(grd_setlist.isCell(event.target) && grd_setlist.mouseRow >= grd_setlist.fixedrows){
  350. model.makeValue("/root/send/reqdata/instcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("instcd")));
  351. model.makeValue("/root/send/reqdata/setcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("setcd")));
  352. model.makeValue("/root/send/reqdata/deptcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("deptcd")));
  353. submit("TRRSS00402");
  354. var chkyn;
  355. if(grd_setlist.col == grd_setlist.colRef("chkyn") ) {
  356. chkyn = grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("chkyn"));
  357. if(chkyn == "Y") {
  358. for(var i = grd_setdetllist.fixedRows; i < grd_setdetllist.rows; i++) {
  359. grd_setdetllist.valueMatrix(i, grd_setdetllist.colRef("chkyn")) = "Y";
  360. }
  361. } else {
  362. for(var i = grd_setdetllist.fixedRows; i < grd_setdetllist.rows; i++) {
  363. grd_setdetllist.valueMatrix(i, grd_setdetllist.colRef("chkyn")) = "N";
  364. }
  365. }
  366. } else {
  367. }
  368. }
  369. ]]>
  370. </script>
  371. </datagrid>
  372. <datagrid id="grd_setdetllist" nodeset="/root/main/setdetllist" caption="^setcd^부서구분^instcd^부서코드^부서명^물품구분^물품코드^물품명^규격^모델^멸균구분^저장일시^저장자" colsep="^" colwidth="20, 0, 62, 0, 0, 100, 70, 100, 130, 100, 100, 55, 120, 70" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:355px; width:840px; height:245px; ">
  373. <col checkvalue="Y,N" disabled="true" ref="chkyn" type="checkbox"/>
  374. <col ref="setcd"/>
  375. <col ref="csrreqdeptcd" type="combo">
  376. <choices>
  377. <itemset nodeset="/root/main/csrreqdeptlist">
  378. <label ref="csrreqdeptnm"/>
  379. <value ref="csrreqdeptcd"/>
  380. </itemset>
  381. </choices>
  382. </col>
  383. <col ref="instcd"/>
  384. <col ref="deptcd"/>
  385. <col ref="deptnm"/>
  386. <col ref="reqflag" type="combo">
  387. <choices>
  388. <item>
  389. <label>비품</label>
  390. <value>1</value>
  391. </item>
  392. <item>
  393. <label>소모품</label>
  394. <value>2</value>
  395. </item>
  396. <item>
  397. <label>린넨</label>
  398. <value>4</value>
  399. </item>
  400. <item>
  401. <label>멸균의뢰</label>
  402. <value>3</value>
  403. </item>
  404. </choices>
  405. </col>
  406. <col ref="goodcd" type="inputbutton"/>
  407. <col ref="goodnm"/>
  408. <col ref="goodspec"/>
  409. <col ref="goodmodel"/>
  410. <col disabled="true" ref="dinfflag" type="combo">
  411. <choices>
  412. <item>
  413. <label>멸균</label>
  414. <value>1</value>
  415. </item>
  416. <item>
  417. <label>비멸균</label>
  418. <value>2</value>
  419. </item>
  420. </choices>
  421. </col>
  422. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn"/>
  423. <col ref="lastupdtrnm" style="text-align:center; "/>
  424. <script type="javascript" ev:event="onbuttonclick">
  425. <![CDATA[
  426. fSetGridData();
  427. ]]>
  428. </script>
  429. </datagrid>
  430. </group>
  431. </xhtml:body>
  432. </xhtml:html>