SMAHB03100_자동판정기준정보관리.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHB03100.xrw
  4. * 설 명 : 자동판정관리
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.03.13
  8. * 수정이력 : 2007.10.04 김다영 화면권한추가
  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>Untitle</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <autocdlist>
  20. <item>
  21. <useyn/>
  22. <healexamflag/>
  23. <testcd/>
  24. <testcdseq/>
  25. <testdesc/>
  26. <rsltflag/>
  27. <lowvalue/>
  28. <highvalue/>
  29. <cjdgdesc/>
  30. </item>
  31. </autocdlist>
  32. <autocdinfo>
  33. <item>
  34. <healexamflag/>
  35. <testcd/>
  36. <testcdseq/>
  37. <testdesc/>
  38. <rsltflag/>
  39. <lowvalue/>
  40. <highvalue/>
  41. <cjdgdesc/>
  42. <useyn/>
  43. <mode/>
  44. </item>
  45. </autocdinfo>
  46. </main>
  47. <init>
  48. <baseinfo>
  49. <srchhealexamflag>
  50. <cdid/>
  51. <cdnm/>
  52. </srchhealexamflag>
  53. <healexamflag>
  54. <cdid/>
  55. <cdnm/>
  56. </healexamflag>
  57. </baseinfo>
  58. </init>
  59. <send>
  60. <srchtestcd/>
  61. <srchhealexamflag/>
  62. <srchuseyn/>
  63. </send>
  64. <hidden>
  65. <item>
  66. <count/>
  67. </item>
  68. </hidden>
  69. <autocdinfosend>
  70. <healexamflag/>
  71. <testcd/>
  72. <testcdseq/>
  73. </autocdinfosend>
  74. </root>
  75. </instance>
  76. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  77. <submission id="TRAHA03100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/autocdlist"/>
  78. <submission id="TRAHA03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/autocdinfo/item"/>
  79. <submission id="TRAHA03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/autocdinfosend" resultref="/root/main/autocdinfo"/>
  80. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  85. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  86. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  87. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  88. <script type="javascript" ev:event="xforms-ready">
  89. <![CDATA[
  90. fInit();
  91. fGetBasicCdList();
  92. fGetAutocdList();
  93. //fUseynColor();
  94. ]]>
  95. </script>
  96. </model>
  97. <script type="javascript">
  98. <![CDATA[
  99. /**========================================================================================================================================
  100. * 공통코드 및 검사실 코드 조회
  101. =========================================================================================================================================*/
  102. function fGetBasicCdList(){
  103. //공통코드 콤보 호출
  104. zbcfGetCodeList(new Array("A0068", "A0068"),new Array("/root/init/baseinfo/srchhealexamflag" ,"/root/init/baseinfo/healexamflag"));
  105. addComboItem("cmb_srchhealexamflag","전체","","above");
  106. }
  107. function fGetAutocdList(){
  108. submit("TRAHA03100");
  109. fInit(true);
  110. }
  111. function fInit(vInput){
  112. if( vInput == false ) {
  113. model.removeNodeset("/root/main/autocdlist/item");
  114. }
  115. model.resetInstanceNode("/root/main/autocdinfo/item");
  116. cmd_healexamflag.select(0);
  117. cmb_rsltflag.select(0);
  118. ipt_testcd.disabled = false;
  119. ipt_testcdseq.disabled = false;
  120. cmd_healexamflag.disabled = false;
  121. // chk_useyn.selected = true;
  122. model.setFocus("srchtestcd");
  123. model.refresh();
  124. }
  125. function fUseynColor(){
  126. var i = 0;
  127. if(grd_autocdlist.rows > 1 ) {
  128. for(var i = 1 ; i < grd_autocdlist.rows ; i++ ) {
  129. if(model.getValue("/root/main/autocdlist/item["+i+"]/useyn") != "") {
  130. if( model.getValue("/root/main/autocdlist/item["+i+"]/useyn") == "Y" ) {
  131. grd_autocdlist.cellStyle("color" , i , grd_autocdlist.colRef("useyn") , i , grd_autocdlist.colRef("useyn")) = "#ff7a85";
  132. }
  133. }
  134. model.refresh();
  135. }
  136. }
  137. }
  138. function fGetAutoCnts(bCopy){
  139. var idx = grd_autocdlist.Row;
  140. if( idx < 1) return ;
  141. ipt_testcd.disabled = !bCopy ;
  142. ipt_testcdseq.disabled = !bCopy;
  143. cmd_healexamflag.disabled = !bCopy;
  144. model.setValue("/root/autocdinfosend/healexamflag", model.getValue("/root/main/autocdlist/item["+idx+"]/healexamflag"));
  145. model.setValue("/root/autocdinfosend/testcd", model.getValue("/root/main/autocdlist/item["+idx+"]/testcd"));
  146. model.setValue("/root/autocdinfosend/testcdseq", model.getValue("/root/main/autocdlist/item["+idx+"]/testcdseq"));
  147. submit("TRAHA03102");
  148. model.refresh();
  149. if(bCopy == true ) {
  150. fInit(true);
  151. }
  152. }
  153. function fSaveAutoCD(){
  154. if (model.getValue("/root/main/autocdinfo/item/healexamflag") == ""){
  155. messageBox("건진구분은", "I003", "");
  156. model.setFocus("cmd_healexamflag");
  157. return;
  158. }
  159. if (model.getValue("/root/main/autocdinfo/item/testcd") == ""){
  160. messageBox("검사코드는", "I003", "");
  161. model.setFocus("ipt_testcd");
  162. return;
  163. }
  164. if (model.getValue("/root/main/autocdinfo/item/testcdseq") == ""){
  165. messageBox("검사Seq는", "I003", "");
  166. model.setFocus("ipt_testcdseq");
  167. return;
  168. }
  169. var vMode = "/root/main/autocdinfo/item/mode";
  170. model.makeNode(vMode);
  171. model.setValue(vMode, "i");
  172. if ( messageBox("자동판정 기준정보를", "Q002") != 6) return;
  173. submit("TRAHA03101");
  174. fInit(true);
  175. }
  176. ]]>
  177. </script>
  178. </xhtml:head>
  179. <xhtml:body guideline="1,1195;1,0;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  180. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  181. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">자동판정관리</caption>
  182. </group>
  183. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  184. <group id="grp_search" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  185. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  186. <caption id="caption21" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">건진구분</caption>
  187. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
  188. <caption>조회</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. fGetAutocdList();
  192. //fUseynColor();
  193. ]]>
  194. </script>
  195. </button>
  196. <line id="line18" class="line_4" style="x1:1104px; y1:7px; x2:1104px; y2:29px; border-left-style:solid; "/>
  197. <caption id="caption10" class="search_name" style="left:286px; top:8px; width:86px; height:17px; ">검사코드 :</caption>
  198. <select1 id="cmb_healexamflag" ref="/root/send/srchhealexamflag" class="combo_search" appearance="minimal" style="left:100px; top:8px; width:115px; height:19px; ">
  199. <choices>
  200. <itemset nodeset="/root/init/baseinfo/healexamflaglst/A0068">
  201. <label ref="cdnm"/>
  202. <value ref="cdid"/>
  203. </itemset>
  204. </choices>
  205. </select1>
  206. <caption id="caption12" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">건진구분</caption>
  207. <select1 id="cmb_srchhealexamflag" ref="/root/send/srchhealexamflag" class="combo_search" appearance="minimal" style="left:100px; top:8px; width:115px; height:19px; ">
  208. <choices>
  209. <itemset nodeset="/root/init/baseinfo/srchhealexamflag/A0068">
  210. <label ref="cdnm"/>
  211. <value ref="cdid"/>
  212. </itemset>
  213. </choices>
  214. </select1>
  215. <input id="ipt_srchtestcd" ref="/root/send/srchtestcd" class="input_search" style="left:375px; top:8px; width:165px; height:19px; ">
  216. <script type="javascript" ev:event="onkeyup">
  217. <![CDATA[
  218. inputEnterKey("btn_search", "DOMActivate");
  219. ]]>
  220. </script>
  221. </input>
  222. <select id="chk_srchuseyn" ref="/root/send/srchuseyn" overflow="visible" appearance="full" style="left:620px; top:10px; width:85px; height:20px; font-weight:bold; border-style:none; ">
  223. <choices>
  224. <item>
  225. <label>전체보기</label>
  226. <value>A</value>
  227. </item>
  228. </choices>
  229. </select>
  230. </group>
  231. <caption id="caption1" class="tit_2" style="left:720px; top:55px; width:95px; height:14px; ">자동판정입력</caption>
  232. <datagrid id="grd_autocdlist" nodeset="/root/main/autocdlist/item" autoresize="true" caption="사용^건진구분^검사코드^검사SEQ^검사소견^결과구분^최소값^최대값^판정내용 및 조치" colsep="^" colwidth="40, 62, 73, 59, 150, 38, 88, 88, 162" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="listbox" style="left:0px; top:70px; width:710px; height:650px; font-size:10pt; ">
  233. <col ref="useyn" style="text-align:center; "/>
  234. <col disabled="true" ref="healexamflag" type="combo">
  235. <choices>
  236. <itemset nodeset="/root/init/baseinfo/srchhealexamflag/A0068">
  237. <label ref="cdnm"/>
  238. <value ref="cdid"/>
  239. </itemset>
  240. </choices>
  241. </col>
  242. <col ref="testcd" style="text-align:center; "/>
  243. <col ref="testcdseq" style="text-align:center; "/>
  244. <col ref="testdesc"/>
  245. <col disabled="true" ref="rsltflag" type="combo" style="text-align:center; ">
  246. <choices>
  247. <item>
  248. <label>수치</label>
  249. <value>N</value>
  250. </item>
  251. <item>
  252. <label>선택</label>
  253. <value>T</value>
  254. </item>
  255. </choices>
  256. </col>
  257. <col ref="lowvalue" style="text-align:center; "/>
  258. <col ref="highvalue" style="left:650px; top:23px; width:120px; height:23px; text-align:center; "/>
  259. <col ref="cjdgdesc" style="text-align:center; "/>
  260. <script type="javascript" ev:event="ondblclick">
  261. <![CDATA[
  262. fGetAutoCnts(false);
  263. ]]>
  264. </script>
  265. </datagrid>
  266. <line id="line10" class="line_3" style="x1:715px; y1:725px; x2:1194px; y2:725px; "/>
  267. <line id="line1" class="line_1" style="x1:715px; y1:70px; x2:1194px; y2:70px; "/>
  268. <line id="line2" class="line_2" style="x1:715px; y1:122px; x2:1194px; y2:122px; "/>
  269. <line id="line3" class="line_2" style="x1:715px; y1:146px; x2:1194px; y2:146px; "/>
  270. <caption id="caption11" class="cell_1" style="left:715px; top:148px; width:79px; height:23px; vertical-align:middle; ">검사소견</caption>
  271. <caption id="caption7" class="cell_1" style="left:715px; top:75px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">건진구분</caption>
  272. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:121px; height:14px; ">자동판정내역</caption>
  273. <line id="line4" class="line_1" style="x1:0px; y1:70px; x2:710px; y2:70px; "/>
  274. <line id="line5" class="line_2" style="x1:715px; y1:170px; x2:1194px; y2:170px; "/>
  275. <caption id="caption9" class="cell_1" style="left:715px; top:246px; width:79px; height:234px; vertical-align:middle; ">
  276. <![CDATA[판정내용 및 조치]]>
  277. </caption>
  278. <line id="line8" class="line_2" style="x1:716px; y1:510px; x2:1195px; y2:510px; "/>
  279. <caption id="caption14" class="cell_1" style="left:715px; top:172px; width:79px; height:23px; vertical-align:middle; ">결과구분</caption>
  280. <line id="line9" class="line_2" style="x1:716px; y1:482px; x2:1195px; y2:482px; "/>
  281. <caption id="caption2" class="cell_1" style="left:715px; top:124px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">검사Seq</caption>
  282. <caption id="caption4" class="cell_1" style="left:715px; top:485px; width:79px; height:23px; vertical-align:middle; ">사용여부</caption>
  283. <caption id="caption5" class="cell_1" style="left:715px; top:196px; width:79px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">최 소 값</caption>
  284. <caption id="caption8" class="cell_1" style="left:715px; top:220px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">최 대 값</caption>
  285. <line id="line7" class="line_2" style="x1:716px; y1:194px; x2:1195px; y2:194px; "/>
  286. <line id="line11" class="line_2" style="x1:716px; y1:218px; x2:1195px; y2:218px; "/>
  287. <line id="line12" class="line_2" style="x1:716px; y1:243px; x2:1195px; y2:243px; "/>
  288. <input id="ipt_testcdseq" ref="/root/main/autocdinfo/item/testcdseq" class="input" style="left:797px; top:125px; width:123px; height:19px; ">
  289. <script type="javascript" ev:event="onkeyup">
  290. <![CDATA[
  291. if( event.keyCode == 13) {
  292. model.setFocus("ipt_testdesc");
  293. }
  294. ]]>
  295. </script>
  296. </input>
  297. <input id="ipt_testdesc" ref="/root/main/autocdinfo/item/testdesc" class="input" style="left:797px; top:149px; width:392px; height:19px; ">
  298. <script type="javascript" ev:event="onkeyup">
  299. <![CDATA[
  300. if( event.keyCode == 13) {
  301. model.setFocus("cmb_rsltflag");
  302. }
  303. ]]>
  304. </script>
  305. </input>
  306. <input id="ipt_lowvalue" ref="/root/main/autocdinfo/item/lowvalue" class="input" style="left:797px; top:197px; width:178px; height:19px; ">
  307. <script type="javascript" ev:event="onkeyup">
  308. <![CDATA[
  309. if( event.keyCode == 13) {
  310. model.setFocus("ipt_lowvalue");
  311. }
  312. ]]>
  313. </script>
  314. </input>
  315. <input id="ipt_highvalue" ref="/root/main/autocdinfo/item/highvalue" class="input" style="left:797px; top:222px; width:178px; height:19px; ">
  316. <script type="javascript" ev:event="onkeyup">
  317. <![CDATA[
  318. if( event.keyCode == 13) {
  319. model.setFocus("tar_cjdgdesc");
  320. }
  321. ]]>
  322. </script>
  323. </input>
  324. <textarea id="tar_cjdgdesc" ref="/root/main/autocdinfo/item/cjdgdesc" scroll="vertical" style="left:797px; top:246px; width:392px; height:234px; "/>
  325. <select1 id="combo1" ref="/root/main/autocdinfo/item/useyn" class="combo_search" appearance="minimal" style="left:800px; top:486px; width:123px; height:24px; ">
  326. <choices>
  327. <item>
  328. <label>사용</label>
  329. <value>Y</value>
  330. </item>
  331. <item>
  332. <label>사용안함</label>
  333. <value>N</value>
  334. </item>
  335. </choices>
  336. </select1>
  337. <input id="ipt_testcd" ref="/root/main/autocdinfo/item/testcd" class="input_essential" style="left:797px; top:101px; width:123px; height:19px; ">
  338. <script type="javascript" ev:event="onkeyup">
  339. <![CDATA[
  340. if( event.keyCode == 13) {
  341. model.setFocus("ipt_testcdseq");
  342. }
  343. ]]>
  344. </script>
  345. </input>
  346. <select1 id="cmb_rsltflag" ref="/root/main/autocdinfo/item/rsltflag" class="combo_search" appearance="minimal" style="left:797px; top:174px; width:123px; height:19px; ">
  347. <choices>
  348. <item>
  349. <label>선택검사 T</label>
  350. <value>T</value>
  351. </item>
  352. <item>
  353. <label>수치검사 N</label>
  354. <value>N</value>
  355. </item>
  356. </choices>
  357. <script type="javascript" ev:event="onmousedown">
  358. <![CDATA[
  359. model.setFocus("ipt_lowvalue");
  360. ]]>
  361. </script>
  362. </select1>
  363. <line id="line6" class="line_2" style="x1:716px; y1:99px; x2:1195px; y2:99px; "/>
  364. <caption id="caption13" class="cell_1" style="left:715px; top:99px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">검사코드</caption>
  365. <select1 id="cmd_healexamflag" ref="/root/main/autocdinfo/item/healexamflag" class="combo_search" appearance="minimal" style="left:797px; top:75px; width:118px; height:19px; ">
  366. <choices>
  367. <itemset nodeset="/root/init/baseinfo/healexamflag/A0068">
  368. <label ref="cdnm"/>
  369. <value ref="cdid"/>
  370. </itemset>
  371. </choices>
  372. <script type="javascript" ev:event="onmousedown">
  373. <![CDATA[
  374. model.setFocus("ipt_testcd");
  375. ]]>
  376. </script>
  377. </select1>
  378. </group>
  379. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  380. <button id="btn_save" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
  381. <caption>저장</caption>
  382. <script type="javascript" ev:event="DOMActivate">
  383. <![CDATA[
  384. fSaveAutoCD();
  385. fGetAutocdList();
  386. ]]>
  387. </script>
  388. </button>
  389. <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  390. <caption>초기화</caption>
  391. <script type="javascript" ev:event="DOMActivate">
  392. <![CDATA[
  393. fInit(true);
  394. ]]>
  395. </script>
  396. </button>
  397. </group>
  398. <script type="javascript" ev:event="onmenu">
  399. <![CDATA[
  400. if(event.description == "addjudgegrp") {
  401. fSetJudgeGrp("A");
  402. }
  403. if(event.description == "deljudgegrp") {
  404. fSetJudgeGrp("D");
  405. }
  406. ]]>
  407. </script>
  408. </xhtml:body>
  409. </xhtml:html>