SMPMO00600_외래등록조회.xrw 64 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538
  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. <main>
  10. <patinforgst>
  11. <patinforgstlist/>
  12. </patinforgst>
  13. <patinfoupdt>
  14. <patinfoupdtlist/>
  15. </patinfoupdt>
  16. <patinfocncl>
  17. <patinfocncllist/>
  18. </patinfocncl>
  19. <result/>
  20. <popupendflag/>
  21. <patinfo>
  22. <patinfolist/>
  23. </patinfo>
  24. </main>
  25. <send>
  26. <pid/>
  27. <hngnm/>
  28. <rrgstno1/>
  29. <rrgstno2/>
  30. <dayflag/>
  31. <fromdd/>
  32. <todd/>
  33. <orddept/>
  34. <orddr/>
  35. <specordyn/>
  36. <rsrvflag/>
  37. <insukind/>
  38. <acptdd/>
  39. <acptno/>
  40. <tablename/>
  41. <openflag/>
  42. <fstacptdt/>
  43. <flag/>
  44. <fstrgstdt/>
  45. </send>
  46. <init>
  47. <comncdlist>
  48. <P0008list>
  49. <P0008>
  50. <cdnm/>
  51. <cdid/>
  52. </P0008>
  53. </P0008list>
  54. <P0021list>
  55. <P0021>
  56. <cdnm/>
  57. <cdid/>
  58. </P0021>
  59. </P0021list>
  60. <P0341list>
  61. <P0341>
  62. <cdnm/>
  63. <cdid/>
  64. </P0341>
  65. </P0341list>
  66. <P0022list>
  67. <P0022>
  68. <cdnm/>
  69. <cdid/>
  70. </P0022>
  71. </P0022list>
  72. <P0020list>
  73. <P0020>
  74. <cdnm/>
  75. <cdid/>
  76. </P0020>
  77. </P0020list>
  78. <P0029list>
  79. <P0029>
  80. <cdnm/>
  81. <cdid/>
  82. </P0029>
  83. </P0029list>
  84. <P0344list>
  85. <P0344>
  86. <cdnm/>
  87. <cdid/>
  88. </P0344>
  89. </P0344list>
  90. <P0008list>
  91. <P0008>
  92. <cdnm/>
  93. <cdid/>
  94. </P0008>
  95. </P0008list>
  96. <P0010list>
  97. <P0010>
  98. <cdnm/>
  99. <cdid/>
  100. </P0010>
  101. </P0010list>
  102. </comncdlist>
  103. <disccd>
  104. <disccdlist>
  105. <cd/>
  106. <nm/>
  107. </disccdlist>
  108. </disccd>
  109. </init>
  110. <init_pam>
  111. <init>
  112. <disccd>
  113. <cd/>
  114. <nm/>
  115. </disccd>
  116. <insukind>
  117. <cd/>
  118. <nm/>
  119. </insukind>
  120. <suppkind>
  121. <cd/>
  122. <nm/>
  123. <up/>
  124. <io/>
  125. </suppkind>
  126. <orddeptcd>
  127. <cd/>
  128. <nm/>
  129. <deptengabbr/>
  130. <reqdeptno/>
  131. </orddeptcd>
  132. <orddrid>
  133. <cd/>
  134. <nm/>
  135. <dp/>
  136. <sp/>
  137. </orddrid>
  138. <reducd>
  139. <cd/>
  140. <nm/>
  141. </reducd>
  142. <uncocd>
  143. <cd/>
  144. <nm/>
  145. </uncocd>
  146. </init>
  147. </init_pam>
  148. <hidden>
  149. </hidden>
  150. <source>
  151. <srchcond/>
  152. <pid/>
  153. <hngnm/>
  154. <rrgstno1/>
  155. <rrgstno2/>
  156. <acptdd/>
  157. </source>
  158. <tmp>
  159. <flag/>
  160. <openflag/>
  161. </tmp>
  162. </root>
  163. </instance>
  164. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  165. <submission id="TRPMO00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinforgst"/>
  166. <submission id="TRPMO00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfocncl"/>
  167. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  168. <submission id="TRPMO00605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfoupdt"/>
  169. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source" replace="instance" resultref="/root/main/patinfo"/>
  170. <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init_pam/init"/>
  171. </model>
  172. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  173. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  174. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  175. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  176. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  177. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  178. <script type="javascript" ev:event="xforms-ready">
  179. <![CDATA[
  180. //팝업화면으로 사용될 때
  181. if(checkOpener()){
  182. var flag = opener.javascript.getParameter("openflag");
  183. model.setValue("/root/tmp/openflag", flag);
  184. if( flag == 'T' ){
  185. group5.visible = false;
  186. group3.visible = true;
  187. swt_outpatient.selectedIndex = 2;
  188. btn_outrgst.visible = false;
  189. btn_outupdt.visible = false;
  190. btn_outcncl.visible = false;
  191. }else{
  192. group5.visible = true;
  193. group3.visible = false;
  194. }
  195. }
  196. zbcfGetCodeList(new Array("P0008","P0021","P0341","P0022","P0020","P0029","P0344", "P0010"),
  197. new Array("/root/init/comncdlist/P0008list"
  198. ,"/root/init/comncdlist/P0021list"
  199. ,"/root/init/comncdlist/P0341list"
  200. ,"/root/init/comncdlist/P0022list"
  201. ,"/root/init/comncdlist/P0020list"
  202. ,"/root/init/comncdlist/P0029list"
  203. ,"/root/init/comncdlist/P0344list"
  204. ,"/root/init/comncdlist/P0010list"));
  205. //진료과코드 진료의사ID 조회
  206. // pamGetDeptCDDrIDList();
  207. submit("TRPAMCOM01");
  208. /*
  209. //진료과에 '전체'항목 추가
  210. model.makeNode("/root/init/temp/orddeptcd/cd");
  211. model.makeNode("/root/init/temp/orddeptcd/nm");
  212. copyNodesetType("/root/init_pam/init/orddeptcd", "/root/init/temp/orddeptcd", "before");
  213. model.removeNodeset("/root/init/temp/orddeptcd");
  214. // fComCDRef(); //자체기초코드 조회
  215. */
  216. addComboItem("cmb_orddept","전체","","above");
  217. fInitialize();
  218. //간호 요청사항 추가 - 2008-01-04
  219. var node = getGlobalVariable("paminfo");
  220. if( node != '' && node != null){
  221. var orddrid = '';
  222. var orddeptcd = '';
  223. var pid = '';
  224. model.makeNode("/root/temp/paminfo");
  225. setCSVToNode("/root/temp/paminfo", node);
  226. var ioflag = model.getValue("/root/temp/paminfo/list/ioflag");
  227. if( ioflag == 'O' || ioflag == 'o' ){
  228. orddrid = model.getValue("/root/temp/paminfo/list/orddrid");
  229. }else{
  230. orddrid = model.getValue("/root/temp/paminfo/list/medispclid");
  231. }
  232. orddeptcd = model.getValue("/root/temp/paminfo/list/orddeptcd");
  233. pid = model.getValue("/root/temp/paminfo/list/pid");
  234. model.setValue("/root/send/pid", pid);
  235. model.setValue("/root/send/orddept", orddeptcd);
  236. model.setValue("/root/send/orddr", orddrid);
  237. model.refresh();
  238. swt_outpatient.selectedIndex = 0;
  239. btn_search.dispatch("DOMActivate");
  240. //ipt_pid.dispatch("DOMActivate");
  241. }else if (checkOpener()){
  242. //팝업화면으로 사용될 때
  243. var flag = opener.javascript.getParameter("openflag");
  244. var pid = opener.javascript.getParameter("pid");
  245. model.setValue("/root/send/openflag", opener.javascript.getParameter("openflag"));
  246. model.setValue("/root/send/pid", opener.javascript.getParameter("pid"));
  247. model.setValue("/root/send/hngnm", opener.javascript.getParameter("hngnm"));
  248. model.setValue("/root/send/rrgstno1", opener.javascript.getParameter("rrgstno1"));
  249. model.setValue("/root/send/rrgstno2", opener.javascript.getParameter("rrgstno2"));
  250. //model.setValue("/root/send/fromdd", opener.javascript.getParameter("fromdd"));
  251. //model.setValue("/root/send/todd", opener.javascript.getParameter("todd"));
  252. model.setValue("/root/send/orddept", opener.javascript.getParameter("orddeptcd"));
  253. model.setValue("/root/send/orddr", opener.javascript.getParameter("orddrid"));
  254. model.setValue("/root/send/specordyn", opener.javascript.getParameter("specordyn"));
  255. model.setValue("/root/send/rsrvflag", opener.javascript.getParameter("rsrvflag"));
  256. model.setValue("/root/send/insukind", opener.javascript.getParameter("insukind"));
  257. model.setValue("/root/send/acptdd", opener.javascript.getParameter("acptdd"));
  258. model.setValue("/root/send/acptno", opener.javascript.getParameter("acptno"));
  259. model.setValue("/root/send/tablename", opener.javascript.getParameter("tablename"));
  260. model.setValue("/root/send/fstacptdt", opener.javascript.getParameter("fstacptdt"));
  261. model.setValue("/root/send/fstrgstdt", opener.javascript.getParameter("fstrgstdt"));
  262. //var array_parm = SMPMO00200_PARM.split("▦");
  263. var flag = model.getValue("/root/tmp/openflag");
  264. var pid = model.getValue("/root/send/pid");
  265. var hngnm = model.getValue("/root/send/hngnm");
  266. var rrgstno1 = model.getValue("/root/send/rrgstno1");
  267. var rrgstno2 = model.getValue("/root/send/rrgstno2");
  268. /*
  269. //전화예약에서 조회시 환자정보가 없을경우
  270. if(flag == 'T'){
  271. if( pid == '' || pid == null || pid == '-' || pid == ' ' ){
  272. if( hngnm == '' || hngnm == null || hngnm == '-' || hngnm == ' ' ){
  273. if( rrgstno1 == '' || rrgstno1 == null || rrgstno1 == '-' || rrgstno1 == ' ' ){
  274. if( rrgstno2 == '' || rrgstno2 == null || rrgstno2 == '-' || rrgstno2 == ' ' ){
  275. var curDate = getCurrentDate();
  276. model.setValue("/root/send/fromdd", curDate);
  277. model.setValue("/root/send/todd", curDate);
  278. }
  279. }
  280. }
  281. }
  282. }else{
  283. //날자 입력 항목에 오늘 날자 세팅
  284. var curDate = getCurrentDate();
  285. model.setValue("/root/send/dayflag", "O");
  286. model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-2,"Y").getDateFormat());
  287. model.setValue("/root/send/todd", '99991231');
  288. }
  289. */
  290. if( flag == 'T' ){
  291. // swt_outpatient.selectedIndex = 2;
  292. // btn_outrgst.visible = false;
  293. // btn_outupdt.visible = false;
  294. // btn_outcncl.visible = false;
  295. if( hngnm.length > 0 ){
  296. button2.dispatch("DOMActivate");
  297. }
  298. }else{
  299. swt_outpatient.selectedIndex = 0;
  300. if( pid.length > 0 ){
  301. btn_search.dispatch("DOMActivate");
  302. }
  303. }
  304. }else{
  305. group5.visible = true;
  306. group3.visible = false;
  307. }
  308. model.refresh();
  309. ]]>
  310. </script>
  311. <script type="javascript">
  312. <![CDATA[
  313. function fCheckSearchValues(){
  314. var pid = model.getValue("/root/send/pid");
  315. var fromdd = model.getValue("/root/send/fromdd");
  316. var todd = model.getValue("/root/send/todd");
  317. var orddeptcd = model.getValue("/root/send/orddept");
  318. var orddrid = model.getValue("/root/send/orddr");
  319. var openflag = model.getValue("/root/tmp/openflag");
  320. if(openflag != 'T'){
  321. if(pid == null || pid == "" || pid == " " || pid == "-"){
  322. messageBox("등록번호는 필수 입력입니다.", "E999", "");
  323. return false;
  324. }
  325. }
  326. if( fromdd == '' || fromdd == ' ' || todd == '' || todd == ' '){
  327. messageBox("일자구분은 외래등록조회 필수조건입니다.", "E999", "");
  328. return false;
  329. }else if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
  330. messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  331. return false;
  332. // }else if( getDateInterval(fromdd, todd) > 31 ){
  333. //
  334. // messageBox("외래등록조회가능한 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  335. // return false;
  336. }else if( getDateInterval(fromdd, todd) < 0 ){
  337. messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  338. return false;
  339. }
  340. /*
  341. else{
  342. if( fromdd == '' || fromdd == ' ' || todd == '' || todd == ' '){
  343. messageBox("일자구분은 외래등록조회 필수조건입니다.", "E999", "");
  344. return false;
  345. }else if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
  346. messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  347. return false;
  348. }else if( getDateInterval(fromdd, todd) > 31 ){
  349. messageBox("외래등록조회가능한 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  350. return false;
  351. }else if( (orddeptcd == '' || orddeptcd == ' ' || orddeptcd == '-' || orddrid == '' || orddrid == ' ' || orddrid == '-') && getDateInterval(fromdd, todd) > 0 ){
  352. messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과/진료의는 조회 필수 조건입니다. 진료과/진료의를 입력하세요.", "E999", "");
  353. return false;
  354. }else if( getDateInterval(fromdd, todd) < 0 ){
  355. messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  356. return false;
  357. }
  358. }
  359. */
  360. return true;
  361. }
  362. function fInitialize() {
  363. //model.removeNodeset("/root/main/insukindcdspec/insukindcdspeclist");
  364. model.resetInstanceNode("/root/send");
  365. model.removeNodeset("/root/main/patinforgst/patinforgstlist");
  366. model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
  367. model.removeNodeset("/root/main/patinfocncl/patinfocncllist");
  368. //외래변경 탭 선택 조건
  369. // model.setValue("/root/tmp/flag", '');
  370. //일자구분 세팅 - 2007-10-16 이동식 추가
  371. model.setValue("/root/send/dayflag", "O"); //기본 진료일자로 세팅한다..
  372. //날자 입력 항목에 오늘 날자 세팅
  373. var curDate = getCurrentDate();
  374. model.setValue("/root/send/dayflag", "O");
  375. model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-2,"Y").getDateFormat());
  376. model.setValue("/root/send/todd", '99991231');
  377. button2.visible = true;
  378. btn_search.visible = true;
  379. model.setFocus("ipt_pid");
  380. if (checkOpener()){ //팝업화면으로 사용될 때
  381. var flag = opener.javascript.getParameter("openflag");
  382. if( flag == 'T' ){
  383. swt_outpatient.selectedIndex = 2;
  384. btn_outrgst.visible = false;
  385. btn_outupdt.visible = false;
  386. btn_outcncl.visible = false;
  387. var curDate = getCurrentDate();
  388. model.setValue("/root/send/fromdd", curDate);
  389. model.setValue("/root/send/todd", curDate);
  390. }
  391. }else{
  392. swt_outpatient.selectedIndex = 0;
  393. btn_outrgst.selected = true;
  394. btn_outupdt.selected = false;
  395. btn_outcncl.selected = false;
  396. }
  397. model.refresh();
  398. }
  399. function fSearch(){
  400. if( model.getValue("/root/main/popupendflag") == "ok" ){
  401. //인적사항에 변경이 있는지를 비교하기 위해서 tmp에 인적사항을 미리 저장해 놓는다.
  402. model.makeNode("/root/hidden/tmpnode");
  403. model.copyNode("/root/hidden/tmpnode", "/root/main/patinfo");
  404. //보험/감면/진료기록/신생하*산모내역 조회
  405. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  406. submit("TRPMC01401");
  407. //model.makeNode("/root/main/popupendflag");
  408. }
  409. }
  410. ]]>
  411. </script>
  412. </xhtml:head>
  413. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  414. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  415. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">외래등록조회</caption>
  416. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  417. </group>
  418. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  419. <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  420. <button id="btn_clear" accesskey="f9" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  421. <caption>초기화</caption>
  422. <script type="javascript" ev:event="DOMActivate">
  423. <![CDATA[
  424. fInitialize();
  425. ]]>
  426. </script>
  427. </button>
  428. </group>
  429. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  430. <group id="group3" style="left:0px; top:10px; width:1195px; height:75px; vertical-align:top; ">
  431. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:75px; "/>
  432. <line id="line3" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:65px; border-color:#ffe4bb; border-left-style:solid; "/>
  433. <caption id="caption12" class="search_name" visibility="hidden" style="left:17px; top:40px; width:86px; height:17px; ">진료과 :</caption>
  434. <select1 id="combo3" ref="/root/send/orddept" class="combo_search" visibility="hidden" appearance="minimal" style="left:92px; top:40px; width:142px; height:19px; ">
  435. <choices>
  436. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  437. <label ref="nm"/>
  438. <value ref="cd"/>
  439. </itemset>
  440. </choices>
  441. <script type="javascript" ev:event="xforms-value-changed">
  442. <![CDATA[
  443. combo5.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + combo3.value + "']";
  444. model.setValue("/root/send/orddr", "");
  445. model.refresh();
  446. ]]>
  447. </script>
  448. </select1>
  449. <caption id="caption13" class="search_name" visibility="hidden" style="left:255px; top:40px; width:86px; height:17px; ">진료의 :</caption>
  450. <caption id="caption14" class="search_name" visibility="hidden" style="left:664px; top:40px; width:86px; height:17px; ">예약구분 :</caption>
  451. <select1 id="combo4" ref="/root/send/rsrvflag" class="combo_search" visibility="hidden" appearance="minimal" style="left:752px; top:40px; width:90px; height:19px; ">
  452. <choices>
  453. <itemset nodeset="/root/init/comncdlist/P0341list/P0341">
  454. <label ref="cdnm"/>
  455. <value ref="cdid"/>
  456. </itemset>
  457. </choices>
  458. </select1>
  459. <select1 id="combo5" ref="/root/send/orddr" class="combo_search" visibility="hidden" appearance="minimal" style="left:330px; top:40px; width:70px; height:19px; ">
  460. <choices>
  461. <itemset nodeset="/root/init/orddrid/orddridlist">
  462. <label ref="nm"/>
  463. <value ref="cd"/>
  464. </itemset>
  465. </choices>
  466. <script type="javascript" ev:event="xforms-value-changed">
  467. <![CDATA[
  468. var orddeptcd = model.getValue("/root/send/orddept");
  469. if (orddeptcd == null || orddeptcd == "" || orddeptcd == " " || orddeptcd == "-")
  470. {
  471. messageBox("진료과 선택을 먼저 하십시요!","E999","");
  472. model.setValue("/root/send/orddr","");
  473. //cmb_orddrid.dispatch("xforms-value-changed");
  474. model.refresh();
  475. model.setFocus("cmb_orddept");
  476. return;
  477. }else{
  478. var specordyn = model.getValue("/root/init/orddrid/orddridlist[cd = '" + combo5.value + "']/sp");
  479. model.setValue("/root/send/specordyn", specordyn);
  480. model.refresh();
  481. }
  482. ]]>
  483. </script>
  484. </select1>
  485. <input id="input4" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:894px; top:8px; width:90px; height:19px; "/>
  486. <input id="input5" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:1004px; top:8px; width:90px; height:19px; "/>
  487. <button id="button1" class="icon_search" style="left:219px; top:9px; width:16px; height:16px; ">
  488. <caption/>
  489. <script type="javascript" ev:event="DOMActivate">
  490. <![CDATA[
  491. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  492. var popupendflag = model.getValue("/root/main/popupendflag");
  493. if (popupendflag == "ok")
  494. {
  495. //model.setValue("/root/send/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  496. var ptbs_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  497. var ptbs_hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  498. var ptbs_rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
  499. var ptbs_rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
  500. // if (ptbs_pid != null && ptbs_pid != "" && ptbs_pid != " " && ptbs_pid != "-")
  501. // {
  502. model.setValue("/root/send/pid",ptbs_pid);
  503. model.setValue("/root/send/hngnm",ptbs_hngnm);
  504. model.setValue("/root/send/rrgstno1",ptbs_rrgstno1);
  505. model.setValue("/root/send/rrgstno2",ptbs_rrgstno2);
  506. model.refresh();
  507. // }
  508. }
  509. // modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  510. // var strpid=model.getValue("/root/main/patinfo/patinfolist/pid");
  511. // model.setValue("/root/send/pid",strpid);
  512. // model.setValue("/root/hidden/source/pid",strpid);
  513. // ipt_hngnm.value=model.getValue("/root/main/patinfo/patinfolist/hngnm");
  514. // model.refresh();
  515. ]]>
  516. </script>
  517. </button>
  518. <input id="input6" ref="/root/send/pid" class="input_search" style="left:105px; top:8px; width:110px; height:19px; ">
  519. <script type="javascript" ev:event="onkeydown">
  520. <![CDATA[
  521. if(event.keyCode == "13") {
  522. model.removeNodeset("/root/main/patinforgst/patinforgstlist");
  523. model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
  524. model.removeNodeset("/root/main/patinfocncl/patinfocncllist");
  525. // grd_outrgst.rebuild();
  526. // grd_outcncl.rebuild();
  527. // grd_outupdtcncl.rebuild();
  528. vcheck_pid = input6.currentText;
  529. //환자번호 null체크
  530. if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  531. model.setValue("/root/send/pid","");
  532. model.setValue("/root/send/hngnm","");
  533. model.setValue("/root/send/rrgstno1","");
  534. model.setValue("/root/send/rrgstno2","");
  535. model.refresh();
  536. messageBox("환자등록번호가 입력되지","E007");
  537. return;
  538. }
  539. //환자번호 조건으로 인적정보 조회
  540. model.setValue("/root/source/srchcond", "1");
  541. model.setValue("/root/source/pid", input6.currentText);
  542. model.setValue("/root/send/pid", input6.currentText);
  543. //환자기본정보 node clear
  544. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  545. model.resetInstanceNode("/root/send/hngnm");
  546. model.resetInstanceNode("/root/send/rrgstno1");
  547. model.resetInstanceNode("/root/send/rrgstno2");
  548. //환자등록번호 체크
  549. if(submit("TRPMC02500")){
  550. var vcheck_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  551. if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  552. //조회내역 체크
  553. model.resetInstanceNode("/root/send/pid");
  554. messageBox("존재하지 않는 등록번호","E008");//E008=입니다
  555. fInitialize();
  556. return;
  557. }
  558. model.setValue("/root/send/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  559. model.setValue("/root/send/rrgstno1",model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  560. model.setValue("/root/send/rrgstno2",model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  561. //조회되는 항목들 clear
  562. btn_search.dispatch("DOMActivate");
  563. }
  564. else {
  565. messageBox("존재하지 않는 등록번호","E008");//E008=입니다
  566. fInitialize();
  567. model.setFocus("ipt_pid");
  568. model.refresh();
  569. return;
  570. }
  571. }
  572. ]]>
  573. </script>
  574. </input>
  575. <caption id="caption15" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">등록번호 :</caption>
  576. <caption id="caption16" class="search_name" visibility="hidden" style="left:420px; top:40px; width:86px; height:17px; ">선택진료 :</caption>
  577. <select1 id="combo6" ref="/root/send/specordyn" class="combo_search" disabled="true" visibility="hidden" appearance="minimal" style="left:508px; top:40px; width:144px; height:19px; ">
  578. <choices>
  579. <itemset nodeset="/root/init/comncdlist/P0344list/P0344">
  580. <label ref="cdnm"/>
  581. <value ref="cdid"/>
  582. </itemset>
  583. </choices>
  584. </select1>
  585. <select1 id="combo7" ref="/root/send/insukind" class="combo_search" visibility="hidden" appearance="minimal" style="left:988px; top:40px; width:106px; height:19px; ">
  586. <choices>
  587. <itemset nodeset="/root/init/comncdlist/P0008list/P0008">
  588. <label ref="cdnm"/>
  589. <value ref="cdid"/>
  590. </itemset>
  591. </choices>
  592. </select1>
  593. <caption id="caption17" class="search_name" visibility="hidden" style="left:900px; top:40px; width:86px; height:17px; ">보험유형 :</caption>
  594. <select1 id="radio3" ref="/root/send/dayflag" class="radio_search" appearance="full" overflow="visible" style="left:754px; top:10px; width:69px; height:16px; border-style:none; ">
  595. <choices>
  596. <item>
  597. <label>진료일자</label>
  598. <value>O</value>
  599. </item>
  600. </choices>
  601. </select1>
  602. <select1 id="radio4" ref="/root/send/dayflag" class="s" appearance="full" overflow="visible" style="left:823px; top:10px; width:70px; height:16px; border-style:none; ">
  603. <choices>
  604. <item>
  605. <label>접수일자</label>
  606. <value>A</value>
  607. </item>
  608. </choices>
  609. </select1>
  610. <caption id="caption18" class="search_name" style="left:664px; top:10px; width:86px; height:17px; ">일자구분 :</caption>
  611. <input id="input7" ref="/root/send/hngnm" class="input_search" disabled="true" style="left:316px; top:8px; width:84px; height:19px; "/>
  612. <caption id="caption19" class="search_name" style="left:255px; top:8px; width:61px; height:17px; ">이름 :</caption>
  613. <caption id="caption20" class="search_name" style="left:420px; top:8px; width:86px; height:17px; ">주민번호 :</caption>
  614. <input id="input8" ref="/root/send/rrgstno1" class="input_search" disabled="true" maxlength="6" format="999999" style="left:508px; top:8px; width:70px; height:19px; "/>
  615. <input id="input9" ref="/root/send/rrgstno2" class="input_search" disabled="true" maxlength="7" format="9999999" style="left:582px; top:8px; width:70px; height:19px; "/>
  616. <button id="button2" class="btn1_letter2" style="left:1122px; top:25px; width:56px; height:22px; ">
  617. <caption>조회</caption>
  618. <script type="javascript" ev:event="DOMActivate">
  619. <![CDATA[
  620. var flag = model.getValue("/root/tmp/openflag");
  621. var pid = model.getValue("/root/send/pid");
  622. var hngnm = model.getValue("/root/send/hngnm");
  623. var rrgstno1 = model.getValue("/root/send/rrgstno1");
  624. var rrgstno2 = model.getValue("/root/send/rrgstno2");
  625. var fromdd = model.getValue("/root/send/fromdd");
  626. var todd = model.getValue("/root/send/todd");
  627. /*
  628. //전화예약에서 조회시 환자정보가 없을경우
  629. if(flag == 'T'){
  630. if( pid == '' || pid == null || pid == '-' || pid == ' ' ){
  631. if( hngnm == '' || hngnm == null || hngnm == '-' || hngnm == ' ' ){
  632. if( rrgstno1 == '' || rrgstno1 == null || rrgstno1 == '-' || rrgstno1 == ' ' ){
  633. if( rrgstno2 == '' || rrgstno2 == null || rrgstno2 == '-' || rrgstno2 == ' ' ){
  634. if(getDateInterval(fromdd, todd) > 7){
  635. if(messageBox("일주일 이상의 이력을 조회 하시면 시스템에 과부하가 발생 할 수도 있습니다. 계속 하시겠습니까?", "Q999", "") != 6 ){
  636. return;
  637. }
  638. }
  639. }
  640. }
  641. }
  642. }
  643. }
  644. */
  645. if( fCheckSearchValues()){
  646. if (swt_outpatient.selectedIndex == 0 ) {
  647. model.removeNodeset("/root/main/patinforgst/patinforgstlist");
  648. model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
  649. submit("TRPMO00603");
  650. swt_outpatient.selectedIndex = 0;
  651. btn_outrgst.selected = true;
  652. btn_outupdt.selected = false;
  653. btn_outcncl.selected = false;
  654. var histstat = model.getValue("/root/main/patinforgst/patinforgstlist/histstat");
  655. mgrd_outrgst.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  656. setRowStyle("mgrd_outrgst", "5","Z","histstat","equal"); //row의 색상을 변경한다.
  657. mgrd_outrgst.rebuild();
  658. model.refresh();
  659. }else if (swt_outpatient.selectedIndex == 2 ) {
  660. model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
  661. submit("TRPMO00605");
  662. swt_outpatient.selectedIndex = 2;
  663. btn_outrgst.selected = false;
  664. btn_outupdt.selected = true;
  665. btn_outcncl.selected = false;
  666. var histstat = model.getValue("/root/main/patinfoupdt/patinfoupdtlist/histstat");
  667. grd_outupdtcncl.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  668. setRowStyle("grd_outupdtcncl", "3","T","histstat","equal"); // 병실정보row의 색상을 변경한다.
  669. setRowStyle("grd_outupdtcncl", "3","R","histstat","equal");
  670. setRowStyle("grd_outupdtcncl", "3","X","histstat","equal");
  671. grd_outupdtcncl.rebuild();
  672. model.refresh();
  673. }else if (swt_outpatient.selectedIndex == 1 ) {
  674. model.removeNodeset("/root/main/patinfocncl/patinfocncllist");
  675. submit("TRPMO00604");
  676. swt_outpatient.selectedIndex = 1;
  677. btn_outrgst.selected = false;
  678. btn_outupdt.selected = false;
  679. btn_outcncl.selected = true;
  680. model.refresh();
  681. }
  682. }
  683. ]]>
  684. </script>
  685. </button>
  686. <caption id="caption11" style="left:989px; top:8px; width:15px; height:17px; font-weight:bold; ">~</caption>
  687. </group>
  688. <group id="group5" style="left:0px; top:10px; width:1195px; height:75px; vertical-align:top; ">
  689. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:75px; "/>
  690. <line id="line13" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:65px; border-color:#ffe4bb; border-left-style:solid; "/>
  691. <caption id="caption83" style="left:989px; top:8px; width:15px; height:17px; font-weight:bold; ">~</caption>
  692. <caption id="caption1" class="search_name" style="left:17px; top:40px; width:86px; height:17px; ">진료과 :</caption>
  693. <select1 id="cmb_orddept" ref="/root/send/orddept" class="combo_search" appearance="minimal" style="left:92px; top:40px; width:142px; height:19px; ">
  694. <choices>
  695. <itemset nodeset="/root/init_pam/init/orddeptcd">
  696. <label ref="nm"/>
  697. <value ref="cd"/>
  698. </itemset>
  699. </choices>
  700. <script type="javascript" ev:event="xforms-value-changed">
  701. <![CDATA[
  702. cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init_pam/init/orddrid[dp = '" + cmb_orddept.value + "']";
  703. model.setValue("/root/send/orddr", "");
  704. model.refresh();
  705. ]]>
  706. </script>
  707. </select1>
  708. <caption id="caption3" class="search_name" style="left:255px; top:40px; width:86px; height:17px; ">진료의 :</caption>
  709. <caption id="caption5" class="search_name" style="left:664px; top:40px; width:86px; height:17px; ">예약구분 :</caption>
  710. <select1 id="cmb_rsrvflag" ref="/root/send/rsrvflag" class="combo_search" appearance="minimal" style="left:752px; top:40px; width:136px; height:19px; ">
  711. <choices>
  712. <itemset nodeset="/root/init/comncdlist/P0341list/P0341">
  713. <label ref="cdnm"/>
  714. <value ref="cdid"/>
  715. </itemset>
  716. </choices>
  717. </select1>
  718. <select1 id="cmb_orddr" ref="/root/send/orddr" class="combo_search" appearance="minimal" style="left:330px; top:40px; width:70px; height:19px; ">
  719. <choices>
  720. <itemset nodeset="/root/init_pam/init/orddrid">
  721. <label ref="nm"/>
  722. <value ref="cd"/>
  723. </itemset>
  724. </choices>
  725. <script type="javascript" ev:event="xforms-value-changed">
  726. <![CDATA[
  727. var orddeptcd = model.getValue("/root/send/orddept");
  728. if (orddeptcd == null || orddeptcd == "" || orddeptcd == " " || orddeptcd == "-")
  729. {
  730. messageBox("진료과 선택을 먼저 하십시요!","E999","");
  731. model.setValue("/root/send/orddr","");
  732. //cmb_orddrid.dispatch("xforms-value-changed");
  733. model.refresh();
  734. model.setFocus("cmb_orddept");
  735. return;
  736. }else{
  737. var specordyn = model.getValue("/root/init/orddrid/orddridlist[cd = '" + cmb_orddr.value + "']/sp");
  738. model.setValue("/root/send/specordyn", specordyn);
  739. model.refresh();
  740. }
  741. ]]>
  742. </script>
  743. </select1>
  744. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:894px; top:8px; width:90px; height:19px; "/>
  745. <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:1004px; top:8px; width:90px; height:19px; "/>
  746. <button id="btn_ptbs_search" class="icon_search" style="left:219px; top:9px; width:16px; height:16px; ">
  747. <caption/>
  748. <script type="javascript" ev:event="DOMActivate">
  749. <![CDATA[
  750. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  751. var popupendflag = model.getValue("/root/main/popupendflag");
  752. if (popupendflag == "ok")
  753. {
  754. //model.setValue("/root/send/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  755. var ptbs_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  756. var ptbs_hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  757. var ptbs_rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
  758. var ptbs_rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
  759. // if (ptbs_pid != null && ptbs_pid != "" && ptbs_pid != " " && ptbs_pid != "-")
  760. // {
  761. model.setValue("/root/send/pid",ptbs_pid);
  762. model.setValue("/root/send/hngnm",ptbs_hngnm);
  763. model.setValue("/root/send/rrgstno1",ptbs_rrgstno1);
  764. model.setValue("/root/send/rrgstno2",ptbs_rrgstno2);
  765. // 자동조회
  766. btn_search.dispatch("DOMActivate");
  767. model.refresh();
  768. // }
  769. }
  770. // modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  771. // var strpid=model.getValue("/root/main/patinfo/patinfolist/pid");
  772. // model.setValue("/root/send/pid",strpid);
  773. // model.setValue("/root/hidden/source/pid",strpid);
  774. // ipt_hngnm.value=model.getValue("/root/main/patinfo/patinfolist/hngnm");
  775. // model.refresh();
  776. ]]>
  777. </script>
  778. </button>
  779. <input id="ipt_pid" ref="/root/send/pid" class="input_search" imemode="alpha" style="left:105px; top:8px; width:110px; height:19px; ">
  780. <script type="javascript" ev:event="onkeydown">
  781. <![CDATA[
  782. if(event.keyCode == "13") {
  783. model.removeNodeset("/root/main/patinforgst/patinforgstlist");
  784. model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
  785. model.removeNodeset("/root/main/patinfocncl/patinfocncllist");
  786. // grd_outrgst.rebuild();
  787. // grd_outcncl.rebuild();
  788. // grd_outupdtcncl.rebuild();
  789. // model.refresh();
  790. vcheck_pid = ipt_pid.currentText;
  791. //환자번호 null체크
  792. if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  793. model.setValue("/root/send/pid","");
  794. model.setValue("/root/send/hngnm","");
  795. model.setValue("/root/send/rrgstno1","");
  796. model.setValue("/root/send/rrgstno2","");
  797. model.refresh();
  798. messageBox("환자등록번호가 입력되지","E007");
  799. return;
  800. }
  801. //환자번호 조건으로 인적정보 조회
  802. model.setValue("/root/source/srchcond", "1");
  803. model.setValue("/root/source/pid", vcheck_pid);
  804. model.setValue("/root/send/pid", vcheck_pid);
  805. //환자기본정보 node clear
  806. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  807. model.resetInstanceNode("/root/send/hngnm");
  808. model.resetInstanceNode("/root/send/rrgstno1");
  809. model.resetInstanceNode("/root/send/rrgstno2");
  810. //환자등록번호 체크
  811. if(submit("TRPMC02500")){
  812. var vcheck_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  813. if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  814. //조회내역 체크
  815. model.resetInstanceNode("/root/send/pid");
  816. messageBox("존재하지 않는 등록번호","E008");//E008=입니다
  817. fInitialize();
  818. return;
  819. }
  820. model.setValue("/root/send/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  821. model.setValue("/root/send/rrgstno1",model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  822. model.setValue("/root/send/rrgstno2",model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  823. //조회되는 항목들 clear
  824. btn_search.dispatch("DOMActivate");
  825. }
  826. else {
  827. messageBox("존재하지 않는 등록번호","E008");//E008=입니다
  828. fInitialize();
  829. model.setFocus("ipt_pid");
  830. model.refresh();
  831. return;
  832. }
  833. }
  834. ]]>
  835. </script>
  836. </input>
  837. <caption id="caption21" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">등록번호 :</caption>
  838. <caption id="caption7" class="search_name" style="left:420px; top:40px; width:86px; height:17px; ">선택진료 :</caption>
  839. <select1 id="combo1" ref="/root/send/specordyn" class="combo_search" disabled="true" appearance="minimal" style="left:508px; top:40px; width:144px; height:19px; ">
  840. <choices>
  841. <itemset nodeset="/root/init/comncdlist/P0344list/P0344">
  842. <label ref="cdnm"/>
  843. <value ref="cdid"/>
  844. </itemset>
  845. </choices>
  846. </select1>
  847. <select1 id="combo2" ref="/root/send/insukind" class="combo_search" appearance="minimal" style="left:988px; top:40px; width:106px; height:19px; ">
  848. <choices>
  849. <itemset nodeset="/root/init/comncdlist/P0008list/P0008">
  850. <label ref="cdnm"/>
  851. <value ref="cdid"/>
  852. </itemset>
  853. </choices>
  854. </select1>
  855. <caption id="caption8" class="search_name" style="left:900px; top:40px; width:86px; height:17px; ">보험유형 :</caption>
  856. <select1 id="radio1" ref="/root/send/dayflag" class="radio_search" appearance="full" overflow="visible" style="left:754px; top:10px; width:69px; height:16px; border-style:none; ">
  857. <choices>
  858. <item>
  859. <label>진료일자</label>
  860. <value>O</value>
  861. </item>
  862. </choices>
  863. </select1>
  864. <select1 id="radio2" ref="/root/send/dayflag" class="s" appearance="full" overflow="visible" style="left:823px; top:10px; width:70px; height:16px; border-style:none; ">
  865. <choices>
  866. <item>
  867. <label>접수일자</label>
  868. <value>A</value>
  869. </item>
  870. </choices>
  871. </select1>
  872. <caption id="caption9" class="search_name" style="left:664px; top:10px; width:86px; height:17px; ">일자구분 :</caption>
  873. <input id="input1" ref="/root/send/hngnm" class="input_search" disabled="true" style="left:316px; top:8px; width:84px; height:19px; "/>
  874. <caption id="caption2" class="search_name" style="left:255px; top:8px; width:61px; height:17px; ">이름 :</caption>
  875. <caption id="caption10" class="search_name" style="left:420px; top:8px; width:86px; height:17px; ">주민번호 :</caption>
  876. <input id="input2" ref="/root/send/rrgstno1" class="input_search" disabled="true" maxlength="6" format="999999" style="left:508px; top:8px; width:70px; height:19px; "/>
  877. <input id="input3" ref="/root/send/rrgstno2" class="input_search" disabled="true" maxlength="7" format="9999999" style="left:582px; top:8px; width:70px; height:19px; "/>
  878. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:25px; width:56px; height:22px; ">
  879. <caption>조회</caption>
  880. <script type="javascript" ev:event="DOMActivate">
  881. <![CDATA[
  882. var flag = model.getValue("/root/tmp/openflag");
  883. var pid = model.getValue("/root/send/pid");
  884. var hngnm = model.getValue("/root/send/hngnm");
  885. var rrgstno1 = model.getValue("/root/send/rrgstno1");
  886. var rrgstno2 = model.getValue("/root/send/rrgstno2");
  887. var fromdd = model.getValue("/root/send/fromdd");
  888. var todd = model.getValue("/root/send/todd");
  889. //환자번호 없을 경우는 조회 블럭킹 처리(2018/02/08)
  890. if(isNull(model.getValue("/root/send/pid"))){
  891. messageBox("조회시 환자번호는 필수입니다.", "E999", "");
  892. return;
  893. }
  894. //환자번호 없을 경우는 조회 블럭킹 처리(2018/02/08)
  895. //전화예약에서 조회시 환자정보가 없을경우
  896. if(flag == 'T'){
  897. if( pid == '' || pid == null || pid == '-' || pid == ' ' ){
  898. if( hngnm == '' || hngnm == null || hngnm == '-' || hngnm == ' ' ){
  899. if( rrgstno1 == '' || rrgstno1 == null || rrgstno1 == '-' || rrgstno1 == ' ' ){
  900. if( rrgstno2 == '' || rrgstno2 == null || rrgstno2 == '-' || rrgstno2 == ' ' ){
  901. if(getDateInterval(fromdd, todd) > 7){
  902. if(messageBox("일주일 이상의 이력을 조회 하시면 시스템에 과부하가 발생 할 수도 있습니다. 계속 하시겠습니까?", "Q999", "") != 6 ){
  903. return;
  904. }
  905. }
  906. }
  907. }
  908. }
  909. }
  910. }
  911. if( fCheckSearchValues()){
  912. // model.removeNodeset("/root/main/patinforgst/patinforgstlist");
  913. // model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
  914. // model.removeNodeset("/root/main/patinfocncl/patinfocncllist");
  915. if (swt_outpatient.selectedIndex == 0 ) {
  916. model.removeNodeset("/root/main/patinforgst/patinforgstlist");
  917. model.removeNodeset("/root/main/patinforgst/patinforgstlist");
  918. submit("TRPMO00603");
  919. swt_outpatient.selectedIndex = 0;
  920. btn_outrgst.selected = true;
  921. btn_outupdt.selected = false;
  922. btn_outcncl.selected = false;
  923. var histstat = model.getValue("/root/main/patinforgst/patinforgstlist/histstat");
  924. mgrd_outrgst.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  925. setRowStyle("mgrd_outrgst", "5","Z","histstat","equal"); //row의 색상을 변경한다.
  926. mgrd_outrgst.rebuild();
  927. // model.setValue("/root/tmp/flag", 'Y');
  928. model.refresh();
  929. }else if (swt_outpatient.selectedIndex == 2 ) {
  930. model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
  931. submit("TRPMO00605");
  932. swt_outpatient.selectedIndex = 2;
  933. btn_outrgst.selected = false;
  934. btn_outupdt.selected = true;
  935. btn_outcncl.selected = false;
  936. var histstat = model.getValue("/root/main/patinfoupdt/patinfoupdtlist/histstat");
  937. grd_outupdtcncl.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  938. setRowStyle("grd_outupdtcncl", "3","T","histstat","equal"); //row의 색상을 변경한다.
  939. setRowStyle("grd_outupdtcncl", "3","R","histstat","equal");
  940. setRowStyle("grd_outupdtcncl", "3","X","histstat","equal");
  941. grd_outupdtcncl.rebuild();
  942. }else if (swt_outpatient.selectedIndex == 1 ) {
  943. model.removeNodeset("/root/main/patinfocncl/patinfocncllist");
  944. submit("TRPMO00604");
  945. swt_outpatient.selectedIndex = 1;
  946. btn_outrgst.selected = false;
  947. btn_outupdt.selected = false;
  948. btn_outcncl.selected = true;
  949. model.refresh();
  950. }
  951. }
  952. ]]>
  953. </script>
  954. </button>
  955. </group>
  956. <group id="group6" style="left:0px; top:85px; width:1195px; height:655px; ">
  957. <switch id="swt_outpatient" style="left:0px; top:25px; width:1194px; height:625px; border-color:#c7a3cf; border-style:solid; ">
  958. <case id="case_outrgst">
  959. <line id="line17" class="line_1" style="x1:5px; y1:25px; x2:1187px; y2:25px; "/>
  960. <button id="btn_rgstexcel" class="btn2_letter4" style="left:1123px; top:3px; width:64px; height:19px; ">
  961. <caption>엑셀저장</caption>
  962. <script type="javascript" ev:event="DOMActivate">
  963. <![CDATA[
  964. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  965. if (fileName != "")
  966. {
  967. mgrd_outrgst.saveExcel(fileName, "SheetName", true, true, "", "");
  968. }
  969. window.exec(fileName);
  970. ]]>
  971. </script>
  972. </button>
  973. <datagrid id="mgrd_outrgst" nodeset="/root/main/patinforgst/patinforgstlist" class="datagrid2" caption="진료일시^등록번호^환자명^진료여부^진료과코드^센터^진료과^하위부서^진료의^진료의ID^보험유형^보조유형^초/재진^예약구분^진찰료&#xA;산정여부^기타진료구분^계정감면^진찰료수납^등록자^수납자^접수상태^수납일시^수정자^수정일시^최초등록일시" colsep="^" colwidth="110, 70, 70, 36, 120, 100, 120, 100, 70, 70, 70, 60, 53, 56, 60, 55, 100, 47, 56, 56, 54, 120, 70, 129, 129" dataheight="23" defaultrows="2" ellipsis="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:30px; width:1182px; height:577px; text-align:center; ">
  974. <col ref="orddt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  975. <col ref="pid" style="text-align:left; "/>
  976. <col ref="pathngnm"/>
  977. <col ref="ordflag"/>
  978. <col disabled="true" ref="orddeptcd" type="combo" visibility="hidden">
  979. <choices>
  980. <itemset nodeset="/root/init_pam/init/orddeptcd">
  981. <label ref="nm"/>
  982. <value ref="cd"/>
  983. </itemset>
  984. </choices>
  985. </col>
  986. <col ref="centcd"/>
  987. <col ref="orddeptnm" style="text-align:left; "/>
  988. <col ref="subdeptcd"/>
  989. <col ref="orddrnm" style="text-align:left; "/>
  990. <col disabled="true" ref="orddrid" type="combo" visibility="hidden">
  991. <choices>
  992. <itemset nodeset="/root/init_pam/init/orddrid">
  993. <label ref="nm"/>
  994. <value ref="cd"/>
  995. </itemset>
  996. </choices>
  997. </col>
  998. <col disabled="true" ref="insukindnm" type="combo" style="text-align:center; ">
  999. <choices>
  1000. <itemset nodeset="/root/init/comncdlist/P0008list/P0008">
  1001. <label ref="cdnm"/>
  1002. <value ref="cdid"/>
  1003. </itemset>
  1004. </choices>
  1005. </col>
  1006. <col disabled="true" ref="suppkindnm" type="combo" style="text-align:center; ">
  1007. <choices>
  1008. <itemset nodeset="/root/init/comncdlist/P0010list/P0010">
  1009. <label ref="cdnm"/>
  1010. <value ref="cdid"/>
  1011. </itemset>
  1012. </choices>
  1013. </col>
  1014. <col disabled="true" ref="fsexamflagnm" type="combo" style="text-align:center; ">
  1015. <choices>
  1016. <itemset nodeset="/root/init/comncdlist/P0021list/P0021">
  1017. <label ref="cdnm"/>
  1018. <value ref="cdid"/>
  1019. </itemset>
  1020. </choices>
  1021. </col>
  1022. <col disabled="true" ref="rsrvflagnm" type="combo">
  1023. <choices>
  1024. <itemset nodeset="/root/init/comncdlist/P0341list/P0341">
  1025. <label ref="cdnm"/>
  1026. <value ref="cdid"/>
  1027. </itemset>
  1028. </choices>
  1029. </col>
  1030. <col ref="medamtestmyn"/>
  1031. <col disabled="true" ref="etcordflagnm" type="combo">
  1032. <choices>
  1033. <itemset nodeset="/root/init/comncdlist/P0022list/P0022">
  1034. <label ref="cdnm"/>
  1035. <value ref="cdid"/>
  1036. </itemset>
  1037. </choices>
  1038. </col>
  1039. <col disabled="true" ref="disccdnm" type="combo" style="left:885px; top:23px; width:80px; height:23px; ">
  1040. <choices>
  1041. <itemset nodeset="/root/init_pam/init/disccd">
  1042. <label ref="nm"/>
  1043. <value ref="cd"/>
  1044. </itemset>
  1045. </choices>
  1046. </col>
  1047. <col ref="rcptyn" style="text-align:center; "/>
  1048. <col ref="fstrgstrnm"/>
  1049. <col ref="rcptrnm"/>
  1050. <col disabled="true" ref="histstat" type="combo" visibility="hidden">
  1051. <choices>
  1052. <itemset nodeset="/root/init/comncdlist/P0029list/P0029">
  1053. <label ref="cdnm"/>
  1054. <value ref="cdid"/>
  1055. </itemset>
  1056. </choices>
  1057. </col>
  1058. <col ref="rcptdd" format="yyyy-mm-dd hh:mm:ss"/>
  1059. <col ref="lastupdtrid"/>
  1060. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  1061. <col ref="fstrgstdt" visibility="visible" format="yyyy-mm-dd hh:nn:ss"/>
  1062. <script type="javascript" ev:event="ondblclick">
  1063. <![CDATA[
  1064. var row = mgrd_outrgst.row;
  1065. if( isDataCell() && row > 0 ){
  1066. var pid = model.getValue("/root/send/pid");
  1067. var hngnm = model.getValue("/root/send/hngnm");
  1068. var rrgstno1 = model.getValue("/root/send/rrgstno1");
  1069. var rrgstno2 = model.getValue("/root/send/rrgstno2");
  1070. var dayflag = model.getValue("/root/send/dayflag");
  1071. var fromdd = model.getValue("/root/send/fromdd");
  1072. var todd = model.getValue("/root/send/todd");
  1073. var orddeptcd = model.getValue("/root/send/orddept");
  1074. var orddrid = model.getValue("/root/send/orddr");
  1075. var specordyn = model.getValue("/root/send/specordyn");
  1076. var insukind = model.getValue("/root/send/insukind");
  1077. var rsrvflag = model.getValue("/root/send/rsrvflag");
  1078. var fstacptdt = model.getValue("/root/send/fstacptdt");
  1079. model.resetInstanceNode("/root/send");
  1080. model.setValue("/root/send/pid", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/pid"));
  1081. model.setValue("/root/send/hngnm", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/pathngnm"));
  1082. model.setValue("/root/send/rrgstno1", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/rrgstno1"));
  1083. model.setValue("/root/send/rrgstno2", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/rrgstno2"));
  1084. model.setValue("/root/send/orddept", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/orddeptcd"));
  1085. model.setValue("/root/send/orddr", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/orddrid"));
  1086. model.setValue("/root/send/fstacptdt", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/fstacptdt"));
  1087. model.setValue("/root/send/fstrgstdt", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/fstrgstdt2"));
  1088. submit("TRPMO00605");
  1089. swt_outpatient.selectedIndex = 2;
  1090. btn_outrgst.selected = false;
  1091. btn_outupdt.selected = true;
  1092. btn_outcncl.selected = false;
  1093. model.setValue("/root/tmp/flag", 'Y');
  1094. var histstat = model.getValue("/root/main/patinfoupdt/patinfoupdtlist/histstat");
  1095. grd_outupdtcncl.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  1096. setRowStyle("grd_outupdtcncl", "1","T","histstat","equal"); // 병실정보row의 색상을 변경한다.
  1097. setRowStyle("grd_outupdtcncl", "1","R","histstat","equal");
  1098. grd_outupdtcncl.rebuild();
  1099. model.resetInstanceNode("/root/send");
  1100. model.setValue("/root/send/pid", pid);
  1101. model.setValue("/root/send/hngnm", hngnm);
  1102. model.setValue("/root/send/rrgstno1", rrgstno1);
  1103. model.setValue("/root/send/rrgstno2", rrgstno2);
  1104. model.setValue("/root/send/dayflag", dayflag);
  1105. model.setValue("/root/send/fromdd", fromdd);
  1106. model.setValue("/root/send/todd", todd);
  1107. model.setValue("/root/send/orddept", orddeptcd);
  1108. model.setValue("/root/send/orddr", orddrid);
  1109. model.setValue("/root/send/specordyn", specordyn);
  1110. model.setValue("/root/send/rsrvflag", rsrvflag);
  1111. model.setValue("/root/send/insukind", insukind);
  1112. // model.setValue("/root/send/fstacptdt", fstacptdt);
  1113. model.refresh();
  1114. }
  1115. button2.visible = false;
  1116. btn_search.visible = false;
  1117. ]]>
  1118. </script>
  1119. </datagrid>
  1120. </case>
  1121. <case id="case_outcncl">
  1122. <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:1187px; y2:25px; "/>
  1123. <datagrid id="grd_outcncl" nodeset="/root/main/patinfocncl/patinfocncllist" class="datagrid2" caption="진료일시^등록번호^성명^진료과코드^진료과^진료의^진료의ID^보험유형^유형보조^초재진^예약구분^기타진료구분^계정감면^진찰료수납^취소사유^최종수정자^최종수정일시^접수상태" colsep="^" colwidth="110, 72, 80, 120, 120, 70, 70, 70, 60, 60, 77, 54, 89, 44, 150, 70, 120, 67" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:30px; width:1182px; height:577px; ">
  1124. <col ref="orddt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  1125. <col ref="pid"/>
  1126. <col ref="pathngnm"/>
  1127. <col disabled="true" ref="orddeptcd" type="combo" visibility="hidden">
  1128. <choices>
  1129. <itemset nodeset="/root/init_pam/init/orddeptcd">
  1130. <label ref="nm"/>
  1131. <value ref="cd"/>
  1132. </itemset>
  1133. </choices>
  1134. </col>
  1135. <col ref="orddeptnm" style="text-align:center; "/>
  1136. <col ref="orddrnm" style="text-align:center; "/>
  1137. <col disabled="true" ref="orddrid" type="combo" visibility="hidden">
  1138. <choices>
  1139. <itemset nodeset="/root/init_pam/init/orddrid">
  1140. <label ref="nm"/>
  1141. <value ref="cd"/>
  1142. </itemset>
  1143. </choices>
  1144. </col>
  1145. <col disabled="true" ref="insukindnm" type="combo" style="text-align:center; ">
  1146. <choices>
  1147. <itemset nodeset="/root/init/comncdlist/P0008list/P0008">
  1148. <label ref="cdnm"/>
  1149. <value ref="cdid"/>
  1150. </itemset>
  1151. </choices>
  1152. </col>
  1153. <col disabled="true" ref="suppkindnm" type="combo" style="text-align:center; ">
  1154. <choices>
  1155. <itemset nodeset="/root/init/comncdlist/P0010list/P0010">
  1156. <label ref="cdnm"/>
  1157. <value ref="cdid"/>
  1158. </itemset>
  1159. </choices>
  1160. </col>
  1161. <col disabled="true" ref="fsexamflagnm" type="combo" style="text-align:center; ">
  1162. <choices>
  1163. <itemset nodeset="/root/init/comncdlist/P0021list/P0021">
  1164. <label ref="cdnm"/>
  1165. <value ref="cdid"/>
  1166. </itemset>
  1167. </choices>
  1168. </col>
  1169. <col disabled="true" ref="rsrvflagnm" type="combo" style="text-align:center; ">
  1170. <choices>
  1171. <itemset nodeset="/root/init/comncdlist/P0341list/P0341">
  1172. <label ref="cdnm"/>
  1173. <value ref="cdid"/>
  1174. </itemset>
  1175. </choices>
  1176. </col>
  1177. <col disabled="true" ref="etcordflagnm" type="combo" style="text-align:center; ">
  1178. <choices>
  1179. <itemset nodeset="/root/init/comncdlist/P0022list/P0022">
  1180. <label ref="cdnm"/>
  1181. <value ref="cdid"/>
  1182. </itemset>
  1183. </choices>
  1184. </col>
  1185. <col disabled="true" ref="disccdnm" type="combo" style="text-align:center; ">
  1186. <choices>
  1187. <itemset nodeset="/root/init_pam/init/disccd">
  1188. <label ref="nm"/>
  1189. <value ref="cd"/>
  1190. </itemset>
  1191. </choices>
  1192. </col>
  1193. <col ref="rcptyn" style="text-align:center; "/>
  1194. <col ref="updtcnclresn"/>
  1195. <col ref="lastupdtrnm"/>
  1196. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1197. <col disabled="true" ref="histstat" type="combo" style="text-align:center; ">
  1198. <choices>
  1199. <itemset nodeset="/root/init/comncdlist/P0029list/P0029">
  1200. <label ref="cdnm"/>
  1201. <value ref="cdid"/>
  1202. </itemset>
  1203. </choices>
  1204. </col>
  1205. </datagrid>
  1206. <button id="btn_cnclexcel" class="btn2_letter4" style="left:1123px; top:3px; width:64px; height:19px; ">
  1207. <caption>엑셀저장</caption>
  1208. <script type="javascript" ev:event="DOMActivate">
  1209. <![CDATA[
  1210. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1211. if (fileName != "")
  1212. {
  1213. grd_outcncl.saveExcel(fileName, "SheetName", true, true, "", "");
  1214. }
  1215. window.exec(fileName);
  1216. ]]>
  1217. </script>
  1218. </button>
  1219. </case>
  1220. <case id="case_outupdt" selected="true">
  1221. <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:1187px; y2:25px; "/>
  1222. <datagrid id="grd_outupdtcncl" nodeset="/root/main/patinfoupdt/patinfoupdtlist" class="datagrid1" caption="변경구분^등록번호^성명^보험유형^유형보조^초재진^진찰료산정여부^센터코드^센터^진료과코드^진료과^진료의ID^진료의^진료일자^진료시간^최초수정과^최초입력자^최초입력일시^최종수정과^최종수정자^최종수정일시^변경사유^histstat^참고사항^전화예약 참고사항^최종수정일시" colsep="^" colwidth="70, 70, 60, 80, 100, 60, 100, 70, 120, 70, 120, 70, 70, 80, 70, 100, 100, 100, 115, 100, 120, 172, 100, 251, 251" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:30px; width:1182px; height:577px; text-align:center; ">
  1223. <col disabled="true" ref="histstat" type="combo">
  1224. <choices>
  1225. <itemset nodeset="/root/init/comncdlist/P0029list/P0029">
  1226. <label ref="cdnm"/>
  1227. <value ref="cdid"/>
  1228. </itemset>
  1229. </choices>
  1230. </col>
  1231. <col ref="pid"/>
  1232. <col ref="pathngnm"/>
  1233. <col disabled="true" ref="insukindnm" type="combo">
  1234. <choices>
  1235. <itemset nodeset="/root/init/comncdlist/P0008list/P0008">
  1236. <label ref="cdnm"/>
  1237. <value ref="cdid"/>
  1238. </itemset>
  1239. </choices>
  1240. </col>
  1241. <col disabled="true" ref="suppkindnm" type="combo">
  1242. <choices>
  1243. <itemset nodeset="/root/init/comncdlist/P0010list/P0010">
  1244. <label ref="cdnm"/>
  1245. <value ref="cdid"/>
  1246. </itemset>
  1247. </choices>
  1248. </col>
  1249. <col disabled="true" ref="fsexamflagnm" type="combo" visibility="hidden">
  1250. <choices>
  1251. <itemset nodeset="/root/init/comncdlist/P0021list/P0021">
  1252. <label ref="cdnm"/>
  1253. <value ref="cdid"/>
  1254. </itemset>
  1255. </choices>
  1256. </col>
  1257. <col ref="medamtestmyn"/>
  1258. <col ref="centcd" visibility="hidden"/>
  1259. <col ref="centnm" style="text-align:center; "/>
  1260. <col disabled="true" ref="orddeptcd" type="combo" visibility="hidden">
  1261. <choices>
  1262. <itemset nodeset="/root/init_pam/init/orddeptcd">
  1263. <label ref="nm"/>
  1264. <value ref="cd"/>
  1265. </itemset>
  1266. </choices>
  1267. </col>
  1268. <col ref="orddeptnm" style="text-align:center; "/>
  1269. <col disabled="true" ref="orddrid" type="combo" visibility="hidden">
  1270. <choices>
  1271. <itemset nodeset="/root/init_pam/init/orddrid">
  1272. <label ref="nm"/>
  1273. <value ref="cd"/>
  1274. </itemset>
  1275. </choices>
  1276. </col>
  1277. <col ref="orddrnm" style="text-align:center; "/>
  1278. <col ref="orddd" format="yyyy-mm-dd"/>
  1279. <col ref="ordtm" format="hh:nn"/>
  1280. <col ref="fstrgstdeptnm" visibility="hidden"/>
  1281. <col ref="fstrgstrnm"/>
  1282. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
  1283. <col ref="lastupdtdeptnm"/>
  1284. <col ref="lastupdtrnm" style="left:1112px; top:43px; width:75px; height:23px; "/>
  1285. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
  1286. <col ref="updtcnclresn"/>
  1287. <col ref="histstat" visibility="hidden"/>
  1288. <col ref="remfact"/>
  1289. <col ref="telrsrvrem"/>
  1290. </datagrid>
  1291. <button id="btn_updtexcel" class="btn2_letter4" style="left:1123px; top:3px; width:64px; height:19px; ">
  1292. <caption>엑셀저장</caption>
  1293. <script type="javascript" ev:event="DOMActivate">
  1294. <![CDATA[
  1295. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1296. if (fileName != "")
  1297. {
  1298. grd_outupdtcncl.saveExcel(fileName, "SheetName", true, true, "", "");
  1299. }
  1300. window.exec(fileName);
  1301. ]]>
  1302. </script>
  1303. </button>
  1304. </case>
  1305. </switch>
  1306. <button id="btn_outrgst" class="btn_sw" group="tab" selected="true" style="left:0px; top:5px; width:65px; height:22px; ">
  1307. <caption>외래등록</caption>
  1308. <toggle case="case_outrgst" ev:event="onclick"/>
  1309. <script type="javascript" ev:event="DOMActivate">
  1310. <![CDATA[
  1311. button2.visible = true;
  1312. btn_search.visible = true;
  1313. // if( getNodesetCount("/root/main/patinforgst/patinforgstlist") > 0 ){
  1314. swt_outpatient.selectedIndex = 0;
  1315. btn_outrgst.selected = true;
  1316. btn_outupdt.selected = false;
  1317. btn_outcncl.selected = false;
  1318. // }else{
  1319. //
  1320. // btn_search.dispatch("DOMActivate");
  1321. // }
  1322. ]]>
  1323. </script>
  1324. </button>
  1325. <button id="btn_outupdt" class="btn_sw" group="tab" selected="false" style="left:67px; top:5px; width:65px; height:22px; ">
  1326. <caption>외래변경</caption>
  1327. <toggle case="case_outupdt" ev:event="onclick"/>
  1328. <script type="javascript" ev:event="DOMActivate">
  1329. <![CDATA[
  1330. //변경조회의 경우 탭선택이 아니라 외래등록내역을 더블클릭 했을시 조회
  1331. // if( getNodesetCount("/root/main/patinfoupdt/patinfoupdtlist") > 0 ){
  1332. var flag = model.getValue("/root/tmp/flag");
  1333. button2.visible = false;
  1334. btn_search.visible = false;
  1335. if(flag != 'Y'){
  1336. messageBox("변경내역조회는 외래등록 조회한 내역을 클릭시만 가능합니다.", "E999", "");
  1337. // model.toggle("case_outrgst");
  1338. // model.setFocus("btn_outrgst");
  1339. // inputEnterKey("btn_outrgst", "DOMActivate");
  1340. return;
  1341. }
  1342. //submit("TRPMO00605");
  1343. swt_outpatient.selectedIndex = 2;
  1344. btn_outrgst.selected = false;
  1345. btn_outupdt.selected = true;
  1346. btn_outcncl.selected = false;
  1347. //model.refresh();
  1348. // }else{
  1349. //
  1350. // btn_search.dispatch("DOMActivate");
  1351. // }
  1352. //btn_search.dispatch("DOMActivate");
  1353. ]]>
  1354. </script>
  1355. </button>
  1356. <button id="btn_outcncl" class="btn_sw" group="tab" selected="false" style="left:134px; top:5px; width:65px; height:22px; ">
  1357. <caption>외래취소</caption>
  1358. <toggle case="case_outcncl" ev:event="onclick"/>
  1359. <script type="javascript" ev:event="DOMActivate">
  1360. <![CDATA[
  1361. button2.visible = true;
  1362. btn_search.visible = true;
  1363. if( getNodesetCount("/root/main/patinfocncl/patinfocncllist") > 0 ){
  1364. swt_outpatient.selectedIndex = 1;
  1365. btn_outrgst.selected = false;
  1366. btn_outupdt.selected = false;
  1367. btn_outcncl.selected = true;
  1368. }else{
  1369. // 주석처리함(2018/02/08 이정택)
  1370. // submit("TRPMO00604");
  1371. // 주석처리함(2018/02/08 이정택)
  1372. swt_outpatient.selectedIndex = 1;
  1373. btn_outrgst.selected = false;
  1374. btn_outupdt.selected = false;
  1375. btn_outcncl.selected = true;
  1376. model.refresh();
  1377. }
  1378. ]]>
  1379. </script>
  1380. </button>
  1381. </group>
  1382. </group>
  1383. </xhtml:body>
  1384. </xhtml:html>