SMPMC06502_선택진료신청관리NEW.xrw 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592
  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. <![CDATA[d]]>
  6. <xhtml:title>선택진료신청관리</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <h_sasm>
  12. <sasm>
  13. <instcd/>
  14. <ocrtag/>
  15. <pid/>
  16. <orddd/>
  17. <cretno/>
  18. <ioflag/>
  19. <msflag/>
  20. <orddeptkind/>
  21. <seqno/>
  22. <histstat/>
  23. <fromdd/>
  24. <todd/>
  25. <ioflag/>
  26. <orddeptcd/>
  27. <orddrid/>
  28. <specordyn/>
  29. <choiflag/>
  30. <specorddeptcd/>
  31. <specdrid/>
  32. <appdd/>
  33. <signflag/>
  34. <remfact/>
  35. <returnyn/>
  36. <hngnm/>
  37. <rrgstno1/>
  38. <rrgstno2/>
  39. <list1specdrid/>
  40. <list1choiflag/>
  41. <list2specdrid/>
  42. <list2choiflag/>
  43. <list3specdrid/>
  44. <list3choiflag/>
  45. <list4specdrid/>
  46. <list4choiflag/>
  47. <list5specdrid/>
  48. <list5choiflag/>
  49. <list6specdrid/>
  50. <list6choiflag/>
  51. <list7specdrid/>
  52. <list7choiflag/>
  53. <list8specdrid/>
  54. <list8choiflag/>
  55. </sasm>
  56. </h_sasm>
  57. <inform>
  58. <instcd/>
  59. <ocrtag/>
  60. <pid/>
  61. <orddd/>
  62. <cretno/>
  63. <ioflag/>
  64. <msflag/>
  65. <orddeptkind/>
  66. <seqno/>
  67. <histstat/>
  68. <fromdd/>
  69. <todd/>
  70. <ioflag/>
  71. <orddeptcd/>
  72. <orddrid/>
  73. <specordyn/>
  74. <choiflag/>
  75. <specorddeptcd/>
  76. <specdrid/>
  77. <appdd/>
  78. <signflag/>
  79. <remfact/>
  80. <returnyn/>
  81. <hngnm/>
  82. <rrgstno1/>
  83. <rrgstno2/>
  84. <list1specdrid/>
  85. <list1choiflag/>
  86. <list2specdrid/>
  87. <list2choiflag/>
  88. <list3specdrid/>
  89. <list3choiflag/>
  90. <list4specdrid/>
  91. <list4choiflag/>
  92. <list5specdrid/>
  93. <list5choiflag/>
  94. <list6specdrid/>
  95. <list6choiflag/>
  96. <list7specdrid/>
  97. <list7choiflag/>
  98. <list8specdrid/>
  99. <list8choiflag/>
  100. </inform>
  101. <patappinfo>
  102. <patappinfo1/>
  103. </patappinfo>
  104. <h_print>
  105. <h_sasm>
  106. <sasm/>
  107. </h_sasm>
  108. <h_confm>
  109. <confm/>
  110. </h_confm>
  111. </h_print>
  112. </main>
  113. <send>
  114. <data1>
  115. <flag/>
  116. <pid/>
  117. <ioflag/>
  118. <choiflag/>
  119. <indd_fromdd/>
  120. <indd_todd/>
  121. <appfromdd/>
  122. <apptodd/>
  123. <orddeptcd/>
  124. <orddrid/>
  125. <inform_orddeptcd/>
  126. <inform_orddrid/>
  127. <allcheckyn/>
  128. <ocrtag/>
  129. <srchtype/>
  130. </data1>
  131. <data2>
  132. <instcd/>
  133. <ocrtag/>
  134. <pid/>
  135. <orddd/>
  136. <cretno/>
  137. <ioflag/>
  138. <msflag/>
  139. <orddeptkind/>
  140. <seqno/>
  141. <histstat/>
  142. <fromdd/>
  143. <todd/>
  144. <ioflag/>
  145. <orddeptcd/>
  146. <orddrid/>
  147. <specordyn/>
  148. <choiflag/>
  149. <specorddeptcd/>
  150. <specdrid/>
  151. <appdd/>
  152. <signflag/>
  153. <remfact/>
  154. <returnyn/>
  155. <hngnm/>
  156. <rrgstno1/>
  157. <rrgstno2/>
  158. <list1specdrid/>
  159. <list1choiflag/>
  160. <list2specdrid/>
  161. <list2choiflag/>
  162. <list3specdrid/>
  163. <list3choiflag/>
  164. <list4specdrid/>
  165. <list4choiflag/>
  166. <list5specdrid/>
  167. <list5choiflag/>
  168. <list6specdrid/>
  169. <list6choiflag/>
  170. <list7specdrid/>
  171. <list7choiflag/>
  172. <list8specdrid/>
  173. <list8choiflag/>
  174. <cnclyn/>
  175. </data2>
  176. <data3/>
  177. <ocrtag/>
  178. </send>
  179. <hidden>
  180. <init/>
  181. <session/>
  182. </hidden>
  183. <init>
  184. <orddeptcd>
  185. <cd>-</cd>
  186. <nm>-</nm>
  187. </orddeptcd>
  188. <orddrid>
  189. <cd>-</cd>
  190. <nm>-</nm>
  191. <dp>-</dp>
  192. <sp>-</sp>
  193. </orddrid>
  194. </init>
  195. </root>
  196. </instance>
  197. <submission id="TRPMC06550" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" resultref="/root/init"/>
  198. <submission id="TRPMC06571" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/h_sasm"/>
  199. <submission id="TRPMC06553" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/h_sdsm"/>
  200. <submission id="TRPMC06554" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/h_print"/>
  201. <submission id="TRPMC06555" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/h_print"/>
  202. <submission id="TXPMC06571" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/h_sasm"/>
  203. <submission id="TXPMC06572" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/h_sasm"/>
  204. </model>
  205. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  206. <script type="javascript" src="../../../pam/patinfomngtweb/js/SMPMC06501.js"/>
  207. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  208. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  209. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  210. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  211. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  212. <script type="javascript" ev:event="xforms-ready">
  213. <![CDATA[
  214. fGetUserInfosSampling(); //세션/root/hidden/session
  215. //원무사용 기초코드 조회 cache기능 추가 오류심할시 위 주석으로 대체할것
  216. if ( copyFromCache("TRPMC06550_depttree","/root/init")){
  217. //
  218. }else{
  219. if (submit("TRPMC06550")) {
  220. storeIntoCache("TRPMC06550_depttree","/root/init","540");
  221. }
  222. }
  223. //addComboItem("cmb_orddeptcd" , "전체","","above");
  224. //addComboItem("cmb_orddrid" , "전체","","above");
  225. var today = getCurrentDate();
  226. //model.setValue("/root/send/data1/flag" ,"1");
  227. model.setValue("/root/send/data1/pid" ,"");
  228. model.setValue("/root/send/data1/ioflag" ,"");
  229. //model.setValue("/root/send/data1/choiflag" ,"%");
  230. model.setValue("/root/send/data1/indd_fromdd" ,"");
  231. model.setValue("/root/send/data1/indd_todd" ,"");
  232. model.setValue("/root/send/data1/appfromdd" ,"");
  233. model.setValue("/root/send/data1/apptodd" ,"");
  234. model.setValue("/root/send/data1/orddeptcd","");
  235. model.setValue("/root/send/data1/orddrid","");
  236. model.setValue("/root/main/inform/orddd", "");
  237. model.setValue("/root/main/inform/fromdd", "");
  238. model.setValue("/root/main/inform/todd", "99991231");
  239. model.setValue("/root/main/inform/cretno", "");
  240. model.setValue("/root/main/inform/choiflag" , "B");
  241. //var pid_cnt = getNodesetCount("/root/main/patappinfo/patappinfo1/pid");
  242. var pid = model.getValue("/root/main/patappinfo/patappinfo1/pid");
  243. if(pid != '' && pid != '-') {
  244. var p_pid = model.getValue("/root/main/patappinfo/patappinfo1/pid");
  245. var p_ioflag = model.getValue("/root/main/patappinfo/patappinfo1/ordtype");
  246. var p_orddeptcd = model.getValue("/root/main/patappinfo/patappinfo1/orddeptcd");
  247. var p_orddrid = model.getValue("/root/main/patappinfo/patappinfo1/orddrid");
  248. var p_orddd = model.getValue("/root/main/patappinfo/patappinfo1/orddd");
  249. var p_fromdd = model.getValue("/root/main/patappinfo/patappinfo1/fromdd");
  250. var p_ocrtag = model.getValue("/root/main/patappinfo/patappinfo1/ocrtag");
  251. var p_autoprntyn = model.getValue("/root/main/patappinfo/patappinfo1/autoprntyn");
  252. var p_cretno = model.getValue("/root/main/patappinfo/patappinfo1/cretno");
  253. //2017/06/02 이정택 추가
  254. var allrtnyn = model.getValue("/root/main/patappinfo/patappinfo1/allrtnyn");
  255. model.setValue("/root/send/data1/pid" , p_pid);
  256. //2017/06/02 이정택 추가
  257. if(allrtnyn=='Y'){
  258. model.makeValue("/root/send/data1/allrtnyn" , "Y");
  259. }else{
  260. model.setValue("/root/send/data1/ocrtag" , p_ocrtag);
  261. model.makeValue("/root/send/data1/allrtnyn" , "N");
  262. }
  263. model.setValue("/root/main/inform/pid" , p_pid);
  264. model.setValue("/root/main/inform/ioflag" , p_ioflag);
  265. model.setValue("/root/main/inform/orddeptcd" , p_orddeptcd);
  266. model.setValue("/root/main/inform/orddrid" , p_orddrid);
  267. cmb_data2_orddrid.dispatch("xforms-value-changed");
  268. //model.setValue("/root/main/inform/specordyn" , "Y");
  269. model.setValue("/root/main/inform/orddd" , p_orddd);
  270. model.setValue("/root/main/inform/fromdd" , p_fromdd);
  271. model.setValue("/root/main/inform/todd" , "99991231");
  272. model.setValue("/root/main/inform/remfact" , "");
  273. //model.setValue("/root/main/inform/rsrvdd" , "");
  274. //model.setValue("/root/main/inform/choiflag" , "B");
  275. model.setValue("/root/main/inform/appdd" , today);
  276. //model.setValue("/root/main/inform/elctappdd" , today);
  277. model.setValue("/root/main/inform/cretno", p_cretno);
  278. //선택진료위임 일괄 체크
  279. model.setValue("/root/send/data1/allcheckyn", "B");
  280. bool2.dispatch("xforms-value-changed");
  281. model.setValue("/root/send/data1/inform_orddeptcd" ,p_orddeptcd);
  282. model.setValue("/root/send/data1/inform_orddrid" ,p_orddrid);
  283. fcmb_data2_orddridNEW();
  284. //fSasmSearch_init();
  285. // 응급실 접수의 경우 자동출력처리
  286. if ( p_autoprntyn == "Y") {
  287. // 신규저장
  288. btn_insert.dispatch("DOMActivate");
  289. // button3.dispatch("DOMActivate"); //신규저장 시 자동제출확인 되도록 수정하여 주석처리함 - 20130917
  290. // 자동닫기처리
  291. window.close();
  292. } else {
  293. // 선택진료신청서 조회
  294. fSpifSearch();
  295. }
  296. }
  297. //model.setValue("/root/send/data1/pid" , "1280686");
  298. //사인패드 초기화
  299. //fsignpad_init();
  300. //fModelRefresh();
  301. //버튼 초기화
  302. // btn_insertc.disabled = false;
  303. // btn_insert.disabled = false;
  304. // btn_save.disabled = true;
  305. btn_insert.disabled = false; //신규저장
  306. btn_save.disabled = true; //수정
  307. button1.disabled = false; //선택진료해지
  308. button3.disabled = false; //OCR제출확인
  309. button6.disabled = false; //OCR제출취소
  310. button4.disabled = true; //삭제
  311. button7.disabled = true; //삭제취소
  312. model.refresh();
  313. ]]>
  314. </script>
  315. <script type="javascript">
  316. <![CDATA[
  317. // 선택진료 변경/해지 신청서 재출력
  318. function fSPIFChangeForm() {
  319. model.makeValue("/root/main/prnpatinfo/seq", model.getValue("/root/main/rexpert/patappinfo1/ocrtag"));
  320. model.makeValue("/root/hidden/original/icdr/icdr_pid", model.getValue("/root/main/rexpert/patappinfo1/pid"));
  321. model.makeValue("/root/send/hngnm", model.getValue("/root/main/rexpert/patappinfo1/hngnm"));
  322. model.makeValue("/root/main/prnpatinfo/orddeptabbr", model.getValue("/root/main/rexpert/patappinfo1/deptengabbr"));
  323. model.makeValue("/root/main/prnpatinfo/rrgstno1", model.getValue("/root/main/rexpert/patappinfo1/rrgstno1"));
  324. model.makeValue("/root/main/prnpatinfo/rrgstno2", model.getValue("/root/main/rexpert/patappinfo1/rrgstno2"));
  325. model.makeValue("/root/send/req/orddd", model.getValue("/root/main/rexpert/patappinfo1/orddd"));
  326. model.makeValue("/root/send/req/address", model.getValue("/root/main/rexpert/patappinfo1/zipcdaddr") + " " + model.getValue("/root/main/rexpert/patappinfo1/detladdr"));
  327. model.makeValue("/root/send/req/telno", model.getValue("/root/main/rexpert/patappinfo1/tel"));
  328. model.makeValue("/root/send/req/hospnm", model.getValue("/root/main/rexpert/patappinfo1/hospnm") + "장 귀하");
  329. model.makeValue("/root/send/req/curdate", getCurrentDate());
  330. model.makeValue("/root/send/req/curtm", getCurrentTime());
  331. model.makeValue("/root/send/req/usernm", getUserName());
  332. exeReportPreview("RPPMI02704","XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
  333. }
  334. function fPrint(row){
  335. //2011-11-09 전자서명인 경우 서식재발행 불가
  336. if( model.getValue("/root/main/h_sasm/sasm[" + row + "]/signflag") == 'E' ){
  337. messageBox("전자서명의 경우 OCR서식 재발행 불가합니다! 다시 확인해 주세요!", "E999", "");
  338. return false;
  339. }
  340. model.removeNodeset("/root/main/rexpert");
  341. model.makeValue("/root/main/rexpert/patappinfo1/pid", model.getValue("/root/main/h_sasm/ptbs/ptbs_pid"));
  342. model.makeValue("/root/main/rexpert/patappinfo1/hngnm", model.getValue("/root/main/h_sasm/ptbs/ptbs_hngnm"));
  343. model.makeValue("/root/main/rexpert/patappinfo1/zipcdaddr", model.getValue("/root/main/h_sasm/ptbs/ptbs_zipcdaddr"));
  344. model.makeValue("/root/main/rexpert/patappinfo1/detladdr", model.getValue("/root/main/h_sasm/ptbs/ptbs_detladdr"));
  345. model.makeValue("/root/main/rexpert/patappinfo1/tel", model.getValue("/root/main/h_sasm/ptbs/ptbs_hometel"));
  346. model.makeValue("/root/main/rexpert/patappinfo1/rrgstno1", model.getValue("/root/main/h_sasm/ptbs/ptbs_rrgstno1"));
  347. model.makeValue("/root/main/rexpert/patappinfo1/rrgstno2", model.getValue("/root/main/h_sasm/ptbs/ptbs_rrgstno2"));
  348. model.makeValue("/root/main/rexpert/patappinfo1/usernm", model.getValue("/root/hidden/session/sess_usernm"));
  349. model.makeValue("/root/main/rexpert/patappinfo1/hospnm", model.getValue("/root/hidden/session/sess_dutplceinstnm"));
  350. model.makeValue("/root/main/rexpert/patappinfo1/ocrtag", model.getValue("/root/main/h_sasm/sasm[" + row + "]/ocrtag"));
  351. model.makeValue("/root/main/rexpert/patappinfo1/orddd", model.getValue("/root/main/h_sasm/sasm[" + row + "]/orddd"));
  352. model.makeValue("/root/main/rexpert/patappinfo1/appdd", model.getValue("/root/main/h_sasm/sasm[" + row + "]/appdd"));
  353. var orddeptcd = model.getValue("/root/main/h_sasm/sasm[" + row + "]/orddeptcd");
  354. model.makeValue("/root/main/rexpert/patappinfo1/orddeptcd", orddeptcd);
  355. var orddeptnm = model.getValue("/root/init/orddeptcd[cd = '" + orddeptcd + "']/nm");
  356. model.makeValue("/root/main/rexpert/patappinfo1/orddeptnm", orddeptnm);
  357. var orddrid = model.getValue("/root/main/h_sasm/sasm[" + row + "]/orddrid");
  358. model.makeValue("/root/main/rexpert/patappinfo1/orddrid", orddrid);
  359. var orddrnm = model.getValue("/root/init/orddrid[cd = '" + orddrid + "' and dp = '" + orddeptcd + "']/nm");
  360. model.makeValue("/root/main/rexpert/patappinfo1/orddrnm", orddrnm);
  361. model.makeValue("/root/main/rexpert/patappinfo1/maindrnm", orddrnm);
  362. model.makeValue("/root/main/rexpert/patappinfo1/ioflag", model.getValue("/root/main/h_sasm/sasm[" + row + "]/ioflag"));
  363. var deptengabbr = model.getValue("/root/init/orddeptcd[cd = '" + orddeptcd + "']/deptengabbr2");
  364. model.makeValue("/root/main/rexpert/patappinfo1/deptengabbr", deptengabbr);
  365. model.makeValue("/root/main/rexpert/patappinfo1/specordyn", model.getValue("/root/main/h_sasm/sasm[" + row + "]/specordyn"));
  366. model.makeValue("/root/main/rexpert/patappinfo1/specordyn", model.getValue("/root/main/h_sasm/sasm[" + row + "]/specordyn"));
  367. if( model.getValue("/root/main/h_sasm/sasm[" + row + "]/signflag") == 'O' ){
  368. //exeReportPreview("RPPMC06504", "XMLSTR", "/root/main/rexpert", "", "true", "", "", "", "", "");
  369. exeReportPreview("RPPMC06504", "XMLSTR", "/root/main/rexpert", "", "true", "", "", "", "", "true");
  370. }else {
  371. fSPIFChangeForm();
  372. }
  373. return;
  374. }
  375. ]]>
  376. </script>
  377. </xhtml:head>
  378. <xhtml:body pagewidth="1200" pageheight="690">
  379. <line id="line15" class="line_2" style="x1:630px; y1:260px; x2:1001px; y2:260px; "/>
  380. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  381. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:300px; height:14px; ">선택진료신청관리</caption>
  382. </group>
  383. <group id="group3" scroll="aufWritenInitialto" style="left:0px; top:14px; width:1195px; height:646px; ">
  384. <line id="line48" class="line_1" style="x1:0px; y1:112px; x2:625; y2:112px; "/>
  385. <caption id="caption38" class="tit_2" style="left:5px; top:97px; width:144px; height:13px; ">선택진료신청내역</caption>
  386. <caption id="caption8" class="cell_1" style="left:631px; top:233px; width:147px; height:48px; font-family:돋움, Arial; font-size:12pxpt; font-weight:normal; color:#000000; text-align:center; vertical-align:middle; border-width:1px; ">진료지원항목</caption>
  387. <caption id="caption28" class="cell_1" style="left:892px; top:233px; width:109px; height:48px; font-family:돋움, Arial; font-size:12pxpt; font-weight:normal; color:#000000; text-align:center; vertical-align:middle; border-width:1px; ">
  388. <![CDATA[선택진료의사
  389. 위임]]>
  390. </caption>
  391. <caption id="caption27" class="cell_1" style="left:781px; top:233px; width:109px; height:48px; font-family:돋움, Arial; font-size:12pxpt; font-weight:normal; color:#000000; text-align:center; vertical-align:middle; border-width:1px; ">선택진료의사성명</caption>
  392. <caption id="caption36" class="cell_1" style="left:631px; top:331px; width:147px; height:23px; font-weight:normal; text-align:center; vertical-align:middle; ">영상진단</caption>
  393. <caption id="caption37" class="cell_1" style="left:631px; top:307px; width:147px; height:23px; font-weight:normal; text-align:center; vertical-align:middle; ">검사</caption>
  394. <caption id="caption39" class="cell_1" style="left:631px; top:356px; width:147px; height:23px; font-weight:normal; text-align:center; vertical-align:middle; ">방사선치료</caption>
  395. <caption id="caption40" class="cell_1" style="left:631px; top:283px; width:147px; height:23px; font-weight:normal; text-align:center; vertical-align:middle; ">진찰</caption>
  396. <caption id="caption41" class="cell_1" style="left:631px; top:431px; width:147px; height:23px; font-weight:normal; text-align:center; vertical-align:middle; ">정신요법</caption>
  397. <caption id="caption16" class="cell_1" style="left:631px; top:406px; width:147px; height:23px; font-weight:normal; text-align:center; vertical-align:middle; ">마취</caption>
  398. <caption id="caption17" class="cell_1" style="left:631px; top:381px; width:147px; height:23px; font-weight:normal; text-align:center; vertical-align:middle; ">방사선혈관촬영</caption>
  399. <caption id="caption25" class="cell_1" style="left:631px; top:79px; width:76px; height:23px; font-weight:normal; text-align:left; vertical-align:middle; ">입원/진료일</caption>
  400. <caption id="caption42" style="left:1112px; top:33px; width:15px; height:8px; text-align:center; ">-</caption>
  401. <caption id="caption11" class="cell_1" style="left:631px; top:30px; width:76px; height:23px; font-weight:normal; text-align:left; vertical-align:middle; ">환자번호</caption>
  402. <caption id="caption4" class="cell_1" style="left:798px; top:30px; width:59px; height:23px; font-weight:normal; text-align:left; vertical-align:middle; ">환자성명</caption>
  403. <caption id="caption5" class="cell_1" style="left:984px; top:30px; width:59px; height:23px; font-weight:normal; text-align:left; vertical-align:middle; ">주민번호</caption>
  404. <caption id="caption1" class="cell_1" style="left:798px; top:55px; width:59px; height:23px; font-weight:normal; text-align:left; vertical-align:middle; ">진료과</caption>
  405. <caption id="caption23" class="cell_1" style="left:631px; top:55px; width:76px; height:23px; font-weight:normal; text-align:left; vertical-align:middle; ">진료형태</caption>
  406. <line id="line9" class="line_1" style="x1:630px; y1:228px; x2:1001px; y2:228px; "/>
  407. <caption id="caption52" class="tit_2" style="left:634px; top:214px; width:126px; height:13px; ">선택진료의사 정보</caption>
  408. <caption id="caption71" class="cell_1" style="left:798px; top:79px; width:59px; height:23px; font-weight:normal; text-align:left; vertical-align:middle; ">시작일</caption>
  409. <!-- 선택진료의사 정보 입력, 수정방법을 변경하기 위해 존재, 사용인스턴스 : /root/main/patappinfolist, /root/hidden/patappinfolist -->
  410. <caption id="caption43" class="tit_2" style="left:634px; top:11px; width:81px; height:13px; ">환자정보</caption>
  411. <line id="line1" class="line_1" style="x1:630px; y1:25px; x2:1191px; y2:25px; "/>
  412. <button id="button12" class="btn5_letter6" disabled="false" navindex="2" visibility="visible" style="left:1105px; top:5px; width:86px; height:19px; background-color:#99ccff; ">
  413. <caption>선택진료해지</caption>
  414. <script type="javascript" ev:event="DOMActivate">
  415. <![CDATA[
  416. //기등록된 내역인지 체크한다.
  417. if( model.getValue("/root/main/inform/ocrtag") == "" || model.getValue("/root/main/inform/ocrtag") == "-" ){
  418. messageBox("신규내역은 선택진료해지 할 수 없습니다. \n신청내역에서 해지할 선택진료서명내역을 선택하세요", "E999", "");
  419. return false;
  420. }
  421. //종료일자 체크 - 기존 종요일과 수정된 종료일자가 같은 경우 메세지
  422. if( model.getValue("/root/main/inform/todd") == model.getValue("/root/main/inform/todd_org") ){
  423. messageBox("종료일자가 기존 서명정보와 같습니다. 선택진료 해지 할 일자를 종료일에 입력해주세요!", "E999", "");
  424. return false;
  425. }
  426. fSave_cnclSpif();
  427. ]]>
  428. </script>
  429. </button>
  430. <button id="button2" class="btn2_letter7" navindex="2" visibility="visible" style="left:918px; top:5px; width:97px; height:19px; background-color:#99ccff; ">
  431. <caption>신규입력초기화</caption>
  432. <script type="javascript" ev:event="DOMActivate">
  433. <![CDATA[
  434. btn_insertc.disabled = false;
  435. btn_insert.disabled = false;
  436. btn_save.disabled = true;
  437. model.resetInstanceNode("/root/main/inform");
  438. model.resetInstanceNode("/root/send/data2");
  439. model.refresh();
  440. ]]>
  441. </script>
  442. </button>
  443. <group id="group4" style="left:0px; top:5px; width:626px; height:82; ">
  444. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:624px; height:81px; "/>
  445. <line id="line40" class="line_4" style="x1:551px; y1:55px; x2:551px; y2:78px; "/>
  446. <caption id="caption32" class="search_name" style="left:2px; top:7px; width:91px; height:17px; ">환자번호 :</caption>
  447. <button id="btn_search" class="btn1_letter2" style="left:560px; top:55px; width:56px; height:22px; ">
  448. <caption>조회</caption>
  449. <script type="javascript" ev:event="DOMActivate">
  450. <![CDATA[
  451. if( model.getValue("/root/send/data1/pid") == '' ){
  452. messageBox("환자번호는 조회 필수조건입니다. 환자번호를 입력하신 후 조회하세요!", "E999", "");
  453. return false;
  454. }
  455. fSpifSearch();
  456. ]]>
  457. </script>
  458. </button>
  459. <caption id="caption72" class="search_name" style="left:3px; top:56px; width:102px; height:17px; text-align:justify; ">주 진 료 과:</caption>
  460. <caption id="caption73" class="search_name" style="left:297px; top:6px; width:88px; height:17px; ">진료형태:</caption>
  461. <caption id="caption75" class="search_name" style="left:2px; top:31px; width:119px; height:17px; ">입원/진료일자:</caption>
  462. <caption id="caption77" class="search_name" style="left:297px; top:31px; width:83px; height:17px; ">신청일자:</caption>
  463. <caption id="caption76" class="search_name" style="left:297px; top:56px; width:79px; height:17px; ">진료의:</caption>
  464. <select1 id="cmb_ioflag" ref="/root/send/data1/ioflag" appearance="minimal" style="left:379px; top:5px; width:55px; height:19px; ">
  465. <choices>
  466. <item>
  467. <label>전체</label>
  468. <value>%</value>
  469. </item>
  470. <item>
  471. <label>입원</label>
  472. <value>I</value>
  473. </item>
  474. <item>
  475. <label>외래</label>
  476. <value>O</value>
  477. </item>
  478. </choices>
  479. </select1>
  480. <input id="ipt_pid" ref="/root/send/data1/pid" class="input_s_essential" navindex="11" style="left:117px; top:6px; width:175px; height:19px; ">
  481. <script type="javascript" ev:event="onkeypress">
  482. <![CDATA[
  483. if(event.keyCode == "13") {
  484. setInputNodeCurText();
  485. if( model.getValue("/root/send/data1/pid") == '' ){
  486. messageBox("환자번호는 조회 필수조건입니다. 환자번호를 입력하신 후 조회하세요!", "E999", "");
  487. return false;
  488. }
  489. fSpifSearch();
  490. }
  491. ]]>
  492. </script>
  493. </input>
  494. <input id="ipt_fromdd" ref="/root/send/data1/indd_fromdd" class="input_default" navindex="11" inputtype="date" style="left:117px; top:31px; width:85px; height:19px; "/>
  495. <input id="ipt_todd" ref="/root/send/data1/indd_todd" class="input_default" navindex="11" inputtype="date" style="left:207px; top:31px; width:85px; height:19px; "/>
  496. <input id="ipt_appfromdd" ref="/root/send/data1/appfromdd" class="input_default" navindex="11" inputtype="date" style="left:379px; top:31px; width:85px; height:19px; "/>
  497. <input id="ipt_apptodd" ref="/root/send/data1/apptodd" class="input_default" navindex="11" inputtype="date" style="left:468px; top:31px; width:85px; height:19px; "/>
  498. <select1 id="cmb_orddeptcd" ref="/root/send/data1/orddeptcd" appearance="minimal" style="left:117px; top:55px; width:175px; height:19px; ">
  499. <choices>
  500. <itemset nodeset="/root/init/orddeptcd">
  501. <label ref="nm"/>
  502. <value ref="cd"/>
  503. </itemset>
  504. </choices>
  505. <script type="javascript" ev:event="xforms-value-changed">
  506. <![CDATA[
  507. ]]>
  508. </script>
  509. </select1>
  510. <select1 id="cmb_orddrid" ref="/root/send/data1/orddrid" appearance="minimal" style="left:379px; top:55px; width:91px; height:19px; ">
  511. <choices>
  512. <itemset nodeset="/root/init/orddrid">
  513. <label ref="nm"/>
  514. <value ref="cd"/>
  515. </itemset>
  516. </choices>
  517. </select1>
  518. <caption id="caption9" class="search_name" style="left:440px; top:6px; width:58px; height:17px; ">OCR:</caption>
  519. <input id="input3" ref="/root/send/data1/ocrtag" navindex="11" style="left:500px; top:5px; width:115px; height:19px; ">
  520. <script type="javascript" ev:event="onkeypress">
  521. <![CDATA[
  522. if(event.keyCode == "13") {
  523. setInputNodeCurText();
  524. model.setValue("/root/send/data1/ocrtag", model.getValue("/root/send/data1/ocrtag").substring(0,13));
  525. input3.refresh();
  526. if( model.getValue("/root/send/data1/ocrtag") == '' ){
  527. messageBox("OCR 번호는 조회 필수조건입니다. OCR 번호를 입력하신 후 조회하세요!", "E999", "");
  528. return false;
  529. }
  530. fSpifSearch();
  531. }
  532. ]]>
  533. </script>
  534. </input>
  535. <select id="checkbox2" ref="/root/send/data1/srchtype" overflow="visible" appearance="full" style="left:478px; top:57px; width:72px; height:20px; border-style:none; ">
  536. <choices>
  537. <item>
  538. <label>삭제포함</label>
  539. <value>all</value>
  540. </item>
  541. </choices>
  542. </select>
  543. </group>
  544. <caption id="caption2" class="cell_1" style="left:985px; top:80px; width:59px; height:20px; ">종료일</caption>
  545. <line id="line5" class="line_2" style="x1:630px; y1:127px; x2:1191px; y2:127px; "/>
  546. <select1 id="cmb_data2_ioflag" ref="/root/main/inform/ioflag" appearance="minimal" style="left:708px; top:57px; width:88; height:19px; ">
  547. <choices>
  548. <item>
  549. <label>입원</label>
  550. <value>I</value>
  551. </item>
  552. <item>
  553. <label>외래</label>
  554. <value>O</value>
  555. </item>
  556. </choices>
  557. </select1>
  558. <select1 id="cmb_data2_orddeptcd" ref="/root/main/inform/orddeptcd" class="combo_search" appearance="minimal" style="left:858px; top:57px; width:125; height:19px; ">
  559. <choices>
  560. <itemset nodeset="/root/init/orddeptcd">
  561. <label ref="nm"/>
  562. <value ref="cd"/>
  563. </itemset>
  564. </choices>
  565. <script type="javascript" ev:event="xforms-value-changed">
  566. <![CDATA[
  567. fcmb_data2_orddridNEW();
  568. //fSdsmList();
  569. ]]>
  570. </script>
  571. </select1>
  572. <select1 id="cmb_data2_orddrid" ref="/root/main/inform/orddrid" class="combo_search" appearance="minimal" style="left:1044px; top:57px; width:82px; height:19px; ">
  573. <choices>
  574. <itemset nodeset="/root/init/orddrid">
  575. <label ref="nmsp"/>
  576. <value ref="cd"/>
  577. </itemset>
  578. </choices>
  579. <script type="javascript" ev:event="xforms-value-changed">
  580. <![CDATA[
  581. //fSdsmList();
  582. var specordyn = model.getValue("/root/init/orddrid[cd = '" + cmb_data2_orddrid.value + "' and dp = '" + cmb_data2_orddeptcd.value + "']/sp");
  583. model.setValue("/root/main/inform/specordyn", specordyn);
  584. cmb_data2_specordyn.refresh();
  585. ]]>
  586. </script>
  587. </select1>
  588. <input id="ipt_data2_orddd" ref="/root/main/inform/orddd" class="input_default" disabled="false" navindex="1" inputtype="date" maxlength="10" appearance="input" style="left:708px; top:81px; width:88; height:19px; "/>
  589. <input id="ipt_data2_fromdd" ref="/root/main/inform/fromdd" class="input_default" disabled="false" navindex="1" inputtype="date" maxlength="10" appearance="input" style="left:858px; top:81px; width:125; height:19px; "/>
  590. <input id="ipt_data2_todd" ref="/root/main/inform/todd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:1045px; top:80px; width:82px; height:19px; "/>
  591. <select1 id="cmb_list1_1" ref="/root/main/inform/list1specdrid" class="combo_search" disabled="true" appearance="minimal" style="left:781px; top:285px; width:109px; height:19px; ">
  592. <choices>
  593. <itemset nodeset="/root/init/orddrid">
  594. <label ref="nmsp"/>
  595. <value ref="cd"/>
  596. </itemset>
  597. </choices>
  598. <script type="javascript" ev:event="xforms-value-changed">
  599. <![CDATA[
  600. ]]>
  601. </script>
  602. </select1>
  603. <bool id="bl_list1_yn" checkvalue="B,C" ref="/root/main/inform/list1choiflag" style="left:941px; top:288px; width:20px; height:15px; ">
  604. <script type="javascript" ev:event="xforms-value-changed">
  605. <![CDATA[
  606. ]]>
  607. </script>
  608. </bool>
  609. <select1 id="cmb_list2_1" ref="/root/main/inform/list2specdrid" class="combo_search" disabled="true" appearance="minimal" style="left:781px; top:309px; width:109px; height:19px; ">
  610. <choices>
  611. <itemset nodeset="/root/init/orddrid">
  612. <label ref="nmsp"/>
  613. <value ref="cd"/>
  614. </itemset>
  615. </choices>
  616. <script type="javascript" ev:event="xforms-value-changed">
  617. <![CDATA[
  618. ]]>
  619. </script>
  620. </select1>
  621. <bool id="bl_list2_yn" checkvalue="B,C" ref="/root/main/inform/list2choiflag" style="left:941px; top:312px; width:20px; height:15px; ">
  622. <script type="javascript" ev:event="xforms-value-changed">
  623. <![CDATA[
  624. ]]>
  625. </script>
  626. </bool>
  627. <select1 id="cmb_list3_1" ref="/root/main/inform/list3specdrid" class="combo_search" disabled="true" appearance="minimal" style="left:781px; top:333px; width:109px; height:19px; ">
  628. <choices>
  629. <itemset nodeset="/root/init/orddrid">
  630. <label ref="nmsp"/>
  631. <value ref="cd"/>
  632. </itemset>
  633. </choices>
  634. <script type="javascript" ev:event="xforms-value-changed">
  635. <![CDATA[
  636. ]]>
  637. </script>
  638. </select1>
  639. <bool id="bl_list3_yn" checkvalue="B,C" ref="/root/main/inform/list3choiflag" style="left:941px; top:335px; width:20px; height:15px; ">
  640. <script type="javascript" ev:event="xforms-value-changed">
  641. <![CDATA[
  642. ]]>
  643. </script>
  644. </bool>
  645. <select1 id="cmb_list4_1" ref="/root/main/inform/list4specdrid" class="combo_search" disabled="true" appearance="minimal" style="left:781px; top:357px; width:109px; height:19px; ">
  646. <choices>
  647. <itemset nodeset="/root/init/orddrid">
  648. <label ref="nmsp"/>
  649. <value ref="cd"/>
  650. </itemset>
  651. </choices>
  652. <script type="javascript" ev:event="xforms-value-changed">
  653. <![CDATA[
  654. ]]>
  655. </script>
  656. </select1>
  657. <bool id="bl_list4_yn" checkvalue="B,C" ref="/root/main/inform/list4choiflag" style="left:941px; top:361px; width:20px; height:15px; ">
  658. <script type="javascript" ev:event="xforms-value-changed">
  659. <![CDATA[
  660. ]]>
  661. </script>
  662. </bool>
  663. <select1 id="cmb_list5_1" ref="/root/main/inform/list5specdrid" class="combo_search" disabled="true" appearance="minimal" style="left:781px; top:383px; width:109px; height:19px; ">
  664. <choices>
  665. <itemset nodeset="/root/init/orddrid">
  666. <label ref="nmsp"/>
  667. <value ref="cd"/>
  668. </itemset>
  669. </choices>
  670. <script type="javascript" ev:event="xforms-value-changed">
  671. <![CDATA[
  672. ]]>
  673. </script>
  674. </select1>
  675. <bool id="bl_list5_yn" checkvalue="B,C" ref="/root/main/inform/list5choiflag" style="left:941px; top:384px; width:20px; height:15px; ">
  676. <script type="javascript" ev:event="xforms-value-changed">
  677. <![CDATA[
  678. ]]>
  679. </script>
  680. </bool>
  681. <select1 id="cmb_list6_1" ref="/root/main/inform/list6specdrid" class="combo_search" disabled="true" appearance="minimal" style="left:781px; top:408px; width:109px; height:19px; ">
  682. <choices>
  683. <itemset nodeset="/root/init/orddrid">
  684. <label ref="nmsp"/>
  685. <value ref="cd"/>
  686. </itemset>
  687. </choices>
  688. <script type="javascript" ev:event="xforms-value-changed">
  689. <![CDATA[
  690. ]]>
  691. </script>
  692. </select1>
  693. <bool id="bl_list6_yn" checkvalue="B,C" ref="/root/main/inform/list6choiflag" style="left:941px; top:410px; width:20px; height:15px; ">
  694. <script type="javascript" ev:event="xforms-value-changed">
  695. <![CDATA[
  696. ]]>
  697. </script>
  698. </bool>
  699. <select1 id="cmb_list7_1" ref="/root/main/inform/list7specdrid" class="combo_search" disabled="true" appearance="minimal" style="left:781px; top:433px; width:109px; height:19px; ">
  700. <choices>
  701. <itemset nodeset="/root/init/orddrid">
  702. <label ref="nmsp"/>
  703. <value ref="cd"/>
  704. </itemset>
  705. </choices>
  706. <script type="javascript" ev:event="xforms-value-changed">
  707. <![CDATA[
  708. ]]>
  709. </script>
  710. </select1>
  711. <bool id="bl_list7_yn" checkvalue="B,C" ref="/root/main/inform/list7choiflag" style="left:941px; top:436px; width:20px; height:15px; ">
  712. <script type="javascript" ev:event="xforms-value-changed">
  713. <![CDATA[
  714. ]]>
  715. </script>
  716. </bool>
  717. <caption id="caption13" class="cell_1" style="left:984; top:55px; width:59px; height:23; ">진료의</caption>
  718. <datagrid id="grd_sasm" nodeset="/root/main/h_sasm/sasm" class="datagrid2" caption="환자번호^환자&#xA;성명^진료&#xA;형태^입원/&#xA;진료일자^진료과^진료의^시작일자^종료일자^주부&#xA;구분^서명구분^선택구분^생년월일^주민번호^신청일^OCR TAG^제출&#xA;확인^제출시간^스캔&#xA;여부^반납&#xA;확인^이력&#xA;상태" colsep="^" colwidth="56, 47, 38, 75, 100, 60, 70, 70, 54, 66, 68, 69, 49, 80, 152, 51, 100, 50, 50, 50" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:116px; width:625; height:523px; font-weight:normal; ">
  719. <col ref="pid" style="text-align:left; "/>
  720. <col ref="hngnm" style="left:100px; top:32px; width:80px; height:23px; text-align:center; "/>
  721. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  722. <choices>
  723. <item>
  724. <label>입원</label>
  725. <value>I</value>
  726. </item>
  727. <item>
  728. <label>외래</label>
  729. <value>O</value>
  730. </item>
  731. </choices>
  732. </col>
  733. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  734. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:left; ">
  735. <choices>
  736. <itemset nodeset="/root/init/orddeptcd">
  737. <label ref="nm"/>
  738. <value ref="cd"/>
  739. </itemset>
  740. </choices>
  741. </col>
  742. <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
  743. <choices>
  744. <itemset nodeset="/root/init/orddrid">
  745. <label ref="nm"/>
  746. <value ref="cd"/>
  747. </itemset>
  748. </choices>
  749. </col>
  750. <col ref="fromdd" format="yyyy-mm-dd"/>
  751. <col ref="todd" format="yyyy-mm-dd"/>
  752. <col disabled="true" ref="msflag" type="output" visibility="hidden" style="text-align:left; "/>
  753. <col disabled="true" ref="signflag" type="combo">
  754. <choices>
  755. <item>
  756. <label>OCR</label>
  757. <value>O</value>
  758. </item>
  759. <item>
  760. <label>OCR(변경)</label>
  761. <value>B</value>
  762. </item>
  763. <item>
  764. <label>전자서명</label>
  765. <value>E</value>
  766. </item>
  767. <item>
  768. <label>전자동의서</label>
  769. <value>S</value>
  770. </item>
  771. </choices>
  772. </col>
  773. <col disabled="true" ref="choiflag" type="combo" style="text-align:left; ">
  774. <choices>
  775. <item>
  776. <label>위임</label>
  777. <value>B</value>
  778. </item>
  779. <item>
  780. <label>선택</label>
  781. <value>C</value>
  782. </item>
  783. <item>
  784. <label>선택안함</label>
  785. <value>X</value>
  786. </item>
  787. </choices>
  788. </col>
  789. <col ref="rrgstno1" format="99/99/99" style="text-align:center; "/>
  790. <col ref="rrgstno2" visibility="hidden"/>
  791. <col ref="appdd" format="yyyy-mm-dd" style="text-align:center; "/>
  792. <col ref="ocrtag" style="text-align:center; "/>
  793. <col ref="returnyn" style="text-align:center; "/>
  794. <col ref="returntm"/>
  795. <col ref="scanyn" style="text-align:center; "/>
  796. <col ref="rtnconfirmyn" style="text-align:center; "/>
  797. <col disabled="true" ref="histstat" type="combo" style="text-align:center; ">
  798. <choices>
  799. <item>
  800. <label>정상</label>
  801. <value>Y</value>
  802. </item>
  803. <item>
  804. <label>변경</label>
  805. <value>C</value>
  806. </item>
  807. <item>
  808. <label>삭제</label>
  809. <value>X</value>
  810. </item>
  811. </choices>
  812. </col>
  813. <script type="javascript" ev:event="onaftersort">
  814. <![CDATA[
  815. grd_sasm.gridToInstance();
  816. ]]>
  817. </script>
  818. <script type="javascript" ev:event="onclick">
  819. <![CDATA[
  820. btn_insert.disabled = true; //신규저장
  821. btn_save.disabled = false; //수정
  822. button1.disabled = false; //선택진료해지
  823. button3.disabled = false; //OCR제출확인
  824. button6.disabled = false; //OCR제출취소
  825. button4.disabled = false; //삭제
  826. button7.disabled = true; //삭제취소
  827. model.resetInstanceNode("/root/main/inform");
  828. model.resetInstanceNode("/root/send/data2");
  829. var row = grd_sasm.row;
  830. if(fSpifSelect(row) != false){
  831. fcmb_data2_orddridNEW();
  832. }
  833. ]]>
  834. </script>
  835. </datagrid>
  836. <caption id="caption19" class="cell_1" style="left:631px; top:129px; width:76px; height:66px; ">참고사항</caption>
  837. <textarea id="txt_remfact" ref="/root/main/inform/remfact" imemode="hangul" maxlength="500" style="left:708px; top:130px; width:480px; height:65px; "/>
  838. <caption id="caption7" class="cell_1" style="left:631px; top:455px; width:147px; height:23px; font-weight:normal; text-align:center; vertical-align:middle; ">처치/수술</caption>
  839. <select1 id="combo1" ref="/root/main/inform/list8specdrid" class="combo_search" disabled="true" appearance="minimal" style="left:781px; top:457px; width:109px; height:19px; ">
  840. <choices>
  841. <itemset nodeset="/root/init/orddrid">
  842. <label ref="nmsp"/>
  843. <value ref="cd"/>
  844. </itemset>
  845. </choices>
  846. <script type="javascript" ev:event="xforms-value-changed">
  847. <![CDATA[
  848. ]]>
  849. </script>
  850. </select1>
  851. <bool id="bool1" checkvalue="B,C" ref="/root/main/inform/list8choiflag" style="left:941px; top:460px; width:20px; height:15px; ">
  852. <script type="javascript" ev:event="xforms-value-changed">
  853. <![CDATA[
  854. ]]>
  855. </script>
  856. </bool>
  857. <input id="input7" ref="/root/main/inform/rrgstno1" class="input_default" disabled="true" navindex="1" maxlength="10" appearance="input" style="left:1044px; top:32px; width:65px; height:19px; "/>
  858. <button id="btn_ptbshngnm" class="icon_search" style="left:962px; top:33px; width:16px; height:16px; ">
  859. <caption/>
  860. <script type="javascript" ev:event="DOMActivate">
  861. <![CDATA[
  862. model.makeNode("/root/send/search1/hngnm");
  863. model.makeNode("/root/send/search1/srchcond");
  864. model.makeNode("/root/main/patinfo/patinfolist");
  865. model.setValue("/root/send/search1/hngnm",model.getValue("/root/main/inform/hngnm"));
  866. model.setValue("/root/send/search1/srchcond","2");
  867. modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
  868. //model.setValue("/root/main/patappinfo/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  869. //model.refresh();
  870. //환자정보set
  871. //fSpecOrdPatInfoSet();
  872. model.setValue("/root/main/inform/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  873. model.setValue("/root/main/inform/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  874. model.setValue("/root/main/inform/rrgstno1",model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  875. model.setValue("/root/main/inform/rrgstno2",model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  876. model.refresh();
  877. ]]>
  878. </script>
  879. </button>
  880. <input id="input1" ref="/root/main/inform/pid" class="input_default" disabled="false" navindex="1" maxlength="10" appearance="input" style="left:708px; top:32px; width:63px; height:19px; ">
  881. <script type="javascript" ev:event="onkeypress">
  882. <![CDATA[
  883. if(event.keyCode == "13") {
  884. //model.setValue("/root/hidden/status/value","i");
  885. setInputNodeCurText();
  886. inputEnterKey("btn_ptbspid", "DOMActivate");
  887. }
  888. ]]>
  889. </script>
  890. </input>
  891. <input id="input2" ref="/root/main/inform/hngnm" class="input_default" disabled="false" navindex="1" imemode="hangul" maxlength="10" appearance="input" style="left:858px; top:32px; width:100px; height:19px; ">
  892. <script type="javascript" ev:event="onkeypress">
  893. <![CDATA[
  894. if(event.keyCode == "13") {
  895. //model.setValue("/root/hidden/status/value","i");
  896. setInputNodeCurText();
  897. inputEnterKey("btn_ptbshngnm", "DOMActivate");
  898. }
  899. ]]>
  900. </script>
  901. </input>
  902. <button id="btn_ptbspid" class="icon_search" style="left:775px; top:33px; width:16px; height:16px; ">
  903. <caption/>
  904. <script type="javascript" ev:event="DOMActivate">
  905. <![CDATA[
  906. model.makeNode("/root/send/search1/pid");
  907. model.makeNode("/root/send/search1/srchcond");
  908. model.makeNode("/root/main/patinfo/patinfolist");
  909. model.setValue("/root/send/search1/pid",model.getValue("/root/main/inform/pid"));
  910. model.setValue("/root/send/search1/srchcond","1");
  911. modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
  912. //model.setValue("/root/main/patappinfo/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  913. //model.refresh();
  914. //환자정보set
  915. //fSpecOrdPatInfoSet();
  916. model.setValue("/root/main/inform/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  917. model.setValue("/root/main/inform/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  918. model.setValue("/root/main/inform/rrgstno1",model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  919. model.setValue("/root/main/inform/rrgstno2",model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  920. model.refresh();
  921. ]]>
  922. </script>
  923. </button>
  924. <input id="input4" ref="/root/main/inform/rrgstno2" class="input_default" disabled="true" navindex="1" maxlength="10" appearance="input" style="left:1127px; top:32px; width:65px; height:19px; "/>
  925. <select1 id="cmb_data2_specordyn" ref="/root/main/inform/specordyn" disabled="true" appearance="minimal" style="left:1127px; top:57px; width:65px; height:19px; ">
  926. <choices>
  927. <item>
  928. <label>선택</label>
  929. <value>Y</value>
  930. </item>
  931. <item>
  932. <label>비선택</label>
  933. <value>N</value>
  934. </item>
  935. </choices>
  936. </select1>
  937. <bool id="bool2" checkvalue="B,C" ref="/root/send/data1/allcheckyn" style="left:941px; top:268px; width:20px; height:15px; ">
  938. <script type="javascript" ev:event="xforms-value-changed">
  939. <![CDATA[
  940. var chval = model.getValue("/root/send/data1/allcheckyn");
  941. model.setValue("/root/main/inform/list1choiflag", chval);
  942. model.setValue("/root/main/inform/list2choiflag", chval);
  943. model.setValue("/root/main/inform/list3choiflag", chval);
  944. model.setValue("/root/main/inform/list4choiflag", chval);
  945. model.setValue("/root/main/inform/list5choiflag", chval);
  946. model.setValue("/root/main/inform/list6choiflag", chval);
  947. model.setValue("/root/main/inform/list7choiflag", chval);
  948. model.setValue("/root/main/inform/list8choiflag", chval);
  949. model.refresh();
  950. ]]>
  951. </script>
  952. </bool>
  953. <button id="button1" class="btn5_letter6" disabled="false" navindex="2" visibility="visible" style="left:1017px; top:5px; width:86px; height:19px; background-color:#99ccff; ">
  954. <caption>OCR제출확인</caption>
  955. <script type="javascript" ev:event="DOMActivate">
  956. <![CDATA[
  957. //기등록된 내역인지 체크한다.
  958. if( model.getValue("/root/main/inform/ocrtag") == "" || model.getValue("/root/main/inform/ocrtag") == "-" ){
  959. messageBox("신규내역은 제출확인 할 수 없습니다. \n신청내역에서 제출확인 할 선택진료서명내역을 선택하세요", "E999", "");
  960. return false;
  961. }
  962. if(model.getValue("/root/main/inform/returnyn") == "Y"){
  963. messageBox("이미 제출 확인된 내역입니다! 다시 제출 확인 할 수 없습니다.", "E999", "");
  964. return false;
  965. }
  966. if(model.getValue("/root/main/inform/rtnconfirmyn") == "Y"){
  967. messageBox("기록실 반납 확인된 내역은 OCR제출 확인 할 수 없습니다.", "E999", "");
  968. return false;
  969. }
  970. //원무팀 요청 - 제출확인 시 위임여부체크가 하나도 안되어 있으면 메세지 처리
  971. if( model.getValue("/root/main/inform/list1choiflag") != 'B'
  972. && model.getValue("/root/main/inform/list2choiflag") != 'B'
  973. && model.getValue("/root/main/inform/list3choiflag") != 'B'
  974. && model.getValue("/root/main/inform/list4choiflag") != 'B'
  975. && model.getValue("/root/main/inform/list5choiflag") != 'B'
  976. && model.getValue("/root/main/inform/list6choiflag") != 'B'
  977. && model.getValue("/root/main/inform/list7choiflag") != 'B'
  978. && model.getValue("/root/main/inform/list8choiflag") != 'B' ){
  979. var retVal = messageBox("지원항목 위임여부가 하나도 선택되지 않았습니다.\n선택진료동의서 상의 위임여부와 동일합니까?\n[예] : 제출확인 계속 진행 [아니오] : 제출 확인 중지", "Q999", "");
  980. if( retVal != '6' ){
  981. return false;
  982. }
  983. }
  984. //제출 확인 체크
  985. model.setValue("/root/main/inform/returnyn", "Y");
  986. fSaveSpif();
  987. ]]>
  988. </script>
  989. </button>
  990. <select id="checkbox1" ref="/root/main/inform/returnyn" disabled="true" overflow="visible" appearance="full" style="left:1127px; top:81px; width:65px; height:20px; border-style:none; ">
  991. <choices>
  992. <item>
  993. <label>제출확인</label>
  994. <value>Y</value>
  995. </item>
  996. </choices>
  997. </select>
  998. <line id="line4" class="line_3" style="x1:630px; y1:195px; x2:1191px; y2:195px; "/>
  999. <line id="line6" class="line_2" style="x1:631px; y1:102px; x2:1192px; y2:102px; "/>
  1000. <caption id="caption3" class="cell_1" style="left:631px; top:104px; width:76px; height:23px; font-weight:normal; text-align:left; vertical-align:middle; ">선택구분</caption>
  1001. <select1 id="combo2" ref="/root/main/inform/choiflag" appearance="minimal" style="left:708px; top:106px; width:88px; height:19px; ">
  1002. <choices>
  1003. <item>
  1004. <label>위임</label>
  1005. <value>B</value>
  1006. </item>
  1007. <item>
  1008. <label>선택안함</label>
  1009. <value>X</value>
  1010. </item>
  1011. <item>
  1012. <label>선택</label>
  1013. <value>C</value>
  1014. </item>
  1015. </choices>
  1016. </select1>
  1017. <select1 id="combo3" ref="/root/main/inform/signflag" appearance="minimal" style="left:858px; top:106px; width:125px; height:19px; ">
  1018. <choices>
  1019. <item>
  1020. <label>OCR</label>
  1021. <value>O</value>
  1022. </item>
  1023. <item>
  1024. <label>OCR(변경)</label>
  1025. <value>B</value>
  1026. </item>
  1027. <item>
  1028. <label>전자서명</label>
  1029. <value>E</value>
  1030. </item>
  1031. <item>
  1032. <label>전자동의서</label>
  1033. <value>S</value>
  1034. </item>
  1035. </choices>
  1036. </select1>
  1037. <caption id="caption10" class="cell_1" style="left:798px; top:104px; width:59px; height:23px; font-weight:normal; text-align:left; vertical-align:middle; ">서명구분</caption>
  1038. </group>
  1039. <group id="group2" style="left:0px; top:662px; width:1195px; height:27px; ">
  1040. <button id="button3" class="btn4_letter6" disabled="false" navindex="2" visibility="visible" style="left:669px; top:5px; width:104px; height:22px; background-color:#99ccff; ">
  1041. <caption>OCR제출확인</caption>
  1042. <script type="javascript" ev:event="DOMActivate">
  1043. <![CDATA[
  1044. //기등록된 내역인지 체크한다.
  1045. if( model.getValue("/root/main/inform/ocrtag") == "" || model.getValue("/root/main/inform/ocrtag") == "-" ){
  1046. messageBox("신규내역은 제출확인 할 수 없습니다. \n신청내역에서 제출확인 할 선택진료서명내역을 선택하세요", "E999", "");
  1047. return false;
  1048. }
  1049. if(model.getValue("/root/main/inform/returnyn") == "Y"){
  1050. messageBox("이미 제출 확인된 내역입니다! 다시 제출 확인 할 수 없습니다.", "E999", "");
  1051. return false;
  1052. }
  1053. if(model.getValue("/root/main/inform/rtnconfirmyn") == "Y"){
  1054. messageBox("기록실 반납 확인된 내역은 OCR제출 확인 할 수 없습니다.", "E999", "");
  1055. return false;
  1056. }
  1057. //원무팀 요청 - 제출확인 시 위임여부체크가 하나도 안되어 있으면 메세지 처리
  1058. if( model.getValue("/root/main/inform/list1choiflag") != 'B'
  1059. && model.getValue("/root/main/inform/list2choiflag") != 'B'
  1060. && model.getValue("/root/main/inform/list3choiflag") != 'B'
  1061. && model.getValue("/root/main/inform/list4choiflag") != 'B'
  1062. && model.getValue("/root/main/inform/list5choiflag") != 'B'
  1063. && model.getValue("/root/main/inform/list6choiflag") != 'B'
  1064. && model.getValue("/root/main/inform/list7choiflag") != 'B'
  1065. && model.getValue("/root/main/inform/list8choiflag") != 'B' ){
  1066. var retVal = messageBox("지원항목 위임여부가 하나도 선택되지 않았습니다.\n선택진료동의서 상의 위임여부와 동일합니까?\n[예] : 제출확인 계속 진행 [아니오] : 제출 확인 중지", "Q999", "");
  1067. if( retVal != '6' ){
  1068. return false;
  1069. }
  1070. }
  1071. //제출확인여부 체크
  1072. model.setValue("/root/main/inform/returnyn", "Y");
  1073. //2017/06/02 이정택 추가
  1074. var allrtnyn = model.getValue("/root/main/patappinfo/patappinfo1/allrtnyn");
  1075. //2017/06/02 이정택 추가
  1076. if(allrtnyn=='Y'){
  1077. model.makeValue("/root/main/inform/allrtnyn" , "Y");
  1078. fSaveSpif();
  1079. }else{
  1080. model.makeValue("/root/main/inform/allrtnyn" , "N");
  1081. fSaveSpif();
  1082. window.close();
  1083. }
  1084. /*
  1085. fSaveSpif();
  1086. window.close();
  1087. */
  1088. ]]>
  1089. </script>
  1090. </button>
  1091. <button id="button17" class="btn4_letter3" style="left:1069px; top:5px; width:68px; height:22px; ">
  1092. <caption>초기화</caption>
  1093. <script type="javascript" ev:event="DOMActivate">
  1094. <![CDATA[
  1095. // btn_insertc.disabled = false;
  1096. // btn_insert.disabled = false;
  1097. // btn_save.disabled = true;
  1098. btn_insert.disabled = false; //신규저장
  1099. btn_save.disabled = true; //수정
  1100. button1.disabled = false; //선택진료해지
  1101. button3.disabled = false; //OCR제출확인
  1102. button6.disabled = false; //OCR제출취소
  1103. button4.disabled = true; //삭제
  1104. button7.disabled = true; //삭제취소
  1105. model.resetInstanceNode("/root/main/inform");
  1106. model.resetInstanceNode("/root/send");
  1107. model.resetInstanceNode("/root/main/h_sasm");
  1108. model.refresh();
  1109. ]]>
  1110. </script>
  1111. </button>
  1112. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1191px; y2:0px; "/>
  1113. <button id="btn_insertc" class="btn4_letter7" visibility="hidden" style="left:287px; top:5px; width:116px; height:22px; ">
  1114. <caption>신규저장후닫기</caption>
  1115. <script type="javascript" ev:event="DOMActivate">
  1116. <![CDATA[
  1117. //신규저장 시 제출확인 상태로 되도록 수정 - 20130913
  1118. model.setValue("/root/main/inform/returnyn", "Y");
  1119. if(fInsertSpif() == false) return false;
  1120. if( model.getValue("/root/main/inform/choiflag") != 'X' ){
  1121. fPrint(1);
  1122. }
  1123. window.close();
  1124. ]]>
  1125. </script>
  1126. </button>
  1127. <button id="btn_close" class="btn4_letter2" style="left:1137px; top:5px; width:56px; height:22px; ">
  1128. <caption>닫기</caption>
  1129. <script type="javascript" ev:event="DOMActivate">
  1130. <![CDATA[
  1131. //fsignpad_close();
  1132. window.close();
  1133. ]]>
  1134. </script>
  1135. </button>
  1136. <button id="btn_save" class="btn4_letter2" style="left:877px; top:5px; width:56px; height:22px; ">
  1137. <caption>수정</caption>
  1138. <script type="javascript" ev:event="DOMActivate">
  1139. <![CDATA[
  1140. //기존 등록내역 체크 - OCR TAG 정보가 있으면 수정 아니면 신규로 처리
  1141. if( model.getValue("/root/main/inform/ocrtag") == "" || model.getValue("/root/main/inform/ocrtag") == "-" ){
  1142. messageBox("신규 저장일 경우 [신규저장] 버튼을 눌러 진행하세요!", "E999", "");
  1143. return false;
  1144. }
  1145. //2017/06/02 이정택 추가
  1146. var allrtnyn = model.getValue("/root/main/patappinfo/patappinfo1/allrtnyn");
  1147. //2017/06/02 이정택 추가
  1148. if(allrtnyn=='Y'){
  1149. model.makeValue("/root/main/inform/allrtnyn" , "Y");
  1150. }else{
  1151. model.makeValue("/root/main/inform/allrtnyn" , "N");
  1152. }
  1153. fSaveSpif();
  1154. //초기화
  1155. btn_insertc.disabled = false;
  1156. btn_insert.disabled = false;
  1157. btn_save.disabled = true;
  1158. model.resetInstanceNode("/root/main/inform");
  1159. model.resetInstanceNode("/root/send/data2");
  1160. model.refresh();
  1161. ]]>
  1162. </script>
  1163. </button>
  1164. <button id="btn_insert" class="btn4_letter4" style="left:497px; top:5px; width:80px; height:22px; ">
  1165. <caption>신규저장</caption>
  1166. <script type="javascript" ev:event="DOMActivate">
  1167. <![CDATA[
  1168. //신규저장 시 제출확인 상태로 되도록 수정 - 20130913
  1169. model.setValue("/root/main/inform/returnyn", "Y");
  1170. if(fInsertSpif() == false) return false;
  1171. //2012-04-30 원무팀 요청으로 동의안함으로 저장사이에는 서식을 발행할 필요없음!!
  1172. if( model.getValue("/root/main/inform/choiflag") != 'X' ){
  1173. fPrint(1);
  1174. }
  1175. btn_insertc.disabled = true;
  1176. btn_insert.disabled = true;
  1177. btn_save.disabled = false;
  1178. model.resetInstanceNode("/root/main/inform");
  1179. model.resetInstanceNode("/root/send/data2");
  1180. //model.refresh();
  1181. var row = grd_sasm.rows - grd_sasm.fixedRows;
  1182. model.copyNode("/root/main/inform" , "/root/main/h_sasm/sasm[" + row +"]" );
  1183. //노드 생성
  1184. model.makeValue("/root/main/inform/pid_org" ,model.getValue("/root/main/h_sasm/sasm[" + row +"]/pid"));
  1185. model.makeValue("/root/main/inform/ocrtag_org" ,model.getValue("/root/main/h_sasm/sasm[" + row +"]/ocrtag"));
  1186. model.makeValue("/root/main/inform/orddeptcd_org" ,model.getValue("/root/main/h_sasm/sasm[" + row +"]/orddeptcd"));
  1187. model.makeValue("/root/main/inform/orddrid_org" ,model.getValue("/root/main/h_sasm/sasm[" + row +"]/orddrid"));
  1188. model.makeValue("/root/main/inform/todd_org" ,model.getValue("/root/main/h_sasm/sasm[" + row +"]/todd"));
  1189. fcmb_data2_orddridNEW();
  1190. ]]>
  1191. </script>
  1192. </button>
  1193. <button id="btn_print2" class="btn3_letter4" disabled="true" visibility="hidden" style="left:198px; top:5px; width:80px; height:22px; ">
  1194. <caption>확진출력</caption>
  1195. <hint>
  1196. <![CDATA[입원환자 처방에 대한 특진의사의 판독후 신청서 (입원내역을 선택해야 활성화 됩니다.)]]>
  1197. </hint>
  1198. <script type="javascript" ev:event="DOMActivate">
  1199. <![CDATA[
  1200. fPrint_confm();
  1201. ]]>
  1202. </script>
  1203. </button>
  1204. <button id="btn_print" class="btn3_letter4" visibility="hidden" style="left:118px; top:5px; width:80px; height:22px; ">
  1205. <caption>원본출력</caption>
  1206. <script type="javascript" ev:event="DOMActivate">
  1207. <![CDATA[
  1208. fPrint_org();
  1209. ]]>
  1210. </script>
  1211. <hint>
  1212. <![CDATA[환자가 신청한 신청서 원본 출력]]>
  1213. </hint>
  1214. </button>
  1215. <button id="btn_splt" class="btn3_letter7" visibility="hidden" style="left:2px; top:5px; width:116px; height:22px; ">
  1216. <caption>취소대장리스트</caption>
  1217. <script type="javascript" ev:event="DOMActivate">
  1218. <![CDATA[
  1219. modal("SMPMC06505");
  1220. ]]>
  1221. </script>
  1222. </button>
  1223. <button id="button4" class="btn4_letter2" style="left:933px; top:5px; width:56px; height:22px; ">
  1224. <caption>삭제</caption>
  1225. <script type="javascript" ev:event="DOMActivate">
  1226. <![CDATA[
  1227. //기등록된 내역인지 체크한다.
  1228. if( model.getValue("/root/main/inform/ocrtag") == "" || model.getValue("/root/main/inform/ocrtag") == "-" ){
  1229. messageBox("신규내역은 삭제 할 수 없습니다. \n신청내역에서 삭제 할 선택진료서명내역을 선택하세요", "E999", "");
  1230. return false;
  1231. }
  1232. //전자동의서 이오의 경우 체크
  1233. if (model.getValue("/root/main/inform/signflag") != "S") {
  1234. if(model.getValue("/root/main/inform/returnyn") == "Y"){
  1235. messageBox("OCR제출확인된 내역은 삭제 할 수 없습니다. OCR제출취소 후 삭제하세요.", "E999", "");
  1236. return false;
  1237. }
  1238. if(model.getValue("/root/main/inform/rtnconfirmyn") == "Y"){
  1239. messageBox("기록실 반납 확인된 내역은 삭제 할 수 없습니다.", "E999", "");
  1240. return false;
  1241. }
  1242. }
  1243. if( messageBox("정말 삭제하시겠습니까? 삭제하시면 선택진료신청 이력이 모두 삭제 됩니다.", "Q999", "") != "6" ){
  1244. return false;
  1245. }
  1246. model.makeNode("/root/main/inform/delyn");
  1247. model.setValue("/root/main/inform/delyn", "Y");
  1248. //2017/06/02 이정택 추가
  1249. var allrtnyn = model.getValue("/root/main/patappinfo/patappinfo1/allrtnyn");
  1250. //2017/06/02 이정택 추가
  1251. if(allrtnyn=='Y'){
  1252. model.makeValue("/root/main/inform/allrtnyn" , "Y");
  1253. }else{
  1254. model.makeValue("/root/main/inform/allrtnyn" , "N");
  1255. }
  1256. fSaveSpif();
  1257. //초기화
  1258. btn_insertc.disabled = false;
  1259. btn_insert.disabled = false;
  1260. btn_save.disabled = true;
  1261. model.resetInstanceNode("/root/main/inform");
  1262. model.resetInstanceNode("/root/send/data2");
  1263. model.refresh();
  1264. ]]>
  1265. </script>
  1266. </button>
  1267. <button id="button5" class="btn4_letter5" style="left:404px; top:5px; width:92px; height:22px; ">
  1268. <caption>서식재발행</caption>
  1269. <script type="javascript" ev:event="DOMActivate">
  1270. <![CDATA[
  1271. //기등록된 내역인지 체크한다.
  1272. if( grd_sasm.row < 0 ){
  1273. messageBox("재발행할 선택진료 신청이력을 선택하세요!", "E999", "");
  1274. return false;
  1275. }
  1276. fPrint(grd_sasm.row);
  1277. /* 2011-11-09 주석처리
  1278. btn_insertc.disabled = true;
  1279. btn_insert.disabled = true;
  1280. btn_save.disabled = false;
  1281. model.resetInstanceNode("/root/main/inform");
  1282. model.resetInstanceNode("/root/send/data2");
  1283. //model.refresh();
  1284. var row = grd_sasm.rows - grd_sasm.fixedRows;
  1285. model.copyNode("/root/main/inform" , "/root/main/h_sasm/sasm[" + row +"]" );
  1286. //노드 생성
  1287. model.makeValue("/root/main/inform/pid_org" ,model.getValue("/root/main/h_sasm/sasm[" + row +"]/pid"));
  1288. model.makeValue("/root/main/inform/ocrtag_org" ,model.getValue("/root/main/h_sasm/sasm[" + row +"]/ocrtag"));
  1289. model.makeValue("/root/main/inform/orddeptcd_org" ,model.getValue("/root/main/h_sasm/sasm[" + row +"]/orddeptcd"));
  1290. model.makeValue("/root/main/inform/orddrid_org" ,model.getValue("/root/main/h_sasm/sasm[" + row +"]/orddrid"));
  1291. model.makeValue("/root/main/inform/todd_org" ,model.getValue("/root/main/h_sasm/sasm[" + row +"]/todd"));
  1292. fcmb_data2_orddridNEW();
  1293. */
  1294. ]]>
  1295. </script>
  1296. </button>
  1297. <button id="button6" class="btn4_letter6" disabled="false" navindex="2" visibility="visible" style="left:773px; top:5px; width:104px; height:22px; background-color:#99ccff; ">
  1298. <caption>OCR제출취소</caption>
  1299. <script type="javascript" ev:event="DOMActivate">
  1300. <![CDATA[
  1301. //기등록된 내역인지 체크한다.
  1302. if( model.getValue("/root/main/inform/ocrtag") == "" || model.getValue("/root/main/inform/ocrtag") == "-" ){
  1303. messageBox("신규내역은 제출확인 할 수 없습니다. \n신청내역에서 제출확인 할 선택진료서명내역을 선택하세요", "E999", "");
  1304. return false;
  1305. }
  1306. if(model.getValue("/root/main/inform/returnyn") == "N"){
  1307. messageBox("아직 OCR 제출확인 되지 않은 내역입니다! 제출 취소할 수 없습니다!", "E999", "");
  1308. return false;
  1309. }
  1310. if(model.getValue("/root/main/inform/rtnconfirmyn") == "Y"){
  1311. messageBox("기록실 반납 확인된 내역은 OCR제출 확인 할 수 없습니다.", "E999", "");
  1312. return false;
  1313. }
  1314. model.setValue("/root/main/inform/returnyn", "N");
  1315. //2017/06/02 이정택 추가
  1316. var allrtnyn = model.getValue("/root/main/patappinfo/patappinfo1/allrtnyn");
  1317. //2017/06/02 이정택 추가
  1318. if(allrtnyn=='Y'){
  1319. model.makeValue("/root/main/inform/allrtnyn" , "Y");
  1320. }else{
  1321. model.makeValue("/root/main/inform/allrtnyn" , "N");
  1322. }
  1323. fSaveSpif();
  1324. //window.close();
  1325. ]]>
  1326. </script>
  1327. </button>
  1328. <button id="button8" class="btn4_letter5" disabled="false" visibility="visible" style="left:577px; top:5px; width:92px; height:22px; ">
  1329. <caption>전자동의서</caption>
  1330. <script type="javascript" ev:event="DOMActivate">
  1331. <![CDATA[
  1332. var pid = model.getValue("/root/main/inform/pid");
  1333. var cretno = model.getValue("/root/main/inform/cretno");
  1334. var orddd = model.getValue("/root/main/inform/orddd");
  1335. var ordtype = model.getValue("/root/main/inform/ioflag");
  1336. var user = getUserInfo("userid");
  1337. var instcd = getUserInfo("dutplceinstcd");
  1338. if (pid == "" || cretno == "" || orddd == "" || ordtype == "") {
  1339. messageBox("수진정보가 없습니다. \r\n전자동의서는 반드시 상위화면에서 수진이력이 선택되어야 합니다.","I999");
  1340. return;
  1341. }
  1342. // 전자동의서 파라미터 설정
  1343. setParameter("SSMRC03160_param_patid", pid);
  1344. setParameter("SSMRC03160_param_cretno", cretno);
  1345. setParameter("SSMRC03160_param_indate", orddd);
  1346. setParameter("SSMRC03160_param_instcd", instcd);
  1347. setParameter("SSMRC03160_param_class", ordtype);
  1348. setParameter("SSMRC03160_param_docucd", "1300013647"); // 1300013647 선택진료신청서(원무)
  1349. setParameter("SSMRC03160_param_cuser", user);
  1350. setParameter("SSMRC03160_param_flag", "S"); // S : 선택진료신청서, A : 입원약정서, T : 기간약정서
  1351. // 환자 기본정보 설정
  1352. setParameter("SSMRC03160_param_pathngnm", model.getValue("/root/main/h_sasm/ptbs/ptbs_hngnm"));
  1353. setParameter("SSMRC03160_param_pataddr", model.getValue("/root/main/h_sasm/ptbs/ptbs_detladdr"));
  1354. setParameter("SSMRC03160_param_pattelno", model.getValue("/root/main/h_sasm/ptbs/ptbs_hometel"));
  1355. setParameter("SSMRC03160_param_patrrgstno", model.getValue("/root/main/h_sasm/ptbs/ptbs_rrgstno1") + "-" + model.getValue("/root/main/h_sasm/ptbs/ptbs_rrgstno2"));
  1356. // 주진료과정보 설정 진료과/의사
  1357. model.makeValue("/root/main/inform/orddeptnm", model.getValue("/root/init/orddeptcd[cd='" + model.getValue("/root/main/inform/orddeptcd") + "']/nm"));
  1358. model.makeValue("/root/main/inform/orddrnm", model.getValue("/root/init/orddrid[cd='" + model.getValue("/root/main/inform/orddrid") + "']/nm"));
  1359. // 신청일자 보정처리(복지부 감사 관련 수정) by 조중래 20170602
  1360. model.setValue("/root/main/inform/appdd" , orddd);
  1361. // 위임여부에 따라 선택진료의사 정보 전달
  1362. // 위임(B) / 선택안함(X) 시
  1363. if (model.getValue("/root/main/inform/choiflag") != "C") {
  1364. // 선택진료의사명01(진찰)
  1365. model.makeValue("/root/main/inform/list1specdrnm", "");
  1366. // 선택진료의사명02(검사)
  1367. model.makeValue("/root/main/inform/list2specdrnm", "");
  1368. // 선택진료의사명03(영상진단)
  1369. model.makeValue("/root/main/inform/list3specdrnm", "");
  1370. // 선택진료의사명04(방사선치료)
  1371. model.makeValue("/root/main/inform/list4specdrnm", "");
  1372. // 선택진료의사명05(방사선혈관촬영)
  1373. model.makeValue("/root/main/inform/list5specdrnm", "");
  1374. // 선택진료의사명06(마취)
  1375. model.makeValue("/root/main/inform/list6specdrnm", "");
  1376. // 선택진료의사명07(정신요법)
  1377. model.makeValue("/root/main/inform/list7specdrnm", "");
  1378. // 선택진료의사명08(처치/수술)
  1379. model.makeValue("/root/main/inform/list8specdrnm", "");
  1380. // 선택 시
  1381. } else {
  1382. // 선택진료의사명01(진찰)
  1383. model.makeValue("/root/main/inform/list1specdrnm", model.getValue("/root/init/orddrid[cd='" + model.getValue("/root/main/inform/list1specdrid") + "']/nm"));
  1384. // 선택진료의사명02(검사)
  1385. model.makeValue("/root/main/inform/list2specdrnm", model.getValue("/root/init/orddrid[cd='" + model.getValue("/root/main/inform/list2specdrid") + "']/nm"));
  1386. // 선택진료의사명03(영상진단)
  1387. model.makeValue("/root/main/inform/list3specdrnm", model.getValue("/root/init/orddrid[cd='" + model.getValue("/root/main/inform/list3specdrid") + "']/nm"));
  1388. // 선택진료의사명04(방사선치료)
  1389. model.makeValue("/root/main/inform/list4specdrnm", model.getValue("/root/init/orddrid[cd='" + model.getValue("/root/main/inform/list4specdrid") + "']/nm"));
  1390. // 선택진료의사명05(방사선혈관촬영)
  1391. model.makeValue("/root/main/inform/list5specdrnm", model.getValue("/root/init/orddrid[cd='" + model.getValue("/root/main/inform/list5specdrid") + "']/nm"));
  1392. // 선택진료의사명06(마취)
  1393. model.makeValue("/root/main/inform/list6specdrnm", model.getValue("/root/init/orddrid[cd='" + model.getValue("/root/main/inform/list6specdrid") + "']/nm"));
  1394. // 선택진료의사명07(정신요법)
  1395. model.makeValue("/root/main/inform/list7specdrnm", model.getValue("/root/init/orddrid[cd='" + model.getValue("/root/main/inform/list7specdrid") + "']/nm"));
  1396. // 선택진료의사명08(처치/수술)
  1397. model.makeValue("/root/main/inform/list8specdrnm", model.getValue("/root/init/orddrid[cd='" + model.getValue("/root/main/inform/list8specdrid") + "']/nm"));
  1398. }
  1399. // 전자동의서 팝업 호출
  1400. modal("SSMRC03160");
  1401. ]]>
  1402. </script>
  1403. </button>
  1404. <button id="button7" class="btn4_letter4" style="left:989px; top:5px; width:80px; height:22px; ">
  1405. <caption>삭제취소</caption>
  1406. <script type="javascript" ev:event="DOMActivate">
  1407. <![CDATA[
  1408. if( messageBox("삭제취소 하시겠습니까? 삭제하셨던 선택진료신청 이력을 정상으로 수정 됩니다.", "Q999") != "6" ){
  1409. return false;
  1410. }
  1411. fSaveSpif();
  1412. model.makeNode("/root/main/inform/delyn");
  1413. model.setValue("/root/main/inform/delyn", "cncl");
  1414. fSaveSpif();
  1415. //초기화
  1416. btn_insertc.disabled = false;
  1417. btn_insert.disabled = false;
  1418. btn_save.disabled = true;
  1419. model.resetInstanceNode("/root/main/inform");
  1420. model.resetInstanceNode("/root/send/data2");
  1421. model.refresh();
  1422. ]]>
  1423. </script>
  1424. </button>
  1425. </group>
  1426. <line id="line2" class="line_2" style="x1:630px; y1:67px; x2:1191px; y2:67px; "/>
  1427. <line id="line3" class="line_2" style="x1:630px; y1:91px; x2:1191px; y2:91px; "/>
  1428. <line id="line10" class="line_2" style="x1:890px; y1:246px; x2:890px; y2:492px; "/>
  1429. <line id="line16" class="line_2" style="x1:630px; y1:319px; x2:1001px; y2:319px; "/>
  1430. <line id="line17" class="line_2" style="x1:630px; y1:343px; x2:1001px; y2:343px; "/>
  1431. <line id="line19" class="line_2" style="x1:630px; y1:368px; x2:1001px; y2:368px; "/>
  1432. <line id="line21" class="line_2" style="x1:630px; y1:393px; x2:1001px; y2:393px; "/>
  1433. <line id="line22" class="line_2" style="x1:630px; y1:418px; x2:1001px; y2:418px; "/>
  1434. <line id="line23" class="line_3" style="x1:630px; y1:492px; x2:1001px; y2:492px; "/>
  1435. <line id="line11" class="line_2" style="x1:778px; y1:246px; x2:778px; y2:492px; "/>
  1436. <line id="line12" class="line_2" style="x1:630px; y1:443px; x2:1001px; y2:443px; "/>
  1437. <line id="line13" class="line_2" style="x1:630px; y1:467px; x2:1001px; y2:467px; "/>
  1438. <line id="line7" class="line_2" style="x1:630px; y1:294px; x2:1001px; y2:294px; "/>
  1439. </xhtml:body>
  1440. </xhtml:html>