SMLLF01700_분주라벨그룹관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLF01700_분주라벨그룹관리.xrw
  4. * 설 명 : 검사결과코드관리
  5. * 설 계 자 : (주)에이씨케이 - 윤재한
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2007. 07. 13
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>분주라벨그룹관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <getdivgruplist>
  20. <divgrupcd/>
  21. <divgrupnm/>
  22. <divgrupscrnm/>
  23. <divgrupabbrnm/>
  24. <divgrupprntnm/>
  25. <divgruplblnm/>
  26. </getdivgruplist>
  27. <gettestlist>
  28. <choi/>
  29. <tclscd/>
  30. <tclsnm/>
  31. <spccd/>
  32. <spcnm/>
  33. <divgrupnm/>
  34. <tclskind/>
  35. </gettestlist>
  36. <getchoitestlist>
  37. <tclscd/>
  38. <tclsnm/>
  39. <spccd/>
  40. <spcnm/>
  41. <tclskind/>
  42. </getchoitestlist>
  43. </main>
  44. <send>
  45. <lrgcd/>
  46. <mdlcd/>
  47. <codeflag/>
  48. <grddata/>
  49. <testgrddata/>
  50. <tclscd/>
  51. <spccd/>
  52. <divgrupcd/>
  53. <userdeptflagcd/>
  54. </send>
  55. <init>
  56. </init>
  57. <hidden>
  58. <ref>
  59. <lrgcd/>
  60. <mdlcd>
  61. <cd/>
  62. <nm/>
  63. </mdlcd>
  64. </ref>
  65. </hidden>
  66. </root>
  67. </instance>
  68. <script type="javascript" ev:event="xforms-ready">
  69. <![CDATA[
  70. fSetInit();
  71. ]]>
  72. </script>
  73. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  75. <submission id="TRLZZ00101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/LB0111"/>
  76. <submission id="TRLLF01701" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/gettestlist"/>
  77. <submission id="TRLLF01702" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/getdivgruplist"/>
  78. <submission id="TXLLF01701" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  79. <submission id="TRLLF01703" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/getchoitestlist"/>
  80. <submission id="TXLLF01702" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  81. </model>
  82. <script type="javascript">
  83. <![CDATA[
  84. //초기화
  85. function fSetInit() {
  86. // 초기정보 조회
  87. model.setValue("/root/hidden/ref/lrgcd", "00");
  88. model.setValue("/root/hidden/ref/mdlcd/cd", "00");
  89. model.setValue("/root/send/codeflag", "0104|0102|0000|"); //0111 시행부서=계=
  90. submit("TRLZZ00101");
  91. //검사목록 조회
  92. fTestList();
  93. model.removeNodeset("/root/main/getdivgruplist");
  94. grd_divgruplist.refresh();
  95. model.removeNodeset("/root/main/getchoitestlist");
  96. grd_choitestlist.refresh();
  97. model.refresh();
  98. }
  99. //시행부서 검사계 초기정보 조회
  100. function fSetLrgCd(){
  101. var etc = model.getvalue("/root/hidden/ref/lrgcd");
  102. if(etc == "00"){
  103. cmb_tsectcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
  104. model.setValue("/root/hidden/ref/mdlcd/cd" , "00");
  105. }
  106. else{
  107. model.setValue("/root/hidden/ref/mdlcd/cd" , "00");
  108. cmb_tsectcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ etc +"']";
  109. }
  110. model.refresh();
  111. fTestList();
  112. }
  113. //행추가
  114. function fAddRow() {
  115. grd_divgruplist.addItem();
  116. model.removeNodeset("/root/main/getchoitestlist");
  117. grd_choitestlist.refresh();
  118. }
  119. //분주라벨그룹목록 행삭제
  120. function fDelRow() {
  121. grd_divgruplist.rowStatus(grd_divgruplist.row) = 4;
  122. if(grd_divgruplist.rowStatus(grd_divgruplist.row) == 4) {
  123. for (i = grd_choitestlist.rows - 1; i >= 1 ; i--) {
  124. grd_choitestlist.deleteItem(i);
  125. }
  126. }
  127. model.setValue("/root/send/grddata", grd_divgruplist.getUpdateData());
  128. model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  129. submit("TXLLF01702");
  130. grd_divgruplist.deleteItem(grd_divgruplist.row);
  131. fGetChoiTestList();
  132. fTestList();
  133. }
  134. //선택검사목록 행삭제
  135. function fDelChoiTestListRow() {
  136. grd_choitestlist.rowStatus(grd_choitestlist.row) = 4;
  137. grd_divgruplist.rowStatus(grd_divgruplist.row) = 4;
  138. grd_choitestlist.deleteItem(grd_choitestlist.row);
  139. }
  140. //초기시 검사목록 조회
  141. function fTestList() {
  142. model.setValue("/root/send/mdlcd", model.getValue("/root/hidden/ref/mdlcd/cd"));
  143. model.setValue("/root/send/lrgcd", model.getValue("/root/hidden/ref/lrgcd"));
  144. model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  145. submit("TRLLF01701");
  146. model.refresh();
  147. }
  148. //분주라벨그룹목록 조회
  149. function fGetDivGrupList() {
  150. model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  151. submit("TRLLF01702");
  152. model.removeNodeset("/root/main/getchoitestlist");
  153. model.refresh();
  154. }
  155. //선택검사목록 조회
  156. function fGetChoiTestList(row) {
  157. if(grd_divgruplist.rowStatus(grd_divgruplist.row) != 1 && grd_divgruplist.rowStatus(grd_divgruplist.row) != 3) {
  158. model.setValue("/root/send/divgrupcd", model.getValue("/root/main/getdivgruplist["+ grd_divgruplist.row +"]/divgrupcd"));
  159. model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  160. submit("TRLLF01703");
  161. }else{
  162. model.removeNodeset("/root/main/getchoitestlist");
  163. }
  164. model.refresh();
  165. }
  166. //선택검사목록
  167. function fSetChoiTestList() {
  168. model.removeNodeset("/root/hidden/temp");
  169. grd_divgruplist.rowStatus(grd_divgruplist.row) = 1;
  170. var bfcheck = 0;
  171. for(i=1; i< grd_testlist.rows; i++){
  172. var fcheck = grd_testlist.findRow("Y", i, 1, false, true);
  173. if(fcheck == -1 ) {
  174. break;
  175. }
  176. i = fcheck;
  177. var tcd= model.getValue("/root/main/gettestlist["+fcheck+"]/tclscd");
  178. var trow = grd_choitestlist.findRow(tcd, 1, 1, false, false);
  179. if(model.getValue("/root/main/gettestlist["+ fcheck +"]/divgrupnm") != "" &&
  180. model.getValue("/root/main/getdivgruplist["+ grd_divgruplist.row +"]/divgrupnm") != model.getValue("/root/main/gettestlist["+ fcheck +"]/divgrupnm")) {
  181. messageBox("이미 다른 그룹에 포함되어 있는 항목이", "E005");
  182. return;
  183. } else if(trow > 0){
  184. messageBox("코드 선택이", "E006");
  185. return;
  186. } else {
  187. model.makeNode("/root/hidden/temp");
  188. copyNodeListType("/root/hidden/temp", "/root/main/gettestlist["+fcheck+"]", "after");
  189. }
  190. }
  191. var count = getNodesetCount("/root/hidden/temp/gettestlist");
  192. var row = getNodesetCount("/root/main/getchoitestlist");
  193. for(i = 1; i<=count;i++) {
  194. grd_choitestlist.addRow(false);
  195. ++row;
  196. model.makeNode("/root/main/getchoitestlist["+ row +"]");
  197. copyNodeType("/root/main/getchoitestlist["+row+"]", "/root/hidden/temp/gettestlist["+i+"]");
  198. }
  199. model.refresh();
  200. }
  201. //저장
  202. function fSaveDivGrupList() {
  203. if(grd_choitestlist.rows < 2) {
  204. messageBox("선택검사목록이 비어있을 수", "I004");
  205. return;
  206. }
  207. if(grd_divgruplist.rowStatus(grd_divgruplist.row) == 2 ) {
  208. for(i = 1; i < grd_choitestlist.rows; i++) {
  209. grd_choitestlist.rowStatus(i) = 2;
  210. }
  211. }
  212. if(grd_divgruplist.rowStatus(grd_divgruplist.row) == 0) {
  213. for(i = 1; i < grd_choitestlist.rows; i++) {
  214. if(grd_choitestlist.rowStatus(i) == 2) {
  215. grd_divgruplist.rowStatus(grd_divgruplist.row) = 2;
  216. break;
  217. }
  218. }
  219. }
  220. if(model.getValue("/root/main/getdivgruplist["+ grd_divgruplist.row +"]/divgrupcd") == "") {
  221. messageBox("분주라벨코드를", "C001");
  222. return;
  223. }
  224. if(model.getValue("/root/main/getdivgruplist["+ grd_divgruplist.row +"]/divgrupnm") == "") {
  225. messageBox("분주라벨그룹명을", "C001");
  226. return;
  227. }
  228. if(model.getValue("/root/main/getdivgruplist["+ grd_divgruplist.row +"]/divgrupscrnm") == "") {
  229. messageBox("분주라벨화면명을", "C001");
  230. return;
  231. }
  232. if(model.getValue("/root/main/getdivgruplist["+ grd_divgruplist.row +"]/divgrupabbrnm") == "") {
  233. model.setValue("/root/main/getdivgruplist["+ grd_divgruplist.row +"]/divgrupabbrnm", "-");
  234. }
  235. if(model.getValue("/root/main/getdivgruplist["+ grd_divgruplist.row +"]/divgrupprntnm") == "") {
  236. model.setValue("/root/main/getdivgruplist["+ grd_divgruplist.row +"]/divgrupprntnm", "-");
  237. }
  238. if(model.getValue("/root/main/getdivgruplist["+ grd_divgruplist.row +"]/divgruplblnm") == "") {
  239. model.setValue("/root/main/getdivgruplist["+ grd_divgruplist.row +"]/divgruplblnm", "-");
  240. }
  241. model.setValue("/root/send/testgrddata", grd_choitestlist.getUpdateData());
  242. model.setValue("/root/send/grddata", grd_divgruplist.getUpdateData());
  243. model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  244. submit("TXLLF01701");
  245. fGetDivGrupList();
  246. fTestList();
  247. model.removeNodeset("/root/main/getchoitestlist");
  248. model.refresh();
  249. }
  250. ]]>
  251. </script>
  252. </xhtml:head>
  253. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  254. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  255. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:565px; y2:70px; "/>
  256. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">분주라벨그룹 목록</caption>
  257. <caption id="caption3" class="tit_2" style="left:570px; top:435px; width:110px; height:13px; ">검사목록</caption>
  258. <line id="line2" class="line_1" style="x1:570px; y1:450px; x2:1190px; y2:450px; "/>
  259. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  260. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  261. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  262. <button id="btn_ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  263. <caption>조회</caption>
  264. <script type="javascript" ev:event="onclick">
  265. <![CDATA[
  266. fGetDivGrupList();
  267. ]]>
  268. </script>
  269. </button>
  270. </group>
  271. <button id="btn_rowadd" class="btn2_letter3" style="left:456px; top:49px; width:53px; height:19px; ">
  272. <caption>행추가</caption>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. fAddRow();
  276. ]]>
  277. </script>
  278. </button>
  279. <button id="btn_divgrupdel" class="btn2_letter3" style="left:511px; top:49px; width:53px; height:19px; ">
  280. <caption>행삭제</caption>
  281. <script type="javascript" ev:event="DOMActivate">
  282. <![CDATA[
  283. fDelRow();
  284. ]]>
  285. </script>
  286. </button>
  287. <caption id="caption2" class="tit_2" style="left:570px; top:55px; width:110px; height:13px; ">선택검사목록</caption>
  288. <line id="line4" class="line_1" style="x1:570px; y1:70px; x2:1190px; y2:70px; "/>
  289. <button id="btn_up" class="icon_top" style="left:860px; top:398px; width:26px; height:19px; ">
  290. <caption/>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. //선택검사목록
  294. fSetChoiTestList();
  295. ]]>
  296. </script>
  297. </button>
  298. <select1 id="cmb_tsectcd" ref="/root/hidden/ref/mdlcd/cd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:992px; top:429px; width:198px; height:19px; ">
  299. <choices>
  300. <itemset nodeset="/root/init/LB0102">
  301. <label ref="nm"/>
  302. <value ref="cd"/>
  303. </itemset>
  304. </choices>
  305. <script type="javascript" ev:event="xforms-value-changed">
  306. <![CDATA[
  307. fTestList();
  308. ]]>
  309. </script>
  310. </select1>
  311. <caption id="caption4" class="search_name" style="left:698px; top:429px; width:90px; height:17px; ">검사분류 :</caption>
  312. <select1 id="cmb_sectcd" ref="/root/hidden/ref/lrgcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:791px; top:429px; width:198px; height:19px; ">
  313. <choices>
  314. <itemset nodeset="/root/init/LB0104">
  315. <label ref="nm"/>
  316. <value ref="cd"/>
  317. </itemset>
  318. </choices>
  319. <script type="javascript" ev:event="xforms-value-changed">
  320. <![CDATA[
  321. fSetLrgCd();
  322. ]]>
  323. </script>
  324. </select1>
  325. <datagrid id="grd_choitestlist" nodeset="/root/main/getchoitestlist" caption="검사코드^검사명^분주라벨명^검사구분" colwidth="82, 213, 100, 76" dataheight="23" defaultrows="1" explorerbar="sortshow" rowheader="seq" rowheight="32" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:570px; top:75px; width:620px; height:308px; ">
  326. <col ref="tclscd" style="text-align:center; "/>
  327. <col ref="tclsnm"/>
  328. <col ref="divgrupnm" type="input"/>
  329. <col ref="tclskind" style="text-align:center; "/>
  330. <script type="javascript" ev:event="onaftersort">
  331. <![CDATA[
  332. grd_choitestlist.gridToInstance();
  333. ]]>
  334. </script>
  335. </datagrid>
  336. <datagrid id="grd_testlist" nodeset="/root/main/gettestlist" overflow="scroll" scroll="auto" caption="^검사코드^검사명^그룹명^검사구분" colwidth="26, 82, 213, 76, 65" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:570px; top:455px; width:620px; height:276px; ">
  337. <col ref="choi" type="checkbox" checkvalue="Y,N"/>
  338. <col ref="tclscd" style="text-align:center; "/>
  339. <col ref="tclsnm"/>
  340. <col ref="divgrupnm"/>
  341. <col ref="tclskind" style="text-align:center; "/>
  342. <script type="javascript" ev:event="onaftersort">
  343. <![CDATA[
  344. grd_testlist.gridToInstance();
  345. ]]>
  346. </script>
  347. </datagrid>
  348. <datagrid id="grd_divgruplist" nodeset="/root/main/getdivgruplist" overflow="scroll" scroll="auto" caption="분주라벨코드^분주라벨그룹명^분주라벨화면명^분주라벨약어명^분주라벨출력명^분주라벨명^tclscd^spccd" colwidth="82, 145, 145, 145, 145, 145" dataheight="23" defaultrows="1" explorerbar="sortshow" rowheader="seq" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:565px; height:667px; ">
  349. <col ref="divgrupcd" type="input"/>
  350. <col ref="divgrupnm" type="input"/>
  351. <col ref="divgrupscrnm" type="input"/>
  352. <col ref="divgrupabbrnm" type="input"/>
  353. <col ref="divgrupprntnm" type="input"/>
  354. <col ref="divgruplblnm" type="input"/>
  355. <script type="javascript" ev:event="onclick">
  356. <![CDATA[
  357. fGetChoiTestList();
  358. ]]>
  359. </script>
  360. <script type="javascript" ev:event="onaftersort">
  361. <![CDATA[
  362. grd_divgruplist.gridToInstance();
  363. ]]>
  364. </script>
  365. </datagrid>
  366. <button id="btn_choitestdel" class="btn2_letter3" style="left:1135px; top:49px; width:53px; height:19px; ">
  367. <caption>행삭제</caption>
  368. <script type="javascript" ev:event="DOMActivate">
  369. <![CDATA[
  370. fDelChoiTestListRow();
  371. ]]>
  372. </script>
  373. </button>
  374. </group>
  375. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  376. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  377. <caption>초기화</caption>
  378. <script type="javascript" ev:event="onclick">
  379. <![CDATA[
  380. fSetInit();
  381. ]]>
  382. </script>
  383. </button>
  384. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  385. <caption>저장</caption>
  386. <script type="javascript" ev:event="DOMActivate">
  387. <![CDATA[
  388. fSaveDivGrupList();
  389. ]]>
  390. </script>
  391. </button>
  392. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  393. </group>
  394. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  395. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">분주라벨그룹관리</caption>
  396. </group>
  397. </xhtml:body>
  398. </xhtml:html>