SMLLF02000_판독예문코드관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLF02000_판독예문코드관리.xrw
  4. * 설 명 : 판독예문코드관리
  5. * 설 계 자 : (주)에이씨케이 - 박정은
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2007.11.05
  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/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <spcltclscdlist>
  20. <tclscd/>
  21. <tclsnm/>
  22. <tclskind/>
  23. <rsltdispseq/>
  24. <spccd/>
  25. </spcltclscdlist>
  26. <readexmplist>
  27. <readexmpcd/>
  28. <readexmpcnts/>
  29. <readexmpcddispseq/>
  30. <readexmpdetlcnts/>
  31. <interfretationcnts/>
  32. </readexmplist>
  33. <readexmpdetl>
  34. <readexmpdetlcnts/>
  35. <interfretationcnts/>
  36. </readexmpdetl>
  37. </main>
  38. <send>
  39. <codeflag/>
  40. <lrgcd/>
  41. <mdlcd/>
  42. <tclscd/>
  43. <spccd/>
  44. <readexmp/>
  45. <testcd/>
  46. <userdeptflagcd/>
  47. </send>
  48. <init>
  49. </init>
  50. <hidden>
  51. <ref>
  52. <lrgcd>00</lrgcd>
  53. <mdlcd>
  54. <cd>00</cd>
  55. <nm/>
  56. </mdlcd>
  57. </ref>
  58. <testcd/>
  59. </hidden>
  60. </root>
  61. </instance>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. fSetReady();
  66. ]]>
  67. </script>
  68. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0111"/>
  69. <submission id="TRLLF02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcltclscdlist"/>
  70. <submission id="TRLLF02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/readexmplist"/>
  71. <submission id="TXLLF02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  72. </model>
  73. <script type="javascript">
  74. <![CDATA[
  75. // 초기화
  76. function fSetReady(){
  77. // 검사분류 콤보 조회
  78. model.setValue("/root/send/codeflag", "0104|0102|0000|"); //0104 : 대분류 0102 : 중분류
  79. submit("TRLZZ00101");
  80. model.removeNodeset("/root/main/spcltclscdlist"); //검사목록 그리드
  81. model.removeNodeset("/root/main/readexmplist"); //판독코드목록 그리드
  82. if(model.getValue("/root/hidden/testcd") != "") { //특수결과화면에서 판독예문버튼을 눌렀을 경우
  83. fGetSpclTclscd(); //자동으로 조회
  84. }
  85. model.refresh();
  86. }
  87. //시행부서 검사계 초기정보 조회
  88. function fSetMdlCD(){
  89. var etc = model.getvalue("/root/hidden/ref/lrgcd");
  90. if(etc == "00"){
  91. cmb_mdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
  92. model.setvalue("/root/hidden/ref/mdlcd/cd" , "00");
  93. }
  94. else{
  95. model.setvalue("/root/hidden/ref/mdlcd/cd" , "00");
  96. cmb_mdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ etc +"']";
  97. }
  98. cmb_mdlcd.refresh();
  99. }
  100. // 특수검사목록 조회
  101. function fGetSpclTclscd(flag){
  102. model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  103. model.setValue("/root/send/lrgcd", model.getValue("/root/hidden/ref/lrgcd"));
  104. model.setValue("/root/send/mdlcd", model.getValue("/root/hidden/ref/mdlcd/cd"));
  105. if(flag != "R") { //조회버튼 눌렀을 경우가 아니라면
  106. model.setValue("/root/send/testcd", model.getValue("/root/hidden/testcd"));
  107. }
  108. submit("TRLLF02001");
  109. if(grd_SpclTclscd.rows > 1){
  110. grd_SpclTclscd.row = 1;
  111. //alert(grd_SpclTclscd.row);
  112. fGetReadExmp();
  113. }
  114. model.resetInstanceNode("/root/send");
  115. model.refresh();
  116. }
  117. //판독코드목록조회
  118. function fGetReadExmp(){
  119. model.setValue("/root/send/tclscd", model.getValue("/root/main/spcltclscdlist["+grd_SpclTclscd.row+"]/tclscd"));
  120. model.setValue("/root/send/spccd", model.getValue("/root/main/spcltclscdlist["+grd_SpclTclscd.row+"]/spccd"));
  121. submit("TRLLF02002");
  122. // 판독예문 상세, interfretationcnts 조회
  123. if(grd_readexmp.rows > 1){
  124. grd_readexmp.row = 1;
  125. }
  126. fGetReadExmpDetl();
  127. }
  128. // 판독예문 상세, interfretationcnts 조회
  129. function fGetReadExmpDetl(){
  130. if(grd_readexmp.rows > 1){
  131. model.setValue("/root/main/readexmpdetl/readexmpdetlcnts", model.getValue("/root/main/readexmplist["+grd_readexmp.row+"]/readexmpdetlcnts"));
  132. model.setValue("/root/main/readexmpdetl/interfretationcnts", model.getValue("/root/main/readexmplist["+grd_readexmp.row+"]/interfretationcnts"));
  133. model.makeValue("/root/main/readexmpdetl/cmt", model.getValue("/root/main/readexmplist["+grd_readexmp.row+"]/cmt"));
  134. }else{
  135. model.setValue("/root/main/readexmpdetl/readexmpdetlcnts", "");
  136. model.setValue("/root/main/readexmpdetl/interfretationcnts", "");
  137. model.makeValue("/root/main/readexmpdetl/cmt", "");
  138. }
  139. tar_readexmpdetl.refresh();
  140. tar_interfretation.refresh();
  141. tar_cmt.refresh();
  142. }
  143. // 행추가
  144. function fSetAddRow(){
  145. grd_readexmp.addRow();
  146. if(grd_readexmp.rows == 2) { //첫번째 로우 일때 표시순서 0
  147. model.setValue("/root/main/readexmplist/readexmpcddispseq", "1");
  148. } else { //첫번째 로우가 아닐때.
  149. var bfseq = model.getValue("/root/main/readexmplist["+ (grd_readexmp.row - 1) +"]/readexmpcddispseq"); //이전 로우의 표시순서
  150. bfseq = parseInt(bfseq); //string -> int
  151. model.setValue("/root/main/readexmplist["+ grd_readexmp.row +"]/readexmpcddispseq", bfseq + 1); //이전로우의 표시순서 + 1
  152. }
  153. }
  154. // 행삭제
  155. function fSetDelRow(){
  156. //grd_readexmp.deleteRow(grd_readexmp.row);
  157. grd_readexmp.rowStatus(grd_readexmp.row) = 4;
  158. }
  159. // 상세내용 변경시
  160. function fSetReadDetl(){
  161. model.setValue("/root/main/readexmplist["+grd_readexmp.row+"]/readexmpdetlcnts", tar_readexmpdetl.currentText);
  162. if(grd_readexmp.rowStatus(grd_readexmp.row)==0){
  163. grd_readexmp.rowStatus(grd_readexmp.row) = 2;
  164. }
  165. }
  166. // interfretation 변경시
  167. function fSetInterfretation(){
  168. model.setValue("/root/main/readexmplist["+grd_readexmp.row+"]/interfretationcnts", tar_interfretation.currentText);
  169. if(grd_readexmp.rowStatus(grd_readexmp.row)==0){
  170. grd_readexmp.rowStatus(grd_readexmp.row) = 2;
  171. }
  172. }
  173. // Comments 변경시
  174. function fSetcmt(){
  175. model.setValue("/root/main/readexmplist["+grd_readexmp.row+"]/cmt", tar_cmt.currentText);
  176. if(grd_readexmp.rowStatus(grd_readexmp.row)==0){
  177. grd_readexmp.rowStatus(grd_readexmp.row) = 2;
  178. }
  179. }
  180. // 판독예문코드등록,수정
  181. function fExeReadExmp(){
  182. if(grd_readexmp.rows < 2){
  183. messageBox("등록할 판독 예문 코드가 ", "I004"); //없습니다.
  184. return;
  185. }
  186. model.setValue("/root/send/tclscd", model.getValue("/root/main/spcltclscdlist["+grd_SpclTclscd.row+"]/tclscd"));
  187. model.setValue("/root/send/spccd", model.getValue("/root/main/spcltclscdlist["+grd_SpclTclscd.row+"]/spccd"));
  188. model.setValue("/root/send/readexmp", grd_readexmp.getUpdateData());
  189. model.setValue("/root/hidden/testcd", model.getValue("/root/main/spcltclscdlist["+grd_SpclTclscd.row+"]/tclscd")); //저장후 저장한 검사코드가 조회되도록
  190. //alert(model.getValue("/root/send/readexmp"));
  191. //alert(grd_readexmp.rowStatus(grd_readexmp.row));
  192. if(submit("TXLLF02001")==true){
  193. fGetSpclTclscd();
  194. }
  195. }
  196. ]]>
  197. </script>
  198. </xhtml:head>
  199. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  200. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  201. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:635px; y2:70px; "/>
  202. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">검사목록</caption>
  203. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  204. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  205. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  206. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  207. <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:8px; width:56px; height:22px; ">
  208. <caption>조회</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. // 특수검사목록 조회
  212. fGetSpclTclscd("R");
  213. ]]>
  214. </script>
  215. </button>
  216. <select1 id="cmb_lrgcd" ref="/root/hidden/ref/lrgcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:108px; top:8px; width:162px; height:19px; ">
  217. <choices>
  218. <itemset nodeset="/root/init/LB0104">
  219. <label ref="nm"/>
  220. <value ref="cd"/>
  221. </itemset>
  222. </choices>
  223. <script type="javascript" ev:event="xforms-value-changed">
  224. <![CDATA[
  225. fSetMdlCD();
  226. ]]>
  227. </script>
  228. </select1>
  229. <select1 id="cmb_mdlcd" ref="/root/hidden/ref/mdlcd/cd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:275px; top:8px; width:162px; height:19px; ">
  230. <choices>
  231. <itemset nodeset="/root/init/LB0102">
  232. <label ref="nm"/>
  233. <value ref="cd"/>
  234. </itemset>
  235. </choices>
  236. </select1>
  237. </group>
  238. <caption id="caption3" class="tit_2" style="left:645px; top:55px; width:131px; height:14px; ">판독코드목록</caption>
  239. <line id="line2" class="line_1" style="x1:640px; y1:70px; x2:1194px; y2:70px; "/>
  240. <datagrid id="grd_SpclTclscd" nodeset="/root/main/spcltclscdlist" caption="검사코드^검사내용^검사구분^표시순서^spccd(숨)^상세내용^cmtcd2^tsectcd" colsep="^" colwidth="80, 370, 70, 70, 0" dataheight="23" defaultrows="1" explorerbar="sortshow" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:635px; height:668px; ">
  241. <col ref="tclscd" style="text-align:left; "/>
  242. <col ref="tclsnm" style="text-align:left; "/>
  243. <col disabled="true" ref="tclskind" type="combo">
  244. <choices>
  245. <item>
  246. <label>Group</label>
  247. <value>0</value>
  248. </item>
  249. <item>
  250. <label>Panel</label>
  251. <value>1</value>
  252. </item>
  253. <item>
  254. <label>Single</label>
  255. <value>2</value>
  256. </item>
  257. <item>
  258. <label>Parent</label>
  259. <value>3</value>
  260. </item>
  261. <item>
  262. <label>Child</label>
  263. <value>4</value>
  264. </item>
  265. <item>
  266. <label>Abnormal</label>
  267. <value>5</value>
  268. </item>
  269. <item>
  270. <label>성분제제</label>
  271. <value>6</value>
  272. </item>
  273. </choices>
  274. </col>
  275. <col ref="rsltdispseq" style="text-align:right; "/>
  276. <col ref="spccd"/>
  277. <script type="javascript" ev:event="onclick">
  278. <![CDATA[
  279. //판독코드목록조회
  280. if(grd_SpclTclscd.row > 0){
  281. fGetReadExmp();
  282. }
  283. ]]>
  284. </script>
  285. <script type="javascript" ev:event="onaftersort">
  286. <![CDATA[
  287. grd_SpclTclscd.gridToInstance();
  288. ]]>
  289. </script>
  290. </datagrid>
  291. <caption id="caption4" class="tit_2" style="left:645px; top:243px; width:131px; height:13px; ">판독예문 상세내용</caption>
  292. <line id="line4" class="line_1" style="x1:640px; y1:258px; x2:1194px; y2:258px; "/>
  293. <caption id="caption5" class="tit_2" style="left:645px; top:558px; width:135px; height:13px; ">Interpretation</caption>
  294. <line id="line5" class="line_1" style="x1:640px; y1:573px; x2:1194px; y2:573px; "/>
  295. <button id="button1" class="btn2_letter3" style="left:1085px; top:50px; width:53px; height:19px; ">
  296. <caption>행추가</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. fSetAddRow();
  300. ]]>
  301. </script>
  302. </button>
  303. <button id="button2" class="btn2_letter3" style="left:1141px; top:50px; width:53px; height:19px; ">
  304. <caption>행삭제</caption>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. fSetDelRow();
  308. ]]>
  309. </script>
  310. </button>
  311. <datagrid id="grd_readexmp" nodeset="/root/main/readexmplist" caption="판독예문코드^판독예문내용^표시순서^상세(숨)^interfre(숨)^Comments(숨)^상세내용^cmtcd2^tsectcd" colsep="^" colwidth="90, 354, 70, 40, 40, 100" dataheight="23" defaultrows="1" ellipsis="true" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:640px; top:75px; width:554px; height:163px; ">
  312. <col ref="readexmpcd" type="input" style="text-align:center; "/>
  313. <col ref="readexmpcnts" type="input"/>
  314. <col ref="readexmpcddispseq" type="input" style="text-align:center; "/>
  315. <col ref="readexmpdetlcnts" visibility="hidden"/>
  316. <col ref="interfretationcnts" visibility="hidden"/>
  317. <col ref="cmt" visibility="hidden"/>
  318. <script type="javascript" ev:event="onclick">
  319. <![CDATA[
  320. // 판독예문 상세, interfretationcnts 조회
  321. fGetReadExmpDetl();
  322. ]]>
  323. </script>
  324. </datagrid>
  325. <textarea id="tar_readexmpdetl" ref="/root/main/readexmpdetl/readexmpdetlcnts" style="left:640px; top:263px; width:554px; height:290px; ">
  326. <script type="javascript" ev:event="xforms-value-changed">
  327. <![CDATA[
  328. //판독예문상세내용 값 바뀌면 판독코드목록으로 set
  329. fSetReadDetl();
  330. ]]>
  331. </script>
  332. </textarea>
  333. <textarea id="tar_interfretation" ref="/root/main/readexmpdetl/interfretationcnts" maxlength="500" style="left:640px; top:578px; width:554px; height:70px; ">
  334. <script type="javascript" ev:event="xforms-value-changed">
  335. <![CDATA[
  336. fSetInterfretation();
  337. ]]>
  338. </script>
  339. </textarea>
  340. <caption id="caption7" class="tit_2" style="left:645px; top:653px; width:135px; height:14px; ">Comments</caption>
  341. <textarea id="tar_cmt" ref="/root/main/readexmpdetl/cmt" maxlength="500" style="left:640px; top:673px; width:554px; height:70px; ">
  342. <script type="javascript" ev:event="xforms-value-changed">
  343. <![CDATA[
  344. fSetcmt();
  345. ]]>
  346. </script>
  347. </textarea>
  348. <line id="line6" class="line_1" style="x1:640px; y1:668px; x2:1194px; y2:668px; "/>
  349. </group>
  350. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  351. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  352. <button id="btn_Save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  353. <caption>저장</caption>
  354. <script type="javascript" ev:event="DOMActivate">
  355. <![CDATA[
  356. fExeReadExmp();
  357. ]]>
  358. </script>
  359. </button>
  360. <button id="btn_Init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  361. <caption>초기화</caption>
  362. <script type="javascript" ev:event="DOMActivate">
  363. <![CDATA[
  364. fSetReady();
  365. ]]>
  366. </script>
  367. </button>
  368. </group>
  369. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  370. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">판독예문코드관리</caption>
  371. </group>
  372. </xhtml:body>
  373. </xhtml:html>