SPMNG00900_청구물품등록.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  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. <setdetlinfo>
  11. <setdetllist>
  12. <chkyn/>
  13. <reqflag/>
  14. <goodcd/>
  15. <goodnm/>
  16. <dinfflag/>
  17. <dinfdivs/>
  18. <goodspec/>
  19. <goodmodel/>
  20. <safestocqty/>
  21. <stockqty/>
  22. <goodflag/>
  23. <deptcgflag/>
  24. </setdetllist>
  25. </setdetlinfo>
  26. <rscdgooddata>
  27. <chkyn/>
  28. <reqflag/>
  29. <goodcd/>
  30. <goodnm/>
  31. <dinfflag/>
  32. <dinfdivs/>
  33. <goodspec/>
  34. <goodmodel/>
  35. <deliveunit/>
  36. <safestocqty/>
  37. <cmt/>
  38. <reqflag/>
  39. <instcd/>
  40. <goodflag/>
  41. <purcunit/>
  42. <minexch/>
  43. <ddavguseqty/>
  44. <lrgcd/>
  45. <lrgnm/>
  46. <mdlcd/>
  47. <mdlnm/>
  48. <smlcd/>
  49. <smlnm/>
  50. <realqty/>
  51. </rscdgooddata>
  52. </main>
  53. <cond>
  54. <srchflag>01</srchflag>
  55. <deptcd/>
  56. <deptnm/>
  57. <lrgcd/>
  58. <mdlcd/>
  59. <smlcd/>
  60. <reqflag/>
  61. <proddrugsetflag/>
  62. <goodflag>01</goodflag>
  63. <reqdata/>
  64. </cond>
  65. <send>
  66. <reqdata/>
  67. </send>
  68. <init/>
  69. <temp>
  70. <rscdgooddata/>
  71. </temp>
  72. </root>
  73. </instance>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. model.removeNodeset("/root/main/setdetlinfo/setdetllist");
  82. var deptcd = opener.javascript.getParameter("deptcd");
  83. var deptnm = opener.javascript.getParameter("deptnm");
  84. if(deptcd !=""){
  85. model.setValue("/root/cond/deptcd",deptcd);
  86. model.setValue("/root/cond/deptnm",deptnm);
  87. }else{
  88. model.setValue("/root/cond/deptcd",getUserInfo("dutplcecd"));
  89. }
  90. fSearch();
  91. submit("TRMNG00101"); //대분류 조회
  92. addComboItem( "cmb_lrgcd", "전체", "", "above");
  93. model.refresh();
  94. ]]>
  95. </script>
  96. <submission id="TRMNG00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/setdetlinfo"/>
  97. <submission id="TRMNG00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/lrglist"/>
  98. <submission id="TRMNG00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/init/mdllist"/>
  99. <submission id="TRMNG00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/init/smllist"/>
  100. <submission id="TRMNG00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rscdgooddata"/>
  101. </model>
  102. <script type="javascript">
  103. <![CDATA[
  104. // 부서,CSR 청구물품정보 조회
  105. function fSearch(){
  106. var srchflag = model.getValue("/root/cond/srchflag");
  107. if(srchflag =="01"){
  108. grd_setdetllist.nodeset="/root/main/setdetlinfo/setdetllist";
  109. model.makeValue("/root/send/reqdata/deptcd" ,model.getValue("/root/cond/deptcd"));
  110. model.makeValue("/root/send/reqdata/lrgcd" ,model.getValue("/root/cond/lrgcd"));
  111. model.makeValue("/root/send/reqdata/mdlcd" ,model.getValue("/root/cond/mdlcd"));
  112. model.makeValue("/root/send/reqdata/smlcd" ,model.getValue("/root/cond/smlcd"));
  113. model.makeValue("/root/send/reqdata/reqflag" ,model.getValue("/root/cond/reqflag"));
  114. model.makeValue("/root/send/reqdata/proddrugsetflag",model.getValue("/root/cond/proddrugsetflag"));
  115. model.makeValue("/root/send/reqdata/goodflag" ,model.getValue("/root/cond/goodflag"));
  116. model.makeValue("/root/send/reqdata/reqdata" ,model.getValue("/root/cond/reqdata"));
  117. if(submit("TRMNG00802")){
  118. model.removeNodeset("/root/send/reqdata");
  119. for(var i = 0 ; i < grd_setdetllist.rows ; i++){
  120. if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="2"){
  121. setRowStyle("grd_setdetllist","1","2","reqflag","equal");
  122. }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="3"){
  123. setRowStyle("grd_setdetllist","2","3","reqflag","equal");
  124. }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="4"){
  125. setRowStyle("grd_setdetllist","3","4","reqflag","equal");
  126. }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("deptcgflag")) =="D"){
  127. setRowStyle("grd_setdetllist","5","D","deptcgflag","equal");
  128. }
  129. }
  130. }
  131. }else{
  132. grd_setdetllist.nodeset="/root/temp/rscdgooddata";
  133. model.makeValue("/root/send/reqdata/instcd" ,getUserInfo("dutplceinstcd"));
  134. model.makeValue("/root/send/reqdata/lrgcd" ,model.getValue("/root/cond/lrgcd"));
  135. model.makeValue("/root/send/reqdata/mdlcd" ,model.getValue("/root/cond/mdlcd"));
  136. model.makeValue("/root/send/reqdata/smlcd" ,model.getValue("/root/cond/smlcd"));
  137. model.makeValue("/root/send/reqdata/reqflag" ,model.getValue("/root/cond/reqflag"));
  138. model.makeValue("/root/send/reqdata/proddrugsetflag",model.getValue("/root/cond/proddrugsetflag"));
  139. model.makeValue("/root/send/reqdata/goodflag", "TM");
  140. model.makeValue("/root/send/reqdata/initflag", "T");
  141. model.makeValue("/root/send/reqdata/reqdata" ,model.getValue("/root/cond/reqdata"));
  142. model.makeValue("/root/send/reqdata/rgstflag", "4");
  143. model.makeValue("/root/send/reqdata/useyn", "Y");
  144. model.makeValue("/root/send/reqdata/cdnmflag" ,model.getValue("/root/cond/goodflag"));
  145. if(submit("TRMNG00201")){
  146. }
  147. }
  148. }
  149. grd_setdetllist.refresh();
  150. ]]>
  151. </script>
  152. </xhtml:head>
  153. <xhtml:body pagewidth="670" pageheight="560">
  154. <datagrid id="grd_setdetllist" nodeset="/root/main/setdetlinfo/setdetllist" caption="선택^물품구분^물품코드^물품명^멸균구분^멸균상세^규격^모델^비품수량^재고량^기관코드^deptcgflag^deliveunit^dinfdivs^sortno^netflag" colsep="^" colwidth="33, 63, 73, 244, 66, 83, 92, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:4px; top:181px; width:655px; height:347px; ">
  155. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  156. <col ref="reqflag" type="combo" style="text-align:center; ">
  157. <choices>
  158. <item>
  159. <label>비품</label>
  160. <value>1</value>
  161. </item>
  162. <item>
  163. <label>소모품</label>
  164. <value>2</value>
  165. </item>
  166. <item>
  167. <label>린넨</label>
  168. <value>4</value>
  169. </item>
  170. <item>
  171. <label>멸균의뢰</label>
  172. <value>3</value>
  173. </item>
  174. </choices>
  175. </col>
  176. <col ref="goodcd" style="text-align:center; "/>
  177. <col ref="goodnm" style="text-align:left; "/>
  178. <col disabled="true" ref="dinfflag" type="combo" style="text-align:center; ">
  179. <choices>
  180. <item>
  181. <label>멸균</label>
  182. <value>1</value>
  183. </item>
  184. <item>
  185. <label>비멸균</label>
  186. <value>2</value>
  187. </item>
  188. </choices>
  189. </col>
  190. <col disabled="true" ref="dinfdivs" type="combo" style="text-align:center; ">
  191. <choices>
  192. <item>
  193. <label>고압증기멸균</label>
  194. <value>1</value>
  195. </item>
  196. <item>
  197. <label>가스멸균</label>
  198. <value>2</value>
  199. </item>
  200. <item>
  201. <label>건열멸균</label>
  202. <value>3</value>
  203. </item>
  204. <item>
  205. <label>플라즈마멸균</label>
  206. <value>4</value>
  207. </item>
  208. </choices>
  209. </col>
  210. <col ref="goodspec" style="text-align:left; "/>
  211. <col ref="goodmodel" style="text-align:left; "/>
  212. <col ref="safestocqty" visibility="hidden"/>
  213. <col ref="stockqty" visibility="hidden"/>
  214. <col ref="goodflag" visibility="hidden"/>
  215. <col ref="deptcgflag" visibility="hidden"/>
  216. <col ref="deliveunit" visibility="hidden"/>
  217. <col ref="dinfdivs" visibility="hidden"/>
  218. <col ref="sortno" visibility="hidden"/>
  219. <col ref="netflag" visibility="hidden"/>
  220. <script type="javascript" ev:event="onaftersort">
  221. <![CDATA[
  222. grd_setdetllist.gridToInstance();
  223. ]]>
  224. </script>
  225. </datagrid>
  226. <datagrid id="grd_goodlist" nodeset="/root/main/rscdgooddata" class="grd_goodlist" visibility="hidden" caption="선택^물품구분^물품코드^물품명^멸균구분^멸균상세^규격^모델^단위^기준량^사유^청구구분^instcd^goodflag^purcunit^minexch^ddavguseqty^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^realqty^netflag" colsep="^" colwidth="34, 61, 83, 271, 61, 100, 155, 155, 40, 70, 169, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:181px; width:655px; height:347px; ">
  227. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  228. <col disabled="true" ref="reqflag" type="combo" style="text-align:center; ">
  229. <choices>
  230. <item>
  231. <label>비품</label>
  232. <value>1</value>
  233. </item>
  234. <item>
  235. <label>소모품</label>
  236. <value>2</value>
  237. </item>
  238. <item>
  239. <label>린넨</label>
  240. <value>4</value>
  241. </item>
  242. <item>
  243. <label>멸균의뢰</label>
  244. <value>3</value>
  245. </item>
  246. </choices>
  247. </col>
  248. <col class="input_essential" ref="goodcd" _key="true" style="text-align:center; "/>
  249. <col ref="goodnm" style="text-align:left; "/>
  250. <col disabled="true" ref="dinfflag" type="combo" style="text-align:center; ">
  251. <choices>
  252. <item>
  253. <label>멸균</label>
  254. <value>1</value>
  255. </item>
  256. <item>
  257. <label>비멸균</label>
  258. <value>2</value>
  259. </item>
  260. </choices>
  261. </col>
  262. <col disabled="true" ref="dinfdivs" type="combo" style="text-align:center; ">
  263. <choices>
  264. <item>
  265. <label>고압증기멸균</label>
  266. <value>1</value>
  267. </item>
  268. <item>
  269. <label>가스멸균</label>
  270. <value>2</value>
  271. </item>
  272. <item>
  273. <label>건열멸균</label>
  274. <value>3</value>
  275. </item>
  276. <item>
  277. <label>플라즈마멸균</label>
  278. <value>4</value>
  279. </item>
  280. </choices>
  281. </col>
  282. <col ref="goodspec" style="text-align:left; "/>
  283. <col ref="goodmodel"/>
  284. <col ref="deliveunit"/>
  285. <col ref="safestocqty" visibility="hidden" style="background-color:#e3e3e3; "/>
  286. <col ref="cmt" visibility="hidden"/>
  287. <col ref="reqflag" visibility="hidden"/>
  288. <col ref="instcd" visibility="hidden"/>
  289. <col ref="goodflag" visibility="hidden"/>
  290. <col ref="purcunit" visibility="hidden"/>
  291. <col ref="minexch" visibility="hidden"/>
  292. <col ref="ddavguseqty" visibility="hidden"/>
  293. <col ref="lrgcd" visibility="hidden"/>
  294. <col ref="lrgnm" visibility="hidden"/>
  295. <col ref="mdlcd" visibility="hidden"/>
  296. <col ref="mdlnm" visibility="hidden"/>
  297. <col ref="smlcd" visibility="hidden"/>
  298. <col ref="smlnm" visibility="hidden"/>
  299. <col ref="realqty" visibility="hidden"/>
  300. <col ref="netflag" visibility="hidden"/>
  301. <script type="javascript" ev:event="onaftersort">
  302. <![CDATA[
  303. grd_goodlist.gridToInstance();
  304. ]]>
  305. </script>
  306. </datagrid>
  307. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:111px; height:14px; ">청구물품등록</caption>
  308. <line id="line2" class="line_1" style="x1:4px; y1:176px; x2:659px; y2:176px; "/>
  309. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:20px; width:655px; height:130px; background-color:#fffbf2; border-color:#ffd799; "/>
  310. <caption id="caption1" class="tit_2" style="left:4px; top:161px; width:165px; height:13px; ">청구물품정보</caption>
  311. <line id="line13" class="line_4" style="x1:581px; y1:90px; x2:581px; y2:112px; "/>
  312. <button id="bnt_srch" class="btn1_letter2" style="left:590px; top:90px; width:56px; height:22px; ">
  313. <caption>조회</caption>
  314. <script type="javascript" ev:event="DOMActivate">
  315. <![CDATA[
  316. fSearch();
  317. ]]>
  318. </script>
  319. </button>
  320. <select1 id="cmb_smlcd" ref="/root/cond/smlcd" appearance="minimal" style="left:460px; top:49px; width:95px; height:19px; ">
  321. <choices>
  322. <itemset nodeset="/root/init/smllist">
  323. <label ref="smlnm"/>
  324. <value ref="smlcd"/>
  325. </itemset>
  326. </choices>
  327. </select1>
  328. <select1 id="cmb_lrgcd" ref="/root/cond/lrgcd" appearance="minimal" style="left:260px; top:49px; width:95px; height:19px; ">
  329. <choices>
  330. <itemset nodeset="/root/init/lrglist">
  331. <label ref="lrgnm"/>
  332. <value ref="lrgcd"/>
  333. </itemset>
  334. </choices>
  335. <script type="javascript" ev:event="xforms-value-changed">
  336. <![CDATA[
  337. submit("TRMNG00102");
  338. var nodelist = instance1.selectNodes("/root/init/mdllist");
  339. model.removeNodeset("/root/cond/mdlcd");
  340. model.removeNodeset("/root/cond/smlcd");
  341. model.makeNode("/root/cond/mdlcd");
  342. if(nodelist.length < 1 ){
  343. model.removeNodeset("/root/init/mdllist");
  344. model.removeNodeset("/root/init/smllist");
  345. }else{
  346. addComboItem( "cmb_mdlcd", "전체", "", "above");
  347. model.setValue("/root/cond/mdlcd",model.getValue("/root/init/mdllist/mdlcd[1]"));
  348. }
  349. cmb_mdlcd.refresh();
  350. cmb_smlcd.refresh();
  351. ]]>
  352. </script>
  353. </select1>
  354. <select1 id="rdo_proddrugsetflag" ref="/root/cond/proddrugsetflag" appearance="full" cols="4" overflow="visible" style="left:260px; top:100px; width:185px; height:13px; border-style:none; ">
  355. <choices>
  356. <item>
  357. <label>전체</label>
  358. <value/>
  359. </item>
  360. <item>
  361. <label>Set</label>
  362. <value>1</value>
  363. </item>
  364. <item>
  365. <label>Single</label>
  366. <value>2</value>
  367. </item>
  368. </choices>
  369. </select1>
  370. <caption id="cap_goodcd" class="search_name" style="left:170px; top:123px; width:86px; height:17px; ">검색구분 :</caption>
  371. <input id="ipt_reqdata" ref="/root/cond/reqdata" class="input_search" imemode="alpha" appearance="input" style="left:390px; top:121px; width:145px; height:19px; ">
  372. <script type="javascript" ev:event="onkeyup">
  373. <![CDATA[
  374. inputEnterKey("bnt_srch", "DOMActivate");
  375. ]]>
  376. </script>
  377. </input>
  378. <select1 id="cmb_mdlcd" ref="/root/cond/mdlcd" appearance="minimal" style="left:360px; top:49px; width:95px; height:19px; ">
  379. <choices>
  380. <itemset nodeset="/root/init/mdllist">
  381. <label ref="mdlnm"/>
  382. <value ref="mdlcd"/>
  383. </itemset>
  384. </choices>
  385. <script type="javascript" ev:event="xforms-value-changed">
  386. <![CDATA[
  387. submit("TRMNG00103");
  388. var nodelist = instance1.selectNodes("/root/init/smllist");
  389. model.removeNodeset("/root/cond/smlcd");
  390. model.makeNode("/root/cond/smlcd");
  391. if(nodelist.length < 1){
  392. model.removeNodeset("/root/init/smllist");
  393. }else{
  394. addComboItem( "cmb_smlcd", "전체", "", "above");
  395. model.setValue("/root/cond/smlcd",model.getValue("/root/init/smllist/smlcd[1]"));
  396. }
  397. ]]>
  398. </script>
  399. </select1>
  400. <caption id="caption2" class="search_name" style="left:170px; top:100px; width:86px; height:17px; ">Set구분 :</caption>
  401. <select1 id="rdo_goodflag" ref="/root/cond/goodflag" appearance="full" cols="4" overflow="visible" style="left:260px; top:125px; width:125px; height:13px; border-style:none; ">
  402. <choices>
  403. <item>
  404. <label>물품코드</label>
  405. <value>01</value>
  406. </item>
  407. <item>
  408. <label>물품명</label>
  409. <value>02</value>
  410. </item>
  411. </choices>
  412. </select1>
  413. <caption id="caption13" class="search_name" style="left:170px; top:50px; width:86px; height:17px; ">분류구분 :</caption>
  414. <caption id="caption14" class="search_name" style="left:170px; top:75px; width:86px; height:17px; ">물품구분 :</caption>
  415. <select1 id="rdo_reqflag" ref="/root/cond/reqflag" appearance="full" cols="5" overflow="visible" style="left:260px; top:75px; width:261px; height:13px; border-style:none; ">
  416. <choices>
  417. <item>
  418. <label>전체</label>
  419. <value/>
  420. </item>
  421. <item>
  422. <label>비품</label>
  423. <value>1</value>
  424. </item>
  425. <item>
  426. <label>소모품</label>
  427. <value>2</value>
  428. </item>
  429. <item>
  430. <label>린넨</label>
  431. <value>4</value>
  432. </item>
  433. <item>
  434. <label>멸균의뢰</label>
  435. <value>3</value>
  436. </item>
  437. </choices>
  438. </select1>
  439. <caption id="caption3" class="search_name" style="left:12px; top:26px; width:86px; height:17px; ">조회구분 :</caption>
  440. <select1 id="rdo_srchflag" ref="/root/cond/srchflag" appearance="full" rows="2" overflow="visible" style="left:98px; top:26px; width:70px; height:39px; border-style:none; ">
  441. <choices>
  442. <item>
  443. <label>부서</label>
  444. <value>01</value>
  445. </item>
  446. <item>
  447. <label>CSR</label>
  448. <value>02</value>
  449. </item>
  450. </choices>
  451. <script type="javascript" ev:event="xforms-value-changed">
  452. <![CDATA[
  453. var srchflag = model.getValue("/root/cond/srchflag");
  454. if(srchflag =="02"){
  455. grd_goodlist.visible = true;
  456. grd_setdetllist.visible =false;
  457. ipt_deptcd.disabled = true;
  458. btn_reqdept.disabled = true;
  459. ipt_deptnm.disabled = true;
  460. grd_setdetllist.colHidden(grd_setdetllist.colRef("safestocqty")) = false;
  461. grd_setdetllist.colHidden(grd_setdetllist.colRef("stockqty")) = false;
  462. }else{
  463. grd_goodlist.visible = false;
  464. grd_setdetllist.visible =true;
  465. ipt_deptcd.disabled = false;
  466. btn_reqdept.disabled = false;
  467. ipt_deptnm.disabled = false;
  468. grd_setdetllist.colHidden(grd_setdetllist.colRef("safestocqty")) = true;
  469. grd_setdetllist.colHidden(grd_setdetllist.colRef("stockqty")) = true;
  470. }
  471. fSearch();
  472. ]]>
  473. </script>
  474. </select1>
  475. <button id="button4" class="btn2_letter4" style="left:590px; top:155px; width:64px; height:19px; ">
  476. <caption>선택적용</caption>
  477. <script type="javascript" ev:event="DOMActivate">
  478. <![CDATA[
  479. var search = rdo_srchflag.value;
  480. var iParam;
  481. var nodelist;
  482. if(search == "01") {
  483. for(var i= 0;i < grd_setdetllist.rows;i++ ){
  484. grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("goodflag")) = "TM";
  485. }
  486. iParam = model.getValue(grd_setdetllist.nodeset);
  487. nodelist = instance1.selectNodes(grd_setdetllist.nodeset + "[chkyn='Y']");
  488. } else if(search == "02") {
  489. for(var i= 0;i < grd_goodlist.rows;i++ ){
  490. grd_goodlist.valueMatrix(i,grd_goodlist.colRef("safestocqty")) = 0;
  491. }
  492. iParam = model.getValue(grd_goodlist.nodeset);
  493. nodelist = instance1.selectNodes(grd_goodlist.nodeset + "[chkyn='Y']");
  494. }
  495. var rCVS = getNodeListCSV(nodelist);
  496. if ( checkOpener() ) {
  497. opener.javascript.setParameter("SPMNG00900_", rCVS);
  498. } else {
  499. opener.javascript.setParameter("SPMNG00900_", "");
  500. var rtn = messageBox("상위화면을 찾을 수", "E001");
  501. }
  502. window.close();
  503. ]]>
  504. </script>
  505. </button>
  506. <caption id="caption10" class="search_name" style="left:170px; top:26px; width:88px; height:17px; ">부 서 명 :</caption>
  507. <button id="btn_reqdept" class="icon_search" style="left:351px; top:25px; width:16px; height:16px; ">
  508. <caption/>
  509. <script type="javascript" ev:event="DOMActivate">
  510. <![CDATA[
  511. modal("SPMNG00300");
  512. model.setValue(ipt_deptcd.attribute("ref"), model.property("deptcd"));
  513. model.setValue(ipt_deptnm.attribute("ref"), model.property("deptnm"));
  514. ipt_deptcd.refresh();
  515. ipt_deptnm.refresh();
  516. fSearch();
  517. ]]>
  518. </script>
  519. </button>
  520. <input id="ipt_deptnm" ref="/root/cond/deptnm" class="input_search" style="left:373px; top:25px; width:172px; height:19px; "/>
  521. <input id="ipt_deptcd" ref="/root/cond/deptcd" class="input_default" style="left:260px; top:25px; width:85px; height:19px; "/>
  522. </xhtml:body>
  523. </xhtml:html>