SMMNG00800_상용SET관리.xrw 30 KB

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