SMAEA01200_접수관리(재활).xrw 107 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <ordlist1>
  11. <mainordlist>
  12. <pid/>
  13. <patnm/>
  14. <prcpgenrflag/>
  15. <roomcd/>
  16. <depthngnm/>
  17. <execprcpuniqno/>
  18. <orddeptcd/>
  19. <rsrvdd/>
  20. <execprcpstatcd/>
  21. <prcpdd/>
  22. <sna/>
  23. <roomcd/>
  24. <orddrid/>
  25. <rcptyn/>
  26. <execrid/>
  27. <cstcnt/>
  28. <aftrcptinfo/>
  29. </mainordlist>
  30. </ordlist1>
  31. <ordlist2>
  32. <mainordlist>
  33. <no/>
  34. <pid/>
  35. <patnm/>
  36. <prcpgenrflag/>
  37. <roomcd/>
  38. <depthngnm/>
  39. <execprcpuniqno/>
  40. <orddeptcd/>
  41. <rsrvdd/>
  42. <prcpdd/>
  43. <execrid/>
  44. </mainordlist>
  45. </ordlist2>
  46. <ordlist3>
  47. <mainordlist>
  48. <no/>
  49. <pid/>
  50. <patnm/>
  51. <prcpgenrflag/>
  52. <roomcd/>
  53. <depthngnm/>
  54. <execprcpuniqno/>
  55. <orddeptcd/>
  56. <rsrvdd/>
  57. <prcpdd/>
  58. <execrid/>
  59. </mainordlist>
  60. </ordlist3>
  61. <ordlist4>
  62. <mainordlist>
  63. <no/>
  64. <pid/>
  65. <patnm/>
  66. <prcpgenrflag/>
  67. <roomcd/>
  68. <depthngnm/>
  69. <execprcpuniqno/>
  70. <orddeptcd/>
  71. <rsrvdd/>
  72. <prcpdd/>
  73. <execrid/>
  74. </mainordlist>
  75. </ordlist4>
  76. <patinfo>
  77. <patinfolist>
  78. <hngnm/>
  79. </patinfolist>
  80. </patinfo>
  81. <subordlist>
  82. <subordlist1>
  83. <diagdd/>
  84. <diagengnm/>
  85. <diagcd/>
  86. <orddeptnm/>
  87. <orddrnm/>
  88. </subordlist1>
  89. <subordlist2>
  90. <excuroomnm/>
  91. <prcpdd/>
  92. <prcpnm/>
  93. <calcscorcd/>
  94. <execprcpstatcd/>
  95. </subordlist2>
  96. <subordlist3>
  97. <check/>
  98. <prcpdd/>
  99. <execprcpstatcd/>
  100. <prcpkindcd/>
  101. <prcpnm/>
  102. <excuroomcd/>
  103. <rgstdepthngnm/>
  104. <rgstridnm/>
  105. <prcpgenrflag/>
  106. <basecd/>
  107. <rsrvdt/>
  108. <prcphopedt/>
  109. <execprcpuniqno/>
  110. <calcscorcd/>
  111. <prcpexecdeptcd/>
  112. <excuroomcd/>
  113. <rgstdeptcd/>
  114. <rgstrid/>
  115. <pid/>
  116. <portprcpflag/>
  117. <inflag/>
  118. <rcptacptyn/>
  119. <execbaseflag/>
  120. <lrgcd/>
  121. <mdlcd/>
  122. <excupartcd/>
  123. <modality/>
  124. <rcptno/>
  125. <acptseqno/>
  126. <acptrem/>
  127. <execrem/>
  128. <prcpdelivefact/>
  129. <execrid1/>
  130. <execrid2/>
  131. <execrid3/>
  132. <execrid4/>
  133. <reqagnphoyn/>
  134. <acptid/>
  135. <rcptdd/>
  136. <carecnfmdd/>
  137. <ioflag/>
  138. <prcpno/>
  139. <prcphistno/>
  140. <rehbprcpcurepartnm/>
  141. <prcpdirecnm/>
  142. <rehbprcpcurefreqnm/>
  143. <indd/>
  144. <cretno/>
  145. </subordlist3>
  146. <subordlist4>
  147. <check/>
  148. <prcpdd/>
  149. <execprcpstatcd/>
  150. <prcpkindcd/>
  151. <prcpnm/>
  152. <excuroomcd/>
  153. <rgstdepthngnm/>
  154. <rgstridnm/>
  155. <prcpgenrflag/>
  156. <basecd/>
  157. <rsrvdt/>
  158. <prcphopedt/>
  159. <execprcpuniqno/>
  160. <calcscorcd/>
  161. <prcpexecdeptcd/>
  162. <excuroomcd/>
  163. <rgstdeptcd/>
  164. <rgstrid/>
  165. <pid/>
  166. <portprcpflag/>
  167. <inflag/>
  168. <rcptacptyn/>
  169. <execbaseflag/>
  170. <lrgcd/>
  171. <mdlcd/>
  172. <excupartcd/>
  173. <modality/>
  174. <rcptno/>
  175. <acptseqno/>
  176. <acptrem/>
  177. <execrem/>
  178. <prcpdelivefact/>
  179. <execrid1/>
  180. <execrid2/>
  181. <execrid3/>
  182. <execrid4/>
  183. <reqagnphoyn/>
  184. <acptid/>
  185. <rcptdd/>
  186. <carecnfmdd/>
  187. <prcpno/>
  188. <prcphistno/>
  189. <rehbprcpcurepartnm/>
  190. <prcpdirecnm/>
  191. <rehbprcpcurefreqnm/>
  192. <indd/>
  193. <cretno/>
  194. </subordlist4>
  195. <isolinfo>
  196. <isoldispcd/>
  197. </isolinfo>
  198. <subordlist5>
  199. <suminfo/>
  200. <orddt/>
  201. </subordlist5>
  202. </subordlist>
  203. <patinfo>
  204. <patinfolist/>
  205. </patinfo>
  206. <remlist>
  207. <reminfo1>
  208. <prcprem/>
  209. </reminfo1>
  210. <reminfo2>
  211. <acptrem/>
  212. </reminfo2>
  213. <reminfo3>
  214. <execrem/>
  215. </reminfo3>
  216. </remlist>
  217. </main>
  218. <send>
  219. <data>
  220. <cmb_info>
  221. <initexecroom>
  222. <excuroomcdid/>
  223. </initexecroom>
  224. <initexecrid>
  225. <execridcdid/>
  226. </initexecrid>
  227. </cmb_info>
  228. <srchpid/>
  229. <srchdate1/>
  230. <srchdate2/>
  231. <acptlistflag/>
  232. <grd_info>
  233. <grid_data>
  234. <execprcpuniqno/>
  235. </grid_data>
  236. </grd_info>
  237. <tobeacptprcp>
  238. <tobeacptprcplist/>
  239. </tobeacptprcp>
  240. <tobeacptcnclprcp>
  241. <tobeacptcnclprcplist/>
  242. </tobeacptcnclprcp>
  243. <tobesetexamcureroomcode>
  244. <tobesetexamcureroomcodelist/>
  245. </tobesetexamcureroomcode>
  246. <rdo_info>
  247. <ioflag/>
  248. </rdo_info>
  249. </data>
  250. <globalinstance>
  251. <instance1/>
  252. </globalinstance>
  253. <flag/>
  254. <acptrem/>
  255. <prcprem/>
  256. <execrem/>
  257. <acptflag/>
  258. <dracptlist>
  259. <pid/>
  260. <cretno/>
  261. <orddd/>
  262. <ordtm/>
  263. </dracptlist>
  264. <orddeptcd/>
  265. <pid/>
  266. <req>
  267. <data/>
  268. <flag/>
  269. </req>
  270. <savedata/>
  271. <GosiPrcpRcpyn/>
  272. <deptcd/>
  273. </send>
  274. <init>
  275. <cmb_info>
  276. <initexecroom>
  277. <excuroomcdid>-</excuroomcdid>
  278. <excuroomcdnm>전체</excuroomcdnm>
  279. </initexecroom>
  280. </cmb_info>
  281. <baseinfo>
  282. <initexecprcpstatcd/>
  283. <initprcpkindcd/>
  284. <initexecrid>
  285. <execridcd>
  286. <usernm/>
  287. <userid/>
  288. </execridcd>
  289. </initexecrid>
  290. </baseinfo>
  291. <waitfoominfo>
  292. <waitroomcdval/>
  293. </waitfoominfo>
  294. <baseinfo1>
  295. <initsuppdeptcd/>
  296. <initexecyn/>
  297. </baseinfo1>
  298. <popupmenu>
  299. <grid01>
  300. <item>
  301. <name>컨설트조회</name>
  302. <func>fConsultSrch</func>
  303. </item>
  304. </grid01>
  305. </popupmenu>
  306. </init>
  307. <hidden>
  308. <count/>
  309. <cnclcdlist>
  310. <cnclcd/>
  311. </cnclcdlist>
  312. <isolinfo>
  313. <isoldata/>
  314. </isolinfo>
  315. <popupmenu>
  316. <menu>
  317. <item>
  318. <name>대기환자등록</name>
  319. <func>fSetWaitExcuRoomPatList</func>
  320. </item>
  321. </menu>
  322. </popupmenu>
  323. <prcprcptyn/>
  324. </hidden>
  325. <temp>
  326. <progressnote>
  327. <list>
  328. <cretno/>
  329. <ioflag/>
  330. <orddrid/>
  331. </list>
  332. </progressnote>
  333. <totaldclist>
  334. <patinfolist>
  335. <pid/>
  336. <hngnm/>
  337. <sexage/>
  338. <rrgstno/>
  339. </patinfolist>
  340. </totaldclist>
  341. <prcprcptyn/>
  342. <txtgosi_name/>
  343. </temp>
  344. </root>
  345. </instance>
  346. <script type="javascript" ev:event="xforms-ready">
  347. <![CDATA[
  348. delPatientInfos();
  349. // 성빈센트병원만 환자접수 버튼 보여야 함.
  350. var instcd = getUserInfo("dutplceinstcd");
  351. var userid = getUserInfo("userid").substring(0,3);
  352. if( instcd == "017") {
  353. btn_tempacpt.visible = true;
  354. } else {
  355. /* btn_sea.attribute("left") = "1120";
  356. line1.attribute("x1") = "1103";
  357. line1.attribute("x2") = "1103";
  358. output3.attribute("left") = "975";
  359. output3.attribute("width") = "110";
  360. button61.attribute("left") = "940";
  361. input2.attribute("left") = "850";
  362. caption2.attribute("left") = "760";
  363. radio2.attribute("left") = "610";
  364. caption5.attribute("left") = "545";
  365. cmb_excuroom.attribute("left") = "415";
  366. caption4.attribute("left") = "330";
  367. ipt_todd.attribute("left") = "215";
  368. ipt_fromdd.attribute("left") = "116";
  369. caption1.attribute("left") = "28";*/
  370. }
  371. aezfSetSuppDeptcd();
  372. fInitGrid();
  373. fInitTar();
  374. model.setValue("/root/send/data/srchdate1", getCurrentDate()); //toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD")
  375. model.setValue("/root/send/data/srchdate2", getCurrentDate());
  376. submit("TRAEA01201", false);
  377. zbcfGetCodeList( new Array("M0011","M0003","A0608"), new Array("/root/init/baseinfo/initexecprcpstatcd", "/root/init/baseinfo/initprcpkindcd","/root/init/waitfoominfo/waitroomcdval") );
  378. submit("TRZBC00101", false);
  379. submit("TRAEA01208", false);//치료사매핑
  380. grd_subordlist3.fixedcellcheckbox(0,0) =true;
  381. grd_subordlist4.fixedcellcheckbox(0,0) =true;
  382. btn_case1.selected = true;
  383. // model.toggle("case1");
  384. btn_acpt.disabled = false;
  385. btn_acptcncl.disabled = true;
  386. button7.disabled = true;
  387. btn_roomupdt.disabled = true;
  388. grd_mainordlist.mergeCol(3) = false;
  389. grd_mainordlist.mergeCol(4) = false;
  390. grd_mainordlist.mergeCol(5) = false;
  391. grd_mainordlist.mergeCol(6) = false;
  392. btn_bfacpt.selected = true;
  393. astGetComboList( new Array("A530"), new Array("/root/init/baseinfo1/initsuppdeptcd") );
  394. submit("TRAAA00001", false);
  395. model.removeNodeset("/root/init/baseinfo1/initsuppdeptcd/A530[" + 1 + "]");
  396. //cmb_excuroom.select(cmb_excuroom.length-1);
  397. //var gv_pid = getGlobalVariable("gv_pid", "A");
  398. if (model.getValue("/root/send/data/srchpid") != ""){
  399. btn_case1.dispatch("DOMActivate");
  400. btn_sea.dispatch("DOMActivate");
  401. return;
  402. }
  403. model.refresh();
  404. ]]>
  405. </script>
  406. <submission id="TRAEA01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance/instance1" resultref="/root/init/cmb_info"/>
  407. <submission id="TRAEA01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ordlist1"/>
  408. <submission id="TRAEA01203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ordlist1"/>
  409. <submission id="TRAEA01204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ordlist1"/>
  410. <submission id="TRAEA01205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ordlist1"/>
  411. <submission id="TRAEA01206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/subordlist"/>
  412. <submission id="TRAEA01207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/subordlist"/>
  413. <submission id="TRAEA01212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/remlist"/>
  414. <submission id="TXAEA01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  415. <submission id="TXAEA01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  416. <submission id="TXAEA01205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  417. <submission id="TXAER00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  418. <submission id="TRAER00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/progressnote"/>
  419. <submission id="TXAEA01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/temp"/>
  420. <submission id="TRAAA00001"/>
  421. <bind id="bind_execprcpstatcd" ref="/root/main/subordlist/subordlist3/execprcpstatcd" readonly="../execprcpstatcd!=''"/>
  422. <bind id="bind_prcpkindcd" ref="/root/main/subordlist/subordlist3/prcpkindcd" readonly="../prcpkindcd!=''"/>
  423. <bind id="bind1" ref="/root/main/subordlist/subordlist4/execprcpstatcd" readonly="../execprcpstatcd!=''"/>
  424. <bind id="bind2" ref="/root/main/subordlist/subordlist4/prcpkindcd" readonly="../prcpkindcd!=''"/>
  425. <bind id="bind_execrid" ref="/root/main/ordlist1/mainordlist/execrid" readonly="../execrid!=''"/>
  426. <bind id="bind3" ref="/root/main/ordlist2/mainordlist/execrid" readonly="../execrid!=''"/>
  427. <bind id="bind4" ref="/root/main/ordlist3/mainordlist/execrid" readonly="../execrid!=''"/>
  428. <bind id="bind5" ref="/root/main/ordlist4/mainordlist/execrid" readonly="../execrid!=''"/>
  429. <submission id="TRZBC00101"/>
  430. <submission id="TRAEA01208" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/baseinfo/initexecrid"/>
  431. <submission id="TRAER00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/initexecrid"/>
  432. <submission id="TXAEA01203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dracptlist" resultref="/root/temp"/>
  433. <submission id="TXMNV07007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/returnsts"/>
  434. <submission id="TRAEA01100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/GosiPrcpRcpyn" replace="instance" resultref="/root/hidden/prcprcptyn"/>
  435. </model>
  436. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  437. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  438. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  439. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  440. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  441. <script type="javascript" src="../../../emr/waitguideweb/js/SMMNV12000.js"/>
  442. <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
  443. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  444. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  445. <script type="javascript">
  446. <![CDATA[
  447. /* @group : 접수관리(재활)
  448. * @ver : 2007.06.08
  449. * @by : 이선경
  450. * @-----------------------------------
  451. * @type : function
  452. * @access : public
  453. * @desc : Grid초기화 Function
  454. */
  455. function fInitGrid() {
  456. model.removeNodeset("/root/main/ordlist1/mainordlist");
  457. model.removeNodeset("/root/main/ordlist2/mainordlist");
  458. model.removeNodeset("/root/main/ordlist3/mainordlist");
  459. model.removeNodeset("/root/main/ordlist4/mainordlist");
  460. model.removeNodeset("/root/main/subordlist/subordlist1");
  461. model.removeNodeset("/root/main/subordlist/subordlist2");
  462. model.removeNodeset("/root/main/subordlist/subordlist3");
  463. model.removeNodeset("/root/main/subordlist/subordlist4");
  464. }
  465. /* @group : 접수관리(진단방사선)
  466. * @ver : 2007.03.21
  467. * @by : 장준원
  468. * @-----------------------------------
  469. * @type : function
  470. * @access : public
  471. * @desc : TextArea 초기화 Function
  472. */
  473. function fInitTar() {
  474. tar_prcpremfact.value = "-";
  475. tar_acptrem.value = "-";
  476. tar_execrem.value = "-";
  477. }
  478. /* @group : 접수관리(진단방사선)
  479. * @ver : 2007.03.21
  480. * @by : 장준원
  481. * @-----------------------------------
  482. * @type : function
  483. * @access : public
  484. * @desc : 미접수/접수/실시/당일예약 조회 Submission Function
  485. */
  486. function fGetExamCureAcptList(acptlistflag) {
  487. /*if ( model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid") == "" ) {
  488. messageBox("[조회필수항목]치료실을 ","C002");
  489. return true;
  490. }*/
  491. //alert(model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid"));
  492. //alert(model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid"));
  493. //alert(model.getValue("/root/send/data/srchpid"));
  494. //alert(model.getValue("/root/send/data/srchdate1"));
  495. //alert(model.getValue("/root/send/data/srchdate2"));
  496. if ( acptlistflag == "Y" ) { // 당일예약일경우
  497. ipt_fromdd.value = getCurrentDate();
  498. ipt_todd.value = getCurrentDate();
  499. }
  500. // flag Setting
  501. model.makeValue("/root/send/data/acptlistflag", acptlistflag);
  502. //alert('reset');
  503. //fInitGrid();
  504. fInitTar();
  505. model.removeNodeset("/root/main/subordlist");
  506. model.refresh();
  507. //alert('acptlistflag =' + acptlistflag);
  508. btn_can.visible = false;
  509. switch (acptlistflag) {
  510. case "M": //미접수
  511. //alert("flag->"+acptlistflag);
  512. //model.toggle("case1");
  513. submit("TRAEA01202");
  514. btn_acpt.disabled = false;
  515. btn_acptcncl.disabled = true;
  516. button7.disabled = true;
  517. btn_roomupdt.disabled = true;
  518. grd_mainordlist.mergeCol(3) = false;
  519. grd_mainordlist.mergeCol(4) = false;
  520. grd_mainordlist.mergeCol(5) = false;
  521. grd_mainordlist.mergeCol(6) = false;
  522. fsetcolortext(grd_mainordlist, 1);
  523. btn_can.visible = true;
  524. break;
  525. case "J": //접수
  526. //alert("flag->"+acptlistflag);
  527. // model.toggle("case2");
  528. submit("TRAEA01203");
  529. btn_acpt.disabled = true;
  530. btn_acptcncl.disabled = false;
  531. button7.disabled = false;
  532. btn_roomupdt.disabled = false;
  533. grd_mainordlist.mergeCol(3) = false;
  534. grd_mainordlist.mergeCol(4) = false;
  535. grd_mainordlist.mergeCol(5) = false;
  536. grd_mainordlist.mergeCol(6) = false;
  537. fsetcolortext(grd_mainordlist, 2);
  538. break;
  539. case "S": //실시
  540. //alert("flag->"+acptlistflag);
  541. // model.toggle("case3");
  542. submit("TRAEA01204");
  543. btn_acptcncl.disabled = true;
  544. button7.disabled = true;
  545. btn_roomupdt.disabled = true;
  546. grd_mainordlist.mergeCol(3) = false;
  547. grd_mainordlist.mergeCol(4) = false;
  548. grd_mainordlist.mergeCol(5) = false;
  549. grd_mainordlist.mergeCol(6) = false;
  550. fsetcolortext(grd_mainordlist, 3);
  551. break;
  552. case "Y": //당일예약
  553. //alert("flag->"+acptlistflag);
  554. // model.toggle("case4");
  555. submit("TRAEA01205");
  556. btn_acpt.disabled = false;
  557. btn_acptcncl.disabled = true;
  558. button7.disabled = true;
  559. btn_roomupdt.disabled = true;
  560. grd_mainordlist.mergeCol(3) = false;
  561. grd_mainordlist.mergeCol(4) = false;
  562. grd_mainordlist.mergeCol(5) = false;
  563. grd_mainordlist.mergeCol(6) = false;
  564. fsetcolortext(grd_mainordlist, 4);
  565. break;
  566. case "L": // 전체
  567. //alert("flag->"+acptlistflag);
  568. // model.toggle("case3");
  569. submit("TRAEA01204");
  570. btn_acpt.disabled = true;
  571. btn_acptcncl.disabled = true;
  572. button7.disabled = true;
  573. btn_roomupdt.disabled = true;
  574. grd_mainordlist.mergeCol(3) = false;
  575. grd_mainordlist.mergeCol(4) = false;
  576. grd_mainordlist.mergeCol(5) = false;
  577. grd_mainordlist.mergeCol(6) = false;
  578. fsetcolortext(grd_mainordlist, 3);
  579. break;
  580. default:
  581. break;
  582. }
  583. //model.setValue("/root/send/data/srchpid","");
  584. model.refresh();
  585. }
  586. /* @group : 접수관리(진단방사선)
  587. * @ver : 2007.03.21
  588. * @by : 장준원
  589. * @-----------------------------------
  590. * @type : function
  591. * @access : public
  592. * @desc : 처방내역/타과처방/상병/코멘트 조회를 위한 선택 Function
  593. */
  594. function fGetExamCurePrcpList(maingridlistid) {
  595. if ( maingridlistid.row == 0 ) return;
  596. fInitTar();
  597. var row = maingridlistid.row;
  598. var pid = maingridlistid.valueMatrix(row, maingridlistid.colRef("pid"));
  599. var prcpgenrflag = maingridlistid.valueMatrix(row, maingridlistid.colRef("prcpgenrflag")); // 상병조회에서 사용 pid, prcpgenrflag,orddeptcd,prcpdd
  600. var orddeptcd = maingridlistid.valueMatrix(row, maingridlistid .colRef("orddeptcd"));
  601. var orddd = maingridlistid.valueMatrix(row, maingridlistid .colRef("orddd"));
  602. var orddrid = maingridlistid.valueMatrix(row, maingridlistid .colRef("orddrid"));
  603. var cretno = maingridlistid.valueMatrix(row, maingridlistid .colRef("cretno"));
  604. var patnm = maingridlistid.valueMatrix(row, maingridlistid .colRef("patnm"));
  605. var sex = maingridlistid.valueMatrix(row, maingridlistid .colRef("sex"));
  606. var age = maingridlistid.valueMatrix(row, maingridlistid .colRef("age"));
  607. var acptlistflag = "";
  608. model.makeValue("/root/send/data/grd_info/grid_data/pid", pid);
  609. model.makeValue("/root/send/data/grd_info/grid_data/prcpgenrflag", prcpgenrflag);
  610. model.makeValue("/root/send/data/grd_info/grid_data/orddeptcd", orddeptcd);
  611. model.makeValue("/root/send/data/grd_info/grid_data/orddd", orddd);
  612. model.makeValue("/root/send/data/grd_info/grid_data/orddrid", orddrid);
  613. model.makeValue("/root/send/data/grd_info/grid_data/cretno", cretno);
  614. model.makeValue("/root/send/data/grd_info/grid_data/patnm", patnm);
  615. model.makeValue("/root/send/data/grd_info/grid_data/sex", sex);
  616. model.makeValue("/root/send/data/grd_info/grid_data/age", age);
  617. if (model.getValue("/root/send/data/acptlistflag") == "Y") {
  618. model.setValue("/root/send/flag", "R2"); //재활의학과(예약)
  619. model.setValue("/root/send/acptflag", "Y"); //재활의학과(예약)
  620. } else {
  621. model.setValue("/root/send/flag", "M2"); //재활의학과(미접수,접수,실시)
  622. model.setValue("/root/send/acptflag", model.getValue("/root/send/data/acptlistflag")); //재활의학과(미접수,접수,실시)
  623. }
  624. //setGlobalVariable("gv_pid", pid, "A");
  625. //model.refresh();
  626. /*
  627. if ( btn_case1.selected == true ) acptlistflag = "M"; // 미접수
  628. if ( btn_case2.selected == true ) acptlistflag = "J"; // 접수
  629. if ( btn_case3.selected == true ) acptlistflag = "S"; // 실시
  630. if ( btn_case4.selected == true ) acptlistflag = "Y"; // 당일예약
  631. model.makeValue("/root/send/data/acptlistflag", acptlistflag);
  632. */
  633. //alert(model.getValue("/root/send/data/grd_info/grid_data/prcpgenrflag"));
  634. //alert(model.getValue("/root/send/data/grd_info/grid_data/execprcpuniqno"));
  635. //alert(model.getValue("/root/send/data/grd_info/grid_data/pid"));
  636. //alert(model.getValue("/root/send/data/acptlistflag"));
  637. //var success =
  638. var prcpcmt = "";
  639. var acptcmt = "";
  640. var execcmt = "";
  641. var endflag = "";
  642. var prcpdirecnm = "";
  643. if ( btn_bfacpt.selected == true) { //미접수처방탭
  644. model.toggle("case5");
  645. submit("TRAEA01206");
  646. for ( var i = 1; i < grd_subordlist3.rows; i++) {
  647. if( (model.getValue("/root/main/subordlist/subordlist3[" + i + "]/rsrvdt")).substr(0, 8) == getCurrentDate()) {
  648. model.setValue("/root/main/subordlist/subordlist3[" + i + "]/check", "Y");
  649. }
  650. //재활치료는 선택진료 처방이 없으므로 막음
  651. //20140731 by kya 선택진료비변경에 따른 안내메시지
  652. // for ( var i = 1; i < grd_subordlist3.rows; i++) {
  653. // var checkflag = model.getValue("/root/main/subordlist/subordlist3[" +i + "]/check")
  654. // if ( checkflag == "Y") {
  655. // var pid = model.getValue("/root/main/subordlist/subordlist3[" +i + "]/pid");
  656. // var prcpdd = model.getValue("/root/main/subordlist/subordlist3[" +i + "]/prcpdd");
  657. // var execprcpuniqno = model.getValue("/root/main/subordlist/subordlist3[" +i + "]/execprcpuniqno");
  658. //
  659. // var cnt = getPrcpRcptCheck('AST', pid, '','', prcpdd, execprcpuniqno );
  660. // if ( cnt > 0 ) break;
  661. // }
  662. // }
  663. //치료부위, 위치 조회 20140508 kya
  664. prcpdirecnm = model.getValue("/root/main/subordlist/subordlist3[" +i + "]/rehbprcpcurepartnm") + "/" + model.getValue("/root/main/subordlist/subordlist3[" +i + "]/prcpdirecnm") + "/" + model.getValue("/root/main/subordlist/subordlist3[" +i + "]/rehbprcpcurefreqnm");
  665. prcpcmt += model.getValue("/root/main/subordlist/subordlist3[" + i + "]/prcpdelivefact") + "["+ prcpdirecnm + "]" + "\n";
  666. grd_subordlist3.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
  667. grd_subordlist3.rowstyle( i , "data" , "color" ) = "#000000";
  668. endflag = grd_subordlist3.valueMatrix(i, grd_subordlist3.colRef("endflag"));
  669. if ( endflag == "Y" ) {
  670. grd_subordlist3.rowstyle( i , "data" , "background-color" ) = "#FFE4C4";
  671. }
  672. }
  673. } else if ( btn_aftacpt.selected == true) {
  674. model.toggle("case6");
  675. submit("TRAEA01207");
  676. for ( var i = 1; i < grd_subordlist4.rows; i++) {
  677. //치료부위, 위치 조회 20140429 kya
  678. prcpdirecnm = model.getValue("/root/main/subordlist/subordlist4[" +i + "]/rehbprcpcurepartnm") + "/" + model.getValue("/root/main/subordlist/subordlist4[" +i + "]/prcpdirecnm") + "/" + model.getValue("/root/main/subordlist/subordlist4[" +i + "]/rehbprcpcurefreqnm") ;
  679. prcpcmt += model.getValue("/root/main/subordlist/subordlist4[" + i + "]/prcpdelivefact") + "["+ prcpdirecnm + "]" + "\n";
  680. acptcmt += model.getValue("/root/main/subordlist/subordlist4[" + i + "]/acptrem") + "\n";
  681. execcmt += model.getValue("/root/main/subordlist/subordlist4[" + i + "]/execrem") + "\n";
  682. grd_subordlist4.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
  683. grd_subordlist4.rowstyle( i , "data" , "color" ) = "#000000";
  684. endflag = grd_subordlist4.valueMatrix(i, grd_subordlist4.colRef("endflag"));
  685. if ( endflag == "Y" ) {
  686. grd_subordlist4.rowstyle( i , "data" , "background-color" ) = "#FFE4C4";
  687. }
  688. }
  689. }
  690. //20140508 권영애, 중복으로 조회되고 있어 막음
  691. //start
  692. //환자Comment 환자정보 조회
  693. //submit("TRAEA01212");
  694. //end
  695. model.makeValue("/root/hidden/isolinfo/isoldata", "");
  696. if (model.getValue("/root/main/subordlist/isolinfo/isoldispcd") != "") {
  697. model.setValue("/root/hidden/isolinfo/isoldata", "확인");
  698. }
  699. tar_prcpremfact.value = prcpcmt;
  700. tar_acptrem.value = acptcmt;
  701. tar_execrem.value = execcmt;
  702. /****
  703. 20140508 중복으로 막음
  704. ///start
  705. var kcnt = getNodesetCount("/root/main/remlist/reminfo1");
  706. kcnt = kcnt + 1;
  707. for (var i = 1; i < kcnt; i++){
  708. prcpcmt += model.getValue("/root/main/remlist/reminfo1[" + i + "]/prcprem") + "\n";
  709. }
  710. model.setValue("/root/send/prcprem", prcpcmt );
  711. model.setValue("/root/send/acptrem", model.getValue("/root/main/remlist/reminfo2/acptrem"));
  712. model.setValue("/root/send/execrem", model.getValue("/root/main/remlist/reminfo3/execrem"));
  713. ///end
  714. */
  715. model.refresh();
  716. }
  717. /* @group : 접수관리(진단방사선)
  718. * @ver : 2007.03.21
  719. * @by : 장준원
  720. * @-----------------------------------
  721. * @type : function
  722. * @access : public
  723. * @desc : Toggle선택 조회를 위한 선택 Function
  724. */
  725. function fGetToggleAcptList() {
  726. if ( btn_case1.selected == true ) fGetExamCureAcptList("M"); // 미접수
  727. if ( btn_case2.selected == true ) fGetExamCureAcptList("J"); // 접수
  728. if ( btn_case3.selected == true ) fGetExamCureAcptList("S"); // 실시
  729. if ( btn_case4.selected == true ) fGetExamCureAcptList("Y"); // 당일예약
  730. }
  731. /* @group : 실시관리(진단방사선)
  732. * @ver : 2007.03.21
  733. * @by : 장준원
  734. * @-----------------------------------
  735. * @type : function
  736. * @access : public
  737. * @desc : 검사실 수정을 위한 선택 Function
  738. */
  739. function fSetExamCureRoomCodeList(maingridlistid) {
  740. if ( maingridlistid.row == 0 ) return;
  741. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist4[check='Y']");
  742. var rCSV = getNodeListCSV(nodeList);
  743. //alert(rCSV);
  744. if ( rCSV == null ) {
  745. messageBox("처방내역을 ","C002");
  746. return "0";
  747. }
  748. model.setValue("/root/send/data/tobesetexamcureroomcode/tobesetexamcureroomcodelist", rCSV);
  749. //alert(model.getValue("/root/send/data/tobesetexamcureroomcode/tobesetexamcureroomcodelist"));
  750. model.refresh();
  751. // model.setValue("/root/send/data/tobesetexamcureroomcode/tobesetexamcureroomcodelist", maingridlistid.getUpdateData());
  752. submit("TXAER00210");
  753. fGetExamCureAcptList("J");
  754. }
  755. //gubn : 1:접수, 2:접수취소
  756. function fExeAccept(gubn) {
  757. //if(gubn == 2) { //접수취소인 경우 취소사유 입력하도록 한다.
  758. //if(gBeforeFlag == true) {
  759. //입원전검사는 점검안함.
  760. //} else {
  761. //if(fCheckCncl() == false) return;
  762. //}
  763. //}
  764. //재활의학의 경우 예약이 안되어 있으면, 접수를 못하도록 한다.
  765. /* if(gSuppDept == gg_JAE_HWAL || gSuppDept == gg_GWAN_JEOL || gSuppDept == gg_CHEOK_CHU) {
  766. if(gubn == 1) {
  767. if(fCheckJaeHwalYeYak() == false) return;
  768. }
  769. }
  770. */
  771. // 접수or접수취소할 내역에 대한 체크여부
  772. var check = "";
  773. var loopcnt = 0;
  774. var loop = 0;
  775. if (btn_bfacpt.selected == true) {
  776. loop = grd_subordlist3.rows - grd_subordlist3.fixedRows;
  777. } else if (btn_aftacpt.selected == true) {
  778. loop = grd_subordlist4.rows - grd_subordlist4.fixedRows;
  779. }
  780. for( var i = 1 ; i <= loop ; i++ ) {
  781. if (btn_bfacpt.selected == true) {
  782. check = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/check");
  783. } else if (btn_aftacpt.selected == true) {
  784. check = model.getValue("/root/main/subordlist/subordlist4[" + i + "]/check");
  785. }
  786. if ( check == "Y" ) {
  787. loopcnt++;
  788. }
  789. }
  790. if ( loopcnt == 0 ) {
  791. messageBox("처방내역을 ","C002");
  792. return "0";
  793. }
  794. var execprcpstatcd = ""; // 처방상태코드 구분
  795. var prcpgenrflag = ""; // 외래입원응급실 구분
  796. var prcpnm = ""; // 처방명
  797. var inflag = ""; // 재원중 여부
  798. var rcptacptyn = ""; // 수납 여부
  799. //var rsrvflag = ""; // 협진 여부
  800. var portprcpflag = ""; // 포터블처방여부
  801. var execbaseflag = ""; // 실시기준여부 (A:접수 , E:실시)
  802. var doflag = false;
  803. var rsrvdt = "";
  804. var excuroomcd = "";
  805. if ( gubn == 1 ) { //접수인 경우
  806. //if(gSuppDept != gg_CHI_GWA) { //치과인 경우는 미수납여부 점검안함.
  807. for( var i = 1 ; i <= loop ; i++ ) {
  808. check = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/check");
  809. execprcpstatcd = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/execprcpstatcd");
  810. prcpgenrflag = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/prcpgenrflag");
  811. prcpnm = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/prcpnm");
  812. inflag = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/inflag");
  813. rcptacptyn = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/rcptacptyn");
  814. //rsrvflag = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/rsrvflag");
  815. portprcpflag = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/portprcpflag");
  816. rcptyn = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/rcptyn");
  817. rsrvdt = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/rsrvdt");
  818. excuroomcd = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/excuroomcd");
  819. //alert(prcpnm+' '+execprcpstatcd);
  820. // 진단방사선과일경우, 자동방배정여부(검사코드관리)
  821. // 공통, 미수납접수여부(검사코드관리)
  822. /* if( lrgcd == "GENERAL" && ( genrflagcd == "I" || genrflagcd == "E" || portprcpflag == "Y" ) ) { // 병동,응급실,포터블처방 환자는 skip(촬영실배정관리화면에서접수진행)
  823. messageBox(prcpnm + "은 일반촬영검사(병동or응급실or포터블) 처방이므로 접수할 수 없습니다.","I999");
  824. continue;
  825. }*/
  826. /*
  827. * 20070520, 처방,간호확인만 된것은 미수납이기에 접수불가함, 단, 미수납접수여부가 허용일경우는 체크한다.
  828. */
  829. /*if( execprcpstatcd == "000" || execprcpstatcd == "100" ) {
  830. if( prcpgenrflag == "O" ) {
  831. messageBox(prcpnm + "은 미수납된 처방이므로 접수할 수 ","I004");
  832. return "0";
  833. }
  834. if( rcptacptyn == "Y" ) { // 미수납접수여부 허용
  835. if ( messageBox(prcpnm + "은 미수납접수여부를 허용한 검사코드입니다. 접수를 ","Q002")==6 ) {
  836. }else {
  837. return "0";
  838. }
  839. }
  840. }
  841. */
  842. if ( check == "Y") {
  843. if( rsrvdt == "-") {
  844. messageBox("예약되지 않은 처방은 접수할 수 ","I004");
  845. return ;
  846. }
  847. if( execprcpstatcd == "000" || execprcpstatcd == "100" ) {
  848. if (rcptyn == "N") { //미수납일 경우
  849. if ( prcpgenrflag == "O" && rcptacptyn == "Y") { //외래이고 미수납접수여부가 Y일경우 접수가 허용된다.
  850. continue;
  851. } else if ( prcpgenrflag == "I") {
  852. continue;
  853. } else {
  854. // // 미수납 예약가능 여부 - 2009.02.06 김건기
  855. // messageBox(prcpnm + "은 미수납된 처방이므로 접수할 수 ","I004");
  856. // return "0";
  857. }
  858. }
  859. }
  860. if ( excuroomcd == "") {
  861. messageBox("예약된 치료실과 ", "E004");
  862. messageBox("접수할 수 ", "I004");
  863. return;
  864. }
  865. }
  866. // 아래의 로직중 재원중은 나중에 체크해야 함.
  867. if( execprcpstatcd == "000" || execprcpstatcd == "100" ) { // 미수납(처방,간호확인)
  868. if( rcptacptyn == "Y" ) { // 미수납접수여부 허용
  869. //messageBox(prcpnm + "은 외래 미수납 내역은 접수할 수 없습니다.","I999");
  870. //do nothing
  871. } else {
  872. if( inflag == "Y" ) { //재원중이면...
  873. /* if( rsrvflag != "H" && rsrvflag != "C" ) { //협진 및 진료의뢰가 아니면... rsrvflag말고 다른 컬럼으로 체크해야 ...
  874. model.alert("현재 재원중인 환자이므로 외래에서 발생된 " + ordnm + "은 접수할 수 없습니다.");
  875. return;
  876. }*/
  877. } else { //재원중이 아니면...
  878. //messageBox("외래 미수납 내역은 접수할 수 없습니다.","I999");
  879. //return;
  880. }
  881. }
  882. }
  883. }
  884. } else if ( gubn == 2 || gubn == 3) { //접수취소인 경우
  885. model.makeNode("root/hidden/cnclcdlist/cnclcd");
  886. window.load( "SPAEA01500_취소코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  887. for( var i = 1; i <= loop; i++) {
  888. check = model.getValue("/root/main/subordlist/subordlist4[" + i + "]/check");
  889. execprcpstatcd = model.getValue("/root/main/subordlist/subordlist4[" + i + "]/execprcpstatcd");
  890. execbaseflag = model.getValue("/root/main/subordlist/subordlist4[" + i + "]/execbaseflag");
  891. prcpnm = model.getValue("/root/main/subordlist/subordlist4[" + i + "]/prcpnm");
  892. if ( check == "Y") {
  893. if( execprcpstatcd == "450" ) {
  894. messageBox(prcpnm + "은 보류된 처방이므로 접수취소를 할 수 ","I004");
  895. return "0";
  896. }
  897. doflag = false;
  898. if(execbaseflag == "E" && execprcpstatcd == "440") doflag = true; //실시기준이 실시고, 현상태가 접수면
  899. if(execbaseflag == "A" && execprcpstatcd == "610") doflag = true; //실시기준이 접수고, 현상태가 실시면
  900. if(execbaseflag == "A" && execprcpstatcd == "440") doflag = true; //실시기준이 접수고, 현상태가 접수라도...
  901. // 부분실시 완료상태는 어떻게 처리할까??
  902. //실시기준이 실시고, 현 상태가 접수면, 취소가능 or 실시기준이 접수고, 현 상태가 실시면, 취소가능
  903. //if( !(execbas == "E" && stat == "E") || !(execbas == "A" && stat == "E") || !(execbas == "A" && stat == "F") ) {
  904. if(doflag == false) {
  905. messageBox("접수상태가 아닌 처방이 있으므로 취소할 수 ","I004");
  906. return "0";
  907. }
  908. //접수취소사유는 반드시 입력되어야 한다.
  909. if ( model.getValue("root/hidden/cnclcdlist/cnclcd") != "") {
  910. grd_subordlist4.valueMatrix(i, grd_subordlist4.colRef("basecd")) = model.getValue("root/hidden/cnclcdlist/cnclcd");
  911. model.refresh();
  912. }
  913. if (model.getValue("/root/main/subordlist/subordlist4[" + i + "]/basecd") == "") {
  914. messageBox("취소사유는 반드시 ", "C001");
  915. return "0";
  916. }
  917. }
  918. }
  919. }
  920. model.removenode("/root/main/temp/ordschelistinfo");
  921. // 접수
  922. if(gubn == 1) {
  923. for( var i = 1 ; i <= loop ; i++ ) {
  924. check = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/check");
  925. if ( check == "Y" ) {
  926. model.makeValue("/root/main/subordlist/subordlist3[" + i + "]/acptrem", tar_acptrem.value);
  927. if ( model.getValue("/root/main/subordlist/subordlist3[" + i + "]/execbaseflag") == "A" ) { // 실시기준여부가 접수인경우
  928. model.setValue("/root/main/subordlist/subordlist3[" + i + "]/execrem", tar_acptrem.value);
  929. }
  930. }
  931. }
  932. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist3[check='Y']");
  933. var rCSV = getNodeListCSV(nodeList);
  934. if ( rCSV == null ) {
  935. messageBox("처방내역을 ","C002");
  936. return "0";
  937. }
  938. model.setValue("/root/send/data/tobeacptprcp/tobeacptprcplist", rCSV);
  939. }
  940. // 접수취소
  941. if(gubn == 2 || gubn == 3) {
  942. for( var i = 1 ; i <= loop ; i++ ) {
  943. check = model.getValue("/root/main/subordlist/subordlist4[" + i + "]/check");
  944. if ( check == "Y" ) {
  945. model.makeValue("/root/main/subordlist/subordlist4[" + i + "]/acptrem", "-" );
  946. if ( model.getValue("/root/main/subordlist/subordlist4[" + i + "]/execbaseflag") == "A" ) { // 실시기준여부가 접수인경우
  947. model.setValue("/root/main/subordlist/subordlist4[" + i + "]/execrem", "-");
  948. }
  949. }
  950. }
  951. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist4[check='Y']");
  952. var rCSV = getNodeListCSV(nodeList);
  953. //alert(rCSV);
  954. if ( rCSV == null ) {
  955. messageBox("처방내역을 ","C002");
  956. return "0";
  957. }
  958. model.setValue("/root/send/data/tobeacptcnclprcp/tobeacptcnclprcplist", rCSV);
  959. }
  960. if(gubn == 1) {
  961. submit("TXAEA01201");
  962. } else if(gubn == 2) {
  963. submit("TXAEA01202");
  964. } else if(gubn == 3) {
  965. submit("TXAEA01205");
  966. }
  967. return;
  968. }
  969. function fsetcolortext(maingridlist, idx) {
  970. for (var i = 0; i < maingridlist.rows; i++) {
  971. maingridlist.rowStyle(i, "data", "background-color") = "#ffffff"; //흰색깔
  972. var actorddd = model.getValue("/root/main/ordlist" + idx + "/mainordlist["+ i + "]/fstrgstdd");
  973. if (actorddd == getCurrentDate()) {
  974. maingridlist.rowStyle(i, "data", "color") = "#FF1493";
  975. }
  976. }
  977. //2012.08.23 by kya 진료비후불제 색깔 노란색으로 표시
  978. aezfSetRowStyle("grd_mainordlist" , "15^16^17" , "V^P^A" , "aftrcptinfo" );
  979. }
  980. function fGetWideListX1(tab1, grd1) {
  981. var extnGrdWidht = 350;
  982. var extnGrdWidht2 = 340;
  983. // tab1.attribute("width") = extnGrdWidht;
  984. grd1.attribute("width") = extnGrdWidht2;
  985. //ivw_loader.attribute("left") = "407";
  986. //ivw_loader.attribute("width") = "780";
  987. }
  988. function fGetWideListX2(tab1, grd1) {
  989. var extnGrdWidht = 800;
  990. //var extnGrdWidht2 = 790;
  991. var extnGrdWidht2 = 880;
  992. // if ( btn_case1.selected == true ) {
  993. // var extnGrdWidht = 800;
  994. // var extnGrdWidht2 = 790;
  995. //
  996. // } else if ( btn_case2.selected == true ) {
  997. // var extnGrdWidht = 800;
  998. // var extnGrdWidht2 = 790;
  999. //
  1000. // } else if ( btn_case3.selected == true ) {
  1001. // var extnGrdWidht = 760;
  1002. // var extnGrdWidht2 = 755;
  1003. //
  1004. // } else if ( btn_case4.selected == true ) {
  1005. // var extnGrdWidht = 760;
  1006. // var extnGrdWidht2 = 755;
  1007. // }
  1008. //tab1.attribute("width") = extnGrdWidht;
  1009. // switch1.attribute("width") = extnGrdWidht;
  1010. grd1.attribute("width") = extnGrdWidht2;
  1011. //ivw_loader.attribute("left") = "945";
  1012. //ivw_loader.attribute("width") = "80";
  1013. model.refresh();
  1014. }
  1015. function exeRsrvTransaction(str) {
  1016. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist3[check='Y']");
  1017. var rCSV = getNodeListCSV(nodeList);
  1018. //alert(rCSV);
  1019. if ( rCSV == null ) {
  1020. messageBox("처방내역을 ","C002");
  1021. return "0";
  1022. }
  1023. model.setValue("/root/send/req/data", rCSV);
  1024. model.setValue("/root/send/req/flag", str);
  1025. if (submit("TXAEA01901")){
  1026. //model.removeNodeset("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo");
  1027. //model.removeNodeset("/root/main/rehbprcpsubinfolist/rsrvprescond");
  1028. model.removeNodeset("/root/main/rehbprcpsubinfolist");
  1029. fGetExamCureAcptList("M");
  1030. }
  1031. }
  1032. //=====================================================================================================================================================================================
  1033. // @ 검사실대기환자등록
  1034. //=====================================================================================================================================================================================
  1035. function fSetWaitExcuRoomPatList() {
  1036. var dutplceinstcd = getUserInfo("dutplceinstcd");
  1037. var waitroomcdinstcd = model.getValue("/root/init/waitfoominfo/waitroomcdval/A0608/cdid");
  1038. var waitroomcdyn = model.getValue("/root/init/waitfoominfo/waitroomcdval/A0608/cdnm");
  1039. if ( dutplceinstcd == waitroomcdinstcd && waitroomcdyn != 'Y') {
  1040. messageBox("등록된 대기자시스템이", "I004");
  1041. return;
  1042. }
  1043. model.removenode("/root/main/temp/ordschelistinfo");
  1044. var schelistcnt = grd_subordlist4.row;
  1045. var instcd = getUserInfo("dutplceinstcd"); // 기관코드
  1046. var pid = model.getValue("/root/main/subordlist/subordlist4["+ schelistcnt +"]/pid"); // 환자등록번호
  1047. var orddd = getCurrentDate(); // 진료일자
  1048. var orddeptcd = model.getValue("/root/main/subordlist/subordlist4["+ schelistcnt +"]/prcpexecdeptcd"); // 지원부서코드
  1049. var ordroomcd = model.getValue("/root/main/subordlist/subordlist4["+ schelistcnt +"]/excuroomcd"); // 검사실코드
  1050. var orddrid = model.getValue("/root/main/subordlist/subordlist4["+ schelistcnt +"]/orddrid"); // 진료의ID
  1051. var ordrsrvtm = getCurrentTime().substring(0,4); // 진료예약시간
  1052. var ordrsrvseqno = schelistcnt; // 진료예약순서
  1053. var dayflag = "Y"; // 당일구분
  1054. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/chk","1");
  1055. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/instcd",instcd); // 기관코드
  1056. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/pid",pid); // 환자등록번호
  1057. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/orddd", orddd); // 진료일자
  1058. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/orddeptcd",orddeptcd); // 지원부서코드
  1059. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/ordroomcd",ordroomcd); // 검사실코드
  1060. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/orddrid",orddrid); // 진료의ID
  1061. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/ordrsrvtm",ordrsrvtm); // 진료예약시간
  1062. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/ordrsrvseqno",""); // 진료예약순서
  1063. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/dayflag",dayflag); // 당일구분
  1064. // 검사실 전광판 대기 환자 등록 인터페이스 정보
  1065. var sPath="/root/main/temp/ordschelistinfo";
  1066. fSaveExcuRoomPatList(sPath);
  1067. }
  1068. //--=========================================================================================================
  1069. //2009-06-29 7/1 본인부담율 인상으로 인한 메세지 처리
  1070. //--=========================================================================================================
  1071. function fget0701GosiPrcpRcptChk() {
  1072. txtgosi.text =""
  1073. var flagvalue = model.getValue("/root/send/globalinstance/instance1") ; // 지원부서
  1074. // var tmpPID = model.getValue("/root/main/ordlist1/mainordlist["+grd_mainordlist.row+"]/pid") // 등록번호
  1075. // var flagvalue = model.getValue("/root/main/ordlist1/mainordlist[" + grd_mainordlist.row + "]/prcpexecdeptcd"); //시행부서
  1076. var tmpPID = model.getValue("/root/main/ordlist1/mainordlist[" + grd_mainordlist.row + "]/pid")
  1077. // flagvalue = "2130209000";
  1078. // tmpPID ="7575332";
  1079. flagvalue = "'" + flagvalue + "'";
  1080. // alert (flagvalue);
  1081. model.makeValue("/root/send/GosiPrcpRcpyn/instcd", getUserInfo("dutplceinstcd"));
  1082. model.makeValue("/root/send/GosiPrcpRcpyn/pid", tmpPID);
  1083. model.makeValue("/root/send/GosiPrcpRcpyn/flagvalue", flagvalue);
  1084. model.makeValue("/root/send/GosiPrcpRcpyn/flag", "2");
  1085. if (submit ("TRAEA01100") == true ) {
  1086. if ( model.getValue("/root/hidden/prcprcptyn/prcprcptyn") == "Y") {
  1087. //txtgosi.text = "본인부담요율 변동 환자입니다. 수납에 정산 안내하시길 바랍니다." ; //재활 메세지로
  1088. model.setValue ("/root/temp/txtgosi_name", "본인부담요율 변동 환자입니다. 수납에 정산 안내하시길 바랍니다.");
  1089. txtgosi.refresh();
  1090. //messageBox(" 본인부담요율 변동 환자입니다. 수납으로 정산 안내하시길 바랍니다. ", "E999"); //재활 그외는 메세지창으로
  1091. } else{
  1092. //messageBox(" 본인부담요율 변동 환자입니다. 수납으로 정산 안내하시길 바랍니다.xxxxx ", "E999"); //재활 그외는 메세지창으로
  1093. }
  1094. }
  1095. }
  1096. //=====================================================================================================================================================================================
  1097. // @ 컨설트 조회 2010.12.03 박재영
  1098. //=====================================================================================================================================================================================
  1099. function fConsultSrch(){
  1100. open ( "SMMMR05000" );
  1101. }
  1102. //============================================================================================================================
  1103. // @ 환자조회시 환자 상단정보 표시. 2011.05.11 cyw
  1104. //============================================================================================================================
  1105. function fTopInfo1()
  1106. {
  1107. //TOP 정보 보여주기
  1108. schk = "N";
  1109. if ( model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row +"]/prcpgenrflag") =="O" ){
  1110. var pat_info = "O▦"+ model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/pid") +"▦"+model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/orddd")+"▦"+model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/cretno")+"▦"+getUserInfo("dutplcecd")+"▦1▦"+model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/orddd");
  1111. schk = "Y";
  1112. }
  1113. else if ( model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/prcpgenrflag") =="I" ||
  1114. model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/prcpgenrflag") =="D" ||
  1115. model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/prcpgenrflag") =="E" ){
  1116. //2010.12.23 cyw 상단정보 데이터 던져줄때 제일 마지막 데이터값은 입원일 경우 등록일자 말고 퇴원일자!!
  1117. var srchdd = "";
  1118. var dschdd = model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/dschdd");
  1119. if (dschdd == "" || dschdd == "99991231") {
  1120. srchdd = getCurrentDate();
  1121. } else {
  1122. srchdd = dschdd;
  1123. }
  1124. //var pat_infoready = "I▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+"012"+"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
  1125. var pat_info = "I▦"+ model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/pid") +"▦"+model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/orddd")+"▦"+model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/cretno")+"▦"+getUserInfo("dutplcecd")+"▦"+srchdd;
  1126. schk = "Y";
  1127. }
  1128. else if ( model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/prcpgenrflag") =="S" ){
  1129. //var pat_infoready = "I▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+"012"+"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
  1130. var pat_info = "S▦"+ model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/prcpdd") +"▦"+model.getValue("/root/main/subordlist/subordlist3["+ grd_subordlist3.row+"]/execprcpuniqno")+"▦"+getUserInfo("dutplcecd");
  1131. schk = "Y";
  1132. }
  1133. if (schk == "Y"){
  1134. setParameter("condparam", pat_info);
  1135. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  1136. }
  1137. }
  1138. function fTopInfo2()
  1139. {
  1140. //TOP 정보 보여주기
  1141. schk = "N";
  1142. if ( model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row +"]/prcpgenrflag") =="O" ){
  1143. var pat_info = "O▦"+ model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/pid") +"▦"+model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/orddd")+"▦"+model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/cretno")+"▦"+getUserInfo("dutplcecd")+"▦1▦"+model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/orddd");
  1144. schk = "Y";
  1145. }
  1146. else if ( model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/prcpgenrflag") =="I" ||
  1147. model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/prcpgenrflag") =="D" ||
  1148. model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/prcpgenrflag") =="E" ){
  1149. //2010.12.23 cyw 상단정보 데이터 던져줄때 제일 마지막 데이터값은 입원일 경우 등록일자 말고 퇴원일자!!
  1150. var srchdd = "";
  1151. var dschdd = model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/dschdd");
  1152. if (dschdd == "" || dschdd == "99991231") {
  1153. srchdd = getCurrentDate();
  1154. } else {
  1155. srchdd = dschdd;
  1156. }
  1157. //var pat_infoready = "I▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+"012"+"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
  1158. var pat_info = "I▦"+ model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/pid") +"▦"+model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/orddd")+"▦"+model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/cretno")+"▦"+getUserInfo("dutplcecd")+"▦"+srchdd;
  1159. schk = "Y";
  1160. }
  1161. else if ( model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/prcpgenrflag") =="S" ){
  1162. //var pat_infoready = "I▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+"012"+"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
  1163. var pat_info = "S▦"+ model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/prcpdd") +"▦"+model.getValue("/root/main/subordlist/subordlist4["+ grd_subordlist4.row+"]/execprcpuniqno")+"▦"+getUserInfo("dutplcecd");
  1164. schk = "Y";
  1165. }
  1166. if (schk == "Y"){
  1167. setParameter("condparam", pat_info);
  1168. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  1169. }
  1170. }
  1171. ]]>
  1172. </script>
  1173. </xhtml:head>
  1174. <xhtml:body guideline="1,1194;2,756;2,785;2,84;2,86;2,90;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1175. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  1176. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">접수관리(재활)</caption>
  1177. </group>
  1178. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:745px; ">
  1179. <datagrid id="grd_subordlist2" nodeset="/root/main/subordlist/subordlist2" visibility="hidden" caption="가야할곳^처방일자^처방명(투여량 * 횟수 * 일수)^처방코드^처방상태" colsep="^" colwidth="145, 97, 379, 100, 92" defaultrows="0" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:359px; top:173px; width:835px; height:115px; ">
  1180. <col ref="excuroomnm"/>
  1181. <col ref="prcpdd" format="yyyy-mm-dd hh:nn:ss"/>
  1182. <col ref="prcpnm"/>
  1183. <col ref="calcscorcd"/>
  1184. <col disabled="true" ref="execprcpstatcd" type="combo">
  1185. <choices>
  1186. <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
  1187. <label ref="cdnm"/>
  1188. <value ref="cdid"/>
  1189. </itemset>
  1190. </choices>
  1191. </col>
  1192. </datagrid>
  1193. <caption id="txtgosi" ref="/root/temp/txtgosi_name" visibility="visible" style="left:506px; top:46px; width:664px; height:20px; font-size:12pt; font-weight:bold; color:#ff0000; "/>
  1194. <datagrid id="grd_subordlist1" nodeset="/root/main/subordlist/subordlist1" caption="일자^상병명^상병코드^진료과^등록의사" colsep="^" colwidth="72, 312, 78, 75, 56" defaultrows="0" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:359px; top:74px; width:616px; height:210px; ">
  1195. <col ref="diagdd" format="yyyy-mm-dd"/>
  1196. <col ref="diagengnm" style="left:100px; top:20px; width:454px; height:20px; "/>
  1197. <col ref="diagcd"/>
  1198. <col ref="orddeptnm"/>
  1199. <col ref="orddrnm"/>
  1200. </datagrid>
  1201. <textarea id="tar_acptrem" ref="/root/send/acptrem" style="left:637px; top:665px; width:275px; height:75; "/>
  1202. <group id="group2" style="left:0px; top:8px; width:1191px; height:35px; vertical-align:top; ">
  1203. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1191px; height:35px; "/>
  1204. <line id="line1" class="line_4" style="x1:1036px; y1:7px; x2:1036px; y2:29px; "/>
  1205. <select1 id="radio2" ref="/root/send/data/rdo_info/ioflag" class="radio_search" navindex="4" appearance="full" cols="3" rows="1" overflow="visible" style="left:648px; top:11px; width:132px; height:15px; text-align:center; border-style:none; ">
  1206. <choices>
  1207. <item>
  1208. <label>전체</label>
  1209. <value/>
  1210. </item>
  1211. <item>
  1212. <label>입원</label>
  1213. <value>I</value>
  1214. </item>
  1215. <item>
  1216. <label>외래</label>
  1217. <value>O</value>
  1218. </item>
  1219. </choices>
  1220. </select1>
  1221. <button id="btn_sea" class="btn1_letter2" navindex="6" style="left:1045px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  1222. <caption>조회</caption>
  1223. <script type="javascript" ev:event="DOMActivate">
  1224. <![CDATA[
  1225. if(ipt_fromdd.value > ipt_todd.value){
  1226. messageBox("조회시작일자가 조회종료일자보다 큽니다. 다시","C002");
  1227. }
  1228. //setGlobalVariable("gv_pid", model.getValue("/root/send/data/srchpid"), "A");
  1229. if ( btn_case1.selected == true ) fGetExamCureAcptList("M"); // 미접수
  1230. if ( btn_case2.selected == true ) fGetExamCureAcptList("J"); // 접수
  1231. if ( btn_case3.selected == true ) fGetExamCureAcptList("S"); // 실시
  1232. if ( btn_case4.selected == true ) fGetExamCureAcptList("Y"); // 당일예약
  1233. ]]>
  1234. </script>
  1235. </button>
  1236. <input id="ipt_todd" ref="/root/send/data/srchdate2" class="input_s_essential" navindex="2" inputtype="date" style="left:189px; top:8px; width:91px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  1237. <caption id="caption1" class="search_name" style="left:6px; top:10px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">적용일자 :</caption>
  1238. <caption id="caption2" class="search_name" style="left:786px; top:10px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
  1239. <button id="button61" class="icon_search" style="left:944px; top:10px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
  1240. <caption/>
  1241. <script type="javascript" ev:event="DOMActivate">
  1242. <![CDATA[
  1243. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data/srchpid","/root/main/send");
  1244. model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  1245. model.refresh();
  1246. ]]>
  1247. </script>
  1248. </button>
  1249. <caption id="caption4" class="search_name" style="left:286px; top:10px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">치료실 :</caption>
  1250. <caption id="caption5" class="search_name" style="left:586px; top:10px; width:61px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
  1251. <input id="input2" ref="/root/send/data/srchpid" class="input_search" navindex="5" style="left:874px; top:8px; width:67px; height:19px; "/>
  1252. <output id="output3" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:963px; top:8px; width:67px; height:19px; "/>
  1253. <input id="ipt_fromdd" ref="/root/send/data/srchdate1" class="input_s_essential" navindex="1" inputtype="date" style="left:94px; top:8px; width:92px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  1254. <select1 id="cmb_excuroom" ref="/root/send/data/cmb_info/initexecroom/excuroomcdid" class="combo_default" navindex="3" appearance="minimal" style="left:361px; top:8px; width:72px; height:19px; text-align:left; ">
  1255. <choices>
  1256. <itemset nodeset="/root/init/cmb_info/initexecroom">
  1257. <label ref="excuroomcdnm"/>
  1258. <value ref="excuroomcdid"/>
  1259. </itemset>
  1260. </choices>
  1261. <script type="javascript" ev:event="xforms-value-changed">
  1262. <![CDATA[
  1263. if(ipt_fromdd.value > ipt_todd.value){
  1264. messageBox("조회시작일자가 조회종료일자보다 큽니다. 다시","C002");
  1265. }
  1266. //2011.01.25 c y w 해당 검사실별 치료사 조회
  1267. submit("TRAER00107", false);
  1268. if ( btn_case1.selected == true ) fGetExamCureAcptList("M"); // 미접수
  1269. if ( btn_case2.selected == true ) fGetExamCureAcptList("J"); // 접수
  1270. if ( btn_case3.selected == true ) fGetExamCureAcptList("S"); // 실시
  1271. if ( btn_case4.selected == true ) fGetExamCureAcptList("Y"); // 당일예약
  1272. model.refresh();
  1273. ]]>
  1274. </script>
  1275. </select1>
  1276. <button id="btn_tempacpt" class="btn1_letter4" navindex="6" visibility="hidden" style="left:1103px; top:7px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  1277. <caption>환자접수</caption>
  1278. <script type="javascript" ev:event="DOMActivate">
  1279. <![CDATA[
  1280. modal("SMAZZ00501", "", "1280", "990", "SMAZZ00501","/root/send/data/srchpid","/root/main/send");
  1281. ]]>
  1282. </script>
  1283. </button>
  1284. <caption id="caption7" class="search_name" style="left:438px; top:9px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">치료사 :</caption>
  1285. <select1 id="cmb_execrid" ref="/root/send/data/cmb_info/initexecrid/execridcdid" class="combo_search" navindex="4" appearance="minimal" style="left:513px; top:8px; width:70px; height:19px; ">
  1286. <choices>
  1287. <itemset nodeset="/root/init/cmb_info/initexecrid/curerprescond">
  1288. <label ref="usernm"/>
  1289. <value ref="userid"/>
  1290. </itemset>
  1291. </choices>
  1292. <script type="javascript" ev:event="xforms-value-changed">
  1293. <![CDATA[
  1294. // 2011.01.26 c y w 조회조건으로 치료사 추가
  1295. if(ipt_fromdd.value > ipt_todd.value){
  1296. messageBox("조회시작일자가 조회종료일자보다 큽니다. 다시","C002");
  1297. }
  1298. if ( btn_case1.selected == true ) fGetExamCureAcptList("M"); // 미접수
  1299. if ( btn_case2.selected == true ) fGetExamCureAcptList("J"); // 접수
  1300. if ( btn_case3.selected == true ) fGetExamCureAcptList("S"); // 실시
  1301. if ( btn_case4.selected == true ) fGetExamCureAcptList("Y"); // 당일예약
  1302. ]]>
  1303. </script>
  1304. </select1>
  1305. </group>
  1306. <caption id="caption3" class="tit_2" visibility="hidden" style="left:359px; top:155px; width:82px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">타과처방</caption>
  1307. <caption id="caption22" class="tit_2" style="left:975px; top:58px; width:82px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">진료예약</caption>
  1308. <line id="line2" class="line_1" style="x1:359px; y1:70px; x2:1194px; y2:70px; "/>
  1309. <line id="line5" class="line_1" visibility="hidden" style="x1:358px; y1:169px; x2:1194px; y2:169px; "/>
  1310. <switch id="switch2" style="left:356px; top:317px; width:838px; height:323px; border-color:transparent; border-width:0; ">
  1311. <case id="case5" selected="true" style="left:0px; top:0px; width:833px; height:407px; ">
  1312. <line id="line4" class="line_1" style="x1:0px; y1:0px; x2:839px; y2:0px; "/>
  1313. <datagrid id="grd_subordlist3" nodeset="/root/main/subordlist/subordlist3" caption="^처방일자^상태^처방이력^처방명^치료실^처방과^처방의사^구분^수납^예약일시^희망일시^마지막처방여부" colsep="^" colwidth="30, 70, 40, 60, 175, 85, 60, 70, 30, 38, 120, 120, 100" dataheight="23" defaultrows="0" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:5px; width:828px; height:310px; ">
  1314. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  1315. <col ref="prcpdd" format="yyyy-mm-dd"/>
  1316. <col disabled="true" ref="execprcpstatcd" type="combo">
  1317. <choices>
  1318. <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
  1319. <label ref="cdnm"/>
  1320. <value ref="cdid"/>
  1321. </itemset>
  1322. </choices>
  1323. </col>
  1324. <col disabled="true" ref="prcpkindcd" type="combo">
  1325. <choices>
  1326. <itemset nodeset="/root/init/baseinfo/initprcpkindcd/M0003">
  1327. <label ref="cdnm"/>
  1328. <value ref="cdid"/>
  1329. </itemset>
  1330. </choices>
  1331. </col>
  1332. <col ref="prcpnm"/>
  1333. <col ref="excuroomcd" type="combo">
  1334. <choices>
  1335. <itemset nodeset="/root/init/cmb_info/initexecroom">
  1336. <label ref="excuroomcdnm"/>
  1337. <value ref="excuroomcdid"/>
  1338. </itemset>
  1339. </choices>
  1340. </col>
  1341. <col ref="rgstdepthngnm"/>
  1342. <col ref="rgstridnm"/>
  1343. <col ref="prcpgenrflag"/>
  1344. <col ref="rcptyn"/>
  1345. <col ref="rsrvdt" format="yyyy-mm-dd hh:nn"/>
  1346. <col ref="prcphopedd" format="yyyy-mm-dd"/>
  1347. <col ref="endflag" visibility="hidden"/>
  1348. <script type="javascript" ev:event="onclick">
  1349. <![CDATA[
  1350. if( isDataCell() ){
  1351. if ( grd_subordlist3.row == 0 ) return;
  1352. var prcpdirecnm = "";
  1353. var prcpdelivefact = "";
  1354. var pid ="";
  1355. var prcpdd = "";
  1356. var execprcpuniqno = "";
  1357. var checkflag ="";
  1358. if ( grd_subordlist3.isCell(event.target) ) {
  1359. var i = grd_subordlist3.row;
  1360. var colidx = grd_subordlist3.col;
  1361. //치료부위, 위치 조회 20140429 kya
  1362. prcpdirecnm = model.getValue("/root/main/subordlist/subordlist3[" +i + "]/rehbprcpcurepartnm") + "/" + model.getValue("/root/main/subordlist/subordlist3[" +i + "]/prcpdirecnm") + "/" + model.getValue("/root/main/subordlist/subordlist3[" +i + "]/rehbprcpcurefreqnm")
  1363. prcpdelivefact = model.getValue("/root/main/subordlist/subordlist3["+i+"]/prcpdelivefact")
  1364. //model.makeValue("/root/main/patrem/prcpdeliveinfo/prcpdelivefact" ,prcpdelivefact + " [ " + prcpdirecnm + " ] ");
  1365. tar_prcpremfact.value = prcpdelivefact + " [ " + prcpdirecnm + " ] "
  1366. //20140520 추가
  1367. if ( btn_aftacpt.selected == true) {
  1368. tar_acptrem.value = model.getValue("/root/main/subordlist/subordlist3["+i+"]/acptrem");
  1369. tar_execrem.value = model.getValue("/root/main/subordlist/subordlist3["+i+"]/execrem");
  1370. }
  1371. //재활치료는 선택진료 처방이 없으므로 막음
  1372. // //20140731 by kya 선택진료비변경에 따른 안내메시지
  1373. // checkflag = model.getValue("/root/main/subordlist/subordlist3[" +i + "]/check")
  1374. // if (grd_subordlist3.colAttribute(colidx, "ref") == "check" && checkflag == "Y") {
  1375. // pid = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/pid");
  1376. // prcpdd = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/prcpdd");
  1377. // execprcpuniqno = model.getValue("/root/main/subordlist/subordlist3[" + i + "]/execprcpuniqno");
  1378. //
  1379. // getPrcpRcptCheck('AST', pid, '','', prcpdd, execprcpuniqno );
  1380. // }
  1381. }
  1382. }
  1383. //재활치료는 선택진료 처방이 없으므로 막음
  1384. // //20140731 by kya 선택진료비변경에 따른 안내메시지
  1385. // if (grd_subordlist3.row == 0 && grd_subordlist3.rows > 1 ) {
  1386. // for ( var i = 1; i < grd_subordlist3.rows; i++) {
  1387. // checkflag = model.getValue("/root/main/subordlist/subordlist3[" +i + "]/check")
  1388. // if ( checkflag == "Y") {
  1389. // pid = model.getValue("/root/main/subordlist/subordlist3[" +i + "]/pid");
  1390. // prcpdd = model.getValue("/root/main/subordlist/subordlist3[" +i + "]/prcpdd");
  1391. // execprcpuniqno = model.getValue("/root/main/subordlist/subordlist3[" +i + "]/execprcpuniqno");
  1392. //
  1393. // var cnt = getPrcpRcptCheck('AST', pid, '','', prcpdd, execprcpuniqno );
  1394. // if ( cnt > 0 ) break;
  1395. // }
  1396. // }
  1397. // }
  1398. ]]>
  1399. </script>
  1400. </datagrid>
  1401. </case>
  1402. <case id="case6">
  1403. <line id="line8" class="line_1" style="x1:0; y1:0px; x2:835px; y2:0px; "/>
  1404. <datagrid id="grd_subordlist4" nodeset="/root/main/subordlist/subordlist4" caption="^처방일자^상태^처방이력^처방명^치료실^처방과^처방의사^구분^취소^수납^예약일시^희망일시^마지막처방여부^actorddd^prcpno^excuroomnm^excuroomcd^orddrid^execprcpuniqno^prcpexecdeptcd^pid^execbaseflag^modality^eqmtifyn^pacsnocretyn^acptid^rcptdd^carecnfmdd^reqagnphoyn^basesuppdeptcd^prcpdelivefact^acptrem^execrem^ioflag" colsep="^" colwidth="28, 70, 60, 60, 175, 95, 60, 70, 30, 38, 44, 120, 120, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:4px; width:835px; height:310px; ">
  1405. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  1406. <col ref="prcpdd" format="yyyy-mm-dd"/>
  1407. <col disabled="true" ref="execprcpstatcd" type="combo">
  1408. <choices>
  1409. <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
  1410. <label ref="cdnm"/>
  1411. <value ref="cdid"/>
  1412. </itemset>
  1413. </choices>
  1414. </col>
  1415. <col disabled="true" ref="prcpkindcd" type="combo">
  1416. <choices>
  1417. <itemset nodeset="/root/init/baseinfo/initprcpkindcd/M0003">
  1418. <label ref="cdnm"/>
  1419. <value ref="cdid"/>
  1420. </itemset>
  1421. </choices>
  1422. </col>
  1423. <col ref="prcpnm"/>
  1424. <col disabled="true" ref="excuroomcd" type="combo">
  1425. <choices>
  1426. <itemset nodeset="/root/init/cmb_info/initexecroom">
  1427. <label ref="excuroomcdnm"/>
  1428. <value ref="excuroomcdid"/>
  1429. </itemset>
  1430. </choices>
  1431. </col>
  1432. <col ref="rgstdepthngnm"/>
  1433. <col ref="rgstridnm"/>
  1434. <col ref="prcpgenrflag"/>
  1435. <col ref="basecd" type="inputbutton"/>
  1436. <col ref="rcptyn"/>
  1437. <col ref="rsrvdt" format="yyyy-mm-dd hh:nn"/>
  1438. <col ref="prcphopedd" format="yyyy-mm-dd"/>
  1439. <col ref="endflag" visibility="hidden"/>
  1440. <col ref="actorddd" visibility="hidden"/>
  1441. <col ref="prcpno" visibility="hidden"/>
  1442. <col ref="excuroomnm" visibility="hidden"/>
  1443. <col ref="excuroomcd" visibility="hidden"/>
  1444. <col ref="orddrid" visibility="hidden"/>
  1445. <col ref="execprcpuniqno" visibility="hidden"/>
  1446. <col ref="prcpexecdeptcd" visibility="hidden"/>
  1447. <col ref="pid" visibility="hidden"/>
  1448. <col ref="execbaseflag" visibility="hidden"/>
  1449. <col ref="modality" visibility="hidden"/>
  1450. <col ref="eqmtifyn" visibility="hidden"/>
  1451. <col ref="pacsnocretyn" visibility="hidden"/>
  1452. <col ref="acptid" visibility="hidden"/>
  1453. <col ref="rcptdd" visibility="hidden"/>
  1454. <col ref="carecnfmdd" visibility="hidden"/>
  1455. <col ref="reqagnphoyn" visibility="hidden"/>
  1456. <col ref="basesuppdeptcd" visibility="hidden"/>
  1457. <col ref="prcpdelivefact" visibility="hidden"/>
  1458. <col ref="acptrem" visibility="hidden"/>
  1459. <col ref="execrem" visibility="hidden"/>
  1460. <col ref="ioflag" visibility="hidden"/>
  1461. <script type="javascript" ev:event="onbuttonclick">
  1462. <![CDATA[
  1463. //if (grd_subordlist4.isCell(event.target) && grd_subordlist4.row >= grd_subordlist4.fixedRows && grd_subordlist4.col == grd_subordlist4.colRef("basecd")) {
  1464. model.makeNode("root/hidden/cnclcdlist/cnclcd");
  1465. window.load( "SPAEA01500_취소코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  1466. if ( model.getValue("root/hidden/cnclcdlist/cnclcd") != "") {
  1467. grd_subordlist4.valueMatrix(grd_subordlist4.row, grd_subordlist4.colRef("basecd")) = model.getValue("root/hidden/cnclcdlist/cnclcd");
  1468. model.refresh();
  1469. }
  1470. // }
  1471. ]]>
  1472. </script>
  1473. <script type="javascript" ev:event="onclick">
  1474. <![CDATA[
  1475. if( isDataCell() ){
  1476. var prcpdirecnm = "";
  1477. var prcpdelivefact = "";
  1478. var i = grd_subordlist4.row;
  1479. tar_acptrem.value = model.getValue("/root/main/subordlist/subordlist4["+i+"]/acptrem");
  1480. tar_execrem.value = model.getValue("/root/main/subordlist/subordlist4["+i+"]/execrem");
  1481. //tar_prcpremfact.value = model.getValue("/root/main/subordlist/subordlist4["+i+"]/prcpdelivefact");
  1482. //치료부위, 위치 조회 20140429 kya
  1483. prcpdirecnm = model.getValue("/root/main/subordlist/subordlist4[" +i + "]/rehbprcpcurepartnm") + "/" + model.getValue("/root/main/subordlist/subordlist4[" +i + "]/prcpdirecnm") + "/" + model.getValue("/root/main/subordlist/subordlist4[" +i + "]/rehbprcpcurefreqnm")
  1484. prcpdelivefact = model.getValue("/root/main/subordlist/subordlist4["+i+"]/prcpdelivefact")
  1485. //model.makeValue("/root/main/patrem/prcpdeliveinfo/prcpdelivefact" ,prcpdelivefact + " [ " + prcpdirecnm + " ] ");
  1486. tar_prcpremfact.value = prcpdelivefact + " [ " + prcpdirecnm + " ] "
  1487. }
  1488. ]]>
  1489. </script>
  1490. <script type="javascript" ev:event="onmousedown">
  1491. <![CDATA[
  1492. setPopupMenu("grd_subordlist4", false, "/root/hidden/popupmenu/menu/item", "name", "func");
  1493. ]]>
  1494. </script>
  1495. <script type="javascript" ev:event="DOMFocusOut">
  1496. <![CDATA[
  1497. initPopupMenu();
  1498. ]]>
  1499. </script>
  1500. <script type="javascript" ev:event="onaftersort">
  1501. <![CDATA[
  1502. grd_subordlist4.gridToInstance();
  1503. ]]>
  1504. </script>
  1505. </datagrid>
  1506. </case>
  1507. </switch>
  1508. <textarea id="tar_prcpremfact" ref="/root/send/prcprem" editable="false" style="left:355px; top:665px; width:278px; height:75; "/>
  1509. <caption id="caption10" class="tit_2" style="left:915px; top:645px; width:135px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">실시 comment</caption>
  1510. <caption id="caption8" class="tit_2" style="left:355px; top:645px; width:125px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">처방 comment</caption>
  1511. <caption id="caption9" class="tit_2" style="left:640px; top:645px; width:125px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">접수 comment</caption>
  1512. <textarea id="tar_execrem" ref="/root/send/execrem" editable="true" style="left:916px; top:665px; width:278px; height:75; "/>
  1513. <line id="line9" class="line_1" style="x1:637px; y1:661px; x2:912px; y2:661px; "/>
  1514. <line id="line10" class="line_1" style="x1:915px; y1:661px; x2:1195px; y2:661px; "/>
  1515. <line id="line11" class="line_1" style="x1:354px; y1:661px; x2:634px; y2:661px; "/>
  1516. <button id="btn_case1" class="btn_sw" group="tab2" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:0px; top:48px; width:55px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  1517. <caption>미접수</caption>
  1518. <script type="javascript" ev:event="DOMActivate">
  1519. <![CDATA[
  1520. //감염정보
  1521. model.makeValue("/root/hidden/isolinfo/isoldata", "");
  1522. fGetExamCureAcptList("M");
  1523. btn_bfacpt.selected = true;
  1524. model.setValue ("/root/temp/txtgosi_name","") ; //2009-06-29 7/1 본인부담율 인상으로 인한 메세지 처리
  1525. model.makeValue("/root/temp/prcprcptyn", "M"); //2009-06-30 2009-06-30 7/1 본인부담율 인상으로 인한 메세지 처리(적용)
  1526. ]]>
  1527. </script>
  1528. </button>
  1529. <button id="btn_case2" class="btn_sw" group="tab2" selected="false" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:55px; top:48px; width:55px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  1530. <caption>접수</caption>
  1531. <script type="javascript" ev:event="DOMActivate">
  1532. <![CDATA[
  1533. //감염정보
  1534. model.makeValue("/root/hidden/isolinfo/isoldata", "");
  1535. btn_aftacpt.selected = true;
  1536. fGetExamCureAcptList("J");
  1537. model.setValue ("/root/temp/txtgosi_name","") ; //2009-06-29 7/1 본인부담율 인상으로 인한 메세지 처리
  1538. model.makeValue("/root/temp/prcprcptyn", "J"); //2009-06-30 2009-06-30 7/1 본인부담율 인상으로 인한 메세지 처리(적용)
  1539. ]]>
  1540. </script>
  1541. </button>
  1542. <button id="btn_case3" class="btn_sw" group="tab2" selected="false" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:110px; top:48px; width:55px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  1543. <caption>실시</caption>
  1544. <script type="javascript" ev:event="DOMActivate">
  1545. <![CDATA[
  1546. //감염정보
  1547. model.makeValue("/root/hidden/isolinfo/isoldata", "");
  1548. fGetExamCureAcptList("S");
  1549. btn_aftacpt.selected = true;
  1550. model.setValue ("/root/temp/txtgosi_name","") ; //2009-06-29 7/1 본인부담율 인상으로 인한 메세지 처리
  1551. model.makeValue("/root/temp/prcprcptyn", "S"); //2009-06-30 2009-06-30 7/1 본인부담율 인상으로 인한 메세지 처리(적용)
  1552. ]]>
  1553. </script>
  1554. </button>
  1555. <button id="btn_case4" class="btn_sw" group="tab2" selected="false" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:165px; top:48px; width:60px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  1556. <caption>당일예약</caption>
  1557. <script type="javascript" ev:event="DOMActivate">
  1558. <![CDATA[
  1559. //감염정보
  1560. model.makeValue("/root/hidden/isolinfo/isoldata", "");
  1561. fGetExamCureAcptList("Y");
  1562. btn_bfacpt.selected = true;
  1563. model.setValue ("/root/temp/txtgosi_name","") ; //2009-06-29 7/1 본인부담율 인상으로 인한 메세지 처리
  1564. model.makeValue("/root/temp/prcprcptyn", "Y"); //2009-06-30 2009-06-30 7/1 본인부담율 인상으로 인한 메세지 처리(적용)
  1565. ]]>
  1566. </script>
  1567. </button>
  1568. <button id="btn_bfacpt" class="btn_sw" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:356px; top:295px; width:72px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  1569. <caption>미접수처방</caption>
  1570. <toggle case="case5" ev:event="onclick"/>
  1571. <script type="javascript" ev:event="DOMActivate">
  1572. <![CDATA[
  1573. model.setValue("/root/send/acptflag", "M"); //재활의학과(미접수)
  1574. submit("TRAEA01206", false);
  1575. for ( var i = 1; i < grd_subordlist3.rows; i++) {
  1576. if( (model.getValue("/root/main/subordlist/subordlist3[" + i + "]/rsrvdt")).substr(0, 8) == getCurrentDate()) {
  1577. model.setValue("/root/main/subordlist/subordlist3[" + i + "]/check", "Y");
  1578. }
  1579. }
  1580. model.refresh();
  1581. ]]>
  1582. </script>
  1583. </button>
  1584. <button id="btn_aftacpt" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:427px; top:295px; width:60px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  1585. <caption>접수처방</caption>
  1586. <toggle case="case6" ev:event="onclick"/>
  1587. <script type="javascript" ev:event="DOMActivate">
  1588. <![CDATA[
  1589. if ( btn_case1.selected == true || btn_case4.selected == true ) {
  1590. model.setValue("/root/send/acptflag", "T");
  1591. } else {
  1592. model.setValue("/root/send/acptflag", model.getValue("/root/send/data/acptlistflag"));
  1593. }
  1594. submit("TRAEA01207");
  1595. ]]>
  1596. </script>
  1597. </button>
  1598. <button id="button102" class="icon_left" style="left:288px; top:49px; width:26px; height:19px; ">
  1599. <caption/>
  1600. <script type="javascript" ev:event="onclick">
  1601. <![CDATA[
  1602. /*
  1603. if ( btn_case1.selected == true ) fGetWideListX1(switch1, grd_mainordlist1);
  1604. if ( btn_case2.selected == true ) fGetWideListX1(switch1, grd_mainordlist2);
  1605. if ( btn_case3.selected == true ) fGetWideListX1(switch1, grd_mainordlist3);
  1606. if ( btn_case4.selected == true ) fGetWideListX1(switch1, grd_mainordlist4);
  1607. fGetWideListX1(switch1, grd_mainordlist1);
  1608. fGetWideListX1(switch1, grd_mainordlist2);
  1609. fGetWideListX1(switch1, grd_mainordlist3);
  1610. fGetWideListX1(switch1, grd_mainordlist4);
  1611. */
  1612. fGetWideListX1("", grd_mainordlist);
  1613. ]]>
  1614. </script>
  1615. </button>
  1616. <button id="button103" class="icon_right" style="left:315px; top:49px; width:26px; height:19px; ">
  1617. <caption/>
  1618. <script type="javascript" ev:event="onclick">
  1619. <![CDATA[
  1620. /*
  1621. if ( btn_case1.selected == true ) fGetWideListX2(switch1, grd_mainordlist1);
  1622. if ( btn_case2.selected == true ) fGetWideListX2(switch1, grd_mainordlist2);
  1623. if ( btn_case3.selected == true ) fGetWideListX2(switch1, grd_mainordlist3);
  1624. if ( btn_case4.selected == true ) fGetWideListX2(switch1, grd_mainordlist4);
  1625. fGetWideListX2(switch1, grd_mainordlist1);
  1626. fGetWideListX2(switch1, grd_mainordlist2);
  1627. fGetWideListX2(switch1, grd_mainordlist3);
  1628. fGetWideListX2(switch1, grd_mainordlist4);
  1629. */
  1630. fGetWideListX2("", grd_mainordlist);
  1631. ]]>
  1632. </script>
  1633. </button>
  1634. <line id="line7" class="line_1" style="x1:0; y1:70px; x2:338px; y2:71px; "/>
  1635. <button id="btn_can" class="btn4_letter4" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1105px; top:294px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1636. <caption>예약취소</caption>
  1637. <script type="javascript" ev:event="DOMActivate">
  1638. <![CDATA[
  1639. //2011.03.24 취소시 메세지 처리
  1640. var message = messageBox("해당 예약을","Q007");
  1641. if ( message == 6 ) {
  1642. exeRsrvTransaction("cncl");
  1643. }
  1644. ]]>
  1645. </script>
  1646. </button>
  1647. <group id="group7" visibility="hidden" style="left:390px; top:80px; width:279px; height:119px; vertical-align:top; background-color:#080808; ">
  1648. <caption id="cpt_isoldata" visibility="hidden" style="left:2px; top:2px; width:275px; height:115px; font-size:11pt; font-weight:bold; color:#ff0000; background-color:#d6dadc; "/>
  1649. <button id="btn_close" class="btn5_letter2" visibility="hidden" style="left:227px; top:95px; width:42px; height:19px; ">
  1650. <caption>확인</caption>
  1651. <script type="javascript" ev:event="DOMActivate">
  1652. <![CDATA[
  1653. group7.visible = false;
  1654. cpt_isoldata.visible = false;
  1655. txt_isol.visible = false;
  1656. btn_close.visible = false;
  1657. line_isol.visible = false;
  1658. line_isol2.visible = false;
  1659. cpt_isoltitle.visible = false;
  1660. ]]>
  1661. </script>
  1662. </button>
  1663. <line id="line_isol" class="line_1" visibility="hidden" style="x1:10px; y1:21px; x2:270px; y2:21px; "/>
  1664. <line id="line_isol2" class="line_3" visibility="hidden" style="x1:10px; y1:93px; x2:270px; y2:93px; "/>
  1665. <textarea id="txt_isol" ref="/root/main/subordlist/isolinfo/isoldispcd" visibility="hidden" style="left:10px; top:26px; width:260px; height:66px; "/>
  1666. <caption id="cpt_isoltitle" class="tit_2" visibility="hidden" style="left:12px; top:7px; width:115px; height:13px; ">감염정보</caption>
  1667. </group>
  1668. <caption id="caption15" ref="/root/hidden/isolinfo/isoldata" visibility="visible" style="left:435px; top:48px; width:60px; height:20px; font-size:12pt; font-weight:bold; color:#ff0000; ">
  1669. <script type="javascript" ev:event="ondblclick">
  1670. <![CDATA[
  1671. group7.visible = true;
  1672. cpt_isoldata.visible = true;
  1673. txt_isol.visible = true;
  1674. btn_close.visible = true;
  1675. line_isol.visible = true;
  1676. line_isol2.visible = true;
  1677. cpt_isoltitle.visible = true;
  1678. ]]>
  1679. </script>
  1680. </caption>
  1681. <!-- KNUH_20100701_노회식_Start -->
  1682. <datagrid id="grd_mainordlist" nodeset="/root/main/ordlist1/mainordlist" autoresize="false" caption="등록번호^환자명^구분^병실^운동^전기온열^소아^작업^언어^심장재활^수^심뇌운동^임파부종^운동평가^퇴원예정일^orddd^orddeptcd^orddrid^cretno^sex^age^컨설트" colsep="^" colwidth="60, 77, 30, 52, 62, 62, 62, 62, 62, 62, 62, 62, 83, 62, 100, 100, 76, 65, 49, 42, 40, 58, 100" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:340px; height:665px; ">
  1683. <col ref="pid" style="text-align:center; "/>
  1684. <col ref="patnm" style="text-align:center; "/>
  1685. <col ref="prcpgenrflag" style="text-align:center; "/>
  1686. <col ref="roomcd" style="text-align:center; "/>
  1687. <col disabled="true" ref="execrid1" type="combo">
  1688. <choices>
  1689. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1690. <label ref="usernm"/>
  1691. <value ref="userid"/>
  1692. </itemset>
  1693. </choices>
  1694. </col>
  1695. <col disabled="true" ref="execrid2" type="combo">
  1696. <choices>
  1697. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1698. <label ref="usernm"/>
  1699. <value ref="userid"/>
  1700. </itemset>
  1701. </choices>
  1702. </col>
  1703. <col disabled="true" ref="execrid3" type="combo">
  1704. <choices>
  1705. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1706. <label ref="usernm"/>
  1707. <value ref="userid"/>
  1708. </itemset>
  1709. </choices>
  1710. </col>
  1711. <col disabled="true" ref="execrid4" type="combo">
  1712. <choices>
  1713. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1714. <label ref="usernm"/>
  1715. <value ref="userid"/>
  1716. </itemset>
  1717. </choices>
  1718. </col>
  1719. <col disabled="true" ref="execrid5" type="combo">
  1720. <choices>
  1721. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1722. <label ref="usernm"/>
  1723. <value ref="userid"/>
  1724. </itemset>
  1725. </choices>
  1726. </col>
  1727. <col disabled="true" ref="execrid6" type="combo">
  1728. <choices>
  1729. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1730. <label ref="usernm"/>
  1731. <value ref="userid"/>
  1732. </itemset>
  1733. </choices>
  1734. </col>
  1735. <col disabled="true" ref="execrid7" type="combo">
  1736. <choices>
  1737. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1738. <label ref="usernm"/>
  1739. <value ref="userid"/>
  1740. </itemset>
  1741. </choices>
  1742. </col>
  1743. <col disabled="true" ref="execrid8" type="combo">
  1744. <choices>
  1745. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1746. <label ref="usernm"/>
  1747. <value ref="userid"/>
  1748. </itemset>
  1749. </choices>
  1750. </col>
  1751. <col disabled="true" ref="execrid9" type="combo">
  1752. <choices>
  1753. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1754. <label ref="usernm"/>
  1755. <value ref="userid"/>
  1756. </itemset>
  1757. </choices>
  1758. </col>
  1759. <col disabled="true" ref="execrid10" type="combo">
  1760. <choices>
  1761. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1762. <label ref="usernm"/>
  1763. <value ref="userid"/>
  1764. </itemset>
  1765. </choices>
  1766. </col>
  1767. <!-- KNUH_20100701_노회식_End -->
  1768. <!--
  1769. <datagrid id="grd_mainordlist" nodeset="/root/main/ordlist1/mainordlist" autoresize="false" caption="등록번호^환자명^구분^병실^성인운동^소아운동^성인작업^소아작업^통증^언어^심리^퇴원예정일^caption1^caption2" colsep="^" colwidth="60, 77, 30, 52, 62, 62, 62, 62, 62, 62, 62, 100, 100, 100, 100, 100, 100, 100" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:340px; height:665px; ">
  1770. <col ref="pid"/>
  1771. <col ref="patnm"/>
  1772. <col ref="prcpgenrflag"/>
  1773. <col ref="roomcd"/>
  1774. <col disabled="true" ref="execrid1" type="combo">
  1775. <choices>
  1776. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1777. <label ref="usernm"/>
  1778. <value ref="userid"/>
  1779. </itemset>
  1780. </choices>
  1781. </col>
  1782. <col disabled="true" ref="execrid2" type="combo">
  1783. <choices>
  1784. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1785. <label ref="usernm"/>
  1786. <value ref="userid"/>
  1787. </itemset>
  1788. </choices>
  1789. </col>
  1790. <col disabled="true" ref="execrid3" type="combo">
  1791. <choices>
  1792. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1793. <label ref="usernm"/>
  1794. <value ref="userid"/>
  1795. </itemset>
  1796. </choices>
  1797. </col>
  1798. <col disabled="true" ref="execrid4" type="combo">
  1799. <choices>
  1800. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1801. <label ref="usernm"/>
  1802. <value ref="userid"/>
  1803. </itemset>
  1804. </choices>
  1805. </col>
  1806. <col disabled="true" ref="execrid5" type="combo">
  1807. <choices>
  1808. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1809. <label ref="usernm"/>
  1810. <value ref="userid"/>
  1811. </itemset>
  1812. </choices>
  1813. </col>
  1814. <col disabled="true" ref="execrid6" type="combo">
  1815. <choices>
  1816. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1817. <label ref="usernm"/>
  1818. <value ref="userid"/>
  1819. </itemset>
  1820. </choices>
  1821. </col>
  1822. <col disabled="true" ref="execrid7" type="combo">
  1823. <choices>
  1824. <itemset nodeset="/root/init/baseinfo/initexecrid/execridcd">
  1825. <label ref="usernm"/>
  1826. <value ref="userid"/>
  1827. </itemset>
  1828. </choices>
  1829. </col>
  1830. -->
  1831. <col ref="dschdclrdt" format="yyyy-mm-dd hh:nn:ss"/>
  1832. <col ref="orddd" visibility="hidden"/>
  1833. <col ref="orddeptcd" visibility="hidden"/>
  1834. <col ref="orddrid" visibility="hidden"/>
  1835. <col ref="cretno" visibility="hidden"/>
  1836. <col ref="sex" visibility="hidden"/>
  1837. <col ref="age" visibility="hidden"/>
  1838. <col ref="cstcnt" style="text-align:center; "/>
  1839. <col ref="aftrcptinfo" style="text-align:center; "/>
  1840. <script type="javascript" ev:event="onclick">
  1841. <![CDATA[
  1842. model.makeValue("/root/temp/txtgosi_name","") ; //2009-06-29 7/1 본인부담율 인상으로 인한 메세지 처리
  1843. grd_subordlist3.fixedcellischeck(0,0) =false;
  1844. grd_subordlist4.fixedcellischeck(0,0) =false;
  1845. if( isDataCell() ){
  1846. fGetExamCurePrcpList(grd_mainordlist);
  1847. if ( model.getValue("/root/temp/prcprcptyn") == "M" || model.getValue("/root/temp/prcprcptyn") == "J" || model.getValue("/root/temp/prcprcptyn") == "Y" ) {
  1848. fget0701GosiPrcpRcptChk(); //2009-06-29 7/1 본인부담율 인상으로 인한 메세지 처리
  1849. }
  1850. // 2011.05.11 cyw 환자조회시 상단정보 표시하기.
  1851. if( btn_case1.selected == true || btn_case4.selected == true ){
  1852. if (grd_subordlist3.rows > 1){
  1853. grd_subordlist3.row = 1;
  1854. fTopInfo1();
  1855. }else{
  1856. delPatientInfos();
  1857. }
  1858. }else if( btn_case2.selected == true || btn_case3.selected == true || button9.selected == true ){
  1859. if (grd_subordlist4.rows > 1){
  1860. grd_subordlist4.row = 1;
  1861. fTopInfo2();
  1862. }else{
  1863. delPatientInfos();
  1864. }
  1865. }
  1866. }
  1867. ]]>
  1868. </script>
  1869. <script type="javascript" ev:event="onaftersort">
  1870. <![CDATA[
  1871. grd_mainordlist.gridToInstance();
  1872. ]]>
  1873. </script>
  1874. <script type="javascript" ev:event="onmousedown">
  1875. <![CDATA[
  1876. setPopupMenu("grd_mainordlist", false, "/root/init/popupmenu/grid01/item", "name", "func");
  1877. ]]>
  1878. </script>
  1879. </datagrid>
  1880. <button id="button9" class="btn_sw" group="tab2" selected="false" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:225px; top:48px; width:60px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  1881. <caption>전체</caption>
  1882. <script type="javascript" ev:event="DOMActivate">
  1883. <![CDATA[
  1884. //감염정보
  1885. model.makeValue("/root/hidden/isolinfo/isoldata", "");
  1886. fGetExamCureAcptList("L");
  1887. btn_aftacpt.selected = true;
  1888. model.setValue ("/root/temp/txtgosi_name","") ; //2009-06-29 7/1 본인부담율 인상으로 인한 메세지 처리
  1889. model.makeValue("/root/temp/prcprcptyn", "L"); //2009-06-30 2009-06-30 7/1 본인부담율 인상으로 인한 메세지 처리(적용)
  1890. ]]>
  1891. </script>
  1892. </button>
  1893. <shape id="rectangle3" appearance="rectangle" style="left:501px; top:299px; width:20px; height:15px; background-color:#ffff00; "/>
  1894. <shape id="rectangle4" appearance="rectangle" style="left:542px; top:299px; width:20px; height:15px; background-color:#ccffcc; "/>
  1895. <shape id="rectangle5" appearance="rectangle" style="left:620px; top:299px; width:20px; height:15px; background-color:#FF9A00; "/>
  1896. <caption id="caption26" style="left:641px; top:299px; width:41px; height:15px; ">미수납</caption>
  1897. <caption id="caption27" style="left:526px; top:299px; width:18px; height:15px; ">V</caption>
  1898. <caption id="caption28" style="left:565px; top:299px; width:50px; height:15px; ">오늘결과</caption>
  1899. <datagrid id="grd_subordlist5" nodeset="/root/main/subordlist/subordlist5" caption="진료과(진료의)^예약일시" colsep="^" colwidth="90, 103" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:980px; top:73px; width:211px; height:212px; ">
  1900. <col ref="suminfo"/>
  1901. <col ref="orddt" format="yyyy-mm-dd hh:nn"/>
  1902. </datagrid>
  1903. <caption id="caption11" class="tit_2" style="left:360px; top:58px; width:82px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">상병</caption>
  1904. </group>
  1905. <group id="group4" scroll="auto" style="left:0px; top:753px; width:1190px; height:27px; ">
  1906. <button id="button2" class="btn3_letter4" style="left:82px; top:5px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  1907. <caption>실시관리</caption>
  1908. <script type="javascript" ev:event="DOMActivate">
  1909. <![CDATA[
  1910. //navigate("SMAER00100_실시관리(재활)");
  1911. model.makeNode("/root/senda/pid");
  1912. if (grd_mainordlist.row > 0){
  1913. model.setValue("/root/senda/pid", model.getValue("/root/main/ordlist1/mainordlist[" + grd_mainordlist.row + "]/pid"));
  1914. }
  1915. open("SMAER00100", "","","", "SMAER00100", "/root/senda/pid","/root/send/data/srchpid");
  1916. // modal("SMAER00100", "","","", "SMAER00100", "/root/senda/pid","/root/send/data/srchpid","sysmenu:hidden;, nocancel:hidden;","","","notaskbar");
  1917. ]]>
  1918. </script>
  1919. </button>
  1920. <button id="button3" class="btn3_letter4" style="left:0; top:5px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  1921. <caption>치료예약</caption>
  1922. <script type="javascript" ev:event="DOMActivate">
  1923. <![CDATA[
  1924. model.makeNode("/root/senda/pid");
  1925. model.makeNode("/root/senda/ioflag");
  1926. if (grd_mainordlist.row > 0){
  1927. model.setValue("/root/senda/pid", model.getValue("/root/main/ordlist1/mainordlist[" + grd_mainordlist.row + "]/pid"));
  1928. model.setValue("/root/senda/ioflag", model.getValue("/root/main/ordlist1/mainordlist[" + grd_mainordlist.row + "]/prcpgenrflag"));
  1929. }
  1930. open("SMAEA01900", "","","", "SMAEA01900", "/root/senda","/root/senda");
  1931. // modal("SMAEA01900", "","","", "SMAEA01900", "/root/senda","/root/senda");
  1932. ]]>
  1933. </script>
  1934. </button>
  1935. <button id="button21" class="btn3_letter8" style="left:164px; top:5px; width:128px; height:22px; background-image:../../../com/commonweb/images/btn3_letter9.gif; ">
  1936. <caption>환자진료정보조회</caption>
  1937. <script type="javascript" ev:event="onclick">
  1938. <![CDATA[
  1939. var pid ="";
  1940. var pidpath="";
  1941. // if ( btn_case1.selected == true ) {
  1942. // pid = model.getValue("/root/main/ordlist1/mainordlist["+grd_mainordlist1.row+"]/pid");
  1943. // pidpath = "/root/main/ordlist1/mainordlist["+grd_mainordlist1.row+"]/pid";
  1944. // }
  1945. // if ( btn_case2.selected == true ) {
  1946. // pid = model.getValue("/root/main/ordlist2/mainordlist["+grd_mainordlist2.row+"]/pid");
  1947. // pidpath = "/root/main/ordlist2/mainordlist["+grd_mainordlist2.row+"]/pid";
  1948. // }
  1949. // if ( btn_case3.selected == true ) {
  1950. // pid = model.getValue("/root/main/ordlist3/mainordlist["+grd_mainordlist3.row+"]/pid");
  1951. // pidpath = "/root/main/ordlist3/mainordlist["+grd_mainordlist3.row+"]/pid";
  1952. // }
  1953. // if ( btn_case4.selected == true ) {
  1954. // pid = model.getValue("/root/main/ordlist4/mainordlist["+grd_mainordlist4.row+"]/pid");
  1955. // pidpath = "/root/main/ordlist4/mainordlist["+grd_mainordlist4.row+"]/pid";
  1956. // }
  1957. //
  1958. if ( grd_mainordlist.row > 0) {
  1959. pid = model.getValue("/root/main/ordlist1/mainordlist["+grd_mainordlist.row+"]/pid");
  1960. pidpath = "/root/main/ordlist1/mainordlist["+grd_mainordlist.row+"]/pid";
  1961. var child = getOpenWindow("SMMMO02500") ;
  1962. if (child != null ) {
  1963. child.model.setValue("/root/main/patinfolist/pid" , pid );
  1964. setParameter ( "SMMMO02500_cond" , pid );
  1965. //child.btn_bfprcpsrch.dispatch("DOMActivate");
  1966. //child.ipt_pid.dispatch("onkeypress");
  1967. child.javascript.fReqGetPatComnInfo("/root/send/reqdata", pid );
  1968. child.button1.selected = true;
  1969. child.model.toggle("case1");
  1970. child.model.copyNode("/root/main/patinfolist", "/root/main/srchinfo/patinfolist");
  1971. child.model.removeNodeset("/root/main/bfprcp/prcplist");
  1972. child.model.removeNodeset("/root/main/bfprcpday/bfprcpday");
  1973. child.grd_prcpdd.visible = false;
  1974. child.grd_bfprcplist.attribute("left") = 2;
  1975. child.grd_bfprcplist.attribute("width")= 1190;
  1976. child.model.refresh();
  1977. /*
  1978. if (child.grd_patchosinfo.rows > 0){
  1979. child.grd_patchosinfo.row = 1;
  1980. }
  1981. child.javascript.fPatChosInfo();
  1982. */
  1983. }else{
  1984. setParameter ( "SMMMO02500_cond" , pid);
  1985. open("SMMMO02500", "","","", "SMMMO02500", pidpath ,"/root/init/srchcond2");
  1986. }
  1987. }
  1988. // modal("SMMMO02500", 0, 100, 150,"SMMMO02500", "", "");
  1989. ]]>
  1990. </script>
  1991. </button>
  1992. <button id="btn_acpt" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:808px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1993. <caption>접수</caption>
  1994. <script type="javascript" ev:event="DOMActivate">
  1995. <![CDATA[
  1996. var rtn = fExeAccept(1);
  1997. if ( rtn != "0" ) {
  1998. fGetToggleAcptList();
  1999. }
  2000. ]]>
  2001. </script>
  2002. </button>
  2003. <button id="btn_acptcncl" class="btn4_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter4.gif" style="left:866px; top:5px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
  2004. <caption>접수취소</caption>
  2005. <script type="javascript" ev:event="DOMActivate">
  2006. <![CDATA[
  2007. var rtn = fExeAccept(2);
  2008. if ( rtn != "0" ) {
  2009. fGetToggleAcptList();
  2010. }
  2011. ]]>
  2012. </script>
  2013. </button>
  2014. <button id="btn_roomupdt" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1053px; top:5px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  2015. <caption>실수정</caption>
  2016. <script type="javascript" ev:event="DOMActivate">
  2017. <![CDATA[
  2018. if ( btn_aftacpt.selected == true ) {
  2019. var cnt = 0;
  2020. for(var i=grd_subordlist4.fixedRows; i<grd_subordlist4.rows; i++){
  2021. // 0 : None , 2: Update
  2022. if ( grd_subordlist4.rowstatus(i) == 2 ) cnt++;
  2023. }
  2024. if ( cnt == 0 ) {
  2025. messageBox("실수정에 대한 변경이 ","I004");
  2026. return;
  2027. }
  2028. fSetExamCureRoomCodeList(grd_subordlist4);
  2029. }else {
  2030. messageBox("접수된 처방내역 조회가 아니면 실수정을 ","E001");
  2031. return;
  2032. }
  2033. ]]>
  2034. </script>
  2035. </button>
  2036. <button id="button1" class="btn3_letter8" style="left:292px; top:5px; width:128px; height:22px; background-image:../../../com/commonweb/images/btn3_letter9.gif; ">
  2037. <caption>Progress Note</caption>
  2038. <script type="javascript" ev:event="DOMActivate">
  2039. <![CDATA[
  2040. var pid = model.getValue("/root/send/data/grd_info/grid_data/pid");
  2041. var orddd = model.getValue("/root/send/data/grd_info/grid_data/orddd");
  2042. var cretno = model.getValue("/root/send/data/grd_info/grid_data/cretno");
  2043. var ioflag = model.getValue("/root/send/data/grd_info/grid_data/prcpgenrflag");
  2044. var orddeptcd = model.getValue("/root/send/data/grd_info/grid_data/orddeptcd");
  2045. var orddrid = model.getValue("/root/send/data/grd_info/grid_data/orddrid");
  2046. var patnm = model.getValue("/root/send/data/grd_info/grid_data/patnm");
  2047. var age = model.getValue("/root/send/data/grd_info/grid_data/age");
  2048. var sex = model.getValue("/root/send/data/grd_info/grid_data/sex");
  2049. //var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
  2050. var suppdeptcd = model.getValue("/root/init/baseinfo1/initsuppdeptcd/A530[" + 1 + "]/cdid");
  2051. // 퇴원 후 제증명 발급을 위해 외래등록한 경우 외래 수진이력을 재 조회해서
  2052. // Progress Note에 외래 수진이력 넘기는 오류가 발생하여 주석처리함. 2009.07.17 김건기
  2053. // if(ioflag == "I") {
  2054. // submit("TRAER00109");
  2055. //
  2056. // if( model.getValue("root/temp/progressnote/list/orddd") != "" ) {
  2057. //
  2058. // pid = model.getValue("/root/send/data/grd_info/grid_data/pid");
  2059. // orddd = model.getValue("/root/temp/progressnote/list/orddd");
  2060. // cretno = model.getValue("/root/temp/progressnote/list/cretno");
  2061. // ioflag = model.getValue("/root/temp/progressnote/list/ioflag");
  2062. // orddeptcd = model.getValue("/root/temp/progressnote/list/orddeptcd");
  2063. // orddrid = model.getValue("/root/temp/progressnote/list/orddrid");
  2064. //
  2065. // } else if( model.getValue("root/temp/progressnote/list/orddd") == "" ) {
  2066. // messageBox("환자정보가 ", "E004");
  2067. // }
  2068. // }
  2069. setParameter("SPMMR05400_parm_pinfo", pid + "▦" + orddd + "▦" + cretno + "▦" + ioflag + "▦" + orddeptcd + "▦" + orddrid +"▦"+ patnm + "▦" + age + "▦" + sex + "▦" + suppdeptcd );
  2070. // open("SPMMR05400", "", "", "" ,"SPMMR05400", "", "");
  2071. modal("SPMMR05400", "", "", "" ,"SPMMR05400", "", "");
  2072. ]]>
  2073. </script>
  2074. </button>
  2075. <button id="button4" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1122px; top:5px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  2076. <caption>과접수</caption>
  2077. <script type="javascript" ev:event="DOMActivate">
  2078. <![CDATA[
  2079. submit("TRAER00109");
  2080. model.setValue("/root/send/dracptlist/pid", model.getValue("/root/send/data/grd_info/grid_data/pid"));
  2081. model.setValue("/root/send/dracptlist/orddd", model.getValue("/root/temp/progressnote/list/orddd"));
  2082. model.setValue("/root/send/dracptlist/cretno", model.getValue("/root/temp/progressnote/list/cretno"));
  2083. model.setValue("/root/send/dracptlist/ordtm", getCurrentTime().substr(0,4));
  2084. submit("TXAEA01203");
  2085. ]]>
  2086. </script>
  2087. </button>
  2088. <button id="button5" class="btn3_letter6" style="left:422px; top:5px; width:104px; height:22px; ">
  2089. <caption>통합기록조회</caption>
  2090. <script type="javascript" ev:event="DOMActivate">
  2091. <![CDATA[
  2092. setParameter("SMMRI00400_param_pid", model.getValue("/root/send/data/grd_info/grid_data/pid"));
  2093. setParameter("SMMRI00400_param_chosflag", model.getValue("/root/send/data/grd_info/grid_data/prcpgenrflag"));
  2094. //내원구분은 I O S E D 모두 가능
  2095. modal("SMMRI00400", "", "", "" ,"SMMMR01600", "", "");
  2096. ]]>
  2097. </script>
  2098. </button>
  2099. <button id="button6" class="btn3_letter7" style="left:527px; top:5px; width:116px; height:22px; ">
  2100. <caption>Alarm Notify</caption>
  2101. <script type="javascript" ev:event="DOMActivate">
  2102. <![CDATA[
  2103. openInternal("modeless_topmost","SPAEA02000","scn",1,1000,0,0,"","", "min;max:hidden;", 0);
  2104. ]]>
  2105. </script>
  2106. </button>
  2107. <button id="button7" class="btn4_letter6" disable.background-image="../../../com/commonweb/images/dis_btn4_letter4.gif" style="left:947px; top:5px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
  2108. <caption>접수예약취소</caption>
  2109. <script type="javascript" ev:event="DOMActivate">
  2110. <![CDATA[
  2111. var rtn = fExeAccept(3);
  2112. if ( rtn != "0" ) {
  2113. fGetToggleAcptList();
  2114. }
  2115. ]]>
  2116. </script>
  2117. </button>
  2118. <button id="button8" class="btn3_letter4" style="left:644px; top:5px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  2119. <caption>일괄반환</caption>
  2120. <script type="javascript" ev:event="DOMActivate">
  2121. <![CDATA[
  2122. // if ( btn_case1.selected == true ) {
  2123. // model.makeValue("/root/temp/totaldclist/patinfolist/pid", model.getValue("/root/main/ordlist1/mainordlist["+grd_mainordlist1.row+"]/pid"));
  2124. // model.makeValue("/root/temp/totaldclist/patinfolist/sexage", model.getValue("/root/main/ordlist1/mainordlist["+grd_mainordlist1.row+"]/sna"));
  2125. // model.makeValue("/root/temp/totaldclist/patinfolist/hngnm", model.getValue("/root/main/ordlist1/mainordlist["+grd_mainordlist1.row+"]/patnm"));
  2126. // // model.makeValue("/root/temp/totaldclist/patinfolist/rrgstno", model.getValue("/root/main/ordlist1/mainordlist["+grd_mainordlist1.row+"]/rrgstno"));
  2127. // modal("SPAEA01201","","","","","/root/temp/totaldclist/patinfolist","/root/temp/patinfolist");
  2128. // }
  2129. // if ( btn_case2.selected == true ) {
  2130. // model.makeValue("/root/temp/totaldclist/patinfolist/pid", model.getValue("/root/main/ordlist2/mainordlist["+grd_mainordlist2.row+"]/pid"));
  2131. // model.makeValue("/root/temp/totaldclist/patinfolist/sexage", model.getValue("/root/main/ordlist2/mainordlist["+grd_mainordlist2.row+"]/sna"));
  2132. // model.makeValue("/root/temp/totaldclist/patinfolist/hngnm", model.getValue("/root/main/ordlist2/mainordlist["+grd_mainordlist2.row+"]/patnm"));
  2133. // modal("SPAEA01201","","","","","/root/temp/totaldclist/patinfolist","/root/temp/patinfolist");
  2134. // }
  2135. // if ( btn_case3.selected == true ) {
  2136. // model.makeValue("/root/temp/totaldclist/patinfolist/pid", model.getValue("/root/main/ordlist3/mainordlist["+grd_mainordlist3.row+"]/pid"));
  2137. // model.makeValue("/root/temp/totaldclist/patinfolist/sexage", model.getValue("/root/main/ordlist3/mainordlist["+grd_mainordlist3.row+"]/sna"));
  2138. // model.makeValue("/root/temp/totaldclist/patinfolist/hngnm", model.getValue("/root/main/ordlist3/mainordlist["+grd_mainordlist3.row+"]/patnm"));
  2139. // modal("SPAEA01201","","","","","/root/temp/totaldclist/patinfolist","/root/temp/patinfolist");
  2140. // }
  2141. // if ( btn_case4.selected == true ) {
  2142. // model.makeValue("/root/temp/totaldclist/patinfolist/pid", model.getValue("/root/main/ordlist4/mainordlist["+grd_mainordlist4.row+"]/pid"));
  2143. // model.makeValue("/root/temp/totaldclist/patinfolist/sexage", model.getValue("/root/main/ordlist4/mainordlist["+grd_mainordlist4.row+"]/sna"));
  2144. // model.makeValue("/root/temp/totaldclist/patinfolist/hngnm", model.getValue("/root/main/ordlist4/mainordlist["+grd_mainordlist4.row+"]/patnm"));
  2145. // modal("SPAEA01201","","","","","/root/temp/totaldclist/patinfolist","/root/temp/patinfolist");
  2146. // }
  2147. if ( grd_mainordlist.row > 0 ) {
  2148. model.makeValue("/root/temp/totaldclist/patinfolist/pid", model.getValue("/root/main/ordlist1/mainordlist["+grd_mainordlist.row+"]/pid"));
  2149. model.makeValue("/root/temp/totaldclist/patinfolist/sexage", model.getValue("/root/main/ordlist1/mainordlist["+grd_mainordlist.row+"]/sna"));
  2150. model.makeValue("/root/temp/totaldclist/patinfolist/hngnm", model.getValue("/root/main/ordlist1/mainordlist["+grd_mainordlist.row+"]/patnm"));
  2151. // model.makeValue("/root/temp/totaldclist/patinfolist/rrgstno", model.getValue("/root/main/ordlist1/mainordlist["+grd_mainordlist1.row+"]/rrgstno"));
  2152. modal("SPAEA01201","","","","","/root/temp/totaldclist/patinfolist","/root/temp/patinfolist");
  2153. }
  2154. ]]>
  2155. </script>
  2156. </button>
  2157. <button id="button10" class="btn3_letter4" style="left:725px; top:5px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  2158. <caption>예약현황</caption>
  2159. <script type="javascript" ev:event="DOMActivate">
  2160. <![CDATA[
  2161. //model.makeValue("/root/senda/pid", getGlobalVariable("gv_pid", "A"));
  2162. model.makeNode("/root/senda/pid");
  2163. if (grd_mainordlist.row > 0){
  2164. model.setValue("/root/senda/pid", model.getValue("/root/main/ordlist1/mainordlist[" + grd_mainordlist.row + "]/pid"));
  2165. }
  2166. open("SMAEA04100", "","","", "SMAEA04100", "/root/senda/pid","/root/send/srchpid");
  2167. ]]>
  2168. </script>
  2169. </button>
  2170. </group>
  2171. </xhtml:body>
  2172. </xhtml:html>