SMLLF00700_검사결과코드관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLF00700_검사결과코드관리.xrw
  4. * 설 명 : 검사결과코드관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2006.12.21
  8. * 수정이력 :
  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/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <testlist>
  20. <tclscd/>
  21. <tclsnm/>
  22. <tclskind/>
  23. </testlist>
  24. <rsltcdlist>
  25. <rsltcd/>
  26. <rsltcnts/>
  27. <listdispyn>Y</listdispyn>
  28. <positiveyn>Y</positiveyn>
  29. <rsntcddispseq/>
  30. <tclscd/>
  31. <spccd/>
  32. <instcd/>
  33. <fstrgstdt/>
  34. <fstrgstrid/>
  35. <lastupdtdt/>
  36. <lastupdtrid/>
  37. </rsltcdlist>
  38. </main>
  39. <send>
  40. <codeflag/>
  41. <testlrgcd/>
  42. <testmdlcd/>
  43. <tclscd/>
  44. <data1>
  45. </data1>
  46. <userdeptflagcd/>
  47. </send>
  48. <init>
  49. </init>
  50. <hidden>
  51. <ref>
  52. <testlrgcd>00</testlrgcd>
  53. <testmdlcd>00</testmdlcd>
  54. </ref>
  55. <select01/>
  56. <select02/>
  57. <search>
  58. <selectgbn>1</selectgbn>
  59. </search>
  60. </hidden>
  61. </root>
  62. </instance>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" ev:event="xforms-ready">
  66. <![CDATA[
  67. model.setValue("/root/send/codeflag", "0104|0102|0000| 0111|0106|"); //0104 대분류 0102 중분류 0111 시행부서// 0106 상세시행부서
  68. submit("TRLZZ00101");
  69. fSelectGbn();
  70. model.setValue("/root/hidden/search/selectgbn","1");
  71. ]]>
  72. </script>
  73. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB"/>
  74. <submission id="TRLLF00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testlist"/>
  75. <submission id="TRLLF00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tclscd" replace="instance" resultref="/root/main/rsltcdlist"/>
  76. <submission id="TXLLF00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance"/>
  77. </model>
  78. <script type="javascript">
  79. <![CDATA[
  80. // 조회구분에서 대분류와 중분류의 값을 받아 검사목록을 출력
  81. function fGettestRsltlist(){
  82. model.removeNodeset("/root/main/rsltcdlist");
  83. model.refresh();
  84. //model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/ref/testlrgcd"));
  85. //model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/ref/testmdlcd"));
  86. model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  87. //alert(model.getValue("/root/send/userdeptflagcd"));
  88. model.makeValue("/root/send/selectgbn", model.getValue("/root/hidden/search/selectgbn"));
  89. model.makeValue("/root/send/select01", model.getValue("/root/hidden/select01"));
  90. model.makeValue("/root/send/select02", model.getValue("/root/hidden/select02"));
  91. submit("TRLLF00701");
  92. }
  93. //검사목록 조회
  94. function fClickResultList(){
  95. var row = testlist.row;
  96. model.removeNodeset("/root/main/rsltcdlist");
  97. model.setValue("/root/send/tclscd" , model.getValue("/root/main/testlist["+row+"]/tclscd"));
  98. submit("TRLLF00702");
  99. checkKeyColumn("rsltcdlist"); // 키 값을 주어서 수정할수 없게 함
  100. }
  101. //행추가
  102. function fInsRowAdd() {
  103. var row = testlist.row;
  104. rsltcdlist.addRow();
  105. model.setValue("root/main/rsltcdlist["+rsltcdlist.row+"]/tclscd", model.getValue("root/main/testlist["+row+"]/tclscd"));
  106. row = rsltcdlist.row;
  107. model.setValue("root/main/rsltcdlist["+rsltcdlist.row+"]/rsntcddispseq", row);
  108. }
  109. //행삭제
  110. function fInsRowdel() {
  111. var row = rsltcdlist.row;
  112. rsltcdlist.rowStatus(row) = 4;
  113. }
  114. // 결과목록 삽입, 삭제, 수정
  115. function fExeEqmtSave() {
  116. if(testlist.row == -1){
  117. messageBox("검사항목을 선택하십시오", "I");
  118. return;
  119. }
  120. if(model.getValue("/root/main/rsltcdlist/rsltcd") == ""){
  121. messageBox("결과코드를 입력하십시오.", "I");
  122. return;
  123. }
  124. if(model.getValue("/root/main/rsltcdlist/rsltcnts") == ""){
  125. messageBox("결과내용을 입력하십시오.", "I");
  126. return;
  127. }
  128. if(model.getValue("/root/main/rsltcdlist/listdispyn") == ""){
  129. messageBox("목록표시여부를 선택하십시오.", "I");
  130. return;
  131. }
  132. if(model.getValue("/root/main/rsltcdlist/positiveyn") == ""){
  133. messageBox("positive여부를 선택하십시오.", "I");
  134. return;
  135. }
  136. if(model.getValue("/root/main/rsltcdlist/rsntcddispseq") == ""){
  137. messageBox("표시순서를 입력하십시오.", "I");
  138. return;
  139. }
  140. model.setValue("/root/send/data1", rsltcdlist.getUpdateData());
  141. submit("TXLLF00701");
  142. fClickResultList();
  143. }
  144. // 콤보박스 활성화
  145. function ftestcombo(){
  146. var CD = model.getValue("/root/hidden/ref/testlrgcd");
  147. if(CD == "00"){
  148. testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
  149. model.setvalue("/root/hidden/ref/testmdlcd" , "00");
  150. testmdlcd.disabled = true;
  151. }
  152. else{
  153. testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ CD +"']";
  154. model.setvalue("/root/hidden/ref/testmdlcd" , "00");
  155. testmdlcd.disabled = false;
  156. }
  157. testmdlcd.refresh();
  158. }
  159. /* @group : 조회 구분 선택
  160. * @ver : 2009.10.20
  161. * @by : 김성희
  162. * @-----------------------------------
  163. * @type : function
  164. * @access : public
  165. * @desc : 조회 구분 선택 Function 검사분류, 시행부서
  166. */
  167. function fSelectGbn(){
  168. //검사분류 선택
  169. if(cmb_selectgbn.value == "1"){
  170. //첫번째 콤보에 대분류 셋팅
  171. cmb_select01.choices.itemset.attribute("nodeset") = "/root/init/LB0104";
  172. //두번째 콤보에 중분류 셋팅
  173. cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
  174. }
  175. //시행부서 선택
  176. else if(cmb_selectgbn.value == "2"){
  177. //첫번째 콤보에 계코드 셋팅
  178. cmb_select01.choices.itemset.attribute("nodeset") = "/root/init/LB0111";
  179. //두번째 콤보에 검사계코드 셋팅
  180. cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  181. }
  182. model.setvalue("/root/hidden/select01", "00");
  183. model.setvalue("/root/hidden/select02", "00");
  184. cmb_select01.refresh();
  185. cmb_select02.refresh();
  186. }
  187. //첫번째 콤보 선택시, 두번째 콤보 셋팅
  188. function fSetSelect02(){
  189. var select01 = model.getvalue("/root/hidden/select01");
  190. //검사분류선택
  191. if(cmb_selectgbn.value == "1"){
  192. if(select01 == "00"){
  193. cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
  194. }
  195. else{
  196. cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ select01 +"']";
  197. }
  198. model.setValue("/root/hidden/select02" , "00");
  199. cmb_select02.refresh();
  200. }
  201. //시행부서 선택
  202. else if(cmb_selectgbn.value == "2"){
  203. if(select01 == "00"){
  204. cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  205. }
  206. else{
  207. cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ select01 +"']";
  208. }
  209. model.setValue("/root/hidden/select02" , "00");
  210. cmb_select02.refresh();
  211. }
  212. }
  213. ]]>
  214. </script>
  215. </xhtml:head>
  216. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  217. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  218. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:525px; y2:70px; "/>
  219. <datagrid id="testlist" nodeset="/root/main/testlist" caption="검사코드^검사명^검사구분코드" colsep="^" colwidth="100, 281, 120" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:525px; height:669; ">
  220. <col ref="tclscd"/>
  221. <col ref="tclsnm"/>
  222. <col ref="tclskind"/>
  223. <script type="javascript" ev:event="onclick">
  224. <![CDATA[
  225. if(testlist.isCell(event.target) && testlist.row >= testlist.fixedRows){
  226. fClickResultList();
  227. }
  228. ]]>
  229. </script>
  230. <script type="javascript" ev:event="onaftersort">
  231. <![CDATA[
  232. testlist.gridToInstance();
  233. ]]>
  234. </script>
  235. </datagrid>
  236. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:13px; ">검사목록</caption>
  237. <button id="button2" class="btn2_letter3" style="left:1142px; top:49px; width:53px; height:19px; ">
  238. <caption>행추가</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. fInsRowAdd();
  242. ]]>
  243. </script>
  244. </button>
  245. <datagrid id="rsltcdlist" nodeset="/root/main/rsltcdlist" caption="결과코드^결과내용^목록표시여부^positive여부^표시순서^검사분류코드^검체코드^기관코드^최초등록일시^최초등록자ID^최종수정일시^최종수정자ID" colsep="^" colwidth="90, 300, 80, 80,80, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:530px; top:75px; width:664px; height:669px; ">
  246. <col ref="rsltcd" type="input" _key="true"/>
  247. <col ref="rsltcnts" type="input" style="left:120px; top:23px; width:402px; height:23px; "/>
  248. <col ref="listdispyn" type="combo">
  249. <choices>
  250. <item>
  251. <label>YES</label>
  252. <value>Y</value>
  253. </item>
  254. <item>
  255. <label>NO</label>
  256. <value>N</value>
  257. </item>
  258. </choices>
  259. </col>
  260. <col ref="positiveyn" type="combo">
  261. <choices>
  262. <item>
  263. <label>YES(popup)</label>
  264. <value>Y</value>
  265. </item>
  266. <item>
  267. <label>NO</label>
  268. <value>N</value>
  269. </item>
  270. <item>
  271. <label>YES(result)</label>
  272. <value>G</value>
  273. </item>
  274. </choices>
  275. </col>
  276. <col ref="rsntcddispseq" type="input"/>
  277. <col ref="tclscd" type="input" visibility="hidden"/>
  278. <col ref="spccd" type="input" visibility="hidden"/>
  279. <col ref="instcd" type="input" visibility="hidden"/>
  280. <col ref="fstrgstdt" type="input" visibility="hidden" format="yyyy-mm-dd hh:nn:ss"/>
  281. <col ref="fstrgstrid" type="input" visibility="hidden"/>
  282. <col ref="lastupdtdt" type="input" visibility="hidden" format="yyyy-mm-dd hh:nn:ss"/>
  283. <col ref="lastupdtrid" type="input" visibility="hidden"/>
  284. <script type="javascript" ev:event="onaftersort">
  285. <![CDATA[
  286. rsltcdlist.gridToInstance();
  287. ]]>
  288. </script>
  289. </datagrid>
  290. <caption id="caption3" class="tit_2" style="left:535px; top:55px; width:131px; height:13px; ">결과코드목록</caption>
  291. <line id="line2" class="line_1" style="x1:530px; y1:70px; x2:1194px; y2:70px; "/>
  292. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  293. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  294. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  295. <button id="button3" class="btn1_letter2" style="left:1123px; top:8px; width:56px; height:22px; ">
  296. <caption>조회</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. fGettestRsltlist() ;
  300. ]]>
  301. </script>
  302. </button>
  303. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">검사분류 :</caption>
  304. <select1 id="testlrgcd" ref="/root/hidden/ref/testlrgcd" visibility="hidden" appearance="minimal" itemcount="10" style="left:481px; top:8px; width:150px; height:19px; ">
  305. <choices>
  306. <itemset nodeset="/root/init/LB0104">
  307. <label ref="nm"/>
  308. <value ref="cd"/>
  309. </itemset>
  310. </choices>
  311. <script type="javascript" ev:event="xforms-value-changed">
  312. <![CDATA[
  313. ftestcombo();
  314. ]]>
  315. </script>
  316. </select1>
  317. <select1 id="testmdlcd" ref="/root/hidden/ref/testmdlcd" disabled="true" visibility="hidden" appearance="minimal" itemcount="10" style="left:649px; top:8px; width:150px; height:19px; ">
  318. <choices>
  319. <itemset nodeset="/root/init/LB0102">
  320. <label ref="nm"/>
  321. <value ref="cd"/>
  322. </itemset>
  323. </choices>
  324. <script type="javascript" ev:event="xforms-value-changed">
  325. <![CDATA[
  326. fGettestRsltlist() ;
  327. ]]>
  328. </script>
  329. </select1>
  330. <select1 id="cmb_selectgbn" ref="/root/hidden/search/selectgbn" class="combo_search" appearance="minimal" style="left:105px; top:8px; width:90px; height:19px; ">
  331. <choices>
  332. <item>
  333. <label>검사분류</label>
  334. <value>1</value>
  335. </item>
  336. <item>
  337. <label>시행부서</label>
  338. <value>2</value>
  339. </item>
  340. </choices>
  341. <script type="javascript" ev:event="xforms-select">
  342. <![CDATA[
  343. fSelectGbn();
  344. ]]>
  345. </script>
  346. </select1>
  347. <select1 id="cmb_select01" ref="/root/hidden/select01" class="combo_s_essential" appearance="minimal" style="left:199px; top:8px; width:110px; height:19px; ">
  348. <choices>
  349. <itemset nodeset="/root/init/LB0104">
  350. <label ref="nm"/>
  351. <value ref="cd"/>
  352. </itemset>
  353. </choices>
  354. <script type="javascript" ev:event="xforms-value-changed">
  355. <![CDATA[
  356. fSetSelect02();
  357. ]]>
  358. </script>
  359. </select1>
  360. <select1 id="cmb_select02" ref="/root/hidden/select02" class="combo_s_essential" appearance="minimal" style="left:312px; top:8px; width:153px; height:19px; ">
  361. <choices>
  362. <itemset nodeset="/root/init/LB0102">
  363. <label ref="nm"/>
  364. <value ref="cd"/>
  365. </itemset>
  366. </choices>
  367. <script type="javascript" ev:event="xforms-select">
  368. <![CDATA[
  369. fGettestRsltlist() ;
  370. //fGetTclscdList();
  371. //if(model.getValue("/root/hidden/select02") != "00"){
  372. // fSetDetlTestMdlcd();
  373. //}
  374. ]]>
  375. </script>
  376. </select1>
  377. </group>
  378. <button id="button1" class="btn2_letter3" style="left:1086px; top:49px; width:53px; height:19px; ">
  379. <caption>행삭제</caption>
  380. <script type="javascript" ev:event="DOMActivate">
  381. <![CDATA[
  382. fInsRowdel();
  383. ]]>
  384. </script>
  385. </button>
  386. </group>
  387. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  388. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  389. <caption>초기화</caption>
  390. <script type="javascript" ev:event="onclick">
  391. <![CDATA[
  392. model.reset();
  393. ]]>
  394. </script>
  395. </button>
  396. <button id="button11" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  397. <caption>저장</caption>
  398. <script type="javascript" ev:event="DOMActivate">
  399. <![CDATA[
  400. fExeEqmtSave();
  401. ]]>
  402. </script>
  403. </button>
  404. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  405. </group>
  406. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  407. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">검사결과코드관리</caption>
  408. </group>
  409. </xhtml:body>
  410. </xhtml:html>