SMLLJ00600_CMC위탁의뢰결과관리(위탁병원).xrw 37 KB

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