SMARC01300_되의뢰관리.xrw 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>되의뢰관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <search>
  11. <fromdd/>
  12. <todd/>
  13. <orddeptcd/>
  14. <orddrid>%</orddrid>
  15. <stat>%</stat>
  16. <pid/>
  17. <hngnm/>
  18. <coophospnm/>
  19. </search>
  20. <savedata/>
  21. <doctor/>
  22. <cond>
  23. <pid/>
  24. <orddd/>
  25. <cretno/>
  26. <seqno/>
  27. <replseqno/>
  28. <orddeptcd/>
  29. <orddrid/>
  30. </cond>
  31. <viewcond>
  32. <pid/>
  33. <replseqno/>
  34. </viewcond>
  35. </send>
  36. <main>
  37. <req_info>
  38. <req_pat_list>
  39. <stat/>
  40. <formrecdd/>
  41. <pid/>
  42. <hngnm/>
  43. <orddeptnm/>
  44. <orddrnm/>
  45. <orddd/>
  46. <cretno/>
  47. <acptseqno/>
  48. <seqno/>
  49. <orddeptcd/>
  50. <orddrid/>
  51. <replseqno/>
  52. <age/>
  53. <sex/>
  54. <coophospnm/>
  55. <coophospcd/>
  56. <rsltcd/>
  57. <areacd/>
  58. <telno/>
  59. <faxno/>
  60. <resncd/>
  61. <enddd/>
  62. <reqcoophospnm/>
  63. <reqdrnm/>
  64. <reqcoophospcd/>
  65. <reqcoopdrcd/>
  66. <reqfromdd/>
  67. <reqdd/>
  68. <reqorddeptnm/>
  69. <reqorddrnm/>
  70. <reqorddd/>
  71. <reqcretno/>
  72. <reqacptseqno/>
  73. <reqseqno/>
  74. <reqflag/>
  75. <remfact/>
  76. <coopdrcd/>
  77. <fromdd/>
  78. <status/>
  79. <coopdrnm/>
  80. <aprvflag/>
  81. </req_pat_list>
  82. </req_info>
  83. <req_pat_info>
  84. <patinfo>
  85. <stat/>
  86. <formrecdd/>
  87. <pid/>
  88. <hngnm/>
  89. <orddeptnm/>
  90. <orddrnm/>
  91. <orddd/>
  92. <cretno/>
  93. <acptseqno/>
  94. <seqno/>
  95. <orddeptcd/>
  96. <orddrid/>
  97. <replseqno/>
  98. <age/>
  99. <sex/>
  100. <coophospnm/>
  101. <coophospcd/>
  102. <coopdrcd/>
  103. <fromdd/>
  104. <rsltcd/>
  105. <areacd/>
  106. <telno/>
  107. <faxno/>
  108. <resncd/>
  109. <enddd/>
  110. <reqcoophospnm/>
  111. <reqdrnm/>
  112. <reqcoophospcd/>
  113. <reqcoopdrcd/>
  114. <reqfromdd/>
  115. <reqdd/>
  116. <reqorddeptnm/>
  117. <reqorddrnm/>
  118. <reqorddd/>
  119. <reqcretno/>
  120. <reqacptseqno/>
  121. <reqseqno/>
  122. <reqflag/>
  123. <remfact/>
  124. <status/>
  125. <coopdrnm/>
  126. <aprvflag/>
  127. <addr/>
  128. <detladdr/>
  129. <zipcd1/>
  130. <zipcd2/>
  131. <drflag/>
  132. <reqagnkindcd/>
  133. <reqagnkindnm/>
  134. <oldreqseqno/>
  135. <delivefact/>
  136. </patinfo>
  137. </req_pat_info>
  138. <patinfo>
  139. <patinfolist/>
  140. </patinfo>
  141. <popupendflag/>
  142. <hospinfo>
  143. <hospinfolist/>
  144. </hospinfo>
  145. <hospflag/>
  146. <reqpopupflag/>
  147. <reqpopup>
  148. <reqpopuplist/>
  149. </reqpopup>
  150. <previewinfo>
  151. <baseinfo>
  152. <instcdnm/>
  153. <ordfromdd/>
  154. <ordtodd/>
  155. <telno1/>
  156. <telno2/>
  157. <faxno/>
  158. <url/>
  159. </baseinfo>
  160. <patientinfo>
  161. <pid/>
  162. <hngnm/>
  163. <age/>
  164. <sex/>
  165. <brthdd/>
  166. <rrgstno1/>
  167. <rrgstno2/>
  168. </patientinfo>
  169. <reqhospinfo>
  170. <reqdd/>
  171. <coophospcd/>
  172. <coophospnm/>
  173. <coopdrcd/>
  174. <coopdrnm/>
  175. <clsmatyn/>
  176. <gradyear/>
  177. <telno/>
  178. <coopflag/>
  179. <mpphontel/>
  180. <emailid/>
  181. <emailaddr/>
  182. <reqorddd/>
  183. <reqcretno/>
  184. <reqseqno/>
  185. <addr/>
  186. <detladdr/>
  187. <zipcd1/>
  188. <zipcd2/>
  189. <drflag/>
  190. <faxno/>
  191. </reqhospinfo>
  192. <replinfo>
  193. <pid/>
  194. <replseqno/>
  195. <replflag/>
  196. <writflag/>
  197. <recdd/>
  198. <orddeptcd/>
  199. <orddeptnm/>
  200. <orddrid/>
  201. <orddrnm/>
  202. <reqorddd/>
  203. <reqcretno/>
  204. <reqseqno/>
  205. <rsrvdd/>
  206. <rsrvtm/>
  207. <rsrvorddeptcd/>
  208. <rsrvorddrid/>
  209. <rsrvorddeptnm/>
  210. <rsrvorddrnm/>
  211. <rsrvcretno/>
  212. <diagnm/>
  213. <curecnts/>
  214. <delivefact/>
  215. <reqagnkindcd/>
  216. <reqagnkindnm/>
  217. <saverid/>
  218. <savernm/>
  219. <savedd/>
  220. <aprvrid/>
  221. <aprvrnm/>
  222. <aprvdd/>
  223. <saveflag/>
  224. <footflag/>
  225. </replinfo>
  226. <rsltinfo>
  227. <prcpdd/>
  228. <examnm/>
  229. <spcnm/>
  230. <examgubun/>
  231. <lastreptdd/>
  232. <bcno/>
  233. <testmdlcd/>
  234. <execprcpuniqno/>
  235. <pid/>
  236. <depth/>
  237. <replseqno/>
  238. <seqno/>
  239. </rsltinfo>
  240. <prcpinfo>
  241. <prcpdd/>
  242. <prcpcd/>
  243. <prcpnm/>
  244. <prcpqty/>
  245. <prcpqtyunitnm/>
  246. <prcptims/>
  247. <prcpdayno/>
  248. <prcpno/>
  249. <prcphistno/>
  250. <pid/>
  251. <replseqno/>
  252. <seqno/>
  253. <prcpqtyunitflag/>
  254. </prcpinfo>
  255. <opinfo>
  256. <opdd/>
  257. <opnm/>
  258. <perfdeptnm/>
  259. <perfdrnm/>
  260. <opstatcd/>
  261. <pid/>
  262. <replseqno/>
  263. <seqno/>
  264. <oprsrvno/>
  265. <ophistno/>
  266. <opcd/>
  267. <perfdrid/>
  268. <perfdeptcd/>
  269. </opinfo>
  270. <dschinfo>
  271. <indd/>
  272. <orddeptnm/>
  273. <orddrnm/>
  274. <dschdd/>
  275. <roomcd/>
  276. <replseqno/>
  277. <orddeptcd/>
  278. <orddrid/>
  279. <pid/>
  280. <replseqno/>
  281. <seqno/>
  282. </dschinfo>
  283. </previewinfo>
  284. </main>
  285. <init>
  286. <dept>
  287. </dept>
  288. <doctlist>
  289. <medispcl>
  290. <doctid/>
  291. <doctnm/>
  292. </medispcl>
  293. <atdoct>
  294. <doctid/>
  295. <doctnm/>
  296. </atdoct>
  297. </doctlist>
  298. <areacd>
  299. <A0426/>
  300. </areacd>
  301. <resncd>
  302. <A0437/>
  303. </resncd>
  304. <rsltcd>
  305. <A0438/>
  306. </rsltcd>
  307. <reqagnkindcd>
  308. <A0556/>
  309. </reqagnkindcd>
  310. <replflag>
  311. <A0557/>
  312. </replflag>
  313. </init>
  314. <temp/>
  315. </root>
  316. </instance>
  317. <script type="javascript" ev:event="xforms-ready">
  318. <![CDATA[
  319. makeReportPreview(575,350,610,395);
  320. //fPreviewSetting();
  321. fInit();
  322. ]]>
  323. </script>
  324. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  325. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  326. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  327. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  328. <submission id="TRMRF02001" mediatype="application/x-www-form-urlencoded" method="post"/>
  329. <submission id="TRMMR01301" mediatype="application/x-www-form-urlencoded" method="post"/>
  330. <submission id="TRAER00850" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/maindata" replace="instance" resultref="/root/main/subordlist1"/>
  331. <submission id="TRARC02507" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/viewcond" resultref="/root/main/previewinfo"/>
  332. <submission id="TRARC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/req_info"/>
  333. <submission id="TRARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doctor" resultref="/root/init/doctlist"/>
  334. <submission id="TRARC01303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/req_pat_info"/>
  335. <submission id="TXARC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
  336. <submission id="TXARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
  337. </model>
  338. </xhtml:head>
  339. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  340. <script src="../../../com/commonweb/js/utilHelper.js" type="javascript"/>
  341. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  342. <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
  343. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  344. <script src="../../../com/basiccodeweb/js/ZBC001.js" type="javascript"/>
  345. <script src="../../../com/departmentcodeweb/js/common.js" type="javascript"/>
  346. <script src="../../../com/departmentcodeweb/js/ZSD001.js" type="javascript"/>
  347. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  348. <script type="javascript" src="../../../emr/medirecweb/js/MMRCommon.js"/>
  349. <script src="../../../ast/healcarecoopweb/js/ARCCommon.js" type="javascript"/>
  350. <script type="javascript">
  351. <![CDATA[
  352. // 미리보기 셋팅
  353. function fPreviewSetting()
  354. {
  355. model.resetInstanceNode("/root/main/previewinfo");
  356. //var srch = model.getValue("/root/main/aaa/printname");
  357. //exeReportPreview(srch, "XML", "/root/main/aaa");
  358. //exeReportPreview(srch, "XML");
  359. var rid = "RPARC02500"; // 레포트명
  360. var dataType = "XML"; // 연계방법(XMLSTR/ XMLFILE/ XML)
  361. var paramsXPath = ""; // 매개변수필드 XPath
  362. var submitId = ""; // SubmitID
  363. var print = ""; // 출력여부(true, false)
  364. var printDialog = ""; // 인쇄 창 보임 여부(true, false)
  365. var fileType = ""; // 저장타입(xls/ pdf/ hml/rtf/ html/ bmp/ txt/ xml )
  366. var fileName = ""; // 파일명(c:\report\레포트명.저장타입)
  367. var fileDialog = ""; // 파일 저장 창 보임여부(0 : 숨김[기본]/1 : 보임)
  368. var closeYn = ""; // 미리보기창닫기여부(출력 후 true로 설정한 경우 미리보기 화면 닫기)
  369. var monNo = ""; // 모니터 번호
  370. var parentObjId = ""; // 부모객체명(미리 생성한 부모 객체명, 해당 부모 객체에 레포트 데이터를 생성한다.)
  371. var printPaperBin = ""; // 트레이번호
  372. var userService = ""; // 데이터 소스
  373. var showButton = "hidden"; // 툴바버튼보임여부(visible, hidden)
  374. var printCount = ""; // 프린트장수(1, 2,..)
  375. var zoomRate = ""; // 미리보기뷰어 비율(0, 50,...)
  376. var printOption = ""; // 출력시 선택 옵션
  377. var dataXPath = ""; // 데이터 XPath
  378. var mainDataXPath = ""; // 메인리포트 반복XPath
  379. var subDataXPath = ""; // 서브리포트1 반복Xpath
  380. exeReportPreview(rid, dataType, paramsXPath, submitId, print, printDialog, fileType, fileName, fileDialog, closeYn, monNo, parentObjId, printPaperBin, userService, showButton, printCount, zoomRate, printOption, dataXPath, mainDataXPath, subDataXPath);
  381. }
  382. // 초기값
  383. function fInit()
  384. {
  385. /*
  386. 완료 : 완료일자가 있는거
  387. 진행중 : 출력은 했지만 완료일자는 없는거
  388. 미해결 : 완료일자 및 출력일자 둘다 없는거
  389. */
  390. //iviewer1.window.javascript.fInitPage(false, false, parseInt(iviewer1.attribute("height")));
  391. // 오늘 날짜로 세팅
  392. var CurrentDate = getCurrentDate();
  393. model.setValue("/root/send/search/fromdd", CurrentDate);
  394. model.setValue("/root/send/search/todd", CurrentDate);
  395. // 공통코드 목록 가져오기
  396. zbcfGetCodeList(new Array("A0437", "A0438", "A0556", "A0557"), new Array("/root/init/resncd", "/root/init/rsltcd", "/root/init/reqagnkindcd", "/root/init/replflag") , true);
  397. // 유형코드
  398. zbcfGetKindCodeList(
  399. new Array("A0014"), //업무규칙
  400. new Array("A0426"), //코드군
  401. new Array("/root/init/areacd"), //노드
  402. true, //minimum : true TRZBC00105
  403. new Array(""), //sorting 항목
  404. new Array("")
  405. );
  406. // 진료과
  407. //var instcd = "012";
  408. var instcd = getUserInfo("dutplceinstcd");
  409. //var standard_yn = "orduseyn";
  410. var standard_yn = "rcptuseyn";
  411. var ord_deptflag = 'D';
  412. var rslt_ref = "/root/init/dept";
  413. var sort_method = "depthngnm";
  414. //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  415. sort_field = "depthngnm"
  416. zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
  417. addComboItem("cmb_orddeptcd", "", "", "above");
  418. //진료의사조회
  419. fDoctSearch();
  420. model.removeNodeset("/root/main/req_info/req_pat_list");
  421. model.resetInstanceNode("/root/main/req_pat_info");
  422. model.refresh();
  423. }
  424. // 진료의사 조회
  425. function fDoctSearch()
  426. {
  427. // 진료의사
  428. model.removenode("/root/send/doctor");
  429. model.makeValue("/root/send/doctor/orddd", model.getValue("/root/send/search/fromdd"));
  430. model.makeValue("/root/send/doctor/orddeptcd", model.getValue("/root/send/search/orddeptcd"));
  431. submit("TRARC01302", false);
  432. cmb_orddrid.select(0);
  433. //model.setValue("/root/main/patient/orddrid", orddrid);
  434. }
  435. // 조회전 필수 체크
  436. function fCheckDateSend()
  437. {
  438. var fromdd = model.getValue("/root/send/search/fromdd");
  439. var todd = model.getValue("/root/send/search/todd");
  440. var pid = model.getValue("/root/send/search/pid");
  441. if (isNull(pid) == true)
  442. {
  443. if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
  444. messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  445. return false;
  446. }
  447. if( getDateInterval(fromdd, todd) > 31 ){
  448. messageBox("조회가능한 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  449. return false;
  450. }
  451. if( getDateInterval(fromdd, todd) < 0 ){
  452. messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  453. return false;
  454. }
  455. // 날짜 계산
  456. var daycnt = getDateInterval(fromdd, todd);
  457. // 1일이 아닌 경우는 조건을 타야 함
  458. if (daycnt != 0)
  459. {
  460. /*
  461. // 진료과 체크
  462. if (model.getValue("/root/send/search/orddeptcd") == "")
  463. {
  464. messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과는 조회 필수 조건입니다. 진료과를 입력하세요.", "E999", "");
  465. //messageBox("진료과를 ","C002");
  466. return false;
  467. }
  468. */
  469. if (ipt_hngnm.currentText.length > 0 && ipt_hngnm.currentText.length < 2) {
  470. messageBox("환자명은 2글자 이상으로 해주십시요!","E999","");
  471. model.setFocus("ipt_hngnm");
  472. return false;
  473. }
  474. if (ipt_rumint.currentText.length > 0 && ipt_rumint.currentText.length < 2) {
  475. messageBox("되의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
  476. model.setFocus("ipt_rumint");
  477. return false;
  478. }
  479. }
  480. }
  481. return true;
  482. }
  483. //조회(되의뢰내역)
  484. function fSearch()
  485. {
  486. model.resetInstanceNode("/root/main/req_pat_info/patinfo");
  487. var formcd = "0000001542";
  488. //iviewer1.window.javascript.fLoadNewForm(formcd)
  489. if (submit("TRARC01301", false) == true)
  490. {
  491. // 미리보기 셋팅
  492. //fPreviewSetting();
  493. }
  494. else
  495. {
  496. messageBox("조회를", "E009");
  497. }
  498. }
  499. function fCheckDate()
  500. {
  501. if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
  502. messageBox("저장하고자 하는 환자를", "C002");
  503. return false;
  504. }
  505. var reqagnkindcd = model.getValue("/root/main/req_pat_info/patinfo/reqagnkindcd");
  506. // 의뢰병원으로 되의뢰
  507. if (reqagnkindcd == "2")
  508. {
  509. var reqcoophospcd = model.getValue("/root/main/req_pat_info/patinfo/reqcoophospcd");
  510. var reqcoopdrcd = model.getValue("/root/main/req_pat_info/patinfo/reqcoopdrcd");
  511. var reqfromdd = model.getValue("/root/main/req_pat_info/patinfo/reqfromdd");
  512. var coophospcd = model.getValue("/root/main/req_pat_info/patinfo/coophospcd");
  513. var coopdrcd = model.getValue("/root/main/req_pat_info/patinfo/coopdrcd");
  514. var fromdd = model.getValue("/root/main/req_pat_info/patinfo/fromdd");
  515. if (reqcoophospcd != coophospcd || reqcoopdrcd != coopdrcd || reqfromdd != fromdd)
  516. {
  517. // 실행 하시겠습니까?
  518. var btn = messageBox("의뢰병원정보와 되의뢰병원정보가 다릅니다. 저장을 하시겠습니까?", "Q999");
  519. if (btn == '6')
  520. {
  521. return true;
  522. }
  523. else
  524. {
  525. return false;
  526. }
  527. }
  528. }
  529. /*
  530. if (model.getValue("/root/main/req_pat_info/patinfo/enddd") == "") {
  531. messageBox("완료일자를 ","C001");
  532. model.setFocus("ipt_enddd");
  533. return false;
  534. }
  535. */
  536. return true;
  537. }
  538. // 저장
  539. function fSave()
  540. {
  541. var enddd = model.getValue("/root/main/req_pat_info/patinfo/enddd");
  542. if (enddd == "")
  543. {
  544. model.setValue("/root/main/req_pat_info/patinfo/enddd", "00000000");
  545. }
  546. model.setValue("/root/main/req_pat_info/patinfo/reqflag", "A");
  547. model.resetInstanceNode("/root/send/savedata");
  548. model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo")
  549. if (submit("TXARC01301", false) == true)
  550. {
  551. //var formcd = "0000001542";
  552. //iviewer1.window.javascript.fLoadNewForm(formcd);
  553. //resetReportPreview();
  554. fSearch();
  555. }
  556. else
  557. {
  558. messageBox("저장에", "E009");
  559. }
  560. }
  561. // 삭제
  562. function fDelete()
  563. {
  564. if (grd_list.rows <= 1) return;
  565. if (grd_list.row < 1) return;
  566. // 데이터 삭제시
  567. if(messageBox("해당 데이터를", "Q001")== "6")
  568. {
  569. if (isNull(cmb_confflag.value) == true)
  570. {
  571. messageBox("구분", "C001");
  572. model.setFocus("cmb_flag");
  573. return;
  574. }
  575. if (isNull(ipt_confdd.value) == true)
  576. {
  577. messageBox("등록일자를", "C001");
  578. model.setFocus("ipt_confdd");
  579. return;
  580. }
  581. model.setValue("/root/send/savedata/status", "d");
  582. if (submit("TXARC01301") == true)
  583. {
  584. fSearch();
  585. }
  586. else
  587. {
  588. messageBox("삭제에", "E009");
  589. }
  590. }
  591. else
  592. {
  593. return;
  594. }
  595. }
  596. // 병원 팝업
  597. function fHospPopup()
  598. {
  599. model.setValue("/root/main/hospflag", "N");
  600. //modal("SPARH00200",1,1,1);
  601. modal("SPARH00200", 1,10, 10, "SPARH00200", "", "");
  602. /*
  603. var flag = getParameter("flag")
  604. if (flag == "Y")
  605. {
  606. model.setValue("/root/main/req_pat_info/coophospnm", getParameter("coophospnm"));
  607. model.setValue("/root/main/req_pat_info/coophospcd", getParameter("coophospcd"));
  608. model.setValue("/root/main/req_pat_info/telno", getParameter("telno1"));
  609. model.setValue("/root/main/req_pat_info/faxno", getParameter("faxno"));
  610. model.setValue("/root/main/req_pat_info/areacd", getParameter("areacd"));
  611. model.refresh();
  612. }
  613. */
  614. if( model.getValue("/root/main/hospflag") == "Y" )
  615. {
  616. model.setValue("/root/main/req_pat_info/patinfo/coophospnm", model.getValue("/root/main/hospinfo/hospinfolist/coophospnm"));
  617. model.setValue("/root/main/req_pat_info/patinfo/coophospcd", model.getValue("/root/main/hospinfo/hospinfolist/coophospcd"));
  618. model.setValue("/root/main/req_pat_info/patinfo/coopdrnm", model.getValue("/root/main/hospinfo/hospinfolist/drnm"));
  619. model.setValue("/root/main/req_pat_info/patinfo/coopdrcd", model.getValue("/root/main/hospinfo/hospinfolist/coopdrcd"));
  620. model.setValue("/root/main/req_pat_info/patinfo/areacd", model.getValue("/root/main/hospinfo/hospinfolist/areacd"));
  621. model.setValue("/root/main/req_pat_info/patinfo/telno", model.getValue("/root/main/hospinfo/hospinfolist/telno"));
  622. model.setValue("/root/main/req_pat_info/patinfo/faxno", model.getValue("/root/main/hospinfo/hospinfolist/faxno"));
  623. model.setValue("/root/main/req_pat_info/patinfo/fromdd", model.getValue("/root/main/hospinfo/hospinfolist/fromdd"));
  624. }
  625. model.refresh();
  626. }
  627. // 의뢰환자 정보 Popup
  628. function fReqPatPopup()
  629. {
  630. var pid = setParameter("pid", model.getValue("/root/main/req_pat_info/patinfo/pid")); //팝업 등록화면의 교육명에 값 가져가기
  631. var hngnm = setParameter("hngnm", model.getValue("/root/main/req_pat_info/patinfo/hngnm")); //팝업 등록화면의 교육명에 값 가져가기
  632. if (isNull(opt_pid.value) == true)
  633. {
  634. messageBox("등록번호를", "C001");
  635. model.setFocus("opt_pid");
  636. return;
  637. }
  638. model.setValue("/root/main/reqpopupflag", "N");
  639. modal("SPARC02100", 1,10, 10, "SPARC02100", "", "");
  640. if( model.getValue("/root/main/reqpopupflag") == "Y" )
  641. {
  642. //alert(model.getValue("/root/main/reqpopupflag"));
  643. model.setValue("/root/main/req_pat_info/patinfo/reqcoophospnm", model.getValue("/root/main/reqpopup/reqpopuplist/coophospnm"));
  644. model.setValue("/root/main/req_pat_info/patinfo/reqdrnm", model.getValue("/root/main/reqpopup/reqpopuplist/drnm"));
  645. model.setValue("/root/main/req_pat_info/patinfo/reqdd", model.getValue("/root/main/reqpopup/reqpopuplist/reqdd"));
  646. model.setValue("/root/main/req_pat_info/patinfo/reqorddeptnm", model.getValue("/root/main/reqpopup/reqpopuplist/orddeptnm"));
  647. model.setValue("/root/main/req_pat_info/patinfo/reqorddrnm", model.getValue("/root/main/reqpopup/reqpopuplist/orddrnm"));
  648. model.setValue("/root/main/req_pat_info/patinfo/reqorddd", model.getValue("/root/main/reqpopup/reqpopuplist/orddd"));
  649. model.setValue("/root/main/req_pat_info/patinfo/reqcretno", model.getValue("/root/main/reqpopup/reqpopuplist/cretno"));
  650. model.setValue("/root/main/req_pat_info/patinfo/reqacptseqno", model.getValue("/root/main/reqpopup/reqpopuplist/acptseqno"));
  651. model.setValue("/root/main/req_pat_info/patinfo/reqseqno", model.getValue("/root/main/reqpopup/reqpopuplist/seqno"));
  652. model.setValue("/root/main/req_pat_info/patinfo/reqcoophospcd", model.getValue("/root/main/reqpopup/reqpopuplist/coophospcd"));
  653. model.setValue("/root/main/req_pat_info/patinfo/reqcoopdrcd", model.getValue("/root/main/reqpopup/reqpopuplist/coopdrcd"));
  654. model.setValue("/root/main/req_pat_info/patinfo/reqfromdd", model.getValue("/root/main/reqpopup/reqpopuplist/fromdd"));
  655. model.refresh();
  656. }
  657. }
  658. function fReqAgnInfo()
  659. {
  660. if (grd_list.rows <= 0) return;
  661. if (grd_list.row < 0) return;
  662. //그리드에서 해당 환자 선택
  663. var idxRow = grd_list.row;
  664. var pid = model.getValue("/root/main/req_pat_list["+idxRow+"]/pid");
  665. var hngnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/hngnm");
  666. var orddd = model.getValue("/root/main/req_pat_list["+idxRow+"]/orddd");
  667. var deptnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/deptnm");
  668. var atdoctnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/atdoctnm");
  669. model.setValue("/root/main/req_pat_info/patinfo/pid", pid);
  670. model.setValue("/root/main/req_pat_info/patinfo/hngnm", hngnm);
  671. model.setValue("/root/main/req_pat_info/patinfo/orddd", orddd);
  672. model.setValue("/root/main/req_pat_info/patinfo/deptnm", deptnm);
  673. model.setValue("/root/main/req_pat_info/patinfo/atdoctnm", atdoctnm);
  674. model.refresh();
  675. }
  676. // 등록번호 조회 팝업
  677. function fPatPopUp()
  678. {
  679. // model.makeValue("/root/temp/pid", model.getValue("/root/send/search/pid"));
  680. // model.makeValue("/root/temp/srchcond","1");
  681. // model.makeValue("/root/temp/autoflag","Y");
  682. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
  683. //model.resetInstanceNode("/root/main/patinfo/patinfolist");
  684. //model.resetInstanceNode("/root/send/cond");
  685. model.setValue("/root/send/search/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  686. model.setValue("/root/send/search/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  687. //fHistSearch();
  688. model.refresh();
  689. }
  690. // 되의뢰 리스트 선택
  691. function fGrdClick()
  692. {
  693. if (grd_list.rows <= 1) return;
  694. if (grd_list.row < 1) return;
  695. var lrow = grd_list.row;
  696. if(grd_list.isCell(event.target) && grd_list.mouseRow >= grd_list.fixedrows)
  697. {
  698. //fBiztrgtClick();
  699. }
  700. else
  701. {
  702. return;
  703. }
  704. /*
  705. model.copyNode("/root/main/req_pat_info/patinfo", "/root/main/req_info/req_pat_list[" + lrow + "]");
  706. //model.setValue("/root/main/req_pat_into/reqflag", "A");
  707. */
  708. model.resetInstanceNode("/root/send/cond");
  709. model.setValue("/root/send/cond/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
  710. model.setValue("/root/send/cond/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecdd"));
  711. model.setValue("/root/send/cond/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
  712. model.setValue("/root/send/cond/seqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/seqno"));
  713. model.setValue("/root/send/cond/replseqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/replseqno"));
  714. model.setValue("/root/send/cond/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
  715. model.setValue("/root/send/cond/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
  716. if (submit("TRARC01303", false) == true)
  717. {
  718. if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "")
  719. {
  720. model.setValue("/root/main/req_pat_info/patinfo/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
  721. model.setValue("/root/main/req_pat_info/patinfo/hngnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/hngnm"));
  722. model.setValue("/root/main/req_pat_info/patinfo/sex", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/sex"));
  723. model.setValue("/root/main/req_pat_info/patinfo/age", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/age"));
  724. model.setValue("/root/main/req_pat_info/patinfo/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
  725. model.setValue("/root/main/req_pat_info/patinfo/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
  726. model.setValue("/root/main/req_pat_info/patinfo/orddeptnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptnm"));
  727. model.setValue("/root/main/req_pat_info/patinfo/orddrnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrnm"));
  728. model.setValue("/root/main/req_pat_info/patinfo/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
  729. model.setValue("/root/main/req_pat_info/patinfo/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
  730. model.setValue("/root/main/req_pat_info/patinfo/replseqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/replseqno"));
  731. model.setValue("/root/main/req_pat_info/patinfo/status", "i");
  732. }
  733. // 회신내용 미리보기
  734. //fPreview();
  735. // 공통 function 으로 대체
  736. var pid = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid");
  737. var replseqno = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/replseqno");
  738. var replflag = "A";
  739. fComPreview(pid, replseqno, replflag);
  740. }
  741. //model.copyNode("/root/main/req_pat_info", "/root/main/req_info/req_pat_list[" + lrow + "]");
  742. //model.setValue("/root/main/req_pat_into/reqflag", "A");
  743. // 서식 로드
  744. //var formrecseq = model.getValue("/root/send/cond/formrecseq");
  745. //iviewer1.window.javascript.fLoadRecForm(formrecseq);
  746. /*
  747. model.setValue("/root/main/req_pat_info/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
  748. model.setValue("/root/main/req_pat_info/hngnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/hngnm"));
  749. model.setValue("/root/main/req_pat_info/sex", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/sex"));
  750. model.setValue("/root/main/req_pat_info/age", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/age"));
  751. model.setValue("/root/main/req_pat_info/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/odrdd"));
  752. model.setValue("/root/main/req_pat_info/orddeptnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptnm"));
  753. model.setValue("/root/main/req_pat_info/orddrnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrnm"));
  754. model.setValue("/root/main/req_pat_info/coophospnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/coophospnm"));
  755. model.setValue("/root/main/req_pat_info/areacd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/areacd"));
  756. model.setValue("/root/main/req_pat_info/telno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/telno"));
  757. model.setValue("/root/main/req_pat_info/faxno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/faxno"));
  758. model.setValue("/root/main/req_pat_info/resncd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/resncd"));
  759. model.setValue("/root/main/req_pat_info/enddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/enddd"));
  760. model.setValue("/root/main/req_pat_info/rsltcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/rsltcd"));
  761. model.setValue("/root/main/req_pat_info/reqorddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqorddd"));
  762. model.setValue("/root/main/req_pat_info/reqcretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqcretno"));
  763. model.setValue("/root/main/req_pat_info/reqacptseqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqacptseqno"));
  764. model.setValue("/root/main/req_pat_info/reqseqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqseqno"));
  765. model.setValue("/root/main/req_pat_info/reqcoophospnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqcoophospnm"));
  766. model.setValue("/root/main/req_pat_info/reqdrnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqdrnm"));
  767. model.setValue("/root/main/req_pat_info/reqorddeptnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqorddeptnm"));
  768. model.setValue("/root/main/req_pat_info/reqorddrnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqorddrnm"));
  769. model.setValue("/root/main/req_pat_info/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
  770. model.setValue("/root/main/req_pat_info/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
  771. model.setValue("/root/main/req_pat_info/coophospcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/coophospcd"));
  772. model.setValue("/root/main/req_pat_info/reqflag", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqflag"));
  773. model.setValue("/root/main/req_pat_info/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
  774. model.setValue("/root/main/req_pat_info/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
  775. model.setValue("/root/main/req_pat_info/acptseqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/acptseqno"));
  776. model.setValue("/root/main/req_pat_info/seqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/seqno"));
  777. model.setValue("/root/main/req_pat_info/status", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/status"));
  778. */
  779. model.refresh();
  780. }
  781. // 미리보기
  782. function fPreview()
  783. {
  784. var lrow = grd_list.row;
  785. model.resetInstanceNode("/root/send/viewcond");
  786. model.resetInstanceNode("/root/main/previewinfo");
  787. model.setValue("/root/send/viewcond/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
  788. model.setValue("/root/send/viewcond/replseqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/replseqno"));
  789. if (submit("TRARC02507") == true)
  790. {
  791. model.setValue("/root/main/previewinfo/reqhospinfo/coophospnm", model.getValue("/root/main/req_pat_info/patinfo/coophospnm"));
  792. model.setValue("/root/main/previewinfo/reqhospinfo/coopdrnm", model.getValue("/root/main/req_pat_info/patinfo/coopdrnm"));
  793. model.setValue("/root/main/previewinfo/reqhospinfo/addr", model.getValue("/root/main/req_pat_info/patinfo/addr"));
  794. model.setValue("/root/main/previewinfo/reqhospinfo/detladdr", model.getValue("/root/main/req_pat_info/patinfo/detladdr"));
  795. model.setValue("/root/main/previewinfo/reqhospinfo/zipcd1", model.getValue("/root/main/req_pat_info/patinfo/zipcd1"));
  796. model.setValue("/root/main/previewinfo/reqhospinfo/zipcd2", model.getValue("/root/main/req_pat_info/patinfo/zipcd2"));
  797. model.setValue("/root/main/previewinfo/reqhospinfo/drflag", model.getValue("/root/main/req_pat_info/patinfo/drflag"));
  798. }
  799. //exeReportPreview("RPARC02500", "XMLSTR");
  800. var rid = "RPARC02500"; // 레포트명
  801. var dataType = "XMLSTR"; // 연계방법(XMLSTR/ XMLFILE/ XML)
  802. var paramsXPath = ""; // 매개변수필드 XPath
  803. var submitId = ""; // SubmitID
  804. var print = ""; // 출력여부(true, false)
  805. var printDialog = ""; // 인쇄 창 보임 여부(true, false)
  806. var fileType = ""; // 저장타입(xls/ pdf/ hml/rtf/ html/ bmp/ txt/ xml )
  807. var fileName = ""; // 파일명(c:\report\레포트명.저장타입)
  808. var fileDialog = ""; // 파일 저장 창 보임여부(0 : 숨김[기본]/1 : 보임)
  809. var closeYn = ""; // 미리보기창닫기여부(출력 후 true로 설정한 경우 미리보기 화면 닫기)
  810. var monNo = ""; // 모니터 번호
  811. var parentObjId = ""; // 부모객체명(미리 생성한 부모 객체명, 해당 부모 객체에 레포트 데이터를 생성한다.)
  812. var printPaperBin = ""; // 트레이번호
  813. var userService = ""; // 데이터 소스
  814. var showButton = "hidden"; // 툴바버튼보임여부(visible, hidden)
  815. var printCount = ""; // 프린트장수(1, 2,..)
  816. var zoomRate = ""; // 미리보기뷰어 비율(0, 50,...)
  817. var printOption = ""; // 출력시 선택 옵션
  818. var dataXPath = ""; // 데이터 XPath
  819. var mainDataXPath = ""; // 메인리포트 반복XPath
  820. var subDataXPath = ""; // 서브리포트1 반복Xpath
  821. exeReportPreview(rid, dataType, paramsXPath, submitId, print, printDialog, fileType, fileName, fileDialog, closeYn, monNo, parentObjId, printPaperBin, userService, showButton, printCount, zoomRate, printOption, dataXPath, mainDataXPath, subDataXPath);
  822. //exeReportPreview(rid, dataType);
  823. }
  824. // 의뢰정보 삭제
  825. function fReqDel()
  826. {
  827. /*
  828. opt_reqcoophospnm.value = "";
  829. opt_reqdrnm.value = "";
  830. opt_reqdd.value = "";
  831. opt_reqorddeptnm.value = "";
  832. opt_reqorddrnm.value = "";
  833. */
  834. var stat = model.getValue("/root/main/req_info/req_pat_list[" +grd_list.row + "]/stat");
  835. model.setValue("/root/main/req_pat_info/patinfo/reqcoophospnm", "");
  836. model.setValue("/root/main/req_pat_info/patinfo/reqdrnm", "");
  837. model.setValue("/root/main/req_pat_info/patinfo/reqdd", "");
  838. model.setValue("/root/main/req_pat_info/patinfo/reqorddeptnm", "");
  839. model.setValue("/root/main/req_pat_info/patinfo/reqorddrnm", "");
  840. model.setValue("/root/main/req_pat_info/patinfo/reqorddd", "");
  841. model.setValue("/root/main/req_pat_info/patinfo/reqcretno", "0");
  842. model.setValue("/root/main/req_pat_info/patinfo/reqacptseqno", "0");
  843. model.setValue("/root/main/req_pat_info/patinfo/reqseqno", "0");
  844. model.refresh();
  845. }
  846. // 되의뢰 정보 삭제
  847. function fReqAgnDel()
  848. {
  849. var stat = model.getValue("/root/main/req_info/req_pat_list[" +grd_list.row + "]/stat");
  850. model.setValue("/root/main/req_pat_info/coophospnm", "");
  851. model.setValue("/root/main/req_pat_info/rsltcd", "");
  852. model.setValue("/root/main/req_pat_info/areacd", "");
  853. model.setValue("/root/main/req_pat_info/telno", "");
  854. model.setValue("/root/main/req_pat_info/faxno", "");
  855. model.setValue("/root/main/req_pat_info/resncd", "");
  856. model.setValue("/root/main/req_pat_info/enddd", "");
  857. model.setValue("/root/main/req_pat_info/coophospcd", "");
  858. model.refresh();
  859. }
  860. // 출력
  861. function fReplcheck()
  862. {
  863. var currow = grd_list.row;
  864. var sREPLDOCULIST_PATH = "/root/main/req_pat_info/patinfo";
  865. var formrecseq = model.getValue(sREPLDOCULIST_PATH+"/replseqno")
  866. var pid = model.getValue(sREPLDOCULIST_PATH+"/pid")
  867. // var irow = grd_list.rows;
  868. // var cnt = 0;
  869. // var savedata = getNodeListCSV(instance1.selectNodes(sREPLDOCULIST_PATH));
  870. if (pid == "")
  871. {
  872. messageBox("출력하고자 하는 환자를", "C002");
  873. return;
  874. }
  875. //getFormData("0000001542", formrecseq);
  876. //setParameter("reportprintyn", "");
  877. //exeReportPreview("RPARC02500", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
  878. var rid = "RPARC02500"; // 레포트명
  879. var dataType = "XMLSTR"; // 연계방법(XMLSTR/ XMLFILE/ XML)
  880. var paramsXPath = ""; // 매개변수필드 XPath
  881. var submitId = ""; // SubmitID
  882. var print = "true"; // 출력여부(true, false)
  883. var printDialog = ""; // 인쇄 창 보임 여부(true, false)
  884. var fileType = ""; // 저장타입(xls/ pdf/ hml/rtf/ html/ bmp/ txt/ xml )
  885. var fileName = ""; // 파일명(c:\report\레포트명.저장타입)
  886. var fileDialog = ""; // 파일 저장 창 보임여부(0 : 숨김[기본]/1 : 보임)
  887. var closeYn = ""; // 미리보기창닫기여부(출력 후 true로 설정한 경우 미리보기 화면 닫기)
  888. var monNo = ""; // 모니터 번호
  889. var parentObjId = ""; // 부모객체명(미리 생성한 부모 객체명, 해당 부모 객체에 레포트 데이터를 생성한다.)
  890. var printPaperBin = ""; // 트레이번호
  891. var userService = ""; // 데이터 소스
  892. var showButton = "hidden"; // 툴바버튼보임여부(visible, hidden)
  893. var printCount = ""; // 프린트장수(1, 2,..)
  894. var zoomRate = ""; // 미리보기뷰어 비율(0, 50,...)
  895. var printOption = ""; // 출력시 선택 옵션
  896. var dataXPath = ""; // 데이터 XPath
  897. var mainDataXPath = ""; // 메인리포트 반복XPath
  898. var subDataXPath = ""; // 서브리포트1 반복Xpath
  899. exeReportPreview(rid, dataType, paramsXPath, submitId, print, printDialog, fileType, fileName, fileDialog, closeYn, monNo, parentObjId, printPaperBin, userService, showButton, printCount, zoomRate, printOption, dataXPath, mainDataXPath, subDataXPath);
  900. //if (getParameter("reportprintyn") == "Y"){
  901. model.resetInstanceNode("/root/send/savedata");
  902. /*
  903. model.makeValue("/root/send/savedata/instcd" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/instcd"));
  904. model.makeValue("/root/send/savedata/formrecseq" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/formrecseq"));
  905. model.makeValue("/root/send/savedata/pid" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/pid"));
  906. model.makeValue("/root/send/savedata/orddd" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/orddd"));
  907. model.makeValue("/root/send/savedata/cretno" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/cretno"));
  908. model.makeValue("/root/send/savedata/reqorddd" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/orddd"));
  909. model.makeValue("/root/send/savedata/reqcretno" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/cretno"));
  910. model.makeValue("/root/send/savedata/reqseqno" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/seqno"));
  911. */
  912. model.setValue("/root/main/req_pat_info/patinfo/reqflag", "A");
  913. model.resetInstanceNode("/root/send/savedata");
  914. model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo")
  915. if(submit("TXARC01302",false)==true){
  916. fSearch();
  917. //messageBox("출력저장", "I001");
  918. }
  919. //}
  920. /*
  921. //alert(formrecseq);
  922. getFormData("0000001542", formrecseq);
  923. exeReportPreview("RFM0154200", "XMLSTR");
  924. //alert(getParameter("reportprintyn"));
  925. if (getParameter("reportprintyn") == "Y")
  926. {
  927. model.resetInstanceNode("/root/send/savedata");
  928. model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo")
  929. if(submit("TXARC01302", false)==true){
  930. messageBox("출력이", "I002");
  931. }
  932. }
  933. */
  934. /*
  935. for(var i=1; i < irow; i++){
  936. var chk = model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/chk")
  937. if (chk == "true"){
  938. model.makeValue("/root/send/savedata/instcd" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/instcd"));
  939. model.makeValue("/root/send/savedata/formrecseq" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/formrecseq"));
  940. model.makeValue("/root/send/savedata/pid" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/pid"));
  941. model.makeValue("/root/send/savedata/orddd" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/orddd"));
  942. model.makeValue("/root/send/savedata/cretno" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/cretno"));
  943. model.makeValue("/root/send/savedata/reqorddd" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/orddd"));
  944. model.makeValue("/root/send/savedata/reqcretno" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/cretno"));
  945. model.makeValue("/root/send/savedata/reqseqno" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/seqno"));
  946. getFormData("0000001536", model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/formrecseq"));
  947. setParameter("reportprintyn", "");
  948. exeReportPreview("RFM0153600", "XMLSTR");
  949. // alert(getParameter('reportprintyn'));
  950. if (getParameter("reportprintyn") == "Y"){
  951. if(submit("TXARC02001",false)==true){
  952. messageBox("출력저장", "I001");
  953. }
  954. }
  955. cnt++;
  956. model.resetInstanceNode("/root/send/savedata");
  957. }
  958. }
  959. if(cnt == 0){
  960. messageBox("출력할 정보가", "I004");
  961. return;
  962. }
  963. fSearch();
  964. model.refresh();
  965. */
  966. }
  967. ]]>
  968. </script>
  969. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  970. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  971. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:111px; height:14px; ">되의뢰관리</caption>
  972. </group>
  973. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  974. <group id="group2" style="left:570px; top:10px; width:620px; height:730px; ">
  975. <line id="line72" class="line_1" style="x1:5px; y1:18px; x2:620px; y2:17px; "/>
  976. <caption id="caption112" class="tit_2" style="left:5px; top:1px; width:116px; height:13px; ">환자기본정보</caption>
  977. <caption id="caption96" class="cell_1" style="left:210px; top:20px; width:90px; height:23px; vertical-align:middle; ">성명</caption>
  978. <caption id="caption76" class="cell_1" style="left:5px; top:21px; width:90px; height:23px; vertical-align:middle; ">등록번호</caption>
  979. <caption id="caption77" class="cell_1" style="left:415px; top:21px; width:90px; height:23px; vertical-align:middle; ">성별/나이</caption>
  980. <caption id="caption12" class="cell_1" style="left:210px; top:46px; width:90px; height:23px; vertical-align:middle; ">진료과</caption>
  981. <caption id="caption4" class="cell_1" style="left:5px; top:46px; width:90px; height:23px; vertical-align:middle; ">진료일자</caption>
  982. <caption id="caption16" class="cell_1" style="left:415px; top:46px; width:90px; height:23px; vertical-align:middle; ">주치의</caption>
  983. <line id="line44" class="line_2" style="x1:5px; y1:44px; x2:620px; y2:44px; "/>
  984. <line id="line47" class="line_2" style="x1:5px; y1:223px; x2:620px; y2:223px; "/>
  985. <line id="line2" class="line_2" style="x1:5px; y1:248px; x2:620px; y2:248px; "/>
  986. <button id="button5" class="icon_search" navindex="14" style="left:396px; top:205px; width:16px; height:16px; ">
  987. <caption/>
  988. <script type="javascript" ev:event="DOMActivate">
  989. <![CDATA[
  990. fHospPopup();
  991. ]]>
  992. </script>
  993. </button>
  994. <caption id="caption20" class="cell_1" style="left:5px; top:200px; width:90px; height:23px; vertical-align:middle; ">되의뢰 병원명</caption>
  995. <caption id="caption45" class="cell_1" style="left:5px; top:225px; width:90px; height:23px; vertical-align:middle; ">지역구분</caption>
  996. <caption id="caption50" class="cell_1" style="left:415px; top:250px; width:90px; height:23px; vertical-align:middle; ">팩스번호</caption>
  997. <caption id="caption52" class="cell_1" style="left:210px; top:225px; width:90px; height:23px; vertical-align:middle; ">전화번호</caption>
  998. <caption id="caption7" class="cell_1" style="left:5px; top:250px; width:90px; height:23px; vertical-align:middle; ">되의뢰사유</caption>
  999. <caption id="caption8" class="cell_1" style="left:415px; top:275px; width:90px; height:23px; vertical-align:middle; ">되의뢰완료일</caption>
  1000. <line id="line4" class="line_1" style="x1:5px; y1:326px; x2:620px; y2:325px; "/>
  1001. <caption id="caption9" class="tit_2" style="left:5px; top:308px; width:116px; height:13px; ">되의뢰서</caption>
  1002. <line id="line17" class="line_3" style="x1:5px; y1:299px; x2:620px; y2:299px; "/>
  1003. <select1 id="cmb_areacd" ref="/root/main/req_pat_info/patinfo/areacd" class="combo_default" disabled="true" navindex="15" appearance="minimal" style="left:97px; top:227px; width:110px; height:19px; ">
  1004. <choices>
  1005. <itemset nodeset="/root/init/areacd/A0014A0426">
  1006. <label ref="cdnm"/>
  1007. <value ref="cdid"/>
  1008. </itemset>
  1009. </choices>
  1010. </select1>
  1011. <line id="line5" class="line_1" style="x1:5px; y1:95px; x2:620px; y2:94px; "/>
  1012. <caption id="caption13" class="tit_2" style="left:5px; top:78px; width:116px; height:13px; ">의뢰정보</caption>
  1013. <line id="line6" class="line_3" style="x1:5px; y1:70px; x2:620px; y2:70px; "/>
  1014. <caption id="caption14" class="cell_1" style="left:5px; top:98px; width:90px; height:23px; vertical-align:middle; ">의뢰병원</caption>
  1015. <caption id="caption15" class="cell_1" style="left:415px; top:98px; width:90px; height:23px; vertical-align:middle; ">의뢰의사</caption>
  1016. <caption id="caption17" class="cell_1" style="left:210px; top:123px; width:90px; height:23px; vertical-align:middle; ">진료과</caption>
  1017. <caption id="caption18" class="cell_1" style="left:5px; top:123px; width:90px; height:23px; vertical-align:middle; ">의뢰일자</caption>
  1018. <caption id="caption19" class="cell_1" style="left:415px; top:123px; width:90px; height:23px; vertical-align:middle; ">주치의</caption>
  1019. <button id="button1" class="icon_search" navindex="13" style="left:395px; top:100px; width:16px; height:16px; ">
  1020. <caption/>
  1021. <script type="javascript" ev:event="DOMActivate">
  1022. <![CDATA[
  1023. fReqPatPopup();
  1024. ]]>
  1025. </script>
  1026. </button>
  1027. <line id="line7" class="line_3" style="x1:5px; y1:147px; x2:620px; y2:147px; "/>
  1028. <line id="line8" class="line_2" style="x1:0px; y1:121px; x2:615px; y2:121px; "/>
  1029. <caption id="caption21" class="tit_2" style="left:5px; top:155px; width:116px; height:13px; ">되의뢰정보</caption>
  1030. <line id="line9" class="line_1" style="x1:5px; y1:172px; x2:620px; y2:171px; "/>
  1031. <output id="opt_pid" ref="/root/main/req_pat_info/patinfo/pid" class="output_fix" appearance="output" style="left:97px; top:22px; width:110px; height:19px; "/>
  1032. <output id="opt_hngnm" ref="/root/main/req_pat_info/patinfo/hngnm" class="output_fix" appearance="output" style="left:302px; top:22px; width:110px; height:19px; "/>
  1033. <select1 id="cmb_sex" ref="/root/main/req_pat_info/patinfo/sex" disabled="true" navindex="11" appearance="minimal" style="left:507px; top:22px; width:50px; height:19px; ">
  1034. <choices>
  1035. <item>
  1036. <label>남</label>
  1037. <value>M</value>
  1038. </item>
  1039. <item>
  1040. <label>여</label>
  1041. <value>F</value>
  1042. </item>
  1043. </choices>
  1044. </select1>
  1045. <output id="opt_age" ref="/root/main/req_pat_info/patinfo/age" class="output_fix" appearance="output" style="left:565px; top:22px; width:50px; height:19px; text-align:right; "/>
  1046. <output id="opt_orddd" ref="/root/main/req_pat_info/patinfo/orddd" class="output_fix" format="yyyy-mm-dd" inputtype="date" appearance="output" style="left:97px; top:48px; width:110px; height:19px; text-align:center; "/>
  1047. <output id="opt_orddeptnm" ref="/root/main/req_pat_info/patinfo/orddeptnm" class="output_fix" appearance="output" style="left:302px; top:48px; width:110px; height:19px; "/>
  1048. <output id="opt_orddrnm" ref="/root/main/req_pat_info/patinfo/orddrnm" class="output_fix" appearance="output" style="left:507px; top:48px; width:110px; height:19px; "/>
  1049. <output id="opt_reqcoophospnm" ref="/root/main/req_pat_info/patinfo/reqcoophospnm" class="output_fix" inputtype="date" appearance="output" style="left:97px; top:100px; width:293px; height:19px; "/>
  1050. <output id="opt_reqdrnm" ref="/root/main/req_pat_info/patinfo/reqdrnm" class="output_fix" appearance="output" style="left:507px; top:100px; width:110px; height:19px; "/>
  1051. <output id="opt_reqdd" ref="/root/main/req_pat_info/patinfo/reqdd" class="output_fix" format="yyyy-mm-dd" inputtype="date" appearance="output" style="left:97px; top:125px; width:110px; height:19px; text-align:center; "/>
  1052. <output id="opt_reqorddeptnm" ref="/root/main/req_pat_info/patinfo/reqorddeptnm" class="output_fix" appearance="output" style="left:302px; top:125px; width:110px; height:19px; "/>
  1053. <output id="opt_reqorddrnm" ref="/root/main/req_pat_info/patinfo/reqorddrnm" class="output_fix" appearance="output" style="left:507px; top:125px; width:110px; height:19px; "/>
  1054. <output id="opt_coophospnm" ref="/root/main/req_pat_info/patinfo/coophospnm" class="output_fix" appearance="output" style="left:97px; top:201px; width:293px; height:19px; "/>
  1055. <output id="opt_telno" ref="/root/main/req_pat_info/patinfo/telno" class="output_fix" disabled="true" appearance="output" style="left:302px; top:227px; width:110px; height:19px; "/>
  1056. <output id="opt_faxno" ref="/root/main/req_pat_info/patinfo/faxno" class="output_fix" disabled="true" appearance="output" style="left:507px; top:252px; width:110px; height:19px; "/>
  1057. <select1 id="cmb_resncd" ref="/root/main/req_pat_info/patinfo/resncd" navindex="17" appearance="minimal" style="left:97px; top:252px; width:313px; height:19px; ">
  1058. <choices>
  1059. <itemset nodeset="/root/init/resncd/A0437">
  1060. <label ref="cdnm"/>
  1061. <value ref="cdid"/>
  1062. </itemset>
  1063. </choices>
  1064. </select1>
  1065. <input id="ipt_enddd" ref="/root/main/req_pat_info/patinfo/enddd" class="input_essential" navindex="19" inputtype="date" style="left:507px; top:277px; width:110px; height:19px; "/>
  1066. <caption id="caption22" class="cell_1" style="left:415px; top:225px; width:90px; height:23px; vertical-align:middle; ">되의뢰결과</caption>
  1067. <button id="btn_reqdel" class="btn2_letter3" navindex="12" style="left:565px; top:74px; width:53px; height:19px; ">
  1068. <caption>초기화</caption>
  1069. <script type="javascript" ev:event="DOMActivate">
  1070. <![CDATA[
  1071. fReqDel();
  1072. ]]>
  1073. </script>
  1074. </button>
  1075. <select1 id="cmb_rsltcd" ref="/root/main/req_pat_info/patinfo/rsltcd" navindex="16" appearance="minimal" style="left:507px; top:227px; width:110px; height:19px; ">
  1076. <choices>
  1077. <itemset nodeset="/root/init/rsltcd/A0438">
  1078. <label ref="cdnm"/>
  1079. <value ref="cdid"/>
  1080. </itemset>
  1081. </choices>
  1082. </select1>
  1083. <caption id="caption26" class="cell_1" style="left:415px; top:200px; width:90px; height:23px; vertical-align:middle; ">되의뢰의사</caption>
  1084. <output id="opt_rumint" ref="/root/main/req_pat_info/patinfo/coopdrnm" class="output_fix" appearance="output" style="left:507px; top:201px; width:110px; height:19px; "/>
  1085. <select1 id="cmb_replflag" ref="/root/main/req_pat_info/patinfo/aprvflag" class="input" navindex="18" appearance="minimal" style="left:97px; top:277px; width:135px; height:19px; ">
  1086. <choices>
  1087. <item>
  1088. <label>예</label>
  1089. <value>Y</value>
  1090. </item>
  1091. <item>
  1092. <label>아니오</label>
  1093. <value>N</value>
  1094. </item>
  1095. <item>
  1096. <label>누락</label>
  1097. <value>O</value>
  1098. </item>
  1099. </choices>
  1100. </select1>
  1101. <caption id="caption69" class="cell_1" style="left:5px; top:275px; width:90px; height:23px; vertical-align:middle; ">동의여부</caption>
  1102. <caption id="caption28" class="cell_1" style="left:5px; top:175px; width:90px; height:23px; vertical-align:middle; ">되의뢰유형</caption>
  1103. <select1 id="combo1" ref="/root/main/req_pat_info/patinfo/reqagnkindcd" class="combo_default" disabled="true" navindex="15" appearance="minimal" style="left:97px; top:177px; width:208px; height:19px; ">
  1104. <choices>
  1105. <itemset nodeset="/root/init/reqagnkindcd/A0556">
  1106. <label ref="cdnm"/>
  1107. <value ref="cdid"/>
  1108. </itemset>
  1109. </choices>
  1110. </select1>
  1111. <line id="line10" class="line_2" style="x1:5px; y1:198px; x2:620px; y2:198px; "/>
  1112. <output id="output1" ref="/root/main/req_pat_info/patinfo/reqagnkindnm" class="output_fix" appearance="output" style="left:310px; top:177px; width:307px; height:19px; "/>
  1113. <line id="line11" class="line_2" style="x1:5px; y1:273px; x2:620px; y2:273px; "/>
  1114. </group>
  1115. <group id="group4" style="left:0px; top:0px; width:565px; height:740px; ">
  1116. <datagrid id="grd_list" nodeset="/root/main/req_info/req_pat_list" caption="상태^작성일^환자번호^환자명^진료과^진료의사" colsep="^" colwidth="63, 80, 80, 100, 110, 110" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" navindex="10" style="left:0px; top:175px; width:565px; height:375px; ">
  1117. <col disabled="true" ref="stat" type="combo">
  1118. <choices>
  1119. <item>
  1120. <label>미해결</label>
  1121. <value>1</value>
  1122. </item>
  1123. <item>
  1124. <label>진행중</label>
  1125. <value>2</value>
  1126. </item>
  1127. <item>
  1128. <label>완료</label>
  1129. <value>3</value>
  1130. </item>
  1131. </choices>
  1132. </col>
  1133. <col disabled="true" ref="formrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1134. <col ref="pid" style="text-align:center; "/>
  1135. <col ref="hngnm" style="text-align:center; "/>
  1136. <col ref="orddeptnm" style="text-align:center; "/>
  1137. <col ref="orddrnm"/>
  1138. <script type="javascript" ev:event="onclick">
  1139. <![CDATA[
  1140. fGrdClick();
  1141. model.refresh();
  1142. ]]>
  1143. </script>
  1144. </datagrid>
  1145. <caption id="caption1" class="tit_2" style="left:5px; top:156px; width:126px; height:13px; ">되의뢰환자 리스트</caption>
  1146. <line id="line1" class="line_1" style="x1:0px; y1:171px; x2:565px; y2:171px; "/>
  1147. <group id="grp_sea" style="left:0px; top:10px; width:565px; height:140px; vertical-align:top; ">
  1148. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:565px; height:140px; "/>
  1149. <line id="line13" class="line_4" style="x1:497px; y1:103px; x2:497px; y2:126px; "/>
  1150. <select1 id="cmb_orddrid" ref="/root/send/search/orddrid" class="combo_search" navindex="6" appearance="minimal" style="left:390px; top:57px; width:120px; height:19px; ">
  1151. <choices>
  1152. <itemset nodeset="/root/init/doctlist/medispcl/">
  1153. <label ref="doctnm"/>
  1154. <value ref="doctid"/>
  1155. </itemset>
  1156. </choices>
  1157. </select1>
  1158. <select1 id="rdo_stat" ref="/root/send/search/stat" navindex="8" overflow="visible" appearance="full" cols="4" rows="1" style="left:125px; top:110px; width:210px; height:20px; border-style:none; ">
  1159. <choices>
  1160. <item>
  1161. <label>전체</label>
  1162. <value>%</value>
  1163. </item>
  1164. <item>
  1165. <label>미해결</label>
  1166. <value>1</value>
  1167. </item>
  1168. <item>
  1169. <label>진행중</label>
  1170. <value>2</value>
  1171. </item>
  1172. <item>
  1173. <label>완료</label>
  1174. <value>3</value>
  1175. </item>
  1176. </choices>
  1177. </select1>
  1178. <input id="ipt_pid" ref="/root/send/search/pid" class="input_search" navindex="3" maxlength="10" style="left:125px; top:30px; width:120px; height:19px; ">
  1179. <script type="javascript" ev:event="onkeydown">
  1180. <![CDATA[
  1181. if (event.keyCode == 13 && ipt_pid.currentText.length> 0)
  1182. {
  1183. inputEnterKey("btn_search", "DOMActivate");
  1184. }
  1185. ]]>
  1186. </script>
  1187. </input>
  1188. <caption id="caption10" class="search_name" style="left:285px; top:57px; width:91px; height:17px; ">담당의사 :</caption>
  1189. <caption id="caption11" class="search_name" style="left:10px; top:109px; width:91px; height:17px; ">상태구분 :</caption>
  1190. <caption id="caption2" class="search_name" style="left:10px; top:57px; width:91px; height:17px; ">진료과 :</caption>
  1191. <caption id="caption3" class="search_name" style="left:10px; top:5px; width:91px; height:17px; ">조회기간 :</caption>
  1192. <caption id="caption23" class="search_name" style="left:10px; top:31px; width:95px; height:17px; ">등록번호 :</caption>
  1193. <input id="ipt_hngnm" ref="/root/send/search/hngnm" class="input_search" navindex="4" imemode="hangul" style="left:390px; top:30px; width:120px; height:19px; "/>
  1194. <caption id="caption24" class="search_name" style="left:285px; top:31px; width:80px; height:17px; ">환자명 :</caption>
  1195. <input id="ipt_todd" ref="/root/send/search/todd" class="input_search" navindex="2" inputtype="date" style="left:245px; top:5px; width:100px; height:19px; text-align:center; "/>
  1196. <caption id="caption5" class="search_no_b" style="left:230px; top:5px; width:12px; height:17px; ">~</caption>
  1197. <caption id="caption25" class="search_name" style="left:10px; top:83px; width:126px; height:17px; ">되의뢰병원 :</caption>
  1198. <select1 id="cmb_orddeptcd" ref="/root/send/search/orddeptcd" class="combo_search" navindex="5" appearance="minimal" style="left:125px; top:57px; width:120px; height:19px; ">
  1199. <choices>
  1200. <itemset nodeset="/root/init/dept/dept">
  1201. <label ref="depthngnm"/>
  1202. <value ref="deptcd"/>
  1203. </itemset>
  1204. </choices>
  1205. <script type="javascript" ev:event="xforms-value-changed">
  1206. <![CDATA[
  1207. fDoctSearch();
  1208. model.refresh();
  1209. ]]>
  1210. </script>
  1211. </select1>
  1212. <input id="ipt_rumint" ref="/root/send/search/coophospnm" class="input_search" navindex="7" imemode="hangul" style="left:125px; top:83px; width:120px; height:19px; "/>
  1213. <button id="btn_pat" class="icon_search" style="left:249px; top:30px; width:16px; height:16px; ">
  1214. <caption/>
  1215. <script type="javascript" ev:event="DOMActivate">
  1216. <![CDATA[
  1217. fPatPopUp();
  1218. ]]>
  1219. </script>
  1220. </button>
  1221. <button id="btn_search" class="btn1_letter2" navindex="9" style="left:502px; top:105px; width:56px; height:22px; ">
  1222. <caption>조회</caption>
  1223. <script type="javascript" ev:event="DOMActivate">
  1224. <![CDATA[
  1225. if ( !fCheckDateSend() ) return; //필수 저장여부 체크
  1226. fSearch();
  1227. model.refresh();
  1228. ]]>
  1229. </script>
  1230. </button>
  1231. <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" navindex="1" inputtype="date" style="left:125px; top:5px; width:100px; height:19px; text-align:center; "/>
  1232. </group>
  1233. <caption id="caption27" class="tit_2" style="left:5px; top:635px; width:126px; height:13px; ">참고사항</caption>
  1234. <line id="line3" class="line_1" style="x1:0px; y1:650px; x2:565px; y2:650px; "/>
  1235. <textarea id="tar_remfact" ref="/root/main/req_pat_info/patinfo/remfact" imemode="hangul" maxlength="1000" style="left:0px; top:655px; width:565px; height:80px; "/>
  1236. <line id="line12" class="line_1" style="x1:0px; y1:575px; x2:565px; y2:575px; "/>
  1237. <caption id="caption29" class="tit_2" style="left:5px; top:560px; width:126px; height:13px; ">의료협력 전달사항</caption>
  1238. <textarea id="tar_delivefact" ref="/root/main/req_pat_info/patinfo/delivefact" imemode="hangul" maxlength="1000" style="left:0px; top:580px; width:565px; height:50px; "/>
  1239. </group>
  1240. </group>
  1241. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  1242. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1243. <button id="btn_save" class="btn4_letter2" navindex="21" style="left:1131px; top:3px; width:56px; height:22px; ">
  1244. <caption>저장</caption>
  1245. <script type="javascript" ev:event="DOMActivate">
  1246. <![CDATA[
  1247. if ( !fCheckDate() ) return; //필수 저장여부 체크
  1248. fSave();
  1249. model.refresh();
  1250. ]]>
  1251. </script>
  1252. </button>
  1253. <button id="btn_print" class="btn6_letter2" navindex="20" style="left:0px; top:3px; width:75px; height:22px; ">
  1254. <caption>출력</caption>
  1255. <script type="javascript" ev:event="DOMActivate">
  1256. <![CDATA[
  1257. fReplcheck();
  1258. model.refresh();
  1259. ]]>
  1260. </script>
  1261. </button>
  1262. </group>
  1263. </xhtml:body>
  1264. </xhtml:html>