SMAHB00400_검사실코드관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHB00300.xrw
  4. * 설 명 : 패키지관리
  5. * 설 계 자 : 손주연
  6. * 작 성 자 :
  7. * 작 성 일 : 2007.03.13
  8. * 수정이력 : 2007.10.04 김다영 화면권한추가
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>Untitle</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <roomlst>
  20. <item>
  21. <roomcd/>
  22. <roomnm/>
  23. <testroomcdkey/>
  24. <testroomcd/>
  25. <testroomabbrnm/>
  26. <testroomnm/>
  27. <healexamplacecd/>
  28. <cntrroomcd/>
  29. <testroomflag/>
  30. <prntseq/>
  31. <examdesc/>
  32. <remcnts/>
  33. <useyn/>
  34. <prntyn/>
  35. <usetm/>
  36. <waitdispyn/>
  37. <barcdautprntyn/>
  38. <namecardautprntyn/>
  39. <rsrvyn/>
  40. <lastupdtrid/>
  41. <lastupdtdt/>
  42. <roomcdkey/>
  43. <cntrroomcdkey/>
  44. <healexamplacecdkey/>
  45. </item>
  46. </roomlst>
  47. <cntrroomlst>
  48. <room>
  49. <sel/>
  50. <examroomid/>
  51. <examroomnm/>
  52. <healexamplacecd/>
  53. <waitshowyn/>
  54. <floorno/>
  55. </room>
  56. </cntrroomlst>
  57. </main>
  58. <send>
  59. <srchtestroomcd/>
  60. <srchtestroomnm/>
  61. <srchhealexamplacecd/>
  62. <srchinstcd/>
  63. <req>
  64. <savedata/>
  65. <userid/>
  66. <instcd/>
  67. </req>
  68. <srchtestroomflag/>
  69. </send>
  70. <init>
  71. <baseinfo>
  72. <roomflag/>
  73. <healexamplacelst/>
  74. <cntrroomlst/>
  75. </baseinfo>
  76. </init>
  77. <hidden>
  78. <item/>
  79. <sel/>
  80. </hidden>
  81. </root>
  82. </instance>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  85. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  86. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  87. <submission id="TRAHB01506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/cntrroomlst"/>
  88. <submission id="TRAHB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/roomlst"/>
  89. <submission id="TXAHB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send/req" replace="instance" resultref="root/hidden"/>
  90. <submission id="TRZBC00101"/>
  91. <submission id="TRAHA00001"/>
  92. <script type="javascript" ev:event="xforms-ready">
  93. <![CDATA[
  94. //검사실구분
  95. zbcfGetCodeList( new Array("A0065"), new Array("/root/init/baseinfo/roomflag"));
  96. submit("TRZBC00101");
  97. healGetCodeList(new Array("S600"), new Array("/root/init/baseinfo/healexamplacelst"));
  98. // 중앙관제 검사실
  99. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
  100. submit("TRAHB01506");
  101. fGetRoomList();
  102. //화면권한추가
  103. btn_search.disabled = !checkAuth("R");
  104. btn_save.disabled = !checkAuth("X");
  105. btn_print.disabled = !checkAuth("P");
  106. ]]>
  107. </script>
  108. <bind id="bind_roomcd" ref="/root/main/roomlst/item/testroomcd" readonly="../testroomcdkey!=''"/>
  109. </model>
  110. <script type="javascript">
  111. <![CDATA[
  112. function fGetRoomList(){
  113. model.removeNodeset("/root/main/roomlst/item");
  114. var ret = submit("TRAHB00401");
  115. return ret;
  116. }
  117. function fSaveRoom(){
  118. var ret = false;
  119. if ( messageBox("검사실정보를","Q002")==6 ) {
  120. model.setValue("/root/send/req/savedata", grd_roomlst.getUpdateData());
  121. model.setValue("/root/send/req/instcd", getUserInfo("dutplceinstcd") );
  122. model.setValue("/root/send/req/userid", getUserId() );
  123. ret = submit("TXAHB00401");
  124. }
  125. return ret;
  126. }
  127. ]]>
  128. </script>
  129. </xhtml:head>
  130. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  131. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  132. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">검사실관리</caption>
  133. </group>
  134. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  135. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  136. <caption>저장</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. if( fSaveRoom() == true ){
  140. fGetRoomList();
  141. }
  142. ]]>
  143. </script>
  144. </button>
  145. <button id="btn_print" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  146. <caption>출력</caption>
  147. </button>
  148. </group>
  149. <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  150. <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  151. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  152. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
  153. <caption>조회</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. fGetRoomList();
  157. ]]>
  158. </script>
  159. </button>
  160. <line id="line18" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-left-style:solid; "/>
  161. <caption id="caption59" class="search_name" style="left:16px; top:6px; width:60px; height:17px; ">코드 :</caption>
  162. <input id="ipt_cd" ref="/root/send/srchtestroomcd" class="input_s_essential" style="left:80px; top:7px; width:140px; height:19px; ">
  163. <script type="javascript" ev:event="onkeyup">
  164. <![CDATA[
  165. inputEnterKey("btn_search", "DOMActivate");
  166. ]]>
  167. </script>
  168. </input>
  169. <input id="ipt_nm" ref="/root/send/srchtestroomnm" class="input_s_essential" style="left:307px; top:7px; width:293px; height:19px; ">
  170. <script type="javascript" ev:event="onkeyup">
  171. <![CDATA[
  172. inputEnterKey("btn_search", "DOMActivate");
  173. ]]>
  174. </script>
  175. </input>
  176. <caption id="caption21" class="search_name" style="left:245px; top:6px; width:73px; height:17px; ">명칭 :</caption>
  177. <caption id="caption1" class="search_name" style="left:645px; top:6px; width:81px; height:17px; ">건진장소:</caption>
  178. <select1 id="combo1" ref="/root/send/srchhealexamplacecd" class="combo_search" appearance="minimal" style="left:735px; top:7px; width:100px; height:19px; ">
  179. <choices>
  180. <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
  181. <label ref="cdnm"/>
  182. <value ref="cdid"/>
  183. </itemset>
  184. </choices>
  185. </select1>
  186. <caption id="caption3" class="search_name" style="left:875px; top:6px; width:100px; height:17px; ">검사실구분:</caption>
  187. <select1 id="combo2" ref="/root/send/srchtestroomflag" class="combo_search" appearance="minimal" style="left:980px; top:7px; width:100px; height:19px; ">
  188. <choices>
  189. <itemset nodeset="/root/init/baseinfo/roomflag/A0065">
  190. <label ref="cdnm"/>
  191. <value ref="cdid"/>
  192. </itemset>
  193. </choices>
  194. </select1>
  195. </group>
  196. <line id="line20" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  197. <datagrid id="grd_roomlst" nodeset="/root/main/roomlst/item" caption="검사실그룹코드^검사실그룹명^caption1^검사실코드^검사실약어명^검사실명^건진장소^관제검사실^검사실구분^출력순서^검사항목^검사항목(영)^검사항목(중)^검사항목(러)^비고^사용여부^출력여부^소요시간^대기자표시^바코드자동출력^네임지자동출력^예약관리여부^최종수정자^최종수정일시^roomcdkey^cntrroomcdkey^healexamplacecdkey" colsep="^" colwidth="99, 104, 52, 75, 115, 117, 70, 80, 86, 67, 132, 132, 132, 132, 72, 51, 58, 60, 72, 96, 100, 78, 78, 100, 100, 100, 100" dataheight="23" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1194px; height:663px; ">
  198. <col ref="roomcd" type="input"/>
  199. <col ref="roomnm" type="input"/>
  200. <col ref="testroomcdkey" visibility="hidden"/>
  201. <col ref="testroomcd" type="input"/>
  202. <col ref="testroomabbrnm" type="input"/>
  203. <col ref="testroomnm" type="input" style="left:365px; top:23px; width:155px; height:23px; "/>
  204. <col ref="healexamplacecd" type="combo">
  205. <choices>
  206. <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
  207. <label ref="cdnm"/>
  208. <value ref="cdid"/>
  209. </itemset>
  210. </choices>
  211. </col>
  212. <col ref="cntrroomcd" type="inputbutton"/>
  213. <col ref="testroomflag" type="combo">
  214. <choices>
  215. <itemset nodeset="/root/init/baseinfo/roomflag/A0065">
  216. <label ref="cdnm"/>
  217. <value ref="cdid"/>
  218. </itemset>
  219. </choices>
  220. </col>
  221. <col ref="prntseq" type="input"/>
  222. <col ref="examdesc" type="input"/>
  223. <col ref="examdesc_eng" type="input"/>
  224. <col ref="examdesc_chn" type="input"/>
  225. <col ref="examdesc_rsa" type="input" style="font-family:맑은 고딕; "/>
  226. <col class="gridinput" ref="remcnts" type="input"/>
  227. <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
  228. <col checkvalue="Y,N" ref="prntyn" type="checkbox"/>
  229. <col class="gridinput" ref="usetm" type="input"/>
  230. <col checkvalue="Y,N" ref="waitdispyn" type="checkbox" visibility="hidden"/>
  231. <col checkvalue="Y,N" ref="barcdautprntyn" type="checkbox"/>
  232. <col checkvalue="Y,N" ref="namecardautprntyn" type="checkbox"/>
  233. <col checkvalue="Y,N" ref="rsrvyn" type="checkbox"/>
  234. <col ref="lastupdtrid"/>
  235. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  236. <col ref="roomcdkey" visibility="hidden"/>
  237. <col ref="cntrroomcdkey" visibility="hidden"/>
  238. <col ref="healexamplacecdkey" visibility="hidden"/>
  239. <script type="javascript" ev:event="onendedit">
  240. <![CDATA[
  241. /*var cur_col = grd_roomlst.col;
  242. var cur_row= grd_roomlst.row;
  243. cur_col++;
  244. if( cur_col > 10 ){
  245. grd_roomlst.addItem();
  246. grd_roomlst.col = 2;
  247. grd_roomlst.editCell();
  248. }
  249. else{
  250. grd_roomlst.col = cur_col;
  251. grd_roomlst.editCell();
  252. }
  253. */
  254. ]]>
  255. </script>
  256. <script type="javascript" ev:event="onclick">
  257. <![CDATA[
  258. if( grd_roomlst.colType(grd_roomlst.col) == "input" ){
  259. grd_roomlst.editCell();
  260. }
  261. ]]>
  262. </script>
  263. <script type="javascript" ev:event="onbuttonclick">
  264. <![CDATA[
  265. if(grd_roomlst.col == grd_roomlst.colRef("cntrroomcd")) {
  266. var cntrroomcd = grd_roomlst.valueMatrix(grd_roomlst.row , grd_roomlst.colRef("cntrroomcd"));
  267. var healexamplacecd = grd_roomlst.valueMatrix(grd_roomlst.row , grd_roomlst.colRef("healexamplacecd"));
  268. var nodeList = instance1.selectNodes("/root/init/baseinfo/cntrroomlst/room[healexamplacecd='"+ healexamplacecd +"']"); // 해당 건진장소 검사실 인스턴스 조회
  269. grp_room.visible = true;
  270. if(nodeList.length <= 0 ) return;
  271. // 해당 건진장소를 셋팅
  272. model.removeNodeset("/root/main/cntrroomlst/room");
  273. var rCSV = getNodeListCSV(nodeList);
  274. setCSVToNode( "/root/main/cntrroomlst", rCSV ,"room");
  275. model.makeValue("/root/hidden/sel" , grd_roomlst.row); // 선택 row
  276. // 초기화
  277. grd_cntrroomlst.rebuild();
  278. }
  279. ]]>
  280. </script>
  281. </datagrid>
  282. <button id="btn_grdadd" class="btn2_letter3" style="left:982px; top:50px; width:53px; height:19px; ">
  283. <caption>행추가</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. grd_roomlst.addItem();
  287. grd_roomlst.col = 2;
  288. grd_roomlst.editCell();
  289. ]]>
  290. </script>
  291. </button>
  292. <button id="btn_grddel" class="btn2_letter3" style="left:1038px; top:50px; width:53px; height:19px; ">
  293. <caption>행삭제</caption>
  294. <script type="javascript" ev:event="DOMActivate">
  295. <![CDATA[
  296. //grd_roomlst.addStatus(grd_roomlst.row,"delete");
  297. deleteSelectedRows(grd_roomlst,true);
  298. ]]>
  299. </script>
  300. </button>
  301. <caption id="caption4" class="tit_2" style="left:0px; top:55px; width:144px; height:14px; ">검사실코드관리</caption>
  302. <button id="btn_excsave" class="btn2_letter2" style="left:1150px; top:50px; width:42px; height:19px; ">
  303. <caption>엑셀</caption>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  307. grd_roomlst.saveExcel(file);
  308. ]]>
  309. </script>
  310. </button>
  311. <button id="btn_grdcopy" class="btn2_letter3" style="left:1094px; top:50px; width:53px; height:19px; ">
  312. <caption>행복사</caption>
  313. <script type="javascript" ev:event="DOMActivate">
  314. <![CDATA[
  315. var grdrow = grd_roomlst.row;
  316. model.copyNode("/root/hidden/item","/root/main/roomlst/item["+ grdrow +"]");
  317. grd_roomlst.insertItem(grdrow);
  318. model.setValue("/root/hidden/item/testroomcdkey", "");
  319. model.setValue("/root/hidden/item/testroomcd", "");
  320. model.copyNode("/root/main/roomlst/item["+ grdrow +"]","/root/hidden/item");
  321. model.refresh();
  322. grd_roomlst.col = 2;
  323. grd_roomlst.editCell();
  324. ]]>
  325. </script>
  326. </button>
  327. <group id="grp_room" visibility="hidden" style="left:725px; top:125px; width:355px; height:270px; ">
  328. <datagrid id="grd_cntrroomlst" nodeset="/root/main/cntrroomlst/room" caption="선택^검사실코드^검사실명^건진장소^대기자표시^floorno" colsep="^" colwidth="30, 70, 120, 65, 70, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:25px; width:345px; height:240px; ">
  329. <col checkvalue="Y,N" ref="sel" type="checkbox" visibility="hidden"/>
  330. <col ref="examroomid"/>
  331. <col ref="examroomnm"/>
  332. <col disabled="true" ref="healexamplacecd" type="combo">
  333. <choices>
  334. <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
  335. <label ref="cdnm"/>
  336. <value ref="cdid"/>
  337. </itemset>
  338. </choices>
  339. </col>
  340. <col checkvalue="Y,N" disabled="true" ref="waitshowyn" type="checkbox"/>
  341. <col ref="floorno" visibility="hidden"/>
  342. <script type="javascript" ev:event="ondblclick">
  343. <![CDATA[
  344. var selRow = parseInt(model.getValue("/root/hidden/sel"));
  345. grd_roomlst.valueMatrix( selRow , grd_roomlst.colRef("cntrroomcd")) = grd_cntrroomlst.valueMatrix(grd_cntrroomlst.row , grd_cntrroomlst.colRef("examroomid"));
  346. if (grd_roomlst.rowStatus(selRow) == 0) {
  347. grd_roomlst.rowStatus(selRow) = 2;
  348. }
  349. grp_room.visible = false;
  350. ]]>
  351. </script>
  352. </datagrid>
  353. <caption id="caption2" class="tit_2" style="left:5px; top:5px; width:144px; height:14px; ">관제검사실</caption>
  354. <line id="line1" class="line_1" style="x1:5px; y1:20px; x2:350px; y2:20px; "/>
  355. <button id="btn_choiclose" class="icon_plus" style="left:337px; top:3px; width:13px; height:15px; ">
  356. <caption/>
  357. <script type="javascript" ev:event="DOMActivate">
  358. <![CDATA[
  359. grp_room.visible = false;
  360. ]]>
  361. </script>
  362. </button>
  363. </group>
  364. </group>
  365. </xhtml:body>
  366. </xhtml:html>