SMMRC03000_사본신청발급.xrw 82 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>사본발행신청</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <pid/>
  12. <orddd/>
  13. <cretno/>
  14. <hngnm/>
  15. <sa/>
  16. <rrgstno1/>
  17. <rrgstno2/>
  18. <fromdd/>
  19. <todd/>
  20. <ioflag/>
  21. <copyseqno/>
  22. <prcpsrcflag/>
  23. <orddeptnm/>
  24. <orddeptcd/>
  25. <roomcd/>
  26. <dschdd/>
  27. <emrordflag/>
  28. <age/>
  29. <wardhospnm/>
  30. <recepinfochk>Y</recepinfochk>
  31. </cond>
  32. <apphist>
  33. <applist/>
  34. </apphist>
  35. <result/>
  36. <scrnstatus/>
  37. <appinfo>
  38. <copyinfo>
  39. <addstatus/>
  40. <status/>
  41. <copyseqno/>
  42. <pid/>
  43. <appdd/>
  44. <apptm/>
  45. <appdeptcd/>
  46. <appdeptnm/>
  47. <appdrid/>
  48. <appdrnm/>
  49. <appmannm/>
  50. <appmanflag>1</appmanflag>
  51. <issgoalcd/>
  52. <issgoalnm/>
  53. <issgoaletc/>
  54. <issgoaletccd/>
  55. <issgoaletcnm/>
  56. <issdd/>
  57. <issseqno/>
  58. <emrordflag/>
  59. <emrorddeptcd/>
  60. <emrappcopies/>
  61. <delivefact/>
  62. <memo/>
  63. <orddd/>
  64. <cretno/>
  65. <cncldt/>
  66. <prntdt/>
  67. <shtno/>
  68. <trustyn>N</trustyn>
  69. <appmanetc/>
  70. <delivefact/>
  71. </copyinfo>
  72. </appinfo>
  73. <outpathistlist>
  74. <outpathistlist>
  75. <checkflag/>
  76. <pid/>
  77. <cretno/>
  78. <orddd/>
  79. <orddeptcd/>
  80. <orddrid/>
  81. <orddeptnm/>
  82. <orddrnm/>
  83. <ordtype/>
  84. <emrflag/>
  85. </outpathistlist>
  86. </outpathistlist>
  87. <out>
  88. <pid/>
  89. <chrtflag/>
  90. <fromdd/>
  91. <todd/>
  92. </out>
  93. <in>
  94. <pid/>
  95. <chrtflag/>
  96. <fromdd/>
  97. <todd/>
  98. </in>
  99. <inpathistlist>
  100. <inpathistlist/>
  101. </inpathistlist>
  102. <issinfo>
  103. <emrapplist/>
  104. <copyinfo/>
  105. </issinfo>
  106. <emrinfo>
  107. <emrlist/>
  108. </emrinfo>
  109. <patprcpinfo>
  110. <patprcplist/>
  111. </patprcpinfo>
  112. <otherinfo>
  113. <prcpinfo/>
  114. <testinfo/>
  115. <testinfo1/>
  116. <testinfo2/>
  117. <testinfo3/>
  118. <testinfo4/>
  119. <testinfo5/>
  120. <testinfo6/>
  121. <testinfo7/>
  122. <testinfo8/>
  123. <outchrtflag/>
  124. <anoinfo/>
  125. <lang>K</lang>
  126. <onlytest/>
  127. <bmtappyn/>
  128. <addimageyn/>
  129. </otherinfo>
  130. <isshist>
  131. <isslist>
  132. <issno/>
  133. <ioflagnm/>
  134. <pid/>
  135. <hngnm/>
  136. <rrgstno1/>
  137. <rrgstno2/>
  138. <orddeptnm/>
  139. <atdoctnm/>
  140. <appdrnm/>
  141. <appmannm/>
  142. <issgoalcd/>
  143. <trustyn/>
  144. <rcptyn/>
  145. <totalcopies/>
  146. <issnm/>
  147. <issdt/>
  148. <appdt/>
  149. <prntlim/>
  150. <unprepyn/>
  151. <orddd/>
  152. <cretno/>
  153. <ioflag/>
  154. <orddeptcd/>
  155. <orddrid/>
  156. <copyseqno/>
  157. </isslist>
  158. </isshist>
  159. <rcptlist>
  160. <rcptlist/>
  161. </rcptlist>
  162. <patinfo>
  163. <patinfolist/>
  164. </patinfo>
  165. <paper>
  166. <paperyn/>
  167. <deathyn/>
  168. </paper>
  169. <paminfo/>
  170. <midissinfo>
  171. <emrapplist/>
  172. <totemrapplist/>
  173. </midissinfo>
  174. <cnfmlist>
  175. <cnfmlist/>
  176. </cnfmlist>
  177. <clamyn>
  178. <clamyn/>
  179. </clamyn>
  180. <recsrch>
  181. <reclist/>
  182. </recsrch>
  183. <rcptpossynmsg/>
  184. <delivefactcnt/>
  185. <msg>
  186. <msg/>
  187. </msg>
  188. </main>
  189. <send>
  190. <reqdata/>
  191. <savedata/>
  192. <search/>
  193. <iemr>
  194. <treatno/>
  195. <pid/>
  196. <orddeptcd/>
  197. <indd/>
  198. <docucd/>
  199. <ioflag/>
  200. <cmc_cretno/>
  201. <cmc_spcid/>
  202. <cmc_orddate/>
  203. <cmc_orderseqno/>
  204. </iemr>
  205. <aftcert/>
  206. <msg>
  207. <userid/>
  208. <deptcd/>
  209. </msg>
  210. <chngissinfo>
  211. <orddoctid/>
  212. <issvaliinfoflag/>
  213. </chngissinfo>
  214. <xhiststat>
  215. <pid/>
  216. <orddd/>
  217. <cretno/>
  218. </xhiststat>
  219. <docinfo/>
  220. <reqtrns/>
  221. </send>
  222. <hidden>
  223. <insocrtag/>
  224. <calcscorcd/>
  225. <tmpcalcscorcd/>
  226. <defcalcscorcd/>
  227. <defcalcscornm/>
  228. <addcalcscorcd/>
  229. <addcalcscornm/>
  230. <inputbox/>
  231. <freesugauseyn/>
  232. <freecalcscorcd/>
  233. <freecalcscornm/>
  234. <aftcert/>
  235. <docinfo/>
  236. </hidden>
  237. <init>
  238. <orddept/>
  239. <userlist/>
  240. <paminfo>
  241. <list/>
  242. </paminfo>
  243. <issgoalcd/>
  244. <ioflaglist/>
  245. <deptlist>
  246. <dept/>
  247. </deptlist>
  248. <userinfo>
  249. <userlist/>
  250. </userinfo>
  251. <prcpstatcd/>
  252. <PAM>
  253. <P0029list>
  254. <P0029/>
  255. </P0029list>
  256. </PAM>
  257. <copy_menu>
  258. <menu>
  259. <label>기본수가추가</label>
  260. <func>fAddCalcScor</func>
  261. </menu>
  262. <menu>
  263. <label>컬러수가추가</label>
  264. <func>fAddColorCalcScor</func>
  265. </menu>
  266. <menu>
  267. <label>수가삭제</label>
  268. <func>fDelCalcScor</func>
  269. </menu>
  270. </copy_menu>
  271. </init>
  272. <temp>
  273. <issinfo>
  274. <emrlist>
  275. <chrtflag/>
  276. <ioflag/>
  277. <orddd/>
  278. <dschdd/>
  279. <orddeptnm/>
  280. <atdoctnm/>
  281. <formrecdt/>
  282. <formnm/>
  283. <shtno/>
  284. <formcd/>
  285. <reckeyno/>
  286. <orddeptcd/>
  287. <atdoctid/>
  288. <testflag/>
  289. <pid/>
  290. <cretno/>
  291. <midindxseq/>
  292. </emrlist>
  293. <copyinfo/>
  294. </issinfo>
  295. <patprcpinfo>
  296. <patprcplist/>
  297. </patprcpinfo>
  298. <hardcd/>
  299. <hardcd2/>
  300. <hardcd3/>
  301. <hardcd4/>
  302. <hardcd5/>
  303. <hardcd6/>
  304. <hardcd7/>
  305. </temp>
  306. <tmpinicert/>
  307. <tmpinicert2/>
  308. <imgrec>
  309. <iemr>
  310. <treatno/>
  311. <pid/>
  312. <orddeptcd/>
  313. <indd/>
  314. <docucd/>
  315. <ioflag/>
  316. <cmc_cretno/>
  317. <cmc_spcid/>
  318. <cmc_orddate/>
  319. <cmc_orderseqno/>
  320. </iemr>
  321. </imgrec>
  322. <copysend/>
  323. <tmpcopyinfo/>
  324. <inisend/>
  325. <prthist>
  326. <pid/>
  327. <signno/>
  328. <reckind/>
  329. <readprtflag/>
  330. <formcd/>
  331. <signflag/>
  332. <orddd/>
  333. <chosflag/>
  334. <refusge/>
  335. <refremark/>
  336. </prthist>
  337. <return/>
  338. <temp2>
  339. <appinfo>
  340. <copyinfo>
  341. <totalcopies/>
  342. <totalshrtno/>
  343. </copyinfo>
  344. </appinfo>
  345. <rcptlist>
  346. <rcptlist/>
  347. </rcptlist>
  348. </temp2>
  349. <midtemp/>
  350. <isstemp/>
  351. <totisstemp/>
  352. <tmphdcd/>
  353. <popupmenu>
  354. <menu>
  355. <item>
  356. <name>사본발행 내역삭제</name>
  357. <func>fdeletecopy</func>
  358. </item>
  359. </menu>
  360. </popupmenu>
  361. <msg>
  362. <msg/>
  363. </msg>
  364. <temp3>
  365. <recepinfo>
  366. <recepinfo/>
  367. </recepinfo>
  368. </temp3>
  369. <temp4>
  370. <xhiststat>
  371. <orddd/>
  372. <histstat/>
  373. </xhiststat>
  374. </temp4>
  375. <temp5/>
  376. </root>
  377. </instance>
  378. <submission id="TRMMR05501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/result/pathistlist"/>
  379. <script type="javascript" ev:event="xforms-ready">
  380. <![CDATA[
  381. fInitialize();
  382. ]]>
  383. </script>
  384. <submission id="TRMRC03003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/apphist"/>
  385. <submission id="TRMRC03004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/outpathistlist"/>
  386. <submission id="TRMRC03005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/inpathistlist"/>
  387. <submission id="TRMRC03006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/issinfo"/>
  388. <submission id="TRMRC03007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/emrinfo"/>
  389. <submission id="TRMRC03024" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/emrinfo"/>
  390. <submission id="TRMRC03021" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/midissinfo"/>
  391. <submission id="TRMRC03017" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp/issinfo"/>
  392. <submission id="TRMRC03008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp/issinfo"/>
  393. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  394. <submission id="TRMMBTRMRC0302104102" mediatype="application/x-www-form-urlencoded" method="post"/>
  395. <submission id="TRZSU10117" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  396. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  397. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  398. <submission id="TRMRC01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/appinfo"/>
  399. <submission id="TRMRC03010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/main/appinfo"/>
  400. <submission id="TRMRC03011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/outpathistlist"/>
  401. <submission id="TRMRC03012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/inpathistlist"/>
  402. <submission id="TRMRC03013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/issinfo"/>
  403. <submission id="TRMRC03014" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/rcptlist"/>
  404. <submission id="TRMRC03015" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/issinfo"/>
  405. <submission id="TRMRC03022" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/midtemp/midissinfo"/>
  406. <submission id="TRMRC03023" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/rcptlist"/>
  407. <submission id="TRMRC01203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/emrinfo"/>
  408. <submission id="TRMRI00415" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/tmpinicert"/>
  409. <submission id="TRMRI00407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/copysend" resultref="/root/tmpcopyinfo"/>
  410. <submission id="TXMRC01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance"/>
  411. <submission id="TRMRC01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/isshist"/>
  412. <submission id="TXMRC03004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/>
  413. <submission id="TRMRC03016" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/tmpinicert"/>
  414. <submission id="TRMRC03026" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/tmpinicert"/>
  415. <submission id="TRMRC03025" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/tmpinicert"/>
  416. <submission id="TRMRC03029" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/tmpinicert"/>
  417. <submission id="TRMRI02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/inisend" resultref="/root/tmpinicert"/>
  418. <submission id="TRMRC03020" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/inisend" resultref="/root/tmpinicert"/>
  419. <submission id="TRMRC03019" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/paper"/>
  420. <submission id="TXMRC03005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/return"/>
  421. <submission id="TXMRC03006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/return"/>
  422. <submission id="TRMRC03027" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cnfmlist"/>
  423. <submission id="TRMRC03030" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/clamyn"/>
  424. <submission id="TRMRC03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/_send" replace="instance" resultref="/root/main/charts"/>
  425. <submission id="TRMRC03031" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/tmpinicert"/>
  426. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  427. <submission id="TRMMB04105" mediatype="application/x-www-form-urlencoded" method="post"/>
  428. <submission id="TRMRI03004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmpinicert"/>
  429. <submission id="TRMRF03104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/hardcdlist"/>
  430. <submission id="TRMRC03103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/tmppatinfo"/>
  431. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  432. <submission id="TXPAO99906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/PAM" resultref="/root/main/rsv"/>
  433. <submission id="TRMMO02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/aftcert" resultref="/root/hidden/aftcert"/>
  434. <submission id="TXMRC01310" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/>
  435. <submission id="TRMMR00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/msg" resultref="/root/main/msg"/>
  436. <submission id="TXMRF03805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/insocrtag"/>
  437. <submission id="TXMRF02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/>
  438. <submission id="TRMRC03032" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/xhiststat" resultref="/root/temp4/xhiststat"/>
  439. <submission id="TRMRC03033" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp5/trns"/>
  440. <submission id="TRMRF01205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/docinfo/userid" resultref="/root/hidden/docinfo/signimge"/>
  441. </model>
  442. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  443. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  444. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  445. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  446. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  447. <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
  448. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  449. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  450. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  451. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  452. <script type="javascript" src="../../../emr/chrtmngtweb/js/SMMRC03100.js"/>
  453. <script type="javascript" src="../../../emr/formmngtweb/js/MRF03800.js"/>
  454. <script type="javascript" src="../../../emr/imgemrweb/js/js/SSMRC03100.js"/>
  455. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  456. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
  457. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  458. <script type="javascript" ev:event="xforms-model-construct-done">
  459. <![CDATA[
  460. //20100322 BMT사본신청여부 추가
  461. // if(getUserInfo("dutplceinstcd") == "012"){
  462. // grp_bmt.visible = true;
  463. // }else{
  464. grp_bmt.visible = false;
  465. // }
  466. ]]>
  467. </script>
  468. </xhtml:head>
  469. <xhtml:body guideline="1,425;2,783;1,1194;2,559;1,456;" style="margin-left:8; margin-right:8; ">
  470. <select id="chk_addimageyn" ref="/root/main/otherinfo/addimageyn" visibility="hidden" overflow="visible" appearance="full" checkvalue="Y,N" style="left:15px; top:505px; width:47px; height:20px; border-style:none; ">
  471. <choices>
  472. <item>
  473. <label>OCR포함</label>
  474. <value>Y</value>
  475. </item>
  476. </choices>
  477. <script type="javascript" ev:event="xforms-value-changed">
  478. <![CDATA[
  479. ]]>
  480. </script>
  481. </select>
  482. <!-- 2013/02/15 소스머지 시작(수정)-->
  483. <!--<iviewer id="iviewerIemr" src="../../../emr/imgemrweb/xrw/SSMRC03100.xrw" style="left:427px; top:70px; width:768px; height:687px; border-style:none; "/>-->
  484. <iviewer id="iviewerIemr" src="../../../emr/imgemrweb/xrw/SSMRC03130.xrw" style="left:427px; top:70px; width:768px; height:687px; border-style:none; "/>
  485. <!-- 2013/02/15 소스머지 끝-->
  486. <select1 id="rdo_lang" ref="/root/main/otherinfo/lang" appearance="full" cellspacing="2" cols="2" overflow="visible" style="left:1044px; top:662px; width:94px; height:20px; border-style:none; ">
  487. <choices>
  488. <item>
  489. <label>한글</label>
  490. <value>K</value>
  491. </item>
  492. <item>
  493. <label>영문</label>
  494. <value>E</value>
  495. </item>
  496. </choices>
  497. </select1>
  498. <group id="group1" style="left:0px; top:600px; width:420px; height:95px; ">
  499. <group id="grp_bmt" style="left:195px; top:0px; width:124px; height:22px; ">
  500. <button id="button13" class="btn2_letter7" style="left:3px; top:2px; width:97px; height:19px; ">
  501. <caption>BMT 사본신청</caption>
  502. <script type="javascript" ev:event="DOMActivate">
  503. <![CDATA[
  504. ]]>
  505. </script>
  506. </button>
  507. <select id="chk_bmt" ref="/root/main/otherinfo/bmtappyn" overflow="visible" appearance="full" checkvalue="Y,N" style="left:0px; top:2px; width:120px; height:20px; border-style:none; ">
  508. <choices>
  509. <item>
  510. <label>BMT 사본신청유무</label>
  511. <value>Y</value>
  512. </item>
  513. </choices>
  514. </select>
  515. </group>
  516. <shape id="roundrect9" class="roundrect_btnset" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:39px; width:410px; height:52px; background-color:#f2fafe; border-color:#7cbbdd; "/>
  517. <shape id="roundrect8" class="roundrect_btnset" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:120px; height:33px; background-color:#f2fafe; border-color:#7cbbdd; "/>
  518. <select id="chk_prcpinfo" ref="/root/main/otherinfo/prcpinfo" overflow="visible" appearance="full" checkvalue="Y,N" style="left:5px; top:16px; width:100px; height:20px; border-style:none; ">
  519. <choices>
  520. <item>
  521. <label>처방기록포함</label>
  522. <value>Y</value>
  523. </item>
  524. </choices>
  525. <script type="javascript" ev:event="xforms-value-changed">
  526. <![CDATA[
  527. /*
  528. if(chk_prcpinfo.value == "Y") {
  529. fAddTestList("0800000636");
  530. } else {
  531. fDelTestList("0800000636");
  532. }
  533. */
  534. ]]>
  535. </script>
  536. </select>
  537. <select id="chk_testinfo2" ref="/root/main/otherinfo/testinfo2" overflow="visible" appearance="full" checkvalue="Y,N" style="left:105px; top:54px; width:100px; height:20px; border-style:none; ">
  538. <choices>
  539. <item>
  540. <label>진단검사</label>
  541. <value>Y</value>
  542. </item>
  543. </choices>
  544. <script type="javascript" ev:event="xforms-value-changed">
  545. <![CDATA[
  546. /*if(chk_testinfo2.value == "Y") {
  547. fAddTestList("0800004018");
  548. } else {
  549. fDelTestList("0800004018");
  550. }*/
  551. ]]>
  552. </script>
  553. </select>
  554. <select id="chk_testinfo3" ref="/root/main/otherinfo/testinfo3" overflow="visible" appearance="full" checkvalue="Y,N" style="left:205px; top:54px; width:100px; height:20px; border-style:none; ">
  555. <choices>
  556. <item>
  557. <label>병리조직</label>
  558. <value>Y</value>
  559. </item>
  560. </choices>
  561. <script type="javascript" ev:event="xforms-value-changed">
  562. <![CDATA[
  563. /*if(chk_prcpinfo.value == "Y") {
  564. fAddTestList("E");
  565. } else {
  566. fDelTestList("E");
  567. }*/
  568. ]]>
  569. </script>
  570. </select>
  571. <select id="chk_testinfo4" ref="/root/main/otherinfo/testinfo4" overflow="visible" appearance="full" checkvalue="Y,N" style="left:305px; top:54px; width:100px; height:20px; border-style:none; ">
  572. <choices>
  573. <item>
  574. <label>기능검사</label>
  575. <value>Y</value>
  576. </item>
  577. </choices>
  578. <script type="javascript" ev:event="xforms-value-changed">
  579. <![CDATA[
  580. /*if(chk_prcpinfo.value == "Y") {
  581. fAddTestList("F");
  582. } else {
  583. fDelTestList("F");
  584. }*/
  585. ]]>
  586. </script>
  587. </select>
  588. <select id="chk_testinfo6" ref="/root/main/otherinfo/testinfo6" overflow="visible" appearance="full" checkvalue="Y,N" style="left:105px; top:72px; width:100px; height:20px; border-style:none; ">
  589. <choices>
  590. <item>
  591. <label>핵의학</label>
  592. <value>Y</value>
  593. </item>
  594. </choices>
  595. <script type="javascript" ev:event="xforms-value-changed">
  596. <![CDATA[
  597. /*var label = chk_testinfo6.label;
  598. fSendChkLabelText(label);*/
  599. /*if(chk_testinfo6.value == "Y") {
  600. fAddTestList("0800004020");
  601. } else {
  602. fDelTestList("0800004020");
  603. }*/
  604. ]]>
  605. </script>
  606. </select>
  607. <select id="chk_testinfo5" ref="/root/main/otherinfo/testinfo5" overflow="visible" appearance="full" checkvalue="Y,N" style="left:5px; top:72px; width:100px; height:20px; border-style:none; ">
  608. <choices>
  609. <item>
  610. <label>영상의학</label>
  611. <value>Y</value>
  612. </item>
  613. </choices>
  614. <script type="javascript" ev:event="xforms-value-changed">
  615. <![CDATA[
  616. /*if(chk_testinfo5.value == "Y") {
  617. fAddTestList("0800004021");
  618. } else {
  619. fDelTestList("0800004021");
  620. }*/
  621. ]]>
  622. </script>
  623. </select>
  624. <select id="chk_testinfo7" ref="/root/main/otherinfo/testinfo7" overflow="visible" appearance="full" checkvalue="Y,N" style="left:205px; top:72px; width:100px; height:20px; border-style:none; ">
  625. <choices>
  626. <item>
  627. <label>내시경</label>
  628. <value>Y</value>
  629. </item>
  630. </choices>
  631. <script type="javascript" ev:event="xforms-value-changed">
  632. <![CDATA[
  633. /*if(chk_prcpinfo.value == "Y") {
  634. fAddTestList("I");
  635. } else {
  636. fDelTestList("I");
  637. }*/
  638. ]]>
  639. </script>
  640. </select>
  641. <select id="chk_testinfo8" ref="/root/main/otherinfo/testinfo8" overflow="visible" appearance="full" checkvalue="Y,N" style="left:305px; top:72px; width:100px; height:20px; border-style:none; ">
  642. <choices>
  643. <item>
  644. <label>미생물</label>
  645. <value>Y</value>
  646. </item>
  647. </choices>
  648. <script type="javascript" ev:event="xforms-value-changed">
  649. <![CDATA[
  650. /*if(chk_testinfo8.value == "Y") {
  651. fAddTestList("0800004019");
  652. } else {
  653. fDelTestList("0800004019");
  654. }*/
  655. ]]>
  656. </script>
  657. </select>
  658. <caption id="caption25" class="tit_2" style="left:4px; top:41px; width:152px; height:13px; ">검사결과 상세신청내역</caption>
  659. <caption id="caption26" class="tit_2" style="left:4px; top:2px; width:152px; height:13px; ">처방/검사 신청</caption>
  660. <select id="chk_testinfo_bak" ref="/root/main/otherinfo/testinfo" visibility="hidden" overflow="visible" appearance="full" checkvalue="Y,N" style="left:120px; top:0px; width:70px; height:20px; border-style:none; ">
  661. <choices>
  662. <item>
  663. <label>검사결과 포함</label>
  664. <value>Y</value>
  665. </item>
  666. </choices>
  667. <script type="javascript" ev:event="xforms-value-changed">
  668. <![CDATA[
  669. if(chk_testinfo.value == "Y") {
  670. for( var i = 2; i < 9 ; i++) {
  671. model.setValue("/root/main/otherinfo/testinfo" + i +"", "Y");
  672. }
  673. } else{
  674. for( var i = 2; i < 9 ; i++) {
  675. model.setValue("/root/main/otherinfo/testinfo" + i +"", "");
  676. }
  677. }
  678. group1.refresh();
  679. /*if(chk_testinfo.value == "Y") {
  680. fAddTestList("0000000000");
  681. } else {
  682. fDelTestList("0000000000");
  683. }
  684. btn_save.disabled = false;
  685. btn_update.disabled = true;
  686. btn_reappinfo.disabled = true;*/
  687. ]]>
  688. </script>
  689. </select>
  690. <button id="button9_bak" class="btn2_letter4" visibility="hidden" style="left:335px; top:0px; width:64px; height:19px; ">
  691. <caption>기록조회</caption>
  692. <script type="javascript" ev:event="DOMActivate">
  693. <![CDATA[
  694. fGetEMROutTestList(); //검사결과
  695. fEmrImgRec(); // html
  696. ]]>
  697. </script>
  698. </button>
  699. <select id="chk_onlytest" ref="/root/main/otherinfo/onlytest" overflow="visible" appearance="full" checkvalue="Y,N" style="left:175px; top:16px; width:115px; height:20px; border-style:none; ">
  700. <choices>
  701. <item>
  702. <label>검사결과만 신청</label>
  703. <value>Y</value>
  704. </item>
  705. </choices>
  706. <script type="javascript" ev:event="xforms-value-changed">
  707. <![CDATA[
  708. ]]>
  709. </script>
  710. </select>
  711. <select id="chk_testinfo" ref="/root/main/otherinfo/testinfo" overflow="visible" appearance="full" checkvalue="Y,N" style="left:5px; top:54px; width:100px; height:20px; border-style:none; ">
  712. <choices>
  713. <item>
  714. <label>전체</label>
  715. <value>Y</value>
  716. </item>
  717. </choices>
  718. <script type="javascript" ev:event="xforms-value-changed">
  719. <![CDATA[
  720. if(chk_testinfo.value == "Y") {
  721. for( var i = 2; i < 9 ; i++) {
  722. model.setValue("/root/main/otherinfo/testinfo" + i +"", "Y");
  723. }
  724. } else{
  725. for( var i = 2; i < 9 ; i++) {
  726. model.setValue("/root/main/otherinfo/testinfo" + i +"", "");
  727. }
  728. }
  729. group1.refresh();
  730. ]]>
  731. </script>
  732. </select>
  733. <select id="chk_testinfo1" ref="/root/main/otherinfo/testinfo1" overflow="visible" appearance="full" checkvalue="Y,N" style="left:120px; top:16px; width:55px; height:20px; border-style:none; ">
  734. <choices>
  735. <item>
  736. <label>초진</label>
  737. <value>Y</value>
  738. </item>
  739. </choices>
  740. <script type="javascript" ev:event="xforms-value-changed">
  741. <![CDATA[
  742. var label = chk_testinfo1.label;
  743. fSendChkLabelText(label);
  744. if(chk_prcpinfo.value == "Y") {
  745. fAddTestList("C");
  746. } else {
  747. fDelTestList("C");
  748. }
  749. ]]>
  750. </script>
  751. </select>
  752. </group>
  753. <shape id="roundrect6" visibility="hidden" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:731px; top:30px; width:463px; height:32px; background-color:#fffbf2; border-color:#ffd799; "/>
  754. <shape id="roundrect1" class="roundrect_btnset" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:212px; width:425px; height:95px; background-color:#f2fafe; border-color:#7cbbdd; "/>
  755. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:15px; width:725px; height:32px; background-color:#fffbf2; border-color:#ffd799; "/>
  756. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" style="left:99px; top:22px; width:90px; height:19px; ">
  757. <script type="javascript" ev:event="onkeypress">
  758. <![CDATA[
  759. if(event.keyCode == 13){
  760. var newPid = ipt_pid.currentText;
  761. // 의료정보팀인지 타 부서인지 체크
  762. if(fIsEmrDept() == false)
  763. {
  764. var globalPid = getPatientInfo("pid");
  765. if(globalPid != newPid) {
  766. messageBox("사본신청은 진료중인 환자에 대해서만 신청이 가능합니다.\n등록번호를 상단 환자등록번호와 일치시켜서","C003");
  767. return;
  768. }
  769. }
  770. model.removeNodeset("/root/temp/issinfo/emrlist");
  771. // 2009.05.26 이경희
  772. // 의료정보팀인 경우 신청내역저장 버튼이 계속 비활성화되는것을 방지
  773. btn_save.disabled = false;
  774. ipt_pid.currentText = newPid;
  775. //환자기본 및 원무정보 조회
  776. fReqGetComnPatOrdInfo(ipt_pid.currentText);
  777. model.setValue("/root/main/cond/copyseqno", "");
  778. //환자 이전사본발행내역 조회
  779. fReqGetBfCopyIssHistList(ipt_pid.currentText);
  780. /*var userinfo = getUserInfo("dutplcecd");
  781. if(userinfo == "3230000000"){
  782. fHistDetilSearch();
  783. }*/
  784. fReqGetOutPatHistList(); // 외래진료내역
  785. fReqGetInPatHistList(); // 입원진료내역
  786. fReqGetPaperYN();
  787. // 입원내역이 존재하면 가장 최근 회차의 중분류가 조회되도록
  788. var inList = model.instance1.selectNodes("/root/main/inpathistlist/inpathistlist");
  789. if(inList.length > 0) {
  790. grd_inapplist.row = 1;
  791. //fEMRChrtList("F"); // 회차별 입원 차트 조회 /root/main/issinfo/emrapplist
  792. //fGetINChrtList(); // 중분류서식
  793. }
  794. // (e)
  795. var addimageyn = model.getValue("/root/main/otherinfo/addimageyn");
  796. model.resetInstanceNode("/root/main/appinfo/copyinfo");
  797. model.resetInstanceNode("/root/main/otherinfo");
  798. model.setValue("/root/main/otherinfo/addimageyn", addimageyn );
  799. model.removeNodeset("/root/temp/issinfo/emrapplist");
  800. model.removeNodeset("/root/main/rcptlist/rcptlist");
  801. if(inList.length < 1) {
  802. model.removeNodeset("/root/main/midissinfo/emrapplist");
  803. }
  804. var deathyn = model.getValue("/root/main/paper/deathyn");
  805. if(deathyn == "Y") {
  806. model.setValue("/root/main/appinfo/copyinfo/appmanflag", "");
  807. } else if(deathyn == "N") {
  808. var age = model.getValue("/root/main/cond/age");
  809. if(age < parseInt(14)) {
  810. model.setValue("/root/main/appinfo/copyinfo/appmanflag", "2");
  811. model.setValue("/root/main/appinfo/copyinfo/trustyn", "Y");
  812. } else {
  813. model.makeValue("/root/main/appinfo/copyinfo/appmanflag", "1");
  814. }
  815. }
  816. if(model.getValue("/root/main/paper/limrem") != "") {
  817. var limrem = model.getValue("/root/main/paper/limrem");
  818. var pid = model.getValue("/root/main/cond/pid");
  819. var name = model.getValue("/root/main/cond/hngnm");
  820. messageBox(" " + pid + "(" + name + ") : " + limrem +" " + "\n 유의환자", "I009");
  821. }
  822. //model.setValue("/root/main/appinfo/copyinfo/appmanflag", "1");
  823. model.setValue("root/main/appinfo/copyinfo/trustyn", "N");
  824. //model.setValue("/root/main/appinfo/copyinfo/appdeptcd",getUserInfo("dutplcecd")); // 신청과
  825. cmb_emrorddeptcd.refresh();
  826. //model.setValue("/root/main/appinfo/copyinfo/appdrid", getUserId()); //신청의
  827. model.setValue("/root/main/otherinfo/lang", "K");
  828. model.refresh();
  829. // iviewer refresh, height reset
  830. /* iviewerIemr.window.javaScript.cleanViewer();
  831. var strWidth = parseInt(document.controls("iviewerIemr").attribute("width"));
  832. var strHeight = parseInt(document.controls("iviewerIemr").attribute("height"));
  833. //alert(strWidth);
  834. //alert(strHeight);
  835. iviewerIemr.window.javaScript.setChartViewerSize(strWidth, strHeight);
  836. */ //yw iviewerIemr.window.javaScript.setChartViewerSize(strWidth, 687);
  837. //iviewerIemr.window.parent.document.controls("iviewerIemr").attribute("height") = "500px";
  838. //fCheckAppList(); // 전체 진료내역 중 사본신청된 내역만 check 되도록
  839. //2013/01/14 Start
  840. totprntcnt=0;
  841. model.setValue("/root/main/delivefactcnt", "");
  842. model.refresh();
  843. //2013/01/14 End
  844. }
  845. ]]>
  846. </script>
  847. </input>
  848. <button id="btn_hngnm" class="icon_search" style="left:355px; top:24px; width:16px; height:16px; ">
  849. <caption/>
  850. <script type="javascript" ev:event="DOMActivate">
  851. <![CDATA[
  852. fPatPopUp("2");
  853. ]]>
  854. </script>
  855. </button>
  856. <input id="ipt_hngnm" ref="/root/main/cond/hngnm" class="input_search" style="left:264px; top:22px; width:86px; height:19px; ">
  857. <script type="javascript" ev:event="onkeypress">
  858. <![CDATA[
  859. if (event.keyCode == 13)
  860. {
  861. inputEnterKey("btn_hngnm", "DOMActivate");
  862. }
  863. ]]>
  864. </script>
  865. </input>
  866. <caption id="caption17" class="search_name" style="left:204px; top:23px; width:79px; height:17px; vertical-align:middle; ">성명 :</caption>
  867. <caption id="lbl_PID" class="search_name" style="left:11px; top:23px; width:86px; height:17px; vertical-align:middle; ">등록번호 :</caption>
  868. <input id="input3" ref="/root/main/cond/rrgstno1" class="input_search" navindex="3" maxlength="6" style="left:559px; top:21px; width:72px; height:19px; ">
  869. <script type="javascript" ev:event="onmaxlength">
  870. <![CDATA[
  871. ]]>
  872. </script>
  873. </input>
  874. <caption id="caption8" class="search_name" style="left:447px; top:23px; width:112px; height:17px; vertical-align:middle; ">주민등록번호 :</caption>
  875. <secret id="input4" ref="/root/main/cond/rrgstno2" navindex="4" secretstartposition="1" appearance="secret" style="left:633px; top:21px; width:79px; height:19px; ">
  876. <script type="javascript" ev:event="onkeypress">
  877. <![CDATA[
  878. ]]>
  879. </script>
  880. </secret>
  881. <caption id="caption6" class="tit_1" visibility="hidden" style="left:0px; top:0px; width:106px; height:14px; ">사본신청/발급</caption>
  882. <caption id="caption1" class="search_name" visibility="hidden" style="left:750px; top:37px; width:112px; height:17px; vertical-align:middle; ">조회기간 :</caption>
  883. <caption id="caption2" visibility="hidden" style="left:944px; top:35px; width:15px; height:20px; ">~</caption>
  884. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" visibility="hidden" inputtype="date" style="left:839px; top:35px; width:100px; height:19px; "/>
  885. <input id="ipt_todd" ref="/root/main/cond/todd" visibility="hidden" inputtype="date" style="left:961px; top:35px; width:100px; height:19px; "/>
  886. <button id="btn_profhist" class="btn1_letter2" visibility="hidden" style="left:1125px; top:36px; width:56px; height:22px; ">
  887. <caption>조회</caption>
  888. <script type="javascript" ev:event="DOMActivate">
  889. <![CDATA[
  890. //fGetEMRTestList("PRCP"); //검사결과
  891. fGetEMRPrcpList(); //검사결과
  892. fEmrImgRec();
  893. ]]>
  894. </script>
  895. </button>
  896. <line id="line4" visibility="hidden" style="x1:1112px; y1:33px; x2:1112px; y2:58px; border-color:#ffe4bb; border-left-style:solid; "/>
  897. <caption id="caption38" class="tit_2" style="left:0px; top:55px; width:121px; height:13px; ">이전사본발행내역</caption>
  898. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:425px; y2:70px; "/>
  899. <caption id="caption3" class="tit_2" style="left:0px; top:193px; width:126px; height:13px; ">사본발행 기본정보</caption>
  900. <caption id="caption9" class="cell_1" style="left:5px; top:213px; width:64px; height:47px; vertical-align:middle; ">
  901. <![CDATA[사본발행
  902. 신청인]]>
  903. </caption>
  904. <caption id="caption4" class="cell_1" style="left:314px; top:213px; width:67px; height:47px; vertical-align:middle; ">
  905. <![CDATA[위임장/
  906. 동의서]]>
  907. </caption>
  908. <line id="line2" class="line_1" style="x1:0px; y1:207px; x2:425px; y2:207px; "/>
  909. <select1 id="rdo_trustyn" ref="/root/main/appinfo/copyinfo/trustyn" appearance="full" cellspacing="10" cols="1" vcellspacing="6" overflow="visible" style="left:382px; top:213px; width:39px; height:47px; text-align:center; border-style:none; ">
  910. <choices>
  911. <item>
  912. <label>유</label>
  913. <value>Y</value>
  914. </item>
  915. <item>
  916. <label>무</label>
  917. <value>N</value>
  918. </item>
  919. </choices>
  920. </select1>
  921. <caption id="caption5" class="cell_1" style="left:25px; top:165px; width:105px; height:21px; vertical-align:middle; ">사본발행목적</caption>
  922. <caption id="caption7" class="tit_2" style="left:0px; top:314px; width:126px; height:13px; ">사본발행 신청내역</caption>
  923. <button id="btn_in" class="btn_sw" group="tab" style="left:357px; top:308px; width:67px; height:22px; ">
  924. <caption>입원</caption>
  925. <toggle case="case2" ev:event="onclick"/>
  926. <script type="javascript" ev:event="DOMActivate">
  927. <![CDATA[
  928. fClikInTab();
  929. ]]>
  930. </script>
  931. </button>
  932. <switch id="swc_prof" style="left:0px; top:329px; width:425px; height:267px; ">
  933. <case id="out">
  934. <datagrid id="grd_outpat" nodeset="/root/main/outpathistlist/outpathistlist" caption="V^pid^cretno^진료일^orddeptcd^진료과^orddrid^진료의^내원구분" colsep="^" colwidth="35, 0, 0, 85, 0, 117, 0, 104, 61" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:28px; width:420px; height:239px; ">
  935. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  936. <col ref="pid"/>
  937. <col ref="cretno"/>
  938. <col ref="orddd" format="yyyy-mm-dd"/>
  939. <col ref="orddeptcd"/>
  940. <col ref="orddeptnm" type="output"/>
  941. <col ref="orddrid"/>
  942. <col ref="orddrnm"/>
  943. <col disabled="true" ref="ordtype" type="combo">
  944. <choices>
  945. <item>
  946. <label>외래</label>
  947. <value>O</value>
  948. </item>
  949. <item>
  950. <label>건진</label>
  951. <value>S</value>
  952. </item>
  953. <item>
  954. <label>DSC</label>
  955. <value>D</value>
  956. </item>
  957. </choices>
  958. </col>
  959. </datagrid>
  960. <shape id="roundrect5" class="roundrect_btnset" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:2px; width:315px; height:25px; background-color:#f2fafe; border-color:#7cbbdd; "/>
  961. <caption id="caption15" class="cell_1" style="left:4px; top:4px; width:105px; height:21px; vertical-align:middle; ">종이차트 신청</caption>
  962. <select1 id="rdo_outchrtflag" ref="/root/main/otherinfo/outchrtflag" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:166px; top:5px; width:144px; height:20px; border-style:none; ">
  963. <choices>
  964. <item>
  965. <label>접은부분</label>
  966. <value>02</value>
  967. </item>
  968. <item>
  969. <label>전체</label>
  970. <value>01</value>
  971. </item>
  972. </choices>
  973. <script type="javascript" ev:event="xforms-select">
  974. <![CDATA[
  975. /*var outchrtflag = model.getValue("/root/main/otherinfo/outchrtflag");
  976. if(outchrtflag == null || outchrtflag == "") {
  977. group1.disabled = true;
  978. } else if(outchrtflag == "01" || outchrtflag == "02") {
  979. group1.disabled = false;
  980. }
  981. model.refresh();*/
  982. //fPaperList();
  983. ]]>
  984. </script>
  985. </select1>
  986. <shape id="roundrect7" class="roundrect_btnset" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:113px; top:3px; width:47px; height:23px; background-color:#f2fafe; border-color:#7cbbdd; "/>
  987. <output id="out_paperyn" ref="/root/main/paper/paperyn" style="left:130px; top:5px; width:25px; height:19px; "/>
  988. <button id="button9" class="btn1_letter4" style="left:339px; top:4px; width:80px; height:22px; ">
  989. <caption>기록조회</caption>
  990. <script type="javascript" ev:event="DOMActivate">
  991. <![CDATA[
  992. fGetEMROutTestList(); //검사결과
  993. fEmrImgRec(); // html
  994. ]]>
  995. </script>
  996. </button>
  997. </case>
  998. <case id="in" selected="true">
  999. <caption id="caption21" class="tit_2" style="left:2px; top:1px; width:75px; height:13px; ">입원회차</caption>
  1000. <datagrid id="grd_inapplist" nodeset="/root/main/inpathistlist/inpathistlist" caption="^입원일^퇴원일^진료과^전문의^내원구분^cretno^orddeptcd^atdoctid^indg" colsep="^" colwidth="30, 76, 76, 100, 60, 58, 0, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:20px; width:420px; height:111px; ">
  1001. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  1002. <col ref="indd" format="yyyy-mm-dd" style="left:235px; top:23px; width:72px; height:23px; text-align:center; "/>
  1003. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; ">
  1004. <![CDATA[/>]]>
  1005. </col>
  1006. <col ref="orddeptnm"/>
  1007. <col ref="atdoctnm"/>
  1008. <col disabled="true" ref="ioflag" type="combo">
  1009. <choices>
  1010. <itemset nodeset="/root/init/ioflaglist/P0001">
  1011. <label ref="cdnm"/>
  1012. <value ref="cdid"/>
  1013. </itemset>
  1014. </choices>
  1015. </col>
  1016. <col ref="cretno"/>
  1017. <col ref="orddeptcd" visibility="hidden"/>
  1018. <col ref="atdoctid" visibility="hidden"/>
  1019. <col ref="indg" visibility="hidden"/>
  1020. <script type="javascript" ev:event="onclick">
  1021. <![CDATA[
  1022. // 체크박스 선택시 오른쪽에 서식 조회되도록 함
  1023. ]]>
  1024. </script>
  1025. <script type="javascript" ev:event="ondblclick">
  1026. <![CDATA[
  1027. //2009-11-19 강지훈 수정 : 스크롤 더블클릭했을때 미친듯이 날뜀 방지.
  1028. if(grd_inapplist.isCell(event.target)) {
  1029. fGetINChrtList(); // 중분류서식
  1030. }
  1031. // 더블클릭시 오른쪽 이미지 조회와 해당 서식이 같이 조회됨.
  1032. //fEMRChrtList(); // 회차별 입원 차트 조회 /root/main/issinfo/emrapplist
  1033. //fGetEMRTestList(); // 검사결과 : 기록과 함께 조회
  1034. //fEmrImgRec(); // html
  1035. // 구영상인경우
  1036. /*var indd = model.getValue("/root/main/inpathistlist/inpathistlist["+ grd_inapplist.row +"]/indd");
  1037. if(indd < parseInt("20081003")) {
  1038. model.resetInstanceNode("/root/imgrec/iemr");
  1039. iviewerIemr.window.javascript.resetInstance_EMR();
  1040. model.setValue("/root/imgrec/iemr/pid", model.getValue("/root/main/inpathistlist/inpathistlist["+ grd_inapplist.row +"]/pid"));
  1041. //model.setValue("/root/imgrec/iemr/orddeptcd", model.getValue("/root/main/inpathistlist/inpathistlist["+ grd_inapplist.row +"]/orddeptcd"));
  1042. model.setValue("/root/imgrec/iemr/indd", model.getValue("/root/main/inpathistlist/inpathistlist["+ grd_inapplist.row +"]/indd"));
  1043. model.setValue("/root/imgrec/iemr/ioflag", model.getValue("/root/main/inpathistlist/inpathistlist["+ grd_inapplist.row +"]/ioflag"));
  1044. var iemrNode = instance1.selectSingleNode("/root/imgrec/iemr");
  1045. iviewerIemr.window.javascript.searchChart(iemrNode);
  1046. if (iviewerIemr.window.javascript.downloadChart() == true)
  1047. {
  1048. // 뷰어 모드 유지 기능 추가 - 20080417
  1049. var ViewMode;
  1050. ViewMode = iviewerIemr.model.getValue("/root/hidden/currentViewMode");
  1051. if (ViewMode == null || ViewMode == "")
  1052. {
  1053. iviewerIemr.window.javascript.setupChart("ChartView");
  1054. }
  1055. else
  1056. {
  1057. iviewerIemr.window.javascript.setupChart(ViewMode);
  1058. }
  1059. }
  1060. }*/
  1061. ]]>
  1062. </script>
  1063. <script type="javascript" ev:event="xforms-value-changed">
  1064. <![CDATA[
  1065. var chk = grd_inapplist.valueMatrix(grd_inapplist.row, grd_inapplist.colRef("chk"));
  1066. if(chk == "Y") {
  1067. fMidIndxSet("Y");
  1068. }
  1069. else
  1070. {
  1071. fMidIndxSet("N");
  1072. }
  1073. ]]>
  1074. </script>
  1075. </datagrid>
  1076. <line id="line6" class="line_1" style="x1:0px; y1:15px; x2:421px; y2:15px; "/>
  1077. <caption id="caption10" class="tit_2" style="left:2px; top:133px; width:75px; height:13px; ">서식분류</caption>
  1078. <datagrid id="grd_inpat" nodeset="/root/main/midissinfo/emrapplist" caption="V^회차^서식명^주치의" colsep="^" colwidth="30, 62, 206, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:147px; width:420px; height:115px; ">
  1079. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  1080. <col ref="indg" style="text-align:center; "/>
  1081. <col ref="formnm"/>
  1082. <col ref="atdoctnm"/>
  1083. <script type="javascript" ev:event="ondblclick">
  1084. <![CDATA[
  1085. //2009-11-19 강지훈 수정 : 스크롤 더블클릭했을때 미친듯이 날뜀 방지.
  1086. if(grd_inpat.isCell(event.target)) {
  1087. fDispMidForm(grd_inpat.row);
  1088. }
  1089. ]]>
  1090. </script>
  1091. </datagrid>
  1092. </case>
  1093. </switch>
  1094. <!--<textarea id="txt_delivefact" ref="/root/main/appinfo/copyinfo/delivefact" style="left:0px; top:713px; width:424px; height:43px; "/>-->
  1095. <textarea id="txt_delivefact" ref="/root/main/appinfo/copyinfo/delivefact" style="left:0px; top:715px; width:424px; height:43px; font-size:8pt; "/>
  1096. <button id="btn_reappinfo" class="btn4_letter3" style="left:1px; top:759px; width:68px; height:22px; ">
  1097. <caption>재신청</caption>
  1098. <script type="javascript" ev:event="DOMActivate">
  1099. <![CDATA[
  1100. fReCopyAppInfoSave();
  1101. ]]>
  1102. </script>
  1103. </button>
  1104. <button id="button3" class="btn4_letter3" style="left:145px; top:759px; width:68px; height:22px; ">
  1105. <caption>초기화</caption>
  1106. <script type="javascript" ev:event="DOMActivate">
  1107. <![CDATA[
  1108. fAppCopyInfoClear();
  1109. ]]>
  1110. </script>
  1111. </button>
  1112. <button id="btn_update" class="btn4_letter6" style="left:216px; top:759px; width:104px; height:22px; ">
  1113. <caption>신청내역수정</caption>
  1114. <script type="javascript" ev:event="DOMActivate">
  1115. <![CDATA[
  1116. rdo_appmanflag.disabled = false;
  1117. rdo_trustyn.disabled = false;
  1118. btn_issgoal.disabled = false;
  1119. //btn_save.disabled = false;
  1120. //btn_update.disabled = true;
  1121. model.makeValue("/root/main/appinfo/copyinfo/status","u");
  1122. fBefCopySave("UDT");
  1123. //fCopySave("UPT");
  1124. //model.refresh();
  1125. ]]>
  1126. </script>
  1127. </button>
  1128. <button id="btn_save" class="btn4_letter6" style="left:321px; top:759px; width:104px; height:22px; ">
  1129. <caption>신청내역저장</caption>
  1130. <script type="javascript" ev:event="DOMActivate">
  1131. <![CDATA[
  1132. /*if(getNodesetCnt(model,"/root/main/issinfo/emrapplist") < 1 && getNodesetCnt(model,"/root/temp/issinfo/emrapplist") < 1){
  1133. fSaveExcp();
  1134. }else{
  1135. fCopySave();
  1136. }*/
  1137. //fCopySave();
  1138. fBefCopySave();
  1139. ]]>
  1140. </script>
  1141. </button>
  1142. <textarea id="textarea2" ref="/root/main/appinfo/copyinfo/memo" style="left:428px; top:681px; width:209px; height:75px; "/>
  1143. <button id="button6" class="btn4_letter4" style="left:430px; top:759px; width:80px; height:22px; ">
  1144. <caption>사유저장</caption>
  1145. <script type="javascript" ev:event="DOMActivate">
  1146. <![CDATA[
  1147. if(grd_apphist.rows <= 1) return;
  1148. if(grd_apphist.row < 1) return;
  1149. var lrow = grd_apphist.row;
  1150. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/apphist/applist[" + lrow + "]/pid"));
  1151. model.makeValue("/root/send/reqdata/copyseqno", model.getValue("/root/main/apphist/applist[" + lrow + "]/copyseqno"));
  1152. model.makeValue("/root/send/reqdata/memo", model.getValue("/root/main/appinfo/copyinfo/memo"));
  1153. if(submit("TXMRC03004")) {
  1154. messageBox("비고저장", "I002");
  1155. }
  1156. ]]>
  1157. </script>
  1158. </button>
  1159. <button id="button7" class="btn4_letter4" style="left:640px; top:759px; width:80px; height:22px; ">
  1160. <caption>사본출력</caption>
  1161. <script type="javascript" ev:event="DOMActivate">
  1162. <![CDATA[
  1163. var pageCurrent = iviewerIemr.model.getValue("/root/main/chartinfo/pagecurrent");
  1164. var pageCnt = iviewerIemr.model.getValue("/root/main/chartinfo/pagetotal");
  1165. var prnShtno ="";
  1166. if(pageCurrent == 0) prnShtno = pageCnt;
  1167. else if(pageCurrent > 0) prnShtno = pageCurrent;
  1168. mmbfGetHardCodeInfo("/root/send/reqdata","/root/hidden/inputbox", 1111); //의무기록사본발행수가코드
  1169. var inputbox = model.getValue("/root/hidden/inputbox/hardcd/hardcd");//의무기록 사본발행 수가코드
  1170. var ret = "";
  1171. var totalcopies = parseInt(model.getValue("/root/temp2/appinfo/copyinfo/totalcopies"));
  1172. for(var idx= 0; idx < totalcopies; idx++)
  1173. {
  1174. //출력메세지 미정의로 임시 막음(2009-06-30 박종훈)
  1175. //ret = iviewerIemr.window.javaScript.printChart("SMMRC03000");
  1176. //사본발급 출력서식의 하단에 사본발급용도(목적) 출력요청(2010-04-05 박종훈)
  1177. //[요청번호 : 11336, TaskNo : 43930, 우선순위 : SY]
  1178. var tmpissgoaletc = "";
  1179. var issgoaletc = model.getValue("/root/main/appinfo/copyinfo/issgoaletc");
  1180. var issgoaletcnm = model.getValue("/root/main/appinfo/copyinfo/issgoaletcnm");
  1181. if (issgoaletc != "")
  1182. {
  1183. var issgoaletcnm = model.getValue("/root/main/appinfo/copyinfo/issgoaletcnm");
  1184. if (issgoaletcnm == "")
  1185. {
  1186. tmpissgoaletc = "용도 : " + issgoaletc;
  1187. }
  1188. else
  1189. {
  1190. tmpissgoaletc = "용도 : " + issgoaletc + "(" + issgoaletcnm + ")";
  1191. }
  1192. }
  1193. ret = iviewerIemr.window.javaScript.printChart("SMMRC03000", tmpissgoaletc);
  1194. }
  1195. //2013/02/21 Start
  1196. for(var i=iviewerIemr.f_View.PageTotal; i>=1; i--){
  1197. if(iviewerIemr.f_View.ThumbnailSelect(i) == true){
  1198. printcount+=1;
  1199. }
  1200. }
  1201. //2013/02/21 End
  1202. if(ret == true)
  1203. {
  1204. if(inputbox == "Y")
  1205. {
  1206. //2013/01/14 Start 출력버튼 누를때마다 실시간으로 신청부수가 변경될 수 있도록 수정
  1207. //2013/02/25 Start
  1208. totprntcnt=parseInt(printcount);
  1209. //totprntcnt+=parseInt(prnShtno);
  1210. //2013/02/25 End
  1211. if(totprntcnt==0){
  1212. model.setValue("/root/temp2/appinfo/copyinfo/totalshrtno", prnShtno);
  1213. }else{
  1214. model.setValue("/root/temp2/appinfo/copyinfo/totalshrtno", totprntcnt);
  1215. }
  1216. model.refresh();
  1217. button11.dispatch("DOMActivate");
  1218. /*
  1219. model.setValue("/root/temp2/appinfo/copyinfo/totalshrtno", prnShtno);
  1220. model.refresh();
  1221. button11.dispatch("DOMActivate");
  1222. */
  1223. //2013/01/14 End
  1224. }
  1225. else
  1226. {
  1227. if(grd_rcptlist.rows > 1) {
  1228. if(prnShtno != "") {
  1229. model.setValue("/root/main/rcptlist/rcptlist/shtno", prnShtno);
  1230. model.setValue("/root/main/rcptlist/rcptlist/prcpqty", prnShtno);
  1231. grd_rcptlist.refresh();
  1232. }
  1233. }
  1234. }
  1235. messageBox("출력", "I001");
  1236. }
  1237. else
  1238. {
  1239. messageBox("출력에", "E009");
  1240. }
  1241. /*
  1242. //if(iviewerIemr.window.javaScript.printChart("1"))
  1243. if(true)
  1244. {
  1245. messageBox("출력", "I001");
  1246. if(grd_rcptlist.rows == 2) {
  1247. fAddCalcorcdColumn(prnShtno);
  1248. }
  1249. else if(grd_rcptlist.rows > 2) {
  1250. if(prnShtno != "") {
  1251. //model.setValue("/root/main/rcptlist/rcptlist[" + lrow + "]/shtno", "1");
  1252. var iRow = grd_rcptlist.rows - grd_rcptlist.fixedrows;
  1253. var oldShtno = model.getValue("/root/main/rcptlist/rcptlist[" + iRow + "]/prcpqty");
  1254. model.setValue("/root/main/rcptlist/rcptlist[" + iRow + "]/shtno", eval(prnShtno) + eval(oldShtno));
  1255. model.setValue("/root/main/rcptlist/rcptlist[" + iRow + "]/prcpqty", eval(prnShtno) + eval(oldShtno));
  1256. grd_rcptlist.refresh();
  1257. }
  1258. }
  1259. }
  1260. else
  1261. {
  1262. messageBox("출력에", "E009");
  1263. }
  1264. */
  1265. ]]>
  1266. </script>
  1267. </button>
  1268. <button id="button8" class="btn4_letter4" style="left:1111px; top:759px; width:80px; height:22px; ">
  1269. <caption>수가입력</caption>
  1270. <script type="javascript" ev:event="DOMActivate">
  1271. <![CDATA[
  1272. mmbfGetHardCodeInfo("/root/send/reqdata","/root/hidden/inputbox", 1111); //의무기록사본발행수가코드
  1273. var inputbox = model.getValue("/root/hidden/inputbox/hardcd/hardcd");//의무기록 사본발행 수가코드
  1274. if(inputbox == "O")
  1275. {
  1276. if(model.getValue("/root/temp2/appinfo/copyinfo/totalshrtno") == "")
  1277. {
  1278. alert("매수를 입력하세요");
  1279. return;
  1280. }
  1281. if(model.getValue("/root/temp2/appinfo/copyinfo/totalcopies") == "")
  1282. {
  1283. alert("부수를 입력하세요");
  1284. return;
  1285. }
  1286. }
  1287. fSave();
  1288. ]]>
  1289. </script>
  1290. </button>
  1291. <button id="btn_out" class="btn_sw" group="tab" selected="true" style="left:290px; top:308px; width:67px; height:22px; ">
  1292. <caption>외래</caption>
  1293. <toggle case="case2" ev:event="onclick"/>
  1294. <script type="javascript" ev:event="DOMActivate">
  1295. <![CDATA[
  1296. fClikOutTab();
  1297. ]]>
  1298. </script>
  1299. </button>
  1300. <output id="ipt_sa" ref="/root/main/cond/sa" class="output_search" style="left:375px; top:22px; width:60px; height:19px; "/>
  1301. <caption id="caption12" class="cell_1" style="left:5px; top:283px; width:86px; height:21px; vertical-align:middle; ">신청과</caption>
  1302. <caption id="caption13" class="cell_1" style="left:225px; top:283px; width:77px; height:21px; vertical-align:middle; ">신청의사</caption>
  1303. <datagrid id="grd_apphist" nodeset="/root/main/apphist/applist" caption="발행번호^status^pid^신청일자^apptm^appdeptcd^신청과^appdrid^신청의^신청인^appmanflag^발행목적^발행일자^emrordflag^emrorddeptcd^emrappcopies^delivefact^memo^cncldt^prntdt^orddd^cretno^총매수^부수^위임장^copyseqno^bmtappyn" colsep="^" colwidth="100, 0, 0, 81, 0, 0, 88, 0, 68, 80, 0, 96, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 55, 55, 48, 100, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:425px; height:111px; ">
  1304. <col ref="issno"/>
  1305. <col ref="status"/>
  1306. <col ref="pid"/>
  1307. <col ref="appdd" format="yyyy-mm-dd"/>
  1308. <col ref="apptm"/>
  1309. <col ref="appdeptcd"/>
  1310. <col ref="appdeptnm"/>
  1311. <col ref="appdrid"/>
  1312. <col ref="appdrnm"/>
  1313. <col ref="appmannm"/>
  1314. <col ref="appmanflag"/>
  1315. <col disabled="true" ref="issgoalcd" type="combo" style="left:417px; top:23px; width:96px; height:23px; ">
  1316. <choices>
  1317. <itemset nodeset="/root/init/issgoalcd/M0332">
  1318. <label ref="cdnm"/>
  1319. <value ref="cdid"/>
  1320. </itemset>
  1321. </choices>
  1322. </col>
  1323. <col ref="issdd" format="yyyy-mm-dd"/>
  1324. <col ref="emrordflag"/>
  1325. <col ref="emrorddeptcd"/>
  1326. <col ref="emrappcopies"/>
  1327. <col ref="delivefact"/>
  1328. <col ref="memo"/>
  1329. <col ref="cncldt"/>
  1330. <col ref="prntdt"/>
  1331. <col ref="orddd" visibility="hidden"/>
  1332. <col ref="cretno" visibility="hidden"/>
  1333. <col ref="totalcopies"/>
  1334. <col ref="emrappcopies"/>
  1335. <col ref="trustyn"/>
  1336. <col ref="copyseqno" visibility="hidden"/>
  1337. <col ref="bmtappyn" visibility="hidden"/>
  1338. <col ref="issseqno" visibility="hidden"/>
  1339. <script type="javascript" ev:event="onclick">
  1340. <![CDATA[
  1341. if(grd_apphist.rows <= 1) return;
  1342. if(grd_apphist.row < 1) return;
  1343. var chk=false;
  1344. for(var i=1; i<=getNodesetCnt(model,"/root/temp/hardcd"); i++){
  1345. if(model.getValue("/root/temp/hardcd/hardcd["+i+"]/hardcd")==getUserInfo("dutplcecd")){
  1346. chk=true;
  1347. break;
  1348. }
  1349. }
  1350. if(chk==true){
  1351. btn_update.disabled=false;
  1352. btn_save.disabled=true;
  1353. }else if(model.getValue("/root/main/apphist/applist["+ grd_apphist.row +"]/issno")!="" && chk==false){
  1354. btn_update.disabled=true;
  1355. btn_save.disabled=true;
  1356. }else if(model.getValue("/root/main/apphist/applist["+ grd_apphist.row +"]/issno")=="" && chk==false){
  1357. btn_update.disabled=false;
  1358. btn_save.disabled=true;
  1359. }
  1360. iviewerIemr.window.javaScript.cleanViewer();
  1361. model.removeNodeset("/root/tmpinicert2/iniinfo");
  1362. if(grd_apphist.isCell(event.target)){
  1363. var idx = grd_apphist.row;
  1364. //진료취소체크로직 추가.
  1365. model.makeValue("/root/send/xhiststat/pid", model.getValue("/root/main/apphist/applist["+ idx +"]/pid"));
  1366. model.makeValue("/root/send/xhiststat/orddd", model.getValue("/root/main/apphist/applist["+ idx +"]/orddd"));
  1367. model.makeValue("/root/send/xhiststat/cretno", model.getValue("/root/main/apphist/applist["+ idx +"]/cretno"));
  1368. submit("TRMRC03032");
  1369. if( model.getValue("/root/temp4/xhiststat/orddd") != "" ){
  1370. messageBox("선택하신 내역은 신청일에 원무접수 취소되었습니다. \n삭제 후 재신청하시기 바랍니다.","E");
  1371. return;
  1372. }
  1373. if(model.getValue("/root/main/apphist/applist[" + idx + "]/issno") != "")
  1374. {
  1375. model.setValue("/root/temp2/appinfo/copyinfo/totalshrtno", model.getValue("/root/main/apphist/applist[" + idx + "]/totalcopies"));
  1376. model.setValue("/root/temp2/appinfo/copyinfo/totalcopies", model.getValue("/root/main/apphist/applist[" + idx + "]/emrappcopies"));
  1377. }
  1378. else
  1379. {
  1380. model.setValue("/root/temp2/appinfo/copyinfo/totalshrtno", "10");
  1381. model.setValue("/root/temp2/appinfo/copyinfo/totalcopies", "1");
  1382. }
  1383. model.setValue("/root/main/cond/copyseqno", model.getValue("/root/main/apphist/applist["+ grd_apphist.row +"]/copyseqno"));
  1384. fAppInfoSearch(); // 사본발행 기본정보에만 붙고 저장된 서식 /root/main/appinfo/applist
  1385. fOutAppInfoSearch(); // 외래진료
  1386. fInAppInfoSearch(); // 입원진료
  1387. fReqGetPaperYN("HIST"); // 종이차트
  1388. fIssSearch(); // 수가
  1389. fGetOutEmrFormList(); // 외래 사본list /root/temp/issinfo/emrapplist
  1390. var outList = model.instance1.selectNodes("/root/main/outpathistlist/outpathistlist[chk = 'Y']");
  1391. var inList = model.instance1.selectNodes("/root/main/inpathistlist/inpathistlist[chk = 'Y']");
  1392. if(outList.length < 1 && model.getValue("/root/main/otherinfo/outchrtflag") == "") {
  1393. // KNUH_20101124_박성호_start_의무기록 부서코드 가져오기
  1394. var dutplcecd = getUserInfo("dutplcecd");
  1395. //if(getUserInfo("dutplcecd") == "3230000000"){
  1396. if(model.getValue("/root/temp/hardcd/hardcd[hardcd='" + dutplcecd + "']/hardcd") != "")
  1397. {
  1398. // KNUH_20101124_박성호_end
  1399. if(inList.length > 0) {
  1400. // switch
  1401. btn_in.selected = true;
  1402. model.toggle ("in" );
  1403. group1.visible = false;
  1404. swc_prof.attribute("height") = "450px";
  1405. grd_inapplist.attribute("height") = "200px";
  1406. caption10.attribute("top") = "225px";
  1407. grd_inpat.attribute("top") = "240px";
  1408. grd_inpat.attribute("height") = "200px";
  1409. }
  1410. }
  1411. }
  1412. fGetMidFormList(); // 중분류 사본list
  1413. var outrsrvinfo = model.instance1.selectNodes("/root/main/outpathistlist/outpathistlist");
  1414. if (outrsrvinfo.length > 0)
  1415. {
  1416. fGetEMROutTestList(); //검사결과
  1417. }
  1418. fDispAllForm();
  1419. //fGetInEmrFormList(); // 입원 사본list /root/main/issinfo/emrapplist
  1420. //fViewer(); // EMR 기록조회
  1421. if(grd_rcptlist.rows == 2)
  1422. grd_rcptlist.row = 1;
  1423. var jobkindcd = getUserInfo("jobkindcd");
  1424. if (jobkindcd == "1140" || jobkindcd == "1110")
  1425. {
  1426. fSetDisabled();
  1427. }
  1428. else
  1429. {
  1430. //2012/02/29 Start
  1431. //btn_update.disabled = false;
  1432. btn_reappinfo.disabled = false;
  1433. //2012/02/29 End
  1434. }
  1435. model.setValue("/root/main/otherinfo/bmtappyn", model.getValue("/root/main/apphist/applist[" + idx + "]/bmtappyn"));
  1436. //2012/03/13 Start
  1437. before_delivefact = model.getValue("/root/main/appinfo/copyinfo/delivefact");
  1438. //2012/03/13 End
  1439. //2013/01/15 Start
  1440. var delivefactcnt=model.getValue("/root/main/appinfo/copyinfo/delivefact").split("\n");
  1441. model.setValue("/root/main/delivefactcnt", delivefactcnt.length-1);
  1442. //2013/01/15 End
  1443. model.makeValue("/root/main/otherinfo/addimageyn", "Y");
  1444. model.refresh();
  1445. //fGetEMRDrawList();
  1446. //fEmrImgRec(); // html
  1447. }
  1448. ]]>
  1449. </script>
  1450. <script type="javascript" ev:event="onmousedown">
  1451. <![CDATA[
  1452. setPopupMenu("grd_apphist", false, "/root/popupmenu/menu/item", "name", "func");
  1453. ]]>
  1454. </script>
  1455. <script type="javascript" ev:event="DOMFocusOut">
  1456. <![CDATA[
  1457. initPopupMenu();
  1458. ]]>
  1459. </script>
  1460. </datagrid>
  1461. <select1 id="cmb_emrorddeptcd" ref="/root/main/appinfo/copyinfo/appdeptcd" appearance="minimal" style="left:92px; top:284px; width:130px; height:19px; ">
  1462. <choices>
  1463. <itemset nodeset="/root/init/deptlist/dept">
  1464. <label ref="depthngnm"/>
  1465. <value ref="deptcd"/>
  1466. </itemset>
  1467. </choices>
  1468. <script type="javascript" ev:event="xforms-value-changed">
  1469. <![CDATA[
  1470. zsufGetOrdDeptDoctorList("none", getUserInfo("dutplceinstcd"), cmb_emrorddeptcd.value, "/root/init/userinfo/userlist", "usernm", "asc")//해당 주치의
  1471. //20111031
  1472. /*
  1473. for(var i=1; i<=getNodesetCount("/root/init/userinfo/userlist/user"); i++){
  1474. if(model.getValue("/root/init/userinfo/userlist/user["+i+"]/userid")=="EMR"){
  1475. model.setValue("/root/init/userinfo/userlist/user["+i+"]/usernm", "EMR(사본신청)");
  1476. }
  1477. }
  1478. */
  1479. //20111031
  1480. cmb_orddrid.refresh();
  1481. //mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddeptcd.value, "0330");
  1482. if(chk_anoinfo.value == "Y") param = "T";
  1483. else param = "Y";
  1484. fReqGetOutPatHistList(param);
  1485. fReqGetInPatHistList(param);
  1486. /*탭구분없이 외래 입원 전체조회때문에 막음
  1487. if(btn_out.selected) {
  1488. if(chk_anoinfo.value == "Y") param = "T";
  1489. else param = "Y";
  1490. fReqGetOutPatHistList(param);
  1491. } else if(btn_in.selected) {
  1492. if(chk_anoinfo.value == "Y") param = "T";
  1493. else param = "Y";
  1494. fReqGetInPatHistList(param);
  1495. }*/
  1496. ]]>
  1497. </script>
  1498. </select1>
  1499. <select1 id="rdo_appmanflag" ref="/root/main/appinfo/copyinfo/appmanflag" appearance="full" cellspacing="8" cols="3" vcellspacing="5" overflow="visible" style="left:70px; top:214px; width:242px; height:45px; border-style:none; ">
  1500. <choices>
  1501. <item>
  1502. <label>환자본인</label>
  1503. <value>1</value>
  1504. </item>
  1505. <item>
  1506. <label>직계가족</label>
  1507. <value>2</value>
  1508. </item>
  1509. <item>
  1510. <label>보험회사직원</label>
  1511. <value>3</value>
  1512. </item>
  1513. <item>
  1514. <label>대리인</label>
  1515. <value>4</value>
  1516. </item>
  1517. <item>
  1518. <label>기타</label>
  1519. <value>9</value>
  1520. </item>
  1521. </choices>
  1522. <script type="javascript" ev:event="xforms-value-changed">
  1523. <![CDATA[
  1524. var sa = model.getValue("/root/main/cond/sa");
  1525. var age = sa.substring(2, sa.length);
  1526. var appmanflag = model.getValue("/root/main/appinfo/copyinfo/appmanflag");
  1527. if(age < parseInt(14)) {
  1528. if(appmanflag == "1") {
  1529. messageBox("만 14세 미만 환자는 본인 항목을 체크", "E001");
  1530. model.setValue("/root/main/appinfo/copyinfo/appmanflag", "");
  1531. model.refresh();
  1532. }
  1533. }
  1534. var deathyn = model.getValue("/root/main/paper/deathyn");
  1535. if(deathyn == "Y") {
  1536. if(appmanflag == "1") {
  1537. messageBox("사망 환자는 본인 항목을 체크", "E001");
  1538. model.setValue("/root/main/appinfo/copyinfo/appmanflag", "");
  1539. model.refresh();
  1540. }
  1541. }
  1542. fAppManNmSetting();
  1543. ]]>
  1544. </script>
  1545. </select1>
  1546. <select1 id="cmb_orddrid" ref="/root/main/appinfo/copyinfo/appdrid" appearance="minimal" style="left:303px; top:284px; width:117px; height:19px; ">
  1547. <choices>
  1548. <itemset nodeset="/root/init/userinfo/userlist/user[userid!=11111]">
  1549. <label ref="usernm"/>
  1550. <value ref="userid"/>
  1551. </itemset>
  1552. </choices>
  1553. </select1>
  1554. <input id="ipt_appmannm" ref="/root/main/appinfo/copyinfo/appmanetc" disabled="true" style="left:193px; top:238px; width:114px; height:19px; "/>
  1555. <caption id="caption14" class="tit_2" style="left:430px; top:666px; width:131px; height:14px; ">비용 미수납사유</caption>
  1556. <input id="ipt_issgoalnm" ref="/root/main/appinfo/copyinfo/issgoaletc" editable="false" style="left:92px; top:262px; width:153px; height:19px; ">
  1557. <script type="javascript" ev:event="onmouseup">
  1558. <![CDATA[
  1559. var issgoaletccd = model.getValue("/root/main/appinfo/copyinfo/issgoaletccd");
  1560. if(issgoaletccd == "")
  1561. {
  1562. messageBox("사본발행목적을 입력하실려면 왼쪽 사본발행목적 버튼을 클릭", "I008");
  1563. return;
  1564. }
  1565. ]]>
  1566. </script>
  1567. </input>
  1568. <input id="ipt_issgoaletc" ref="/root/main/appinfo/copyinfo/issgoaletcnm" disabled="true" style="left:247px; top:262px; width:174px; height:19px; "/>
  1569. <caption id="caption24" class="tit_2" style="left:0px; top:699px; width:152px; height:13px; ">기타 상세신청내역</caption>
  1570. <button id="button5" class="btn4_letter4" style="left:1030px; top:759px; width:80px; height:22px; ">
  1571. <caption>처방이력</caption>
  1572. <script type="javascript" ev:event="DOMActivate">
  1573. <![CDATA[
  1574. fPopUpPrcpHist();
  1575. ]]>
  1576. </script>
  1577. </button>
  1578. <caption id="caption20" class="tit_2" style="left:640px; top:666px; width:132px; height:13px; ">사본발행 수가입력</caption>
  1579. <button id="btn_issgoal" class="btn2_letter6" style="left:5px; top:262px; width:86px; height:19px; ">
  1580. <caption>사본발행목적</caption>
  1581. <script type="javascript" ev:event="DOMActivate">
  1582. <![CDATA[
  1583. fIssGoalPopUp();
  1584. ]]>
  1585. </script>
  1586. </button>
  1587. <button id="btn_help" class="btn2_letter7" style="left:128px; top:187px; width:97px; height:19px; ">
  1588. <caption>구비서류 도움말</caption>
  1589. <script type="javascript" ev:event="DOMActivate">
  1590. <![CDATA[
  1591. setParameter("SPMRC02600_param","A");
  1592. modal("SPMRC02600");
  1593. ]]>
  1594. </script>
  1595. </button>
  1596. <datagrid id="grd_tmprcptlist" nodeset="/root/temp2/rcptlist/rcptlist" visibility="hidden" caption="상태^수가코드^수가명칭^매수^단가^수납상태^prcpdd^prcpno^prcphistno^pid^orddd^cretno^prcpqty^oldshtno^prcpcd^issseqno^copyseqno^issno^부수^oldprcptims^prcpflag^defyn" colsep="^" colwidth="84, 146, 176, 50, 100, 100, 62, 66, 71, 68, 65, 100, 100, 100, 100, 100, 100, 100, 50, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:440px; top:350px; width:554px; height:75px; ">
  1597. <col disabled="true" ref="prcpstatcd" type="combo" style="text-align:center; ">
  1598. <choices>
  1599. <itemset nodeset="/root/init/prcpstatcd/M0011">
  1600. <label ref="cdnm"/>
  1601. <value ref="cdid"/>
  1602. </itemset>
  1603. </choices>
  1604. </col>
  1605. <col ref="calcscorcd"/>
  1606. <col ref="calcscornm"/>
  1607. <col ref="shtno" type="input" format="#,###" style="text-align:right; "/>
  1608. <col ref="unitcost" visibility="hidden"/>
  1609. <col ref="rcptyn" visibility="hidden"/>
  1610. <col ref="prcpdd" visibility="hidden"/>
  1611. <col ref="prcpno" visibility="hidden"/>
  1612. <col ref="prcphistno" visibility="hidden"/>
  1613. <col ref="pid" visibility="hidden"/>
  1614. <col ref="orddd" visibility="hidden"/>
  1615. <col ref="cretno" visibility="hidden"/>
  1616. <col ref="prcpqty" visibility="hidden"/>
  1617. <col ref="oldshtno" visibility="hidden"/>
  1618. <col ref="prcpcd" visibility="hidden"/>
  1619. <col ref="issseqno" visibility="hidden"/>
  1620. <col ref="copyseqno" visibility="hidden"/>
  1621. <col ref="issno" visibility="hidden"/>
  1622. <col ref="prcptims" type="input" style="text-align:right; "/>
  1623. <col ref="oldprcptims" visibility="hidden"/>
  1624. <col ref="prcpflag" visibility="hidden"/>
  1625. <col ref="defyn" visibility="hidden"/>
  1626. </datagrid>
  1627. <datagrid id="grd_rcptlist" nodeset="/root/main/rcptlist/rcptlist" caption="상태^수가코드^수가명칭^매수^단가^수납상태^prcpdd^prcpno^prcphistno^pid^orddd^cretno^prcpqty^oldshtno^prcpcd^issseqno^copyseqno^issno^부수^oldprcptims^prcpflag^defyn" colsep="^" colwidth="84, 146, 176, 50, 100, 100, 62, 66, 71, 68, 65, 100, 100, 100, 100, 100, 100, 100, 50, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:640px; top:681px; width:554px; height:75px; ">
  1628. <col disabled="true" ref="prcpstatcd" type="combo" style="text-align:center; ">
  1629. <choices>
  1630. <itemset nodeset="/root/init/prcpstatcd/M0011">
  1631. <label ref="cdnm"/>
  1632. <value ref="cdid"/>
  1633. </itemset>
  1634. </choices>
  1635. </col>
  1636. <col ref="calcscorcd"/>
  1637. <col ref="calcscornm"/>
  1638. <col ref="shtno" type="input" format="#,###" style="text-align:right; "/>
  1639. <col ref="unitcost" visibility="hidden"/>
  1640. <col ref="rcptyn" visibility="hidden"/>
  1641. <col ref="prcpdd" visibility="hidden"/>
  1642. <col ref="prcpno" visibility="hidden"/>
  1643. <col ref="prcphistno" visibility="hidden"/>
  1644. <col ref="pid" visibility="hidden"/>
  1645. <col ref="orddd" visibility="hidden"/>
  1646. <col ref="cretno" visibility="hidden"/>
  1647. <col ref="prcpqty" visibility="hidden"/>
  1648. <col ref="oldshtno" visibility="hidden"/>
  1649. <col ref="prcpcd" visibility="hidden"/>
  1650. <col ref="issseqno" visibility="hidden"/>
  1651. <col ref="copyseqno" visibility="hidden"/>
  1652. <col ref="issno" visibility="hidden"/>
  1653. <col ref="prcptims" type="input" style="text-align:right; "/>
  1654. <col ref="oldprcptims" visibility="hidden"/>
  1655. <col ref="prcpflag" visibility="hidden"/>
  1656. <col ref="defyn" visibility="hidden"/>
  1657. <script type="javascript" ev:event="xforms-value-changed">
  1658. <![CDATA[
  1659. fChangedGridRow();
  1660. fChangedAppCopies();
  1661. ]]>
  1662. </script>
  1663. <script type="javascript" ev:event="onmousedown">
  1664. <![CDATA[
  1665. // 2010.04.26. 이은영 -> 컬러복사 수가 적용
  1666. var colorcalcscoryn = model.getValue("/root/hidden/colorcalcscoryn/hardcd/hardcd");
  1667. if (colorcalcscoryn == "Y") {
  1668. fMouseRghtBtnPopup(grd_rcptlist); // 우클릭 메뉴 보기..
  1669. }
  1670. ]]>
  1671. </script>
  1672. </datagrid>
  1673. <input id="ipt_emrappcopies" ref="/root/temp2/appinfo/copyinfo/totalcopies" class="input_default" format="#,###" style="left:950px; top:759px; width:40px; height:19px; text-align:right; ">
  1674. <script type="javascript" ev:event="xforms-value-changed">
  1675. <![CDATA[
  1676. //inputEnterKey("button11", "DOMActivate");
  1677. if(fChangedAppCopies2() == true)
  1678. {
  1679. fSugaCalc();
  1680. fChangedSugaGridRow();
  1681. //fChangedGridRow2();
  1682. //fChangedAppCopies();
  1683. //fChangeStatus();
  1684. model.refresh();
  1685. }
  1686. ]]>
  1687. </script>
  1688. <script type="javascript" ev:event="onkeyup">
  1689. <![CDATA[
  1690. inputEnterKey("button11", "DOMActivate");
  1691. ]]>
  1692. </script>
  1693. </input>
  1694. <caption id="caption28" class="cell_1" style="left:808px; top:759px; width:57px; height:19px; vertical-align:middle; ">신청부수</caption>
  1695. <caption id="caption29" class="cell_1" style="left:993px; top:759px; width:25px; height:19px; vertical-align:middle; ">부</caption>
  1696. <button id="btn_crtfct" class="btn2_letter3" style="left:1141px; top:661px; width:53px; height:19px; ">
  1697. <caption>증명서</caption>
  1698. <script type="javascript" ev:event="DOMActivate">
  1699. <![CDATA[
  1700. //2012/03/14 Start
  1701. for(var i=1; i<=getNodesetCnt(model,"/root/temp/hardcd2"); i++){
  1702. if(model.getValue("/root/temp/hardcd2/hardcd["+i+"]/hardcd")!=getUserInfo("dutplceinstcd")){
  1703. issnoYN = "";
  1704. break;
  1705. }
  1706. }
  1707. //2012/03/14 End
  1708. fPrnt("crtfct");
  1709. ]]>
  1710. </script>
  1711. </button>
  1712. <button id="btn_colorcalcscoryn" class="btn2_letter6" visibility="hidden" style="left:770px; top:661px; width:86px; height:19px; ">
  1713. <caption>컬러수가추가</caption>
  1714. <script type="javascript" ev:event="DOMActivate">
  1715. <![CDATA[
  1716. fAddColorCalcScor()
  1717. ]]>
  1718. </script>
  1719. </button>
  1720. <button id="btn_cnfm" class="btn2_letter3" style="left:985px; top:661px; width:53px; height:19px; ">
  1721. <caption>승낙서</caption>
  1722. <script type="javascript" ev:event="DOMActivate">
  1723. <![CDATA[
  1724. fPrnt("cnfm");
  1725. ]]>
  1726. </script>
  1727. </button>
  1728. <button id="btn_smaer00800" class="btn2_letter4" style="left:956px; top:10px; width:64px; height:19px; ">
  1729. <caption>검사결과</caption>
  1730. <script type="javascript" ev:event="DOMActivate">
  1731. <![CDATA[
  1732. fExamRultListCall();
  1733. ]]>
  1734. </script>
  1735. </button>
  1736. <button id="btn_smmri00400" class="btn2_letter4" style="left:1021px; top:10px; width:64px; height:19px; ">
  1737. <caption>통합기록</caption>
  1738. <script type="javascript" ev:event="DOMActivate">
  1739. <![CDATA[
  1740. fMedirecListCall();
  1741. ]]>
  1742. </script>
  1743. </button>
  1744. <button id="button1" class="btn2_letter5" style="left:793px; top:10px; width:75px; height:19px; ">
  1745. <caption>현위치조회</caption>
  1746. <script type="javascript" ev:event="DOMActivate">
  1747. <![CDATA[
  1748. fChrtRultListCall();
  1749. ]]>
  1750. </script>
  1751. </button>
  1752. <button id="button2" class="btn2_letter6" style="left:869px; top:10px; width:86px; height:19px; ">
  1753. <caption>차트대출이력</caption>
  1754. <script type="javascript" ev:event="DOMActivate">
  1755. <![CDATA[
  1756. fChrtHistRultListCall();
  1757. ]]>
  1758. </script>
  1759. </button>
  1760. <object id="obj_cvrt" clsid="{341619d2-2ef9-4cac-a40e-b330c4c5f004}" style="left:740px; top:50px; width:10px; height:10px; "/>
  1761. <datagrid id="grd_outapplist" nodeset="/root/temp/issinfo/emrlist" caption="챠트구분^진료구분^진료일자^퇴원일자^진료과^주치의^기록일자^서식명^매수^서식코드^기록번호^진료과코드^진료의id^testflag^pid^cretno^midindxseq" colsep="^" colwidth="65, 70, 80, 72, 80, 87, 86, 40, 100, 87, 100, 100, 93, 100, 100, 100, 100" dataheight="24" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:465px; top:85px; width:334px; height:85px; ">
  1762. <col disabled="true" ref="chrtflag" type="combo" style="text-align:center; ">
  1763. <choices>
  1764. <item>
  1765. <label>종이</label>
  1766. <value>P</value>
  1767. </item>
  1768. <item>
  1769. <label>영상</label>
  1770. <value>I</value>
  1771. </item>
  1772. <item>
  1773. <label>EMR</label>
  1774. <value>E</value>
  1775. </item>
  1776. </choices>
  1777. </col>
  1778. <col disabled="true" ref="ioflag" type="combo">
  1779. <choices>
  1780. <itemset nodeset="/root/init/ioflaglist/P0001">
  1781. <label ref="cdnm"/>
  1782. <value ref="cdid"/>
  1783. </itemset>
  1784. </choices>
  1785. </col>
  1786. <col ref="orddd" format="yyyy-mm-dd" style="left:155px; top:23px; width:80px; height:23px; text-align:center; "/>
  1787. <col ref="dschdd" format="yyyy-mm-dd" style="left:235px; top:23px; width:72px; height:23px; text-align:center; "/>
  1788. <col ref="orddeptnm" format="yyyy-mm-dd" style="text-align:center; ">
  1789. <![CDATA[/>]]>
  1790. </col>
  1791. <col ref="atdoctnm"/>
  1792. <col ref="formrecdt"/>
  1793. <col ref="formnm" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1794. <col ref="shtno"/>
  1795. <col ref="formcd" style="text-align:center; "/>
  1796. <col ref="reckeyno" visibility="hidden"/>
  1797. <col ref="orddeptcd" visibility="hidden"/>
  1798. <col ref="atdoctid" visibility="hidden"/>
  1799. <col ref="testflag" visibility="hidden"/>
  1800. <col ref="pid" visibility="hidden"/>
  1801. <col ref="cretno" visibility="hidden"/>
  1802. <col ref="midindxseq" visibility="hidden"/>
  1803. <script type="javascript" ev:event="onmousedown">
  1804. <![CDATA[
  1805. if(grd_emrapplist.isCell(event.target) && (grd_emrapplist.mouserow >= grd_emrapplist.fixedrows))
  1806. {
  1807. setPopupMenu("grd_emrapplist", false, "/root/init/emrapplistclik/mouserght", "label", "func");
  1808. }
  1809. ]]>
  1810. </script>
  1811. <script type="javascript" ev:event="DOMFocusOut">
  1812. <![CDATA[
  1813. window.setPopupMenu(false);
  1814. ]]>
  1815. </script>
  1816. </datagrid>
  1817. <button id="button4" class="btn2_letter5" visibility="hidden" style="left:630px; top:50px; width:75px; height:19px; ">
  1818. <caption>병동위임장</caption>
  1819. <script type="javascript" ev:event="DOMActivate">
  1820. <![CDATA[
  1821. //exeReportPreview("RPMRC03000", "XMLSTR", "", "", "true", "", "", "", "", "true");
  1822. //if(model.getValue("/root/main/cond/dschdd") == "99991231")
  1823. exeReportPreview("RPMRC03000", "XMLSTR", "", "", "true", "", "", "", "", "true");
  1824. ]]>
  1825. </script>
  1826. </button>
  1827. <select id="chk_anoinfo" ref="/root/main/otherinfo/anoinfo" overflow="visible" appearance="full" checkvalue="Y,N" style="left:220px; top:310px; width:70px; height:20px; border-style:none; ">
  1828. <choices>
  1829. <item>
  1830. <label>타과기록</label>
  1831. <value>Y</value>
  1832. </item>
  1833. </choices>
  1834. <script type="javascript" ev:event="xforms-value-changed">
  1835. <![CDATA[
  1836. /* 20111121 클릭시 외래 및 입원을 모두 불러 올 수 있도록 수정
  1837. if(btn_out.selected) {
  1838. if(chk_anoinfo.value == "Y") param = "T";
  1839. else param = "Y";
  1840. fReqGetOutPatHistList(param);
  1841. } else if(btn_in.selected) {
  1842. if(chk_anoinfo.value == "Y") param = "T";
  1843. else param = "Y";
  1844. fReqGetInPatHistList(param);
  1845. }
  1846. */
  1847. if(chk_anoinfo.value == "Y"){
  1848. param = "T";
  1849. }else{
  1850. param = "Y";
  1851. }
  1852. fReqGetOutPatHistList(param);
  1853. fReqGetInPatHistList(param);
  1854. ]]>
  1855. </script>
  1856. </select>
  1857. <datagrid id="datagrid1" nodeset="/root/prthist" visibility="hidden" caption="caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10" colsep="^" colwidth="10, 10, 10, 10, 10, 10, 10, 10, 10, 10" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:440px; top:260px; width:125px; height:65px; ">
  1858. <col ref="pid"/>
  1859. <col ref="signno"/>
  1860. <col ref="reckind"/>
  1861. <col ref="readprtflag"/>
  1862. <col ref="formcd"/>
  1863. <col ref="signflag"/>
  1864. <col ref="orddd"/>
  1865. <col ref="chosflag"/>
  1866. <col ref="refusge"/>
  1867. <col ref="refremark"/>
  1868. </datagrid>
  1869. <datagrid id="grd_emrapplist" nodeset="/root/main/issinfo/emrapplist" caption="V^회차^서식명^주치의^chrtflag^ioflag^orddd^indd^dschdd^orddeptnm^formrecdt^shtno^formcd^reckeyno^orddeptcd^atdoctid" colsep="^" colwidth="30, 80, 190, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:440px; top:180px; width:410px; height:70px; ">
  1870. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  1871. <col ref="indg"/>
  1872. <col ref="formnm"/>
  1873. <col ref="atdoctnm"/>
  1874. <col disabled="true" ref="chrtflag" type="combo" visibility="hidden" style="text-align:center; ">
  1875. <choices>
  1876. <item>
  1877. <label>종이</label>
  1878. <value>P</value>
  1879. </item>
  1880. <item>
  1881. <label>영상</label>
  1882. <value>I</value>
  1883. </item>
  1884. <item>
  1885. <label>EMR</label>
  1886. <value>E</value>
  1887. </item>
  1888. </choices>
  1889. </col>
  1890. <col disabled="true" ref="ioflag" type="combo" visibility="hidden">
  1891. <choices>
  1892. <itemset nodeset="/root/init/common/ioflaglist/P0001">
  1893. <label ref="cdnm"/>
  1894. <value ref="cdid"/>
  1895. </itemset>
  1896. </choices>
  1897. </col>
  1898. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  1899. <col ref="indd" format="yyyy-mm-dd" style="left:235px; top:23px; width:72px; height:23px; text-align:center; "/>
  1900. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; ">
  1901. <![CDATA[/>]]>
  1902. </col>
  1903. <col ref="orddeptnm"/>
  1904. <col ref="formrecdt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1905. <col ref="shtno" style="text-align:center; "/>
  1906. <col ref="formcd" visibility="hidden"/>
  1907. <col ref="reckeyno" visibility="hidden"/>
  1908. <col ref="orddeptcd" visibility="hidden"/>
  1909. <col ref="atdoctid" visibility="hidden"/>
  1910. <script type="javascript" ev:event="onclick">
  1911. <![CDATA[
  1912. var chk = grd_emrapplist.valueMatrix(grd_emrapplist.row, grd_emrapplist.colRef("chk"));
  1913. if(chk == "Y") {
  1914. //fInEMRChrtListSelect();
  1915. model.setValue("/root/main/issinfo/emrapplist["+ grd_emrapplist.row +"]/chk", "Y");
  1916. }
  1917. model.refresh();
  1918. ]]>
  1919. </script>
  1920. </datagrid>
  1921. <caption id="caption22" class="tit_1" style="left:190px; top:10px; width:106px; height:13px; ">사본발행신청</caption>
  1922. <button id="btn_pathist" class="btn2_letter4" visibility="visible" style="left:728px; top:10px; width:64px; height:19px; ">
  1923. <caption>수진이력</caption>
  1924. <script type="javascript" ev:event="DOMActivate">
  1925. <![CDATA[
  1926. fGetPatHist();
  1927. ]]>
  1928. </script>
  1929. </button>
  1930. <button id="button10" class="btn2_letter3" style="left:858px; top:661px; width:53px; height:19px; ">
  1931. <caption>초기화</caption>
  1932. <script type="javascript" ev:event="DOMActivate">
  1933. <![CDATA[
  1934. grd_apphist.dispatch("onclick");
  1935. ]]>
  1936. </script>
  1937. </button>
  1938. <input id="input1" ref="/root/temp2/appinfo/copyinfo/totalshrtno" class="input_default" format="#,###" style="left:870px; top:759px; width:40px; height:19px; text-align:right; ">
  1939. <script type="javascript" ev:event="xforms-value-changed">
  1940. <![CDATA[
  1941. if(fChangedAppCopies2() == true)
  1942. {
  1943. fSugaCalc();
  1944. fChangedSugaGridRow()
  1945. //fChangedGridRow2();
  1946. //fChangedAppCopies();
  1947. //fChangeStatus();
  1948. //2013/01/15 Start
  1949. totprntcnt=parseInt(model.getValue("/root/temp2/appinfo/copyinfo/totalshrtno"));
  1950. //2013/01/15 End
  1951. model.refresh();
  1952. }
  1953. ]]>
  1954. </script>
  1955. <script type="javascript" ev:event="onkeyup">
  1956. <![CDATA[
  1957. inputEnterKey("button11", "DOMActivate");
  1958. //2013/01/15 Start
  1959. totprntcnt=parseInt(model.getValue("/root/temp2/appinfo/copyinfo/totalshrtno"));
  1960. //2013/01/15 End
  1961. ]]>
  1962. </script>
  1963. </input>
  1964. <caption id="caption11" style="left:940px; top:756px; width:10px; height:25px; ">/</caption>
  1965. <button id="button11" class="btn4_letter2" visibility="hidden" style="left:720px; top:759px; width:56px; height:22px; ">
  1966. <caption>계산</caption>
  1967. <script type="javascript" ev:event="DOMActivate">
  1968. <![CDATA[
  1969. if(fChangedAppCopies2() == true)
  1970. {
  1971. fSugaCalc();
  1972. fChangedSugaGridRow();
  1973. //fChangedGridRow2();
  1974. //fChangedAppCopies();
  1975. //fChangeStatus();
  1976. model.refresh();
  1977. }
  1978. ]]>
  1979. </script>
  1980. </button>
  1981. <caption id="caption16" class="cell_1" style="left:913px; top:759px; width:25px; height:19px; vertical-align:middle; ">매</caption>
  1982. <button id="button12" class="btn4_letter6" style="left:321px; top:692px; width:104px; height:22px; ">
  1983. <caption>상세내역추가</caption>
  1984. <script type="javascript" ev:event="DOMActivate">
  1985. <![CDATA[
  1986. fAddDetailContents();
  1987. ]]>
  1988. </script>
  1989. </button>
  1990. <textarea id="txt_rcptpossynmsg" ref="/root/main/rcptpossynmsg" overflow="hidden" editable="false" style="left:170px; top:48px; width:255px; height:21px; font-size:11pt; font-weight:bold; color:#ff0000; text-align:right; background-color:#ffff00; border-color:#ff0000; border-width:2px; "/>
  1991. <script type="javascript" ev:event="onclick">
  1992. <![CDATA[
  1993. ]]>
  1994. </script>
  1995. <caption id="caption18" visibility="hidden" style="left:190px; top:698px; width:85px; height:15px; ">신청내역건수:</caption>
  1996. <output id="output1" ref="/root/main/delivefactcnt" visibility="hidden" style="left:270px; top:693px; width:30px; height:19px; "/>
  1997. <object id="f_View" clsid="{26a5a05a-2193-4ee2-a064-f04d3c37705a}" style="left:0px; top:0px; width:0px; height:0px; "/>
  1998. <button id="btn_recepinfo" class="btn2_letter3" style="left:929px; top:661px; width:53px; height:19px; ">
  1999. <caption>안내장</caption>
  2000. <script type="javascript" ev:event="DOMActivate">
  2001. <![CDATA[
  2002. if(grd_apphist.row < 1){
  2003. messageBox("환자를 먼저", "C002");
  2004. return;
  2005. }
  2006. var sIssuno = model.getValue("/root/main/apphist/applist["+ grd_apphist.row +"]/issno");
  2007. if(sIssuno == "" || sIssuno == null){
  2008. messageBox("수가입력이 되지 않았습니다. 수가입력 버튼을", "C002");
  2009. } else{
  2010. fPrnt("recepinfo");
  2011. }
  2012. ]]>
  2013. </script>
  2014. </button>
  2015. <bool id="chk_recepinfo" checkvalue="Y,N" ref="/root/main/cond/recepinfochk" style="left:906px; top:661px; width:30px; height:20px; "/>
  2016. <button id="button15" class="btn2_letter3" visibility="hidden" style="left:1086px; top:10px; width:53px; height:19px; ">
  2017. <caption>위임장</caption>
  2018. <script type="javascript" ev:event="DOMActivate">
  2019. <![CDATA[
  2020. exeReportPreview("RFM0000001", "XMLSTR", "", "", "true", "", "", "", "", "true");
  2021. ]]>
  2022. </script>
  2023. </button>
  2024. <button id="button14" class="btn2_letter3" visibility="hidden" style="left:1140px; top:10px; width:53px; height:19px; ">
  2025. <caption>동의서</caption>
  2026. <script type="javascript" ev:event="DOMActivate">
  2027. <![CDATA[
  2028. exeReportPreview("RFM0000002", "XMLSTR", "", "", "true", "", "", "", "", "true");
  2029. ]]>
  2030. </script>
  2031. </button>
  2032. </xhtml:body>
  2033. </xhtml:html>