SMRSS00402_상용SET관리.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <?xml-stylesheet type="text/css" href="C:/CMCProject/application/webapps/com/commonweb/css/common.css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>상용SET관리</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <setdetlinfo>
  12. <setdetllist/>
  13. </setdetlinfo>
  14. <cond>
  15. <instcd/>
  16. <csrreqdeptcd/>
  17. <deptcd/>
  18. <deptnm/>
  19. <useyn/>
  20. <csrreqdeptcd2/>
  21. </cond>
  22. <newElement/>
  23. <csrbipuminfo>
  24. <csrbipumlist/>
  25. </csrbipuminfo>
  26. </main>
  27. <init/>
  28. <temp>
  29. </temp>
  30. <send>
  31. </send>
  32. <cond>
  33. <instcd/>
  34. <lrgcd/>
  35. <mdlcd/>
  36. <smlcd/>
  37. <reqflag/>
  38. <proddrugsetflag/>
  39. <goodcd/>
  40. <reqdata/>
  41. <goodflag>01</goodflag>
  42. </cond>
  43. <hidden>
  44. <cond>
  45. <checkallitem/>
  46. <checkallitem2/>
  47. </cond>
  48. <csrdeptlist/>
  49. <deptcodelist/>
  50. </hidden>
  51. </root>
  52. </instance>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. //submit 되는 node 들을 초기화한다
  56. fInitialize();
  57. ]]>
  58. </script>
  59. <submission id="TRRSS01211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/csrreqdeptlist"/>
  60. <submission id="TRRSS00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/setdetlinfo"/>
  61. <submission id="TRRSS00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/setdetlinfo"/>
  62. <submission id="TXRSS00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  63. <submission id="TXRSS00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/setdetlinfo"/>
  64. <submission id="TRRSC05111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/lrglist"/>
  65. <submission id="TRRSC05112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/init/mdllist"/>
  66. <submission id="TRRSC05113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/init/smllist"/>
  67. <submission id="TRRSS01212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/csrdeptlist"/>
  68. <submission id="TRRSD06022" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/main/csrbipuminfo"/>
  69. <submission id="TRRSS01214" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/deptcodelist"/>
  70. </model>
  71. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  73. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  74. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  75. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  76. <script type="javascript">
  77. <![CDATA[
  78. var curRow = -1;
  79. function fInitialize(){
  80. model.removeNodeset("/root/main/csrbipuminfo/csrbipumlist");
  81. model.removeNodeset("/root/main/setdetlinfo/setdetllist");
  82. misfComboComCdListMulti("Z0007", "cmb_instcd");
  83. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  84. cmb_instcd.refresh();
  85. model.makeValue("/root/main/cond/instcd", model.getValue(cmb_instcd.attribute("ref")));
  86. model.makeValue("/root/main/cond/useyn", "Y");
  87. submit("TRRSS01211");
  88. submit("TRRSC05111"); //대분류 조회
  89. addComboItem( "cmb_lrgcd", "전체", "", "above");
  90. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  91. model.makeValue("/root/send/reqdata/deptcd", getUserInfo("dutplcecd"));
  92. model.makeValue("/root/send/reqdata/refcond", "deptcd");
  93. submit("TRRSS01214");//부서구분 조회
  94. model.setValue("/root/main/cond/csrreqdeptcd",model.getValue("/root/hidden/deptcodelist/csrreqdeptcd2"));
  95. cmb_csrreqdeptcd.refresh();
  96. model.removeNodeset("/root/send/reqdata");
  97. model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
  98. model.makeValue("/root/send/reqdata/useyn","Y");
  99. submit("TRRSS01212");
  100. model.setValue("/root/main/cond/deptcd",getUserInfo("dutplcecd"));
  101. cmb_deptcd.refresh();
  102. model.removeNodeset("/root/send/reqdata");
  103. fSearch();
  104. }
  105. function fSearch() {
  106. model.makeValue("/root/send/reqdata/instcd", model.getValue(cmb_instcd.attribute("ref")));
  107. //model.makeValue("/root/send/reqdata/csrreqdeptcd", model.getValue(cmb_csrreqdeptcd.attribute("ref")));
  108. model.makeValue("/root/send/reqdata/deptcd", model.getValue(cmb_deptcd.attribute("ref")));
  109. if(submit("TRRSS00402")){
  110. grd_setdetllist.rebuild();
  111. grd_setdetllist.rebuildStyle();
  112. for(var i = 0 ; i < grd_setdetllist.rows ; i++){
  113. if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="2"){
  114. setRowStyle("grd_setdetllist","1","2","reqflag","equal");
  115. }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="3"){
  116. setRowStyle("grd_setdetllist","2","3","reqflag","equal");
  117. }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="4"){
  118. setRowStyle("grd_setdetllist","3","4","reqflag","equal");
  119. }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("deptcgflag")) =="D"){
  120. setRowStyle("grd_setdetllist","5","D","deptcgflag","equal");
  121. }
  122. }
  123. }
  124. }
  125. function fSearch2() {
  126. model.makeValue("/root/send/reqdata/instcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("instcd")));
  127. model.makeValue("/root/send/reqdata/setcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("setcd")));
  128. model.makeValue("/root/send/reqdata/deptcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("deptcd")));
  129. submit("TRRSS00402");
  130. }
  131. function fSave() {
  132. var updtdata = getGridUpdateData(grd_setlist);
  133. model.makeValue("/root/send/savedata/updtdata", updtdata);
  134. if(submit("TXRSS00401")) {
  135. messageBox("상용SET저장이 완료되었습니다. ", "I");
  136. fSearch();
  137. }
  138. }
  139. function fSave2() {
  140. var updtdata = getGridUpdateData(grd_setdetllist);
  141. model.makeValue("/root/send/savedata/updtdata", updtdata);
  142. submit("TXRSS00402");
  143. }
  144. function fSerachData()
  145. {
  146. model.makeValue("/root/cond/instcd", getUserInfo("dutplceinstcd"));
  147. model.makeValue("/root/cond/rgstflag", "4");
  148. submit("TRRSD06022");
  149. }
  150. function fSetGridData() {
  151. if (grd_setdetllist.col == grd_setdetllist.colRef("goodcd")) {//물품코드 버튼을 눌렀을 때
  152. model.removenode("/root/copynode");
  153. model.removenode(gvParamPath +"/SMRSD06001_/SMRSD06001_value");
  154. model.makeNode("/root/copynode");
  155. model.property("deptcd") = grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("deptcd"));
  156. model.property("deptnm") = grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("deptnm"));
  157. modal("SPRSD06002", "", "", "", "", "", "","width:900px;height:530px;align:left;");
  158. model.property("deptcd") = "";
  159. model.property("deptnm") = "";
  160. var CSV = model.getValue(gvParamPath + "/SMRSD06002_/SMRSD06002_value");
  161. setCSVToNode("/root/copynode", CSV, "grd_setdetllist");
  162. fSettingGoodList("/root/copynode","grd_setdetllist");
  163. }
  164. }
  165. //팝업에서 선택한 항목을 해당 그리드에 셋팅한다.
  166. function fSettingGoodList(pnode, grdName)
  167. {
  168. var datagrid = document.controls(grdName);
  169. var codynode = instance1.selectNodes(pnode + "/*");
  170. var addRow = datagrid.rows - datagrid.fixedRows;
  171. for (var j = 1; j <= codynode.length ; j++)
  172. {
  173. if(addRow > datagrid.rows - datagrid.fixedRows)
  174. {
  175. misfGridIUD(datagrid,"A");
  176. addRow = datagrid.rows - datagrid.fixedRows;
  177. }
  178. model.setValue(datagrid.nodeset + "[" + addRow + "]/deptcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("deptcd")));
  179. model.setValue(datagrid.nodeset + "[" + addRow + "]/deptnm", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("deptnm")));
  180. model.setValue(datagrid.nodeset + "[" + addRow + "]/csrreqdeptcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("csrreqdeptcd")));
  181. model.setValue(datagrid.nodeset + "[" + addRow + "]/setcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("setcd")));
  182. model.setValue(datagrid.nodeset + "[" + addRow + "]/reqflag", model.getValue(pnode +"/" + grdName + "[" + j + "]/reqflag"));
  183. model.setValue(datagrid.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + grdName + "[" + j + "]/goodcd"));
  184. model.setValue(datagrid.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + grdName + "[" + j + "]/csrgoodnm"));
  185. model.setValue(datagrid.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + grdName + "[" + j + "]/csrgoodspec"));
  186. model.setValue(datagrid.nodeset + "[" + addRow + "]/goodmodel" , model.getValue(pnode +"/" + grdName + "[" + j + "]/csrgoodmodel"));
  187. model.setValue(datagrid.nodeset + "[" + addRow + "]/dinfflag" , model.getValue(pnode +"/" + grdName + "[" + j + "]/dinfflag"));
  188. model.setValue(datagrid.nodeset + "[" + addRow + "]/instcd" , cmb_instcd.value);
  189. addRow = addRow + 1;
  190. }
  191. model.refresh();
  192. }
  193. ]]>
  194. </script>
  195. </xhtml:head>
  196. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  197. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  198. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:206px; height:14px; ">상용SET관리</caption>
  199. </group>
  200. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
  201. <datagrid id="grd_csrbipumlist" nodeset="/root/main/csrbipuminfo/csrbipumlist" class="datagrid2" caption="^물품구분^물품코드^물품명^규격^모델^멸균구분" colsep="^" colwidth="23, 62, 85, 217, 60, 60, 57" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:165px; width:545px; height:560px; ">
  202. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  203. <col disabled="true" ref="reqflag" type="combo" style="text-align:center; ">
  204. <choices>
  205. <item>
  206. <label>비품</label>
  207. <value>1</value>
  208. </item>
  209. <item>
  210. <label>소모품</label>
  211. <value>2</value>
  212. </item>
  213. <item>
  214. <label>린넨</label>
  215. <value>4</value>
  216. </item>
  217. <item>
  218. <label>멸균의뢰</label>
  219. <value>3</value>
  220. </item>
  221. </choices>
  222. </col>
  223. <col ref="goodcd"/>
  224. <col ref="goodnm" style="text-align:left; "/>
  225. <col ref="goodspec"/>
  226. <col ref="goodmodel"/>
  227. <col disabled="true" ref="dinfflag" type="combo">
  228. <choices>
  229. <item>
  230. <label>멸균</label>
  231. <value>1</value>
  232. </item>
  233. <item>
  234. <label>비멸균</label>
  235. <value>2</value>
  236. </item>
  237. </choices>
  238. </col>
  239. </datagrid>
  240. <group id="group2" style="left:5px; top:10px; width:545px; height:105px; vertical-align:top; ">
  241. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:545px; height:105px; background-color:#fffbf2; border-color:#ffd799; "/>
  242. <line id="line2" class="line_4" style="x1:460px; y1:42px; x2:460px; y2:68px; border-color:#ffe4bb; border-left-style:solid; "/>
  243. <button id="btn_search" class="btn1_letter2" style="left:470px; top:45px; width:56px; height:22px; ">
  244. <caption>조회</caption>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. fSerachData();
  248. ]]>
  249. </script>
  250. </button>
  251. <select1 id="cmb_smlcd" ref="/root/cond/smlcd" appearance="minimal" style="left:300px; top:4px; width:95px; height:19px; ">
  252. <choices>
  253. <itemset nodeset="/root/init/smllist">
  254. <label ref="smlnm"/>
  255. <value ref="smlcd"/>
  256. </itemset>
  257. </choices>
  258. </select1>
  259. <select1 id="cmb_lrgcd" ref="/root/cond/lrgcd" appearance="minimal" style="left:100px; top:4px; width:95px; height:19px; ">
  260. <choices>
  261. <itemset nodeset="/root/init/lrglist">
  262. <label ref="lrgnm"/>
  263. <value ref="lrgcd"/>
  264. </itemset>
  265. </choices>
  266. <script type="javascript" ev:event="xforms-value-changed">
  267. <![CDATA[
  268. submit("TRRSC05112");
  269. var nodelist = instance1.selectNodes("/root/init/mdllist");
  270. model.removeNodeset("/root/cond/mdlcd");
  271. model.removeNodeset("/root/cond/smlcd");
  272. model.makeNode("/root/cond/mdlcd");
  273. if(nodelist.length < 1 ){
  274. model.removeNodeset("/root/init/mdllist");
  275. model.removeNodeset("/root/init/smllist");
  276. }else{
  277. addComboItem( "cmb_mdlcd", "전체", "", "above");
  278. model.setValue("/root/cond/mdlcd",model.getValue("/root/init/mdllist/mdlcd[1]"));
  279. }
  280. cmb_mdlcd.refresh();
  281. cmb_smlcd.refresh();
  282. ]]>
  283. </script>
  284. </select1>
  285. <select1 id="rdo_proddrugsetflag" ref="/root/cond/proddrugsetflag" appearance="full" cols="4" overflow="visible" style="left:100px; top:55px; width:185px; height:13px; border-style:none; ">
  286. <choices>
  287. <item>
  288. <label>전체</label>
  289. <value/>
  290. </item>
  291. <item>
  292. <label>Set</label>
  293. <value>1</value>
  294. </item>
  295. <item>
  296. <label>Single</label>
  297. <value>2</value>
  298. </item>
  299. </choices>
  300. </select1>
  301. <input id="ipt_reqdata" ref="/root/cond/reqdata" class="input_search" imemode="alpha" appearance="input" style="left:230px; top:76px; width:145px; height:19px; ">
  302. <script type="javascript" ev:event="onkeyup">
  303. <![CDATA[
  304. inputEnterKey("btn_search", "DOMActivate");
  305. ]]>
  306. </script>
  307. </input>
  308. <caption id="cap_goodcd" class="search_name" style="left:10px; top:78px; width:86px; height:17px; ">검색구분 :</caption>
  309. <select1 id="cmb_mdlcd" ref="/root/cond/mdlcd" appearance="minimal" style="left:200px; top:4px; width:95px; height:19px; ">
  310. <choices>
  311. <itemset nodeset="/root/init/mdllist">
  312. <label ref="mdlnm"/>
  313. <value ref="mdlcd"/>
  314. </itemset>
  315. </choices>
  316. <script type="javascript" ev:event="xforms-value-changed">
  317. <![CDATA[
  318. submit("TRRSC05113");
  319. var nodelist = instance1.selectNodes("/root/init/smllist");
  320. model.removeNodeset("/root/cond/smlcd");
  321. model.makeNode("/root/cond/smlcd");
  322. if(nodelist.length < 1){
  323. model.removeNodeset("/root/init/smllist");
  324. }else{
  325. addComboItem( "cmb_smlcd", "전체", "", "above");
  326. model.setValue("/root/cond/smlcd",model.getValue("/root/init/smllist/smlcd[1]"));
  327. }
  328. ]]>
  329. </script>
  330. </select1>
  331. <caption id="caption1" class="search_name" style="left:10px; top:55px; width:86px; height:17px; ">Set구분 :</caption>
  332. <caption id="caption13" class="search_name" style="left:10px; top:5px; width:86px; height:17px; ">분류구분 :</caption>
  333. <caption id="caption14" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">물품구분 :</caption>
  334. <select1 id="rdo_reqflag" ref="/root/cond/reqflag" appearance="full" cols="5" overflow="visible" style="left:100px; top:30px; width:261px; height:13px; border-style:none; ">
  335. <choices>
  336. <item>
  337. <label>전체</label>
  338. <value/>
  339. </item>
  340. <item>
  341. <label>비품</label>
  342. <value>1</value>
  343. </item>
  344. <item>
  345. <label>소모품</label>
  346. <value>2</value>
  347. </item>
  348. <item>
  349. <label>린넨</label>
  350. <value>4</value>
  351. </item>
  352. <item>
  353. <label>멸균의뢰</label>
  354. <value>3</value>
  355. </item>
  356. </choices>
  357. </select1>
  358. <select1 id="rdo_goodflag" ref="/root/cond/goodflag" appearance="full" cols="4" overflow="visible" style="left:100px; top:80px; width:125px; height:13px; border-style:none; ">
  359. <choices>
  360. <item>
  361. <label>물품코드</label>
  362. <value>01</value>
  363. </item>
  364. <item>
  365. <label>물품명</label>
  366. <value>02</value>
  367. </item>
  368. </choices>
  369. </select1>
  370. </group>
  371. <caption id="caption12" class="tit_2" style="left:5px; top:144px; width:121px; height:14px; ">물품검색결과</caption>
  372. <line id="line4" class="line_1" style="x1:5px; y1:160px; x2:550px; y2:160px; "/>
  373. <group id="grp_sea" style="left:580px; top:17px; width:610px; height:50px; vertical-align:top; ">
  374. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:610px; height:50px; background-color:#fffbf2; border-color:#ffd799; "/>
  375. <button id="bnt_search" class="btn1_letter2" style="left:550px; top:15px; width:56px; height:22px; ">
  376. <caption>조회</caption>
  377. <script type="javascript" ev:event="DOMActivate">
  378. <![CDATA[
  379. fSearch();
  380. ]]>
  381. </script>
  382. </button>
  383. <line id="line13" class="line_4" style="x1:545px; y1:15px; x2:545px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
  384. <caption id="caption2" class="search_name" style="left:5px; top:17px; width:91px; height:17px; ">기관코드 :</caption>
  385. <select1 id="cmb_instcd" ref="/root/main/cond/instcd" class="input_s_essential" disabled="true" appearance="minimal" style="left:92px; top:17px; width:103px; height:19px; ">
  386. <choices>
  387. <itemset>
  388. <label/>
  389. <value/>
  390. </itemset>
  391. </choices>
  392. </select1>
  393. <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" class="combo_s_essential" appearance="minimal" style="left:454px; top:17px; width:86px; height:19px; ">
  394. <choices>
  395. <itemset nodeset="/root/hidden/csrdeptlist">
  396. <label ref="deptnm"/>
  397. <value ref="deptcd"/>
  398. </itemset>
  399. </choices>
  400. <script type="javascript" ev:event="xforms-value-changed">
  401. <![CDATA[
  402. fSearch();
  403. ]]>
  404. </script>
  405. </select1>
  406. <caption id="caption4" class="search_name" style="left:370px; top:19px; width:89px; height:17px; ">부 서 명 :</caption>
  407. <caption id="cap_csrreqdeptcd" class="search_name" style="left:200px; top:19px; width:89px; height:17px; ">부서구분 :</caption>
  408. <select1 id="cmb_csrreqdeptcd" ref="/root/main/cond/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:289px; top:17px; width:76px; height:19px; ">
  409. <choices>
  410. <itemset nodeset="/root/main/csrreqdeptlist">
  411. <label ref="csrreqdeptnm"/>
  412. <value ref="csrreqdeptcd"/>
  413. </itemset>
  414. </choices>
  415. <script type="javascript" ev:event="xforms-value-changed">
  416. <![CDATA[
  417. model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
  418. model.makeValue("/root/send/reqdata/useyn","Y");
  419. submit("TRRSS01212");
  420. cmb_deptcd.refresh();
  421. ]]>
  422. </script>
  423. </select1>
  424. </group>
  425. <datagrid id="grd_setdetllist" nodeset="/root/main/setdetlinfo/setdetllist" class="datagrid2" caption="삭제^setcd^부서구분^instcd^부서코드^부서명^물품구분^물품코드^물품명^규격^모델^멸균구분^저장일시^저장자^rgstflag^deptcd^deptcgflag" colsep="^" colwidth="34, 0, 39, 0, 0, 92, 64, 80, 209, 100, 100, 55, 120, 70, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:580px; top:165px; width:610px; height:560px; ">
  426. <col checkvalue="Y,N" ref="delyn" type="checkbox"/>
  427. <col ref="setcd"/>
  428. <col ref="csrreqdeptcd" type="combo" visibility="hidden">
  429. <choices>
  430. <itemset nodeset="/root/main/csrreqdeptlist">
  431. <label ref="csrreqdeptnm"/>
  432. <value ref="csrreqdeptcd"/>
  433. </itemset>
  434. </choices>
  435. </col>
  436. <col ref="instcd"/>
  437. <col ref="deptcd"/>
  438. <col ref="deptnm" type="output" style="text-align:center; "/>
  439. <col disabled="true" ref="reqflag" type="combo" style="text-align:center; ">
  440. <choices>
  441. <item>
  442. <label>비품</label>
  443. <value>1</value>
  444. </item>
  445. <item>
  446. <label>소모품</label>
  447. <value>2</value>
  448. </item>
  449. <item>
  450. <label>린넨</label>
  451. <value>4</value>
  452. </item>
  453. <item>
  454. <label>멸균의뢰</label>
  455. <value>3</value>
  456. </item>
  457. </choices>
  458. </col>
  459. <col ref="goodcd" style="text-align:center; "/>
  460. <col ref="goodnm" style="text-align:left; "/>
  461. <col ref="goodspec"/>
  462. <col ref="goodmodel"/>
  463. <col disabled="true" ref="dinfflag" type="combo" style="text-align:center; ">
  464. <choices>
  465. <item>
  466. <label>멸균</label>
  467. <value>1</value>
  468. </item>
  469. <item>
  470. <label>비멸균</label>
  471. <value>2</value>
  472. </item>
  473. </choices>
  474. </col>
  475. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  476. <col ref="lastupdtrnm" style="text-align:center; "/>
  477. <col ref="rgstflag" visibility="hidden"/>
  478. <col ref="deptcd" visibility="hidden"/>
  479. <col ref="deptcgflag" visibility="hidden"/>
  480. <script type="javascript" ev:event="xforms-value-changed">
  481. <![CDATA[
  482. var deptcgflag = grd_setdetllist.valueMatrix(grd_setdetllist.row,grd_setdetllist.colRef("deptcgflag"));
  483. var goodnm = grd_setdetllist.valueMatrix(grd_setdetllist.row,grd_setdetllist.colRef("goodnm"));
  484. if(deptcgflag =="D"){
  485. messageBox(goodnm+" "+"은(는) 부서 비품수량으로 이미 등록된 코드이므로 삭제할 수","I004");
  486. grd_setdetllist.valueMatrix(grd_setdetllist.row,grd_setdetllist.colRef("delyn")) ="N" ;
  487. grd_setdetllist.rowStatus(grd_setdetllist.row)="0";
  488. }else{
  489. if(grd_setdetllist.valueMatrix(grd_setdetllist.row,grd_setdetllist.colRef("delyn"))=="Y"){
  490. grd_setdetllist.rowStatus(grd_setdetllist.row)="4";
  491. }else{
  492. grd_setdetllist.rowStatus(grd_setdetllist.row)="0";
  493. }
  494. }
  495. ]]>
  496. </script>
  497. </datagrid>
  498. <caption id="caption3" class="tit_2" style="left:580px; top:144px; width:131px; height:14px; ">부서 상용 Set 내역</caption>
  499. <line id="line1" class="line_1" style="x1:580px; y1:160px; x2:1190px; y2:160px; "/>
  500. <button id="btn_addlist" class="icon_right" navindex="15" style="left:552px; top:445px; width:26px; height:19px; ">
  501. <caption/>
  502. <script type="javascript" ev:event="DOMActivate">
  503. <![CDATA[
  504. var vPath = "/root/main/csrbipuminfo/csrbipumlist";
  505. for(var i = 1 ; i < grd_csrbipumlist.rows ; i++){
  506. if (model.getValue(vPath+"["+ i + "]/chkyn") == "Y") {
  507. goodnm = model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/goodnm");
  508. goodcd = model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/goodcd");
  509. if (model.getValue("/root/main/setdetlinfo/setdetllist[goodcd='"+goodcd+"']/goodcd") =="") {
  510. grd_setdetllist.addRow(false);
  511. grd_setdetllist.valueMatrix(grd_setdetllist.rows-1,grd_setdetllist.colRef("deptcd")) = cmb_deptcd.value;
  512. grd_setdetllist.valueMatrix(grd_setdetllist.rows-1,grd_setdetllist.colRef("deptnm")) = cmb_deptcd.label;
  513. model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/reqflag" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/reqflag"));
  514. model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/goodcd" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/goodcd"));
  515. model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/goodnm" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/goodnm"));
  516. model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/goodspec" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/goodspec"));
  517. model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/goodmodel" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/goodmodel"));
  518. model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/dinfflag" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/dinfflag"));
  519. model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/lastupdtdt" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/lastupdtdt"));
  520. model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/lastupdtrnm",model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/lastupdtrnm"));
  521. grd_setdetllist.rowStatus(grd_setdetllist.rows-1) = "1";
  522. if(grd_setdetllist.valueMatrix(grd_setdetllist.rows-1,grd_setdetllist.colRef("reqflag")) =="2"){
  523. setRowStyle("grd_setdetllist","1","2","reqflag","equal");
  524. }else if(grd_setdetllist.valueMatrix(grd_setdetllist.rows-1,grd_setdetllist.colRef("reqflag")) =="3"){
  525. setRowStyle("grd_setdetllist","2","3","reqflag","equal");
  526. }else if(grd_setdetllist.valueMatrix(grd_setdetllist.rows-1,grd_setdetllist.colRef("reqflag")) =="4"){
  527. setRowStyle("grd_setdetllist","3","4","reqflag","equal");
  528. }
  529. }else{
  530. messageBox(goodnm+" "+"은(는) 부서 상용Set으로 이미 등록된 코드","I009");
  531. }
  532. }
  533. model.setValue(vPath+"["+ i + "]/chkyn","N");
  534. }
  535. bool2.value ="N";
  536. model.refresh();
  537. ]]>
  538. </script>
  539. </button>
  540. <bool id="bool1" checkvalue="Y,N" ref="/root/hidden/cond/checkallitem" style="left:577px; top:171px; width:30px; height:20px; ">
  541. <script type="javascript" ev:event="xforms-value-changed">
  542. <![CDATA[
  543. if(bool1.value == "Y"){
  544. for(var i = 1 ; i < grd_setdetllist.rows ; i++){
  545. var deptcgflag = grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("deptcgflag"));
  546. var goodnm = grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("goodnm"));
  547. if(deptcgflag =="D"){
  548. messageBox(goodnm+" "+"은(는) 부서 비품수량으로 이미 등록된 코드이므로 삭제할 수","I004");
  549. grd_setdetllist.valueMatrix(i, grd_setdetllist.colRef("delyn")) ="N";
  550. grd_setdetllist.rowStatus(i)="0";
  551. }else{
  552. grd_setdetllist.valueMatrix(i, grd_setdetllist.colRef("delyn")) = "Y";
  553. grd_setdetllist.rowStatus(i)="4";
  554. }
  555. }
  556. }else{
  557. for(var i = 1 ; i < grd_setdetllist.rows ; i++){
  558. grd_setdetllist.valueMatrix(i, grd_setdetllist.colRef("delyn")) = "N";
  559. grd_setdetllist.rowStatus(i)="0";
  560. }
  561. }
  562. grd_setdetllist.refresh();
  563. ]]>
  564. </script>
  565. </bool>
  566. <button id="btn_save" class="btn4_letter2" style="left:1127px; top:135px; width:56px; height:22px; ">
  567. <caption>저장</caption>
  568. <script type="javascript" ev:event="DOMActivate">
  569. <![CDATA[
  570. model.makeValue("/root/send/savedata/cond/instcd" ,model.getValue("/root/main/cond/instcd"));
  571. model.makeValue("/root/send/savedata/cond/csrreqdeptcd" ,model.getValue("/root/main/cond/csrreqdeptcd"));
  572. model.makeValue("/root/send/savedata/cond/deptcd" ,model.getValue("/root/main/cond/deptcd"));
  573. model.makeValue("/root/send/savedata/setdetllist",grd_setdetllist.getUpdateData());
  574. if(submit("TXRSS00402")){
  575. bnt_search.dispatch("DOMActivate");
  576. model.removeNodeset("/root/send/savedata");
  577. grd_setdetllist.rebuild();
  578. grd_setdetllist.rebuildStyle();
  579. for(var i = 0 ; i < grd_setdetllist.rows ; i++){
  580. if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="2"){
  581. setRowStyle("grd_setdetllist","1","2","reqflag","equal");
  582. }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="3"){
  583. setRowStyle("grd_setdetllist","2","3","reqflag","equal");
  584. }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="4"){
  585. setRowStyle("grd_setdetllist","3","4","reqflag","equal");
  586. }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("deptcgflag")) =="D"){
  587. setRowStyle("grd_setdetllist","5","D","deptcgflag","equal");
  588. }
  589. }
  590. }
  591. ]]>
  592. </script>
  593. </button>
  594. <bool id="bool2" checkvalue="Y,N" ref="/root/hidden/cond/checkallitem2" style="left:22px; top:171px; width:30px; height:20px; ">
  595. <script type="javascript" ev:event="xforms-value-changed">
  596. <![CDATA[
  597. if(bool2.value == "Y"){
  598. for(var i = 1 ; i < grd_csrbipumlist.rows ; i++){
  599. grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("chkyn")) = "Y";
  600. }
  601. }else{
  602. for(var i = 1 ; i < grd_csrbipumlist.rows ; i++){
  603. grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("chkyn")) = "N";
  604. }
  605. }
  606. grd_csrbipumlist.refresh();
  607. ]]>
  608. </script>
  609. </bool>
  610. </group>
  611. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  612. <line id="line11" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
  613. <line id="line5" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  614. <button id="btn_screenmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
  615. <caption>화면이동</caption>
  616. </button>
  617. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  618. <caption>출력</caption>
  619. </button>
  620. <select1 id="cmb_goodflag" visibility="hidden" appearance="minimal" style="left:875px; top:5px; width:100px; height:20px; ">
  621. <choices>
  622. <item>
  623. <label>combo1</label>
  624. <value>combo1</value>
  625. </item>
  626. </choices>
  627. </select1>
  628. </group>
  629. </xhtml:body>
  630. </xhtml:html>