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

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