SMLLJ00910_KNU수탁접수결과관리(수탁병원).xrw 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLJ00900_CMC수탁접수결과관리(수탁병원).xrw
  4. * 설 명 : CMC수탁접수결과관리(수탁병원)
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2009.12.10
  8. * 수정이력 : 2009.12.20 박정은 접수시 의뢰서 전송기능 추가
  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>CMC위수탁접수관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <trustlist>
  20. <chk/>
  21. <reqinstcd/>
  22. <reqbcno/>
  23. <tclsnm/>
  24. <spcnm/>
  25. <reqtclscd/>
  26. <reqspccd/>
  27. <trustinstcd/>
  28. <trustbcno/>
  29. <reqpid/>
  30. <trustpid/>
  31. <patnm/>
  32. <rrgstno1/>
  33. <rrgstno2/>
  34. <psptno/>
  35. <age/>
  36. <sex/>
  37. <bixflagcd/>
  38. <reqdd/>
  39. <reqtm/>
  40. <reqnm/>
  41. <cnfmdd/>
  42. <cnfttm/>
  43. <cnfmnm/>
  44. <conttestintvlflagcd/>
  45. <conttestorgtims/>
  46. <conttestbasetm/>
  47. <prcpdelivefact/>
  48. <suppkind/>
  49. <acptstatcd/>
  50. <etc1/>
  51. <etc2/>
  52. <etc3/>
  53. <urinextrvol/>
  54. <reqno/>
  55. <userflagcd/>
  56. <reqorddrnm/>
  57. <reqorddeptnm/>
  58. <reqwardroom/>
  59. <reqcnts/>
  60. <reqfrmcd/>
  61. </trustlist>
  62. <TestInfo>
  63. <barcodeinfo/>
  64. <errinfo/>
  65. </TestInfo>
  66. <outerlist>
  67. <chk/>
  68. <reqdd/>
  69. <reqinstcd/>
  70. <reqbcno/>
  71. <trustbcno/>
  72. <tclsnm/>
  73. <spcnm/>
  74. <reqpid/>
  75. <trustpid/>
  76. <hngnm/>
  77. <sex/>
  78. <age/>
  79. <rsltstat/>
  80. <reptrslt/>
  81. <descrsltyn/>
  82. <readrslt/>
  83. <descrslt/>
  84. <imagrsltyn/>
  85. <imgrslt/>
  86. <imghht/>
  87. <imgwidt/>
  88. <rrgstno/>
  89. <usernm/>
  90. <deptengabbr/>
  91. <wardroom/>
  92. <urinextrvol/>
  93. <tclscd/>
  94. <spccd/>
  95. <testcd/>
  96. <tclskind/>
  97. <trustinstcd/>
  98. <userflagcd/>
  99. <level/>
  100. <sectnm/>
  101. </outerlist>
  102. <bcoll>
  103. <jaewoninfo>
  104. <jaewon/>
  105. </jaewoninfo>
  106. </bcoll>
  107. </main>
  108. <send>
  109. <data1/>
  110. <data2/>
  111. <codeflag/>
  112. <drid/>
  113. <orddeptcd/>
  114. <scrnid/>
  115. <outerdata/>
  116. </send>
  117. <init>
  118. </init>
  119. <hidden>
  120. <ref>
  121. <trustgbn>1</trustgbn>
  122. <fromdd/>
  123. <fromtm>0000</fromtm>
  124. <todd/>
  125. <totm>2359</totm>
  126. <trustinstcd>00</trustinstcd>
  127. <extrinstcd>00</extrinstcd>
  128. <reqpid/>
  129. <trustpid/>
  130. <acptgbn>1</acptgbn>
  131. <sectcd>00</sectcd>
  132. <tsectcd>00</tsectcd>
  133. </ref>
  134. <drid>00</drid>
  135. <cancelcombo/>
  136. <cancelcd/>
  137. <JoHoiFlag>
  138. <regnopatnm/>
  139. <bizflag>
  140. <Out/>
  141. </bizflag>
  142. <xrwGBN/>
  143. <bcollflag>1</bcollflag>
  144. <refflag>1</refflag>
  145. </JoHoiFlag>
  146. </hidden>
  147. <temp>
  148. </temp>
  149. </root>
  150. </instance>
  151. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  153. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  154. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  155. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  156. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  157. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  158. <script type="javascript" src="../../../lis/commonweb/js/HanFont24.js"/>
  159. <script type="javascript" ev:event="xforms-ready">
  160. <![CDATA[
  161. fSetInit();
  162. ]]>
  163. </script>
  164. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/codeflag" replace="instance" resultref="/root/LB"/>
  165. <submission id="TRLLJ00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/trustlist"/>
  166. <submission id="TXLLJ00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/TestInfo"/>
  167. <!-- 프린터 설정-->
  168. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  169. <submission id="TRLOR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/outerlist"/>
  170. <submission id="TXLOR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  171. <submission id="TXLLJ00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  172. <submission id="TRLLC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/JoHoiFlag" resultref="/root/main/bcoll"/>
  173. </model>
  174. <script type="javascript">
  175. <![CDATA[
  176. function fSetInit(ref){
  177. model.resetInstanceNode("/root/init");
  178. model.makeValue("/root/send/codeflag", "0110|0000|0415|0111|0106|0101|"); //0110 외부기관코드 0000 유저플래그 0415 후인증의사 0111 시행부서 0106 세부 시행부서 0101취소사유
  179. submit("TRLZZ00101");
  180. var today = getCurrentDate();
  181. grd_trustlist.fixedcellcheckbox(0,1)=true;
  182. grd_outer.fixedcellcheckbox(0,1)=true;
  183. model.toggle("case_acpt");
  184. model.setvalue("/root/hidden/JoHoiFlag/xrwGBN" , "outbcoll");
  185. model.setvalue("/root/hidden/JoHoiFlag/bizflag" , "Out");
  186. fSetacptbutton(); // 조건따라 버튼 보이기 숨기기
  187. //model.setValue("/root/hidden/ref/fromdd", today);
  188. //model.setValue("/root/hidden/ref/todd", today);
  189. model.resetInstanceNode("/root/main/trustlist");
  190. model.resetInstanceNode("/root/main/TestInfo");
  191. model.resetInstanceNode("/root/main/outerlist");
  192. model.resetInstanceNode("/root/send/data1");
  193. model.setValue("/root/properties/menu/menuparam", "N");
  194. //fSetCancelCombo(); // 취소사유
  195. model.makeValue("/root/send/scrnid", getScreenID());
  196. submit("TRLLC90101");
  197. lzzfMakeBrcdPrntObjHanDo("CommAX");
  198. model.refresh();
  199. }
  200. // 취소 콤보 변경
  201. function fSetCancelCombo(){
  202. model.resetInstanceNode("/root/hidden/cancelcombo");
  203. var cntCR = instance1.selectNodes("/root/init/LB0101").length;
  204. NodeCnt = 1;
  205. for(i=1; i<= cntCR; i++){
  206. if(model.getValue("/root/init/LB0101["+ i +"]/etc01") == "03"){
  207. model.makeValue("/root/hidden/cancelcombo["+ NodeCnt +"]/cd", model.getValue("/root/init/LB0101["+ i +"]/cd"));
  208. model.makeValue("/root/hidden/cancelcombo["+ NodeCnt +"]/nm", model.getValue("/root/init/LB0101["+ i +"]/nm"));
  209. NodeCnt++;
  210. }
  211. }
  212. model.refresh();
  213. }
  214. // 수탁접수 조회버튼
  215. function fGetTrustOperList(){
  216. model.removenode("/root/send");
  217. model.makeValue("/root/hidden/ref/userflagcd", model.getValue("/root/init/LB0000/nm"));
  218. model.makeNode("/root/send/data1");
  219. model.copyNode("/root/send/data1" , "/root/hidden/ref");
  220. submit("TRLLJ00801");
  221. grd_trustlist.refresh();
  222. }
  223. // 접수
  224. function fSetTrustAcpt(){
  225. var drid = model.getValue("/root/hidden/drid");
  226. var orddeptcd;
  227. if(drid == "00"){
  228. alert("후인증 의사를 지정해 주십시오.");
  229. return;
  230. }
  231. var n = getNodesetCount("/root/init/LB0415");
  232. for(var dRow = 1 ; dRow < n ; dRow++){
  233. if(model.getValue("/root/init/LB0415["+dRow+"]/cd") == drid){
  234. orddeptcd = model.getValue("/root/init/LB0415["+dRow+"]/etc01");
  235. }
  236. }
  237. for(var tRow = 1; tRow < grd_trustlist.rows ; tRow++){
  238. model.setvalue("/root/hidden/JoHoiFlag/regnopatnm", model.getValue("/root/main/trustlist["+ tRow +"]/reqpid"));
  239. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  240. submit("TRLLC00101");
  241. //=============================================================
  242. //2013 04. 08일 입원유무체크 이재오 추가
  243. //=============================================================
  244. if(model.getValue("/root/main/bcoll/jaewoninfo/jaewon") == "Y") {
  245. alert(model.getValue("/root/main/trustlist["+ tRow +"]/reqpid") + " 는 입원환자입니다. 확인하세요.");
  246. model.setValue("/root/main/trustlist["+ tRow +"]/chk", "false");
  247. }
  248. }
  249. }
  250. for(var tRow = 1; tRow < grd_trustlist.rows ; tRow++){
  251. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  252. grd_trustlist.rowStatus(tRow) = 2;
  253. }else{
  254. grd_trustlist.rowStatus(tRow) = 0;
  255. }
  256. }
  257. model.makeValue("/root/send/orddeptcd", orddeptcd);
  258. model.makeValue("/root/send/drid", drid);
  259. model.makeValue("/root/send/data2", getGridUpdateData(grd_trustlist));
  260. model.makeValue("/root/send/NL", model.getValue("root/properties/menu/menuparam"));
  261. submit("TXLLJ00801");
  262. if(getNodesetCount("/root/main/TestInfo/barcodeinfo") > 0){ // 바코드내용 있을때
  263. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  264. var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
  265. if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7" ){
  266. fLisSpcBarcodePrint2("/root/main/TestInfo/barcodeinfo", "", "", "true");
  267. }else if(prtkind=="8"){ // B472
  268. fLisSpcBarcodePrint3("/root/main/TestInfo/barcodeinfo", "", "", "true");
  269. }else{ // Zebra
  270. fLisSpcBarcodePrint("/root/main/TestInfo/barcodeinfo", "", "", "true"); //fLisSpcBarcodePrint(진검바코드인스턴스, 보관검체바코드갯수, 병리바코드갯수, 화면구분(병동,환자별일때 true))
  271. }
  272. }
  273. // err있으면
  274. if(model.getValue("/root/main/TestInfo/errinfo/errcnt") !="" ){
  275. alert("▶ " + model.getValue("/root/main/TestInfo/errinfo/errcnt"));
  276. }
  277. // 접수후 재조회
  278. fGetTrustOperList();
  279. }
  280. // 접수취소
  281. function fSetTrustAcptCancel(){
  282. //alert("개발중");
  283. //return;
  284. if(model.getValue("/root/hidden/cancelcd")==""){
  285. alert("취소 사유를 선택해 주십시오.");
  286. return;
  287. }
  288. for(var tRow = 1; tRow < grd_trustlist.rows ; tRow++){
  289. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  290. grd_trustlist.rowStatus(tRow) = 2;
  291. }else{
  292. grd_trustlist.rowStatus(tRow) = 0;
  293. }
  294. var bcno1 = "";
  295. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  296. if(model.getValue("/root/main/trustlist["+ tRow +"]/cmcrsltstat") != "" ){ // cmc수탁에서 결과전송한거
  297. messageBox(model.getValue("/root/main/trustlist["+ tRow +"]/trustbcno") + " 수탁결과 전송된 검체가 있습니다. 접수취소 할 수 없습니다. ", "I");
  298. return;
  299. }
  300. }
  301. }
  302. //model.setValue("/root/send/orddeptcd", orddeptcd);
  303. //model.setValue("/root/send/drid", drid);
  304. model.makeValue("/root/send/data2", getGridUpdateData(grd_trustlist));
  305. model.makeValue("/root/send/resncd", model.getValue("/root/hidden/cancelcd"));
  306. model.makeValue("/root/send/resndesc", cmb_cancel.label);
  307. submit("TXLLJ00802");
  308. // 접수취소후 재조회
  309. fGetTrustOperList();
  310. }
  311. //프린터 설정
  312. function fSetPrint() {
  313. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  314. if(count == 0) {
  315. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  316. }
  317. open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  318. }
  319. function fSetallcheck(){
  320. for(var tRow = 1; tRow < grd_trustlist.rows ; tRow++){
  321. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  322. grd_trustlist.rowStatus(tRow) = 2; // 수정
  323. }else{
  324. grd_trustlist.rowStatus(tRow) = 0; // 취소
  325. }
  326. }
  327. grd_trustlist.refresh();
  328. }
  329. // 접수, 접수취소버튼 보이게
  330. function fSetacptbutton(){
  331. var today = getCurrentDate();
  332. // 수탁접수 선택됐을때
  333. if(sw_acpt.selected == true){
  334. model.toggle("case_acpt");
  335. if(model.getValue("/root/hidden/ref/trustgbn") == "1"){ // 미접수일때 접수만 보이게
  336. btn_acpt.visible = true;
  337. btn_acptcancel.visible = false;
  338. btn_rsltsend.visible = false;
  339. cap_cancel.visible = false;
  340. cmb_cancel.visible = false;
  341. }else{ // 접수완료일때 접수취소만 보이게
  342. btn_acpt.visible = false;
  343. btn_acptcancel.visible = true;
  344. btn_rsltsend.visible = false;
  345. cap_cancel.visible = true;
  346. cmb_cancel.visible = true;
  347. fSetCancelCombo(); // 취소사유 표시
  348. }
  349. cmb_TLrgCd.disabled = true;
  350. cmd_TMdlCd.disabled =true;
  351. var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-5);
  352. model.setValue("/root/hidden/ref/fromdd", mDate.getDateFormat("YYYYMMDD"));
  353. model.setValue("/root/hidden/ref/todd", today);
  354. }else{
  355. model.toggle("case_rslt");
  356. if(model.getValue("/root/hidden/ref/acptgbn") == "1"){ // 미전송 상태 결과전송만 보이게
  357. btn_acpt.visible = false;
  358. btn_acptcancel.visible = false;
  359. btn_rsltsend.visible = true;
  360. cmb_sect_rslt.disabled = false;
  361. cmb_tsec_rslt.disabled = false;
  362. grd_outer.colHidden(21) = false;
  363. }else{ // 암것도 안보이게
  364. btn_acpt.visible = false;
  365. btn_acptcancel.visible = false;
  366. btn_rsltsend.visible = false;
  367. cmb_sect_rslt.disabled = true;
  368. cmb_tsec_rslt.disabled = true;
  369. grd_outer.colHidden(21) = true;
  370. }
  371. var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-3);
  372. model.setValue("/root/hidden/ref/fromdd", mDate.getDateFormat("YYYYMMDD"));
  373. model.setValue("/root/hidden/ref/todd", today);
  374. }
  375. model.refresh();
  376. }
  377. // 수탁검사결과조회
  378. function fGetSutakRslt(){
  379. model.removenode("/root/send");
  380. model.makeValue("/root/send/userflagcd", model.getValue("/root/init/LB0000/nm"));
  381. model.makeNode("root/send/data1");
  382. model.copyNode("root/send/data1", "root/hidden/ref");
  383. submit("TRLOR00301");
  384. setTree(grd_outer, 3, 2, true); // 그리드 , level, tree, ..
  385. //model.refresh();
  386. }
  387. // 엑셀 저장
  388. function fExeExcel(pGridId) {
  389. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  390. if (fileName != "")
  391. {
  392. pGridId.saveExcel(fileName);
  393. }
  394. }
  395. // 결과전송
  396. function fExeSutakRslt(){
  397. for(var tRow = 1; tRow < grd_outer.rows ; tRow++){
  398. if(model.getValue("/root/main/outerlist["+ tRow +"]/chk") == "true"){
  399. grd_outer.rowStatus(tRow) = 2; // 수정
  400. }else{
  401. grd_outer.rowStatus(tRow) = 0; // 취소
  402. }
  403. }
  404. if(getGridUpdateData(grd_outer) ==""){
  405. messageBox("저장 할 내역이 없습니다." , "I");
  406. return;
  407. }
  408. model.makeValue("/root/send/outerdata", getGridUpdateData(grd_outer));
  409. // 위수탁 결과 CMCDB로 전송
  410. //alert(model.getValue("/root/send/outerdata"));
  411. submit("TXLOR00301");
  412. fGetSutakRslt();
  413. }
  414. // 서술결과버튼 클릭하면 상세보기 팝업
  415. function fGetDescrslt(){
  416. model.resetInstanceNode("/root/hidden/descrslt");
  417. var row = grd_outer.row;
  418. if(row> 0){
  419. if(model.getValue("/root/main/outerlist["+row+"]/descrsltyn")=="Y"){
  420. model.makeValue("/root/hidden/descrslt/readrslt", model.getValue("/root/main/outerlist["+row+"]/readrslt"));
  421. modal("SPLOR90100","", "", "","", "/root/hidden/descrslt", "/root/hidden/descrslt");
  422. }
  423. }
  424. }
  425. // 이미지결과 보여주기
  426. function fSetImgRsltView(){
  427. model.resetInstanceNode("/root/hidden/spcltestinfo");
  428. var row = grd_outer.row ;
  429. if(row> 0){
  430. if(model.getValue("/root/main/outerlist["+row+"]/imagrsltyn")=="Y"){
  431. model.makeValue("/root/hidden/spcltestinfo/bcno", model.getValue("/root/main/outerlist["+row+"]/trustbcno"));
  432. model.makeValue("/root/hidden/spcltestinfo/testcd", model.getValue("/root/main/outerlist["+row+"]/testcd"));
  433. model.makeValue("/root/hidden/spcltestinfo/spccd", model.getValue("/root/main/outerlist["+row+"]/spccd"));
  434. model.makeValue("/root/hidden/spcltestinfo/tclscd", model.getValue("/root/main/outerlist["+row+"]/tclscd"));
  435. model.makeValue("/root/hidden/spcltestinfo/pid", model.getValue("/root/main/outerlist["+row+"]/trustpid"));
  436. model.makeValue("/root/hidden/spcltestinfo/rsltstat", model.getValue("/root/main/outerlist["+row+"]/rsltstat"));
  437. modal("SMLRR01500","", "", "","", "/root/hidden/spcltestinfo", "/root/hidden/spcltestinfo");
  438. }
  439. }
  440. }
  441. // 의뢰서 내용 보여주기
  442. function fGetReqCnts(){
  443. var row = grd_outer.row ;
  444. if(row> 0){
  445. var reqfrmcd = model.getValue("/root/main/trustlist["+row+"]/reqfrmcd");
  446. alert("reqfrmcd= " + reqfrmcd);
  447. model.makeValue("/root/hidden/reqfrm/reqcnts", model.getValue("/root/main/trustlist["+row+"]/reqcnts"));
  448. model.makeValue("/root/hidden/reqfrm/reqcnts", model.getValue("/root/main/trustlist["+row+"]/reqcnts"));
  449. model.makeValue("/root/hidden/reqfrm/reqcnts", model.getValue("/root/main/trustlist["+row+"]/reqcnts"));
  450. model.makeValue("/root/hidden/reqfrm/reqcnts", model.getValue("/root/main/trustlist["+row+"]/reqcnts"));
  451. if(reqfrmcd == "01") { //Bone Marrow
  452. modal("SPLRR90100","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  453. } else if(reqfrmcd == "02") { //분자유전
  454. modal("SPLRR90200","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  455. } else if(reqfrmcd == "03") { //세포유전
  456. if(reqfrmcd =="04" ){
  457. modal("SPLRR90400","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  458. }
  459. else{
  460. modal("SPLRR91300","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  461. }
  462. } else if(reqfrmcd == "10" || model.getValue("/root/main/rslt/desc/rslt/refflag") == "11") { //PRA, 교차시험
  463. modal("SPLRR90500","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  464. } else if(reqfrmcd == "09") {//산전기형
  465. modal("SPLRR90300","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  466. } else if(reqfrmcd == "12") { //TDM
  467. modal("SPLRR90600","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  468. }else if(reqfrmcd == "07") { //PB
  469. modal("SPLRR91400","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  470. }else if(reqfrmcd == "99") { //범용보고서
  471. modal("SPLRR91000","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
  472. }
  473. } // row 있는지
  474. }
  475. // 검체번호 같은겉 전부선택되게
  476. function fSetBcnocheck(){
  477. for(i=1; i<grd_outer.rows; i++ ){
  478. if(model.getValue("/root/main/outerlist["+grd_outer.row+"]/chk")=="true"){
  479. if(model.getValue("/root/main/outerlist["+grd_outer.row+"]/trustbcno")== model.getValue("/root/main/outerlist["+i+"]/trustbcno")){
  480. model.setValue("/root/main/outerlist["+i+"]/chk", "true");
  481. }
  482. //grd_outer.rowStatus(i) = 2; // 수정
  483. }else{
  484. //alert("i= " + i);
  485. if(model.getValue("/root/main/outerlist["+grd_outer.row+"]/trustbcno")== model.getValue("/root/main/outerlist["+i+"]/trustbcno")){
  486. model.setValue("/root/main/outerlist["+i+"]/chk", "false");
  487. }
  488. //grd_outer.rowStatus(i) = 0; // 취소
  489. }
  490. if(model.getValue("/root/main/outerlist["+ i +"]/chk") == "true"){
  491. grd_outer.rowStatus(i) = 2; // 수정
  492. }else{
  493. grd_outer.rowStatus(i) = 0; // 취소
  494. }
  495. }
  496. grd_outer.refresh();
  497. }
  498. function fSetallcheck_rslt(){
  499. for(var tRow = 1; tRow < grd_outer.rows ; tRow++){
  500. if(model.getValue("/root/main/outerlist["+ tRow +"]/chk") == "true"){
  501. grd_outer.rowStatus(tRow) = 2; // 수정
  502. }else{
  503. grd_outer.rowStatus(tRow) = 0; // 취소
  504. }
  505. }
  506. }
  507. // 대분류콤보 선택시
  508. function fSetTLrgCd() {
  509. var etc = model.getvalue("/root/hidden/ref/sectcd");
  510. if(etc == "00"){
  511. cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  512. cmb_tsec_rslt.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  513. model.setValue("/root/hidden/ref/tsectcd" , "00");
  514. }
  515. else{
  516. model.setValue("/root/hidden/ref/tsectcd" , "00");
  517. cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
  518. cmb_tsec_rslt.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
  519. }
  520. cmd_TMdlCd.refresh();
  521. cmb_tsec_rslt.refresh();
  522. }
  523. // *사용* 키이벤트 엔터키 입력시 접수flow
  524. function fKeyEvent(){
  525. if(event.keyCode == "13"){
  526. if(event.target == "ipt_reqpid_acpt"){ // 수탁접수 의뢰병원등록번호
  527. model.setvalue("/root/hidden/ref/reqpid", (ipt_reqpid_acpt.currentText).toUpperCase());
  528. fGetTrustOperList();
  529. model.setFocus("ipt_reqpid_acpt");
  530. ipt_reqpid_acpt.selBegin = 0;
  531. ipt_reqpid_acpt.selEnd = ipt_reqpid_acpt.currentText.length;
  532. }
  533. if(event.target == "ipt_trustpid_acpt"){ // 수탁접수 의뢰병원등록번호
  534. model.setvalue("/root/hidden/ref/trustpid", (ipt_trustpid_acpt.currentText).toUpperCase());
  535. fGetTrustOperList();
  536. model.setFocus("ipt_trustpid_acpt");
  537. ipt_trustpid_acpt.selBegin = 0;
  538. ipt_trustpid_acpt.selEnd = ipt_trustpid_acpt.currentText.length;
  539. }
  540. }
  541. }
  542. ]]>
  543. </script>
  544. </xhtml:head>
  545. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  546. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  547. <button id="sw_acpt" class="btn_sw" group="tab" selected="true" style="left:0px; top:4px; width:85px; height:22px; ">
  548. <caption>수탁접수</caption>
  549. <toggle case="case_acpt" ev:event="DOMActivate"/>
  550. <script type="javascript" ev:event="DOMActivate">
  551. <![CDATA[
  552. //fbuttonvisible("A");
  553. //model.toggle("case_acpt");
  554. //fSetInit("A");
  555. fSetacptbutton();
  556. ]]>
  557. </script>
  558. </button>
  559. <button id="sw_rslt" class="btn_sw" group="tab" style="left:85px; top:4px; width:99px; height:22px; ">
  560. <caption>수탁결과전송</caption>
  561. <toggle case="case_rslt" ev:event="DOMActivate"/>
  562. <script type="javascript" ev:event="DOMActivate">
  563. <![CDATA[
  564. //fbuttonvisible("B");
  565. //model.toggle("case_rslt");
  566. //fSetInit("B");
  567. fSetacptbutton();
  568. ]]>
  569. </script>
  570. </button>
  571. <switch id="switch1" style="left:0px; top:25px; width:1194px; height:710px; ">
  572. <case id="case_acpt">
  573. <datagrid id="grd_trustlist" nodeset="/root/main/trustlist" class="datagrid2" caption="^요청일자^의뢰 병원^의뢰병원&#xA;바코드번호^본원&#xA;바코드번호^검사명^검체명^의뢰병원&#xA;등록번호^본원&#xA;등록번호^환자명^성별^나이^주민번호^주민번호^여권번호^구분코드^의뢰일자^의뢰시간^의뢰자명^확인일자^확인시간^확인자명^연속검사여부^연속검사^연속검사^전달사항^의뢰의사^의뢰부서^의뢰병동/병실^미수코드^접수구분^수탁병원^소변량^tclscd^spccd^reqno^reqcnts^userflagcd" colsep="^" colwidth="25, 80, 100, 90, 90, 150, 100, 80, 80, 70, 35, 35, 55, 60, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 72, 74, 100, 67, 53, 49, 43, 41, 100" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:105px; width:1189px; height:595px; text-align:center; ">
  574. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  575. <col ref="reqdd" format="yyyy-mm-dd"/>
  576. <col disabled="true" ref="reqinstcd" type="combo">
  577. <choices>
  578. <itemset nodeset="/root/init/LB0110">
  579. <label ref="nm"/>
  580. <value ref="cd"/>
  581. </itemset>
  582. </choices>
  583. </col>
  584. <col ref="reqbcno" type="input"/>
  585. <col ref="trustbcno" type="input"/>
  586. <col ref="tclsnm" style="text-align:left; "/>
  587. <col ref="spcnm" style="text-align:left; "/>
  588. <col ref="reqpid" type="input"/>
  589. <col ref="trustpid" type="input"/>
  590. <col ref="patnm"/>
  591. <col ref="sex"/>
  592. <col ref="age"/>
  593. <col ref="rrgstno1"/>
  594. <col ref="rrgstno2"/>
  595. <col ref="psptno" visibility="hidden"/>
  596. <col ref="bixflagcd" visibility="hidden"/>
  597. <col ref="reqdd" format="yyyy-mm-dd"/>
  598. <col ref="reqtm" format="hh:nn:ss"/>
  599. <col ref="reqnm"/>
  600. <col ref="cnfmdd" format="yyyy-mm-dd"/>
  601. <col ref="cnfmtm" format="hh:nn:ss"/>
  602. <col ref="cnfmnm"/>
  603. <col ref="conttestintvlflagcd"/>
  604. <col ref="conttestorgtims"/>
  605. <col ref="conttestbasetm"/>
  606. <col ref="prcpdelivefact"/>
  607. <col ref="reqorddrnm"/>
  608. <col ref="reqorddeptnm"/>
  609. <col ref="reqwardroom"/>
  610. <col ref="suppkind"/>
  611. <col ref="acptstatcd" visibility="hidden"/>
  612. <col disabled="true" ref="trustinstcd" type="combo">
  613. <choices>
  614. <itemset nodeset="/root/init/LB0110">
  615. <label ref="nm"/>
  616. <value ref="cd"/>
  617. </itemset>
  618. </choices>
  619. </col>
  620. <col ref="urinextrvol"/>
  621. <col ref="reqtclscd"/>
  622. <col ref="reqspccd"/>
  623. <col ref="reqno" visibility="hidden"/>
  624. <col visibility="hidden"/>
  625. <col ref="userflagcd" visibility="hidden"/>
  626. <script type="javascript" ev:event="onaftersort">
  627. <![CDATA[
  628. grd_trustlist.gridToInstance();
  629. ]]>
  630. </script>
  631. <script type="javascript" ev:event="xforms-select">
  632. <![CDATA[
  633. fSetallcheck();
  634. ]]>
  635. </script>
  636. <script type="javascript" ev:event="xforms-deselect">
  637. <![CDATA[
  638. fSetallcheck();
  639. ]]>
  640. </script>
  641. </datagrid>
  642. <group id="group1" style="left:0px; top:5px; width:1190px; height:70px; ">
  643. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1189px; height:70px; "/>
  644. <line id="line3" class="line_4" style="x1:1099px; y1:24px; x2:1099px; y2:46px; "/>
  645. <caption id="caption3" class="search_name" style="left:19px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
  646. <caption id="caption2" class="search_no_b" style="left:505px; top:10px; width:15px; height:17px; vertical-align:middle; ">~</caption>
  647. <input id="ipt_to" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:520px; top:8px; width:85px; height:19px; "/>
  648. <caption id="caption4" class="search_name" style="left:324px; top:9px; width:87px; height:17px; ">조회일자 :</caption>
  649. <caption id="caption11" class="search_name" style="left:670px; top:9px; width:92px; height:17px; ">의뢰병원 :</caption>
  650. <caption id="caption5" class="search_name" style="left:19px; top:38px; width:149px; height:17px; ">의뢰병원 등록번호 :</caption>
  651. <caption id="caption7" class="search_name" style="left:324px; top:38px; width:149px; height:17px; ">수탁병원 등록번호 :</caption>
  652. <select1 id="rdo_acpt" ref="/root/hidden/ref/trustgbn" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:115px; top:8px; width:165px; height:20px; border-style:none; ">
  653. <choices>
  654. <item>
  655. <label>미접수</label>
  656. <value>1</value>
  657. </item>
  658. <item>
  659. <label>접수완료</label>
  660. <value>2</value>
  661. </item>
  662. </choices>
  663. <script type="javascript" ev:event="xforms-value-changed">
  664. <![CDATA[
  665. //fExeTrustRadio();
  666. fSetacptbutton();
  667. ]]>
  668. </script>
  669. </select1>
  670. <input id="ipt_to_acpt" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:415px; top:8px; width:85px; height:19px; "/>
  671. <select1 id="cmb_instcd_acpt" ref="/root/hidden/ref/trustinstcd" class="combo_default" appearance="minimal" style="left:765px; top:8px; width:120px; height:19px; ">
  672. <choices>
  673. <itemset nodeset="/root/init/LB0110">
  674. <label ref="nm"/>
  675. <value ref="cd"/>
  676. </itemset>
  677. </choices>
  678. </select1>
  679. <input id="ipt_reqpid_acpt" ref="/root/hidden/ref/reqpid" class="input_search" inputtype="button" style="left:180px; top:37px; width:100px; height:19px; ">
  680. <script type="javascript" ev:event="onkeypress">
  681. <![CDATA[
  682. fKeyEvent();
  683. ]]>
  684. </script>
  685. </input>
  686. <input id="ipt_trustpid_acpt" ref="/root/hidden/ref/trustpid" class="input_search" inputtype="button" style="left:505px; top:37px; width:100px; height:19px; ">
  687. <script type="javascript" ev:event="onkeypress">
  688. <![CDATA[
  689. fKeyEvent();
  690. ]]>
  691. </script>
  692. </input>
  693. <button id="btn_ref_acpt" class="btn1_letter2" style="left:1114px; top:24px; width:56px; height:22px; ">
  694. <caption>조회</caption>
  695. <script type="javascript" ev:event="DOMActivate">
  696. <![CDATA[
  697. fGetTrustOperList();
  698. ]]>
  699. </script>
  700. </button>
  701. <caption id="caption14" class="search_name" style="left:670px; top:38px; width:92px; height:17px; ">시행부서 :</caption>
  702. <select1 id="cmd_TMdlCd" ref="/root/hidden/ref/tsectcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:866px; top:37px; width:100px; height:19px; text-align:left; ">
  703. <choices>
  704. <itemset nodeset="/root/init/LB0106">
  705. <label ref="nm"/>
  706. <value ref="cd"/>
  707. </itemset>
  708. </choices>
  709. </select1>
  710. <select1 id="cmb_TLrgCd" ref="/root/hidden/ref/sectcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:765px; top:37px; width:100px; height:19px; text-align:left; ">
  711. <choices>
  712. <itemset nodeset="/root/init/LB0111">
  713. <label ref="nm"/>
  714. <value ref="cd"/>
  715. </itemset>
  716. </choices>
  717. <script type="javascript" ev:event="xforms-value-changed">
  718. <![CDATA[
  719. fSetTLrgCd();
  720. ]]>
  721. </script>
  722. </select1>
  723. </group>
  724. <select1 id="cmb_orddrid_acpt" ref="/root/hidden/drid" appearance="minimal" style="left:1042px; top:79px; width:100px; height:19px; ">
  725. <choices>
  726. <itemset nodeset="/root/init/LB0415">
  727. <label ref="nm"/>
  728. <value ref="cd"/>
  729. </itemset>
  730. </choices>
  731. </select1>
  732. <!-- 후인증 의사 추가할때 llfmtdpu에 들어가고 userflag칼럼 '-' 아니면 됨 -->
  733. <caption id="caption1" class="tit_2" style="left:5px; top:85px; width:123px; height:13px; ">수탁검사리스트</caption>
  734. <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:1189px; y2:100px; "/>
  735. <caption id="cap_orddrid" class="cell_1" style="left:958px; top:77px; width:81px; height:23px; font-family:돋움; vertical-align:middle; ">후인증 의사</caption>
  736. <button id="btn_excel_acpt" class="btn2_letter2" visibility="visible" style="left:1147px; top:79px; width:42px; height:19px; ">
  737. <caption>엑셀</caption>
  738. <script type="javascript" ev:event="DOMActivate">
  739. <![CDATA[
  740. fExeExcel(grd_trustlist);
  741. ]]>
  742. </script>
  743. </button>
  744. </case>
  745. <case id="case_rslt" selected="true">
  746. <group id="group5" style="left:0px; top:5px; width:1190px; height:35px; ">
  747. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:34px; "/>
  748. <line id="line11" class="line_4" style="x1:1093px; y1:7px; x2:1093px; y2:29px; "/>
  749. <caption id="caption10" class="search_name" style="left:395px; top:9px; width:94px; height:17px; ">결과구분 :</caption>
  750. <caption id="caption9" class="search_name" style="left:585px; top:9px; width:92px; height:17px; ">의뢰병원 :</caption>
  751. <caption id="caption12" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">접수일시 :</caption>
  752. <caption id="caption13" class="search_no_b" style="left:231px; top:8px; width:12px; height:17px; ">~</caption>
  753. <input id="ipt_fromdd_rslt" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:105px; top:8px; width:85px; height:19px; "/>
  754. <input id="ipt_fromtm_rslt" ref="/root/hidden/ref/fromtm" class="input_search" format="hh:nn" style="left:189px; top:8px; width:40px; height:19px; text-align:center; "/>
  755. <input id="ipt_todd_rslt" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:245px; top:8px; width:85px; height:19px; "/>
  756. <input id="ipt_totm_rslt" ref="/root/hidden/ref/totm" class="input_search" format="hh:nn" style="left:329px; top:8px; width:40px; height:19px; text-align:center; "/>
  757. <select1 id="cmb_acptgbn_rslt" ref="/root/hidden/ref/acptgbn" class="combo_default" appearance="minimal" style="left:485px; top:8px; width:80px; height:19px; ">
  758. <choices>
  759. <item>
  760. <label>미전송</label>
  761. <value>1</value>
  762. </item>
  763. <item>
  764. <label>전송완료</label>
  765. <value>2</value>
  766. </item>
  767. </choices>
  768. <script type="javascript" ev:event="xforms-value-changed">
  769. <![CDATA[
  770. fSetacptbutton();
  771. ]]>
  772. </script>
  773. </select1>
  774. <select1 id="cmb_instcd_rslt" ref="/root/hidden/ref/extrinstcd" class="combo_default" appearance="minimal" style="left:675px; top:8px; width:105px; height:19px; ">
  775. <choices>
  776. <itemset nodeset="/root/init/LB0110">
  777. <label ref="nm"/>
  778. <value ref="cd"/>
  779. </itemset>
  780. </choices>
  781. </select1>
  782. <button id="btn_ref_rslt" class="btn1_letter2" style="left:1109px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  783. <caption>조회</caption>
  784. <script type="javascript" ev:event="DOMActivate">
  785. <![CDATA[
  786. fGetSutakRslt();
  787. ]]>
  788. </script>
  789. </button>
  790. <caption id="caption16" class="search_name" style="left:800px; top:9px; width:92px; height:17px; ">시행부서 :</caption>
  791. <select1 id="cmb_sect_rslt" ref="/root/hidden/ref/sectcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:895px; top:8px; width:80px; height:19px; text-align:left; ">
  792. <choices>
  793. <itemset nodeset="/root/init/LB0111">
  794. <label ref="nm"/>
  795. <value ref="cd"/>
  796. </itemset>
  797. </choices>
  798. <script type="javascript" ev:event="xforms-value-changed">
  799. <![CDATA[
  800. fSetTLrgCd();
  801. ]]>
  802. </script>
  803. </select1>
  804. <select1 id="cmb_tsec_rslt" ref="/root/hidden/ref/tsectcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:974px; top:8px; width:100px; height:19px; text-align:left; ">
  805. <choices>
  806. <itemset nodeset="/root/init/LB0106">
  807. <label ref="nm"/>
  808. <value ref="cd"/>
  809. </itemset>
  810. </choices>
  811. </select1>
  812. </group>
  813. <datagrid id="grd_outer" nodeset="/root/main/outerlist" class="datagrid2" caption="^▣^level^접수일자^의뢰 병원^의뢰병원&#xA;바코드번호^본원&#xA;바코드번호^검사명^검체명^의뢰병원&#xA;등록번호^본원&#xA;등록번호^환자명^성별^나이^결과&#xA;상태^결과^서술결과여부^^이미지&#xA;결과여부^^시행부서^주민등록번호^의뢰의사명^진료과명^병동/병실^소변량^tclscd^spccd^testcd^tclskind^수탁병원^imgth^imgwidt^descrslt^userflagcd^수탁결과보고일^의뢰서서식^의뢰서" colsep="^" colwidth="30, 25, 33, 72, 90, 74, 74, 120, 80, 70, 70, 62, 34, 34, 60, 80, 40, 18, 54, 20, 70, 110, 70, 60, 69, 50, 54, 40, 57, 24, 86, 47, 37, 100, 69, 100, 100, 41" dataheight="23" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:69px; width:1190px; height:631px; ">
  814. <col checkvalue="true,false" ref="chk" type="checkbox" format="yyyy-mm-dd"/>
  815. <col/>
  816. <col ref="level" visibility="hidden"/>
  817. <col ref="reqdd" format="yyyy-mm-dd"/>
  818. <col ref="reqinstcd" type="combo">
  819. <choices>
  820. <itemset nodeset="/root/init/LB0110">
  821. <label ref="nm"/>
  822. <value ref="cd"/>
  823. </itemset>
  824. </choices>
  825. </col>
  826. <col ref="reqbcno" type="input"/>
  827. <col ref="trustbcno" type="input"/>
  828. <col ref="tclsnm"/>
  829. <col ref="spcnm"/>
  830. <col ref="reqpid" type="input"/>
  831. <col ref="trustpid" type="input"/>
  832. <col ref="hngnm"/>
  833. <col ref="sex"/>
  834. <col ref="age" style="left:940px; top:23px; width:100px; height:23px; "/>
  835. <col ref="rsltstat" type="combo">
  836. <choices>
  837. <item>
  838. <label>결과저장</label>
  839. <value>1</value>
  840. </item>
  841. <item>
  842. <label>중간보고</label>
  843. <value>2</value>
  844. </item>
  845. <item>
  846. <label>최종보고중</label>
  847. <value>3</value>
  848. </item>
  849. <item>
  850. <label>최종보고</label>
  851. <value>4</value>
  852. </item>
  853. <item>
  854. <label>수정보고</label>
  855. <value>5</value>
  856. </item>
  857. </choices>
  858. </col>
  859. <col ref="reptrslt"/>
  860. <col ref="descrsltyn"/>
  861. <col type="inputbutton"/>
  862. <col ref="imagrsltyn"/>
  863. <col ref="imgrslt" type="inputbutton"/>
  864. <col ref="sectnm"/>
  865. <col ref="rrgstno" format="999999-9999999"/>
  866. <col ref="usernm"/>
  867. <col ref="deptengabbr"/>
  868. <col ref="wardroom"/>
  869. <col ref="urinextrvol"/>
  870. <col ref="tclscd"/>
  871. <col ref="spccd"/>
  872. <col ref="testcd"/>
  873. <col ref="tclskind" visibility="hidden"/>
  874. <col ref="trustinstcd" type="combo">
  875. <choices>
  876. <itemset nodeset="/root/init/LB0110">
  877. <label ref="nm"/>
  878. <value ref="cd"/>
  879. </itemset>
  880. </choices>
  881. </col>
  882. <col ref="imght" visibility="hidden"/>
  883. <col ref="imgwidt" visibility="hidden"/>
  884. <col ref="descrslt" visibility="hidden"/>
  885. <col ref="userflagcd" visibility="hidden"/>
  886. <col ref="trustreptdt" format="yyyy-mm-dd hh:nn"/>
  887. <col ref="reqfrmcd" visibility="hidden"/>
  888. <col type="inputbutton" visibility="hidden"/>
  889. <script type="javascript" ev:event="onbuttonclick">
  890. <![CDATA[
  891. //fSetImgRsltView();
  892. if(grd_outer.col == "18"){ // 서술결과버톤
  893. fGetDescrslt();
  894. }else if(grd_outer.col== "20"){ // 이미지결과버튼
  895. fSetImgRsltView();
  896. }else if(grd_outer.col =="37"){
  897. //fGetReqCnts();
  898. }
  899. ]]>
  900. </script>
  901. <script type="javascript" ev:event="xforms-select">
  902. <![CDATA[
  903. //alert("col= " + grd_outer.col+ " row = " + grd_outer.row);
  904. if(grd_outer.row == "0"){
  905. fSetallcheck_rslt();
  906. }else{
  907. fSetBcnocheck();
  908. }
  909. ]]>
  910. </script>
  911. <script type="javascript" ev:event="xforms-deselect">
  912. <![CDATA[
  913. //alert("col= " + grd_outer.col+ " row = " + grd_outer.row);
  914. if(grd_outer.row == "0"){
  915. fSetallcheck_rslt();
  916. }else{
  917. fSetBcnocheck();
  918. }
  919. ]]>
  920. </script>
  921. </datagrid>
  922. <caption id="caption8" class="tit_2" style="left:5px; top:49px; width:131px; height:13px; ">수탁검사리스트</caption>
  923. <line id="line4" class="line_1" style="x1:0px; y1:64px; x2:1190px; y2:64px; "/>
  924. <button id="btn_excel_rslt" class="btn2_letter4" style="left:1126px; top:43px; width:64px; height:19px; ">
  925. <caption>엑셀저장</caption>
  926. <script type="javascript" ev:event="DOMActivate">
  927. <![CDATA[
  928. fExeExcel(grd_outer);
  929. ]]>
  930. </script>
  931. </button>
  932. </case>
  933. </switch>
  934. <select1 id="cmb_cancel" ref="/root/hidden/cancelcd" visibility="hidden" appearance="minimal" style="left:1059px; top:5px; width:135px; height:19px; ">
  935. <choices>
  936. <itemset nodeset="/root/hidden/cancelcombo">
  937. <label ref="nm"/>
  938. <value ref="cd"/>
  939. </itemset>
  940. </choices>
  941. </select1>
  942. <caption id="cap_cancel" style="left:990px; top:5px; width:60px; height:20px; ">취소사유</caption>
  943. </group>
  944. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  945. <button id="btn_rsltsend" class="btn4_letter4" style="left:1044px; top:3px; width:80px; height:22px; ">
  946. <caption>결과전송</caption>
  947. <script type="javascript" ev:event="DOMActivate">
  948. <![CDATA[
  949. fExeSutakRslt();
  950. ]]>
  951. </script>
  952. </button>
  953. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  954. <caption>초기화</caption>
  955. <script type="javascript" ev:event="onclick">
  956. <![CDATA[
  957. fSetInit();
  958. ]]>
  959. </script>
  960. </button>
  961. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  962. <button id="btn_prnt" class="btn3_letter5" navindex="18" style="left:0px; top:3px; width:92px; height:22px; ">
  963. <caption>프린터설정</caption>
  964. <script type="javascript" ev:event="DOMActivate">
  965. <![CDATA[
  966. fSetPrint();
  967. ]]>
  968. </script>
  969. </button>
  970. <button id="btn_acptcancel" class="btn4_letter4" visibility="hidden" style="left:1044px; top:3px; width:80px; height:22px; ">
  971. <caption>접수취소</caption>
  972. <script type="javascript" ev:event="onclick">
  973. <![CDATA[
  974. fSetTrustAcptCancel();
  975. ]]>
  976. </script>
  977. </button>
  978. <button id="btn_acpt" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  979. <caption>접수</caption>
  980. <script type="javascript" ev:event="onclick">
  981. <![CDATA[
  982. fSetTrustAcpt();
  983. ]]>
  984. </script>
  985. </button>
  986. <caption id="caption15" visibility="hidden" style="left:800px; top:5px; width:230px; height:20px; color:#0000ff; ">접수, 접수취소, 결과전송 버튼 포개져있음</caption>
  987. <caption id="caption17" visibility="hidden" style="left:280px; top:1px; width:391px; height:25px; font-size:16pt; font-weight:bold; color:#0000ff; ">※ 운영서버에서 테스트 하지마세요</caption>
  988. </group>
  989. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  990. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:215px; height:14px; ">
  991. <![CDATA[KNUH 수탁검사 접수 & 결과관리]]>
  992. </caption>
  993. </group>
  994. </xhtml:body>
  995. </xhtml:html>