SMPID20200_입원사후심사대상자조회.xrw 98 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID20200_입원사후심사대상자조회.xrw
  4. * 수정이력
  5. * - 2007.03.16 / 최초작성 / 정주미
  6. * - 2008.07.01 / Modify / 김상진
  7. *
  8. ******************************************************************************************************
  9. * - opener 에서 전달받는 조건 경로
  10. opener.root.hidden.smpid20200.cond.pid
  11. * - opener 로 전달하는 결과값 경로
  12. opener.root.hidden.smpid20200.rslt.clamkey
  13. opener.root.hidden.smpid20200.rslt.selectedRow
  14. opener.root.hidden.smpid20200.rslt.oldPid
  15. * - opener 로 호출하는 메소드
  16. fGetInAftJudgMngt()
  17. ******************************************************************************************************
  18. * - TRPID20201 // 심사자, 보조유형, 진료의사, 청구과, 진료과, 심사자유무정보 조회
  19. * - TRPID20202 // 사후심사대상자조회
  20. * - TRPID20407 // 청구년월별 청구차수 조회
  21. * - TXPID20201 // 사용자메모저장
  22. * - TXPID20302 // 심사중해제
  23. * - TXPID21601 // 환경저장 : 처방item 순서저장
  24. * - TRPID21602 // 환경조회 : 처방item 순서조회
  25. ******************************************************************************************************
  26. -->
  27. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  28. <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">
  29. <xhtml:head>
  30. <xhtml:title>입원사후심사대상자조회</xhtml:title>
  31. <model id="model1">
  32. <instance id="instance1">
  33. <root xmlns="">
  34. <main>
  35. <list1>
  36. <clbs/>
  37. </list1>
  38. <!-- SPPMC02500_환자조회 화면에서 선택된 검색결과를 받는 경로임 -->
  39. <patinfo>
  40. <patinfolist/>
  41. </patinfo>
  42. <popupendflag/>
  43. </main>
  44. <send>
  45. <item1>
  46. <ioflag/>
  47. <clamym/>
  48. <clamdg/>
  49. <ordfildcd/>
  50. <clamflagcd/>
  51. <judgendyn/>
  52. <insukindcd/>
  53. <suppkindcd/>
  54. <clamdeptcd/>
  55. <acptno/>
  56. <docuseqno1/>
  57. <docuseqno2/>
  58. <patunitsrch1/>
  59. <patunitsrch2/>
  60. <judgrid/>
  61. <orddrid/>
  62. <totordamt/>
  63. <cmbtotordamt/>
  64. <ownbamt/>
  65. <cmbownbamt/>
  66. <choicdsrch1/>
  67. <choicdsrch2/>
  68. <chkanticncr/>
  69. <chkanticncr2/>
  70. <chkanst/>
  71. <chkdivclam/>
  72. <chkangio1/>
  73. <chkangio2/>
  74. <chkspcljudg/>
  75. <chkpetmri/>
  76. <chkcpyn/>
  77. <chkdrgyn/>
  78. <chkreclam/>
  79. <lastclamym/>
  80. <lastclamdg/>
  81. <lastjudgno/>
  82. <lastpid/>
  83. <lastpidsn/>
  84. <lastordcd/>
  85. <lastclamkey/>
  86. <lastedilnno/>
  87. <orddeptcd/>
  88. <diagcdfr/>
  89. <diagcdto/>
  90. <spclmark/>
  91. <patmode/>
  92. <cutprcp/>
  93. <chkerdeptyn/>
  94. <cutviewyn/>
  95. <cutprcpsel/>
  96. <selpiduseyn/>
  97. <srchcnt/>
  98. <virusb/>
  99. <insucmno/>
  100. <chkhospice/>
  101. </item1>
  102. <list1>
  103. <clbs>
  104. <clamkey/>
  105. <judgendyn/>
  106. </clbs>
  107. </list1>
  108. <item2/>
  109. <item3/>
  110. <item4>
  111. <clbs>
  112. <clamym/>
  113. <clamdg/>
  114. <pid/>
  115. <pidsn/>
  116. <clamkey/>
  117. <ioflag/>
  118. <instcd/>
  119. <kdrgno/>
  120. </clbs>
  121. </item4>
  122. <listval>
  123. <uuee>
  124. <flag/>
  125. <scrnid/>
  126. <compsnm/>
  127. <compscnts/>
  128. <compsrefcnts/>
  129. <compssizecnts/>
  130. </uuee>
  131. </listval>
  132. <item6>
  133. <clbs>
  134. <clamym/>
  135. <clamdg>0</clamdg>
  136. <clamfromdd/>
  137. <clamtodd/>
  138. <insutype/>
  139. <ordfildcd/>
  140. <clamflag/>
  141. <predata/>
  142. <ownb100/>
  143. <datacretflag/>
  144. <pid/>
  145. <name/>
  146. <orddeptcd/>
  147. <weekflag>S</weekflag>
  148. <chk/>
  149. <ioflag/>
  150. </clbs>
  151. </item6>
  152. </send>
  153. <init>
  154. <listval>
  155. <uuee>
  156. <scrnid/>
  157. <compsnm/>
  158. <compscnts/>
  159. <compsrefcnts/>
  160. <compssizecnts/>
  161. </uuee>
  162. </listval>
  163. <!-- 보험유형 -->
  164. <P0008list>
  165. <P0008>
  166. <cdnm/>
  167. <cdid/>
  168. <cdnm>보험+급여</cdnm>
  169. <cdid>1</cdid>
  170. <cdnm>급여전체</cdnm>
  171. <cdid>2</cdid>
  172. </P0008>
  173. </P0008list>
  174. <!-- 보조유형 -->
  175. <P0010list>
  176. <P0010>
  177. <cdnm/>
  178. <cdid/>
  179. </P0010>
  180. </P0010list>
  181. <!-- 심사상태 / 심사완료여부 -->
  182. <P0151list>
  183. <P0151>
  184. <cdengabbrnm/>
  185. <cdnm/>
  186. <cdid/>
  187. </P0151>
  188. </P0151list>
  189. <!-- 청구분야(진료분야) -->
  190. <P0291list>
  191. <P0291>
  192. <cdnm/>
  193. <cdid/>
  194. </P0291>
  195. </P0291list>
  196. <!-- 명세서구분코드(청구구분) -->
  197. <P0155list>
  198. <P0155>
  199. <cdengabbrnm/>
  200. <cdnm/>
  201. <cdid/>
  202. </P0155>
  203. </P0155list>
  204. <!-- 특정기호코드 -->
  205. <P0319list>
  206. <P0319>
  207. <cdnm/>
  208. <cdid/>
  209. </P0319>
  210. </P0319list>
  211. <!-- 청구완료여무(명세서상태) -->
  212. <P0430list>
  213. <P0430>
  214. <cdnm/>
  215. <cdid/>
  216. </P0430>
  217. </P0430list>
  218. <P0201sublist/>
  219. <PK032list>
  220. <PK032>
  221. <cdnm/>
  222. <cdid/>
  223. </PK032>
  224. </PK032list>
  225. </init>
  226. <hidden>
  227. <clbs>
  228. <judgendyn/>
  229. <totcnt/>
  230. <endcnt/>
  231. <unjudgcnt/>
  232. <retecnt/>
  233. <autodelcnt/>
  234. <delcnt/>
  235. <judgprcscnt/>
  236. <rptclamcnt/>
  237. <basedd/>
  238. <judgmemo/>
  239. <srchmode/>
  240. </clbs>
  241. <sppmc02500>
  242. <cond>
  243. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  244. <srchcond/>
  245. <pid/>
  246. <hngnm/>
  247. <rrgstno1/>
  248. <rrgstno2/>
  249. </cond>
  250. </sppmc02500>
  251. <smpic00200>
  252. <judgsrch>
  253. <con1_dd/>
  254. <con2_gsflag/>
  255. <con3_search1/>
  256. <con4_search2/>
  257. <con5_insu/>
  258. <con6_calcscorcd/>
  259. <con7_todd/>
  260. <con8_instcd/>
  261. </judgsrch>
  262. <rslt>
  263. <engnm/>
  264. <hngnm/>
  265. <calcscorcd/>
  266. <insuedicd/>
  267. <procedicd/>
  268. <inducsedicd/>
  269. <autmbedicd/>
  270. </rslt>
  271. </smpic00200>
  272. <sppiz00900>
  273. <cond>
  274. <judgrid/>
  275. </cond>
  276. <rslt/>
  277. </sppiz00900>
  278. <sppiz00400>
  279. <cond>
  280. <!-- 상병코드 Grid '상병코드' 컬럼 에서 SPPIZ00400_상병코드조회 에 전달하기 위한 조건 값 -->
  281. <basedd/>
  282. <diagcd/>
  283. <diagnm/>
  284. <selectedrdodiagkind/>
  285. </cond>
  286. <rslt>
  287. <diagcd/>
  288. <diaghngnm/>
  289. <diagengnm/>
  290. </rslt>
  291. </sppiz00400>
  292. <smpid20600>
  293. <cond>
  294. <makeflag/>
  295. <copyflag/>
  296. <ioflag/>
  297. <clamym/>
  298. <clamdg/>
  299. <pid/>
  300. <pidsn/>
  301. <t_clamym/>
  302. <t_clamdg/>
  303. <t_clamflagcd/>
  304. </cond>
  305. <rslt>
  306. </rslt>
  307. </smpid20600>
  308. <smpid22200>
  309. <cond>
  310. <ioflag/>
  311. <clamym/>
  312. <clamdg/>
  313. <pid/>
  314. <pidsn/>
  315. </cond>
  316. <rslt>
  317. </rslt>
  318. </smpid22200>
  319. <smpid23000>
  320. <cond>
  321. <ioflag/>
  322. <clamym/>
  323. <clamdg/>
  324. <pid/>
  325. <pidsn/>
  326. </cond>
  327. <rslt>
  328. </rslt>
  329. </smpid23000>
  330. <smpis00400>
  331. <cond>
  332. <pid/>
  333. <clamymfrom/>
  334. <clamymto/>
  335. <ioflag/>
  336. <insukind/>
  337. <orddeptcd/>
  338. <diagcond/>
  339. <diagcdfr/>
  340. <diagcdto/>
  341. </cond>
  342. <rslt>
  343. </rslt>
  344. </smpis00400>
  345. <smpis00600>
  346. <cond>
  347. <patunitsrch/>
  348. <clamymfrom/>
  349. <clamdgfrom/>
  350. <clamflag/>
  351. <ioflag/>
  352. <insukind/>
  353. <clamdeptid/>
  354. <orddeptcd/>
  355. <orddrid/>
  356. <codecond/>
  357. <code/>
  358. <clamym/>
  359. </cond>
  360. <rslt>
  361. </rslt>
  362. </smpis00600>
  363. <smpis00500>
  364. <cond>
  365. <patunitsrch/>
  366. <datecond/>
  367. <fromdd/>
  368. <todd/>
  369. <ioflag/>
  370. <orddeptcd/>
  371. <orddrid/>
  372. <codecond/>
  373. <code/>
  374. </cond>
  375. <rslt>
  376. </rslt>
  377. </smpis00500>
  378. <smpid23300>
  379. <cond>
  380. <clamym/>
  381. <clamdg/>
  382. <pid/>
  383. <pidsn/>
  384. <patnm/>
  385. <insukind/>
  386. <suppkind/>
  387. <orddeptcd/>
  388. <indd/>
  389. </cond>
  390. <rslt>
  391. </rslt>
  392. </smpid23300>
  393. <item1/>
  394. <item3>
  395. <judgidyn/>
  396. </item3>
  397. <item4/>
  398. <item_all>
  399. <judgid/>
  400. <clamym/>
  401. <ioflag/>
  402. <ordflag>J</ordflag>
  403. </item_all>
  404. <item6/>
  405. <item7/>
  406. </hidden>
  407. <popupdata>
  408. <popupmenu>
  409. <gridclbs>
  410. <item>
  411. <name>명세서 합철</name>
  412. <func>pidfDocuMerge</func>
  413. </item>
  414. <item>
  415. <name>명세서 복사</name>
  416. <func>pidfDocuCopy</func>
  417. </item>
  418. <item>
  419. <name>명세서 이동</name>
  420. <func>pidfDocuMove</func>
  421. </item>
  422. <item>
  423. <name>명세서 처방이동</name>
  424. <func>pidfDocuOrderMove</func>
  425. </item>
  426. <item>
  427. <name>-</name>
  428. <func/>
  429. </item>
  430. <item>
  431. <name>명세서 추가청구</name>
  432. <func>pidfDocuAddClam</func>
  433. </item>
  434. <item>
  435. <name>명세서 자격수정</name>
  436. <func>pidfDocuChange</func>
  437. </item>
  438. <item>
  439. <name>공여자명세서 생성</name>
  440. <func>pidfDocuDonor</func>
  441. </item>
  442. <item>
  443. <name>-</name>
  444. <func/>
  445. </item>
  446. <item>
  447. <name>심사자변경</name>
  448. <func>pidfJudgridChange</func>
  449. </item>
  450. <item>
  451. <name>-</name>
  452. <func/>
  453. </item>
  454. <!--
  455. <item>
  456. <name>KDRG정보조회</name>
  457. <func>fDocuKdrgViewList</func>
  458. </item>
  459. <item>
  460. <name>-</name>
  461. <func/>
  462. </item>
  463. -->
  464. <item>
  465. <name>결과조회</name>
  466. <func>pidfOrderRsltSrch</func>
  467. </item>
  468. <item>
  469. <name>약제누적조회</name>
  470. <func>fGetDurginfo</func>
  471. </item>
  472. <item>
  473. <name>진료정보조회</name>
  474. <func>fGetEmrInformation</func>
  475. </item>
  476. <item>
  477. <name>통합기록전체조회</name>
  478. <func>fGetAllEmrInformation</func>
  479. </item>
  480. <item>
  481. <name>KDRG조회</name>
  482. <func>fGetKDrgOpenPopup</func>
  483. </item>
  484. </gridclbs>
  485. </popupmenu>
  486. </popupdata>
  487. <temp>
  488. <reloadyn/>
  489. </temp>
  490. </root>
  491. </instance>
  492. <bind id="bind_clbsmemo" ref="/root/main/list1/clbs/judgmemo" readonly="../pid != ''"/>
  493. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  494. <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/item_all" replace="instance" resultref="/root/init/tmp"/>
  495. <submission id="TRPID20202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" add="bottom" resultref="/root/main/list1/clbs"/>
  496. <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send/item1" resultref="/root/init/clamdg"/>
  497. <submission id="TRPID21602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/listval" resultref="/root/init/listval"/>
  498. <!-- 생성삭제 -->
  499. <submission id="TXPID10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item6/clbs" replace="instance" resultref="/root/hidden/item1/result"/>
  500. <submission id="TXPID21601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/listval" resultref="/root/init/listval"/>
  501. <submission id="TXPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item2/clsp"/>
  502. <submission id="TXPID20202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item2/clsp"/>
  503. <submission id="TXPID20302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list1/endclbs"/>
  504. <submission id="TXPID20303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item4/clbs" resultref="/root/tmp/tmp"/>
  505. <submission id="TXPID20305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item4/clbs" resultref="/root/hidden/item6"/>
  506. <submission id="TXPID20306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item4/clbs" resultref="/root/hidden/item7"/>
  507. <script type="javascript" ev:event="xforms-model-construct-done">
  508. <![CDATA[
  509. fInitialize(); // 화면을 초기화한다.
  510. fCheckAuth(); // 화면 권한을 설정한다.
  511. if (gUserid == "DEV301" || gUserid == "DEV311" || gUserid == "12345678" || gUserid == "COM") {
  512. //btn_envsave.visible = true;
  513. btn_calc.visible = true;
  514. }
  515. ]]>
  516. </script>
  517. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  518. </model>
  519. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  520. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  521. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  522. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  523. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  524. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  525. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  526. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  527. <script type="javascript" src="../../../pam/insucomweb/js/PAM.js"/>
  528. <script type="javascript" src="../../../pam/aftjudgweb/js/SMPID20000.js"/>
  529. <script type="javascript" src="../../../pam/aftjudgweb/js/SMPID20200.js"/>
  530. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  531. <script type="javascript" src="../../../com/commonweb/js/tfHelperAsync.js"/>
  532. <script type="javascript">
  533. <![CDATA[
  534. ]]>
  535. </script>
  536. </xhtml:head>
  537. <xhtml:body pagewidth="1211" pageheight="745" guideline="1,1206;2,727;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  538. <group id="grp_tle" style="left:0px; top:0px; width:1190px; height:13px; ">
  539. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:163px; height:13px; ">입원사후심사대상자 조회</caption>
  540. </group>
  541. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:690px; ">
  542. <datagrid id="grd_clbsmast" nodeset="/root/main/list1/clbs" class="datagrid2" caption="명일련^청구년월^차수^청구&#xA;구분^진료과^등록번호^순&#xA;번^환자명^성&#xA;별^나이^보험&#xA;유형^보조&#xA;유형^요율^주상병^특정&#xA;기호^응&#xA;급^처방코드^처방명^급&#xA;비^수량^일&#xA;수^처방일자^실시일자^Stage^메모^전문의^심사자^최종&#xA;심사자^선&#xA;별^수&#xA;술^실시간&#xA;심사^총진료비^심사일자^심사&#xA;상태^청구&#xA;상태^입원일자^유형시작^유형종료^진료개시일^진료종료일^장&#xA;애^조합기호^청구번호^접수번호^심사차수^준비&#xA;자료^사&#xA;망^분할&#xA;청구^본인&#xA;부담금^생성일자^clamkey^lockyn^cutprcpyn^KDRG&#xA;번호^KDRG&#xA;중중도^MDC^자보회사^자보접수번호^지급보증번호^KDRG명^반송코드^반송코드명^반송사유" colsep="^" colwidth="42, 61, 33, 35, 43, 66, 19, 43, 20, 30, 30, 30, 30, 79, 37, 20, 70, 90, 25, 51, 20, 70, 70, 55, 68, 45, 42, 42, 19, 19, 44, 67, 67, 52, 70, 67, 67, 67, 67, 67, 20, 75, 78, 54, 54, 30, 20, 30, 67, 67, 100, 100, 100, 55, 45, 35, 120, 140, 110, 120, 58, 66, 66" dataheight="23" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="8" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:191px; width:1190px; height:468px; ">
  543. <col ref="docuseqno" style="text-align:right; "/>
  544. <col ref="clamym" format="yyyy/mm" style="text-align:center; "/>
  545. <col ref="clamdg" style="text-align:center; "/>
  546. <col disabled="true" ref="clamflagcd" type="combo" style="text-align:center; ">
  547. <choices>
  548. <itemset nodeset="/root/init/P0155list/P0155">
  549. <label ref="cdengabbrnm"/>
  550. <value ref="cdid"/>
  551. </itemset>
  552. </choices>
  553. </col>
  554. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
  555. <choices>
  556. <itemset nodeset="/root/init/orddeptcd2/orddeptcdlist">
  557. <label ref="deptengabbr"/>
  558. <value ref="cd"/>
  559. </itemset>
  560. </choices>
  561. </col>
  562. <col ref="pid" style="text-align:center; "/>
  563. <col ref="pidsn" style="text-align:center; "/>
  564. <col ref="patnm" style="text-align:left; "/>
  565. <col ref="gender" style="text-align:center; "/>
  566. <col ref="patage" style="text-align:center; "/>
  567. <col ref="insukindcd" style="text-align:center; "/>
  568. <col ref="suppkindcd" style="text-align:center; "/>
  569. <col ref="payownbrate" style="text-align:center; "/>
  570. <col ref="diagnm" style="left:463px; top:32px; width:90px; height:23px; "/>
  571. <col ref="spclmark" style="text-align:left; "/>
  572. <col disabled="true" ref="stsioflag" type="combo" style="text-align:center; ">
  573. <choices>
  574. <item>
  575. <label>C</label>
  576. <value>C</value>
  577. </item>
  578. </choices>
  579. </col>
  580. <col ref="ordcd"/>
  581. <col ref="ordnm" style="text-align:left; "/>
  582. <col disabled="true" ref="payflag" type="combo" style="text-align:center; ">
  583. <choices>
  584. <item>
  585. <label>급</label>
  586. <value>0</value>
  587. </item>
  588. <item>
  589. <label>100</label>
  590. <value>1</value>
  591. </item>
  592. <item>
  593. <label>비</label>
  594. <value>2</value>
  595. </item>
  596. <item>
  597. <label>선</label>
  598. <value>8</value>
  599. </item>
  600. <item>
  601. <label>선</label>
  602. <value>9</value>
  603. </item>
  604. </choices>
  605. </col>
  606. <col ref="drugqtytims" format="#,###.00" style="text-align:right; "/>
  607. <col ref="dayno" style="text-align:right; "/>
  608. <col ref="orddt" format="yyyy-mm-dd"/>
  609. <col ref="execdt" format="yyyy-mm-dd"/>
  610. <col ref="stage"/>
  611. <col ref="judgmemo" type="inputbutton"/>
  612. <col disabled="true" ref="orddrid" type="combo">
  613. <choices>
  614. <itemset nodeset="/root/init/orddrid2/orddridlist">
  615. <label ref="nm"/>
  616. <value ref="cd"/>
  617. </itemset>
  618. </choices>
  619. </col>
  620. <col disabled="true" ref="judgrid" type="combo">
  621. <choices>
  622. <itemset nodeset="/root/init/judgrid/judgridlist">
  623. <label ref="nm"/>
  624. <value ref="cd"/>
  625. </itemset>
  626. </choices>
  627. </col>
  628. <col disabled="true" ref="lastupdtrid" type="combo">
  629. <choices>
  630. <itemset nodeset="/root/init/judgrid/judgridlist">
  631. <label ref="nm"/>
  632. <value ref="cd"/>
  633. </itemset>
  634. </choices>
  635. </col>
  636. <col ref="spcljudgyn" style="text-align:center; "/>
  637. <col ref="opyn" style="text-align:center; "/>
  638. <col ref="realtmjudg" visibility="hidden" style="text-align:center; background-color:#c0c0c0; "/>
  639. <col ref="totordamt" format="#,###" style="text-align:right; "/>
  640. <col ref="judgenddd" format="yyyy/mm/dd" style="text-align:left; "/>
  641. <col disabled="true" ref="judgendyn" type="combo" style="text-align:center; ">
  642. <choices>
  643. <itemset nodeset="/root/init/P0151list/P0151[cdid != 'Z']">
  644. <label ref="cdengabbrnm"/>
  645. <value ref="cdid"/>
  646. </itemset>
  647. </choices>
  648. </col>
  649. <col disabled="true" ref="clamendyn" type="combo" style="text-align:center; ">
  650. <choices>
  651. <itemset nodeset="/root/init/P0430list/P0430">
  652. <label ref="cdnm"/>
  653. <value ref="cdid"/>
  654. </itemset>
  655. </choices>
  656. </col>
  657. <col ref="indd" format="yyyy-mm-dd" style="background-color:transparent; "/>
  658. <col ref="iphsfromdd" format="yyyy-mm-dd"/>
  659. <col ref="iphstodd" format="yyyy-mm-dd"/>
  660. <col ref="ordfromdd" format="yyyy-mm-dd"/>
  661. <col ref="ordtodd" format="yyyy-mm-dd"/>
  662. <col ref="prockindflagyn"/>
  663. <col ref="insuno"/>
  664. <col ref="clamno" style="text-align:center; "/>
  665. <col ref="acptno" style="text-align:center; "/>
  666. <col ref="judgdg" style="text-align:center; "/>
  667. <col ref="prepdata" style="text-align:center; "/>
  668. <col ref="dethyn" style="text-align:center; "/>
  669. <col ref="divclam" style="text-align:center; "/>
  670. <col ref="ownbamt" format="#,###" style="text-align:right; "/>
  671. <col ref="fstrgstdt" format="yyyy-mm-dd"/>
  672. <col ref="clamkey" visibility="hidden" style="background-color:#c0c0c0; "/>
  673. <col ref="lockyn" visibility="hidden" style="background-color:#c0c0c0; "/>
  674. <col ref="cutprcpyn" visibility="hidden" style="background-color:#c0c0c0; "/>
  675. <col ref="drgcd" style="text-align:center; "/>
  676. <col ref="kstage" style="text-align:center; "/>
  677. <col ref="kmdc" style="text-align:center; "/>
  678. <col disabled="true" ref="insucmno" type="combo">
  679. <choices>
  680. <itemset nodeset="/root/init/PK032list/PK032">
  681. <label ref="cdnm"/>
  682. <value ref="cdid"/>
  683. </itemset>
  684. </choices>
  685. </col>
  686. <col ref="certno"/>
  687. <col ref="paygrntno" style="text-align:center; "/>
  688. <col ref="kdrgnm"/>
  689. <col ref="preresncd"/>
  690. <col ref="preresncdnm"/>
  691. <col ref="preresntext"/>
  692. <script type="javascript" ev:event="onmousedown">
  693. <![CDATA[
  694. if (event.button == 3) { // 3 : 오른쪽 버튼
  695. setPopupMenu("grd_clbsmast", false, "/root/popupdata/popupmenu/gridclbs/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  696. }
  697. ]]>
  698. </script>
  699. <script type="javascript" ev:event="ondblclick">
  700. <![CDATA[
  701. grp_judgmemo.visible = false; // 대상자 Grid의 메모 필드의 Btn 클릭시 보여지는 메모 저장용 Group을 감춘다.
  702. if (!isPopup()) { // (common.js) 자신이 팝업인지 아닌지를 리턴한다.
  703. return;
  704. }
  705. var row = grd_clbsmast.row;
  706. if (grd_clbsmast.isCell(event.target) && row >= grd_clbsmast.fixedRows) {
  707. var gridclamym = model.getValue("/root/main/list1/clbs["+ row +"]/clamym");
  708. var gridclamdg = model.getValue("/root/main/list1/clbs["+ row +"]/clamdg");
  709. var gridpid = model.getValue("/root/main/list1/clbs["+ row +"]/pid");
  710. var gridpidsn = model.getValue("/root/main/list1/clbs["+ row +"]/pidsn");
  711. var gridclbs_judgenddd = model.getValue("/root/main/list1/clbs["+ row +"]/judgenddd");
  712. var gridclbs_cretno = model.getValue("/root/main/list1/clbs["+ row +"]/cretno");
  713. if (gridpid != "") {
  714. if ( checkOpener() ) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  715. //심사자여부를 opener에 넘겨준다.
  716. model.setValue(opener.root.init.item3.judgidyn, model.getValue("/root/init/item3/judgidyn")); // 심사자여부
  717. model.setValue(opener.root.hidden.smpid20200.rslt.selectedRow, row); // 대상자 리스트에서 몇번째 row인지 (대상자조회 pre/next 에서 사용)
  718. model.setValue(opener.root.hidden.smpid20200.rslt.clamym, gridclamym); // 선택된 대상자의 청구년월
  719. model.setValue(opener.root.hidden.smpid20200.rslt.clamdg, gridclamdg); // 선택된 대상자의 청구차수
  720. model.setValue(opener.root.hidden.smpid20200.rslt.pid, gridpid); // 선택된 대상자의 등록번호
  721. model.setValue(opener.root.hidden.smpid20200.rslt.pidsn, gridpidsn); // 선택된 대상자의 등록번호 순번
  722. model.setValue(opener.root.hidden.smpid20200.rslt.workflag, "12"); // 선택된 대상자의 등록번호 순번
  723. model.setValue(opener.root.hidden.smpid20200.rslt.popupcallyn, "Y"); // 선택된 대상자의 등록번호 순번
  724. model.setValue(opener.root.hidden.smpid20200.rslt.oldPid, model.getValue("/root/main/list1/clbs["+ row +"]/pid")); // 현재 조회된 환자의 등록번호를 저장
  725. model.setValue(opener.root.hidden.smpid20200.rslt.cutprcpyn, model.getValue("/root/send/item1/cutprcpsel")); //현재 조회된 환자의 삭감처방여부를 저장
  726. //20120523 plet2 심사완료일자 추가
  727. model.setValue(opener.root.hidden.smpid20200.rslt.judgenddd, gridclbs_judgenddd);
  728. model.setValue(opener.root.hidden.smpid20200.rslt.cretno, gridclbs_cretno);
  729. opener.javascript.fGetInAftJudgMngt();
  730. setPopupRefresh(gridpid);
  731. // activateOpener(); // (common.js)에서 제공하는 함수로 opener를 activate한다.
  732. } else {
  733. messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); ///상위화면이 변경되어 데이터를 전달할 수 없습니다.
  734. }
  735. } else {
  736. messageBox("조회된 대상자가", "I004"); ///조회된 대상자가 없습니다.
  737. }
  738. }
  739. ]]>
  740. </script>
  741. <script type="javascript" ev:event="onaftersort">
  742. <![CDATA[
  743. grd_clbsmast.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  744. grd_clbsmast.row = grd_clbsmast.selectedRow(0);
  745. ]]>
  746. </script>
  747. <script type="javascript" ev:event="onmouseup">
  748. <![CDATA[
  749. // Grid 상에 inputButton 은 표시하지만, input으로 직접 입력하는 것은 막기 위해
  750. // <script type="javascript" ev:event="onbuttonclick"> 대신 ev:event="onmousedown" 으로 처리함.
  751. if (grd_clbsmast.isCell(event.target) && grd_clbsmast.row >= grd_clbsmast.fixedRows) {
  752. var col = grd_clbsmast.mouseCol;
  753. if (col == grd_clbsmast.colRef("judgmemo")) { // 메모
  754. if (grp_judgmemo.visible) {
  755. //model.setFocus("tar_judgmemo");
  756. grp_judgmemo.visible = false;
  757. } else {
  758. grd_clbsmast.toprow = grd_clbsmast.mouseRow;
  759. model.setValue("/root/hidden/clbs/judgmemo", model.getValue("/root/main/list1/clbs[" + grd_clbsmast.mouseRow + "]/judgmemo"));
  760. model.refresh();
  761. grp_judgmemo.visible = true;
  762. model.setFocus("tar_judgmemo");
  763. }
  764. }
  765. }
  766. ]]>
  767. </script>
  768. <script type="javascript" ev:event="DOMFocusOut">
  769. <![CDATA[
  770. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  771. ]]>
  772. </script>
  773. <script type="javascript" ev:event="onkeydown">
  774. <![CDATA[
  775. // Ctrl + C 키를 누른경우
  776. if (event.ctrlKey == "1" && event.keyCode == "67") {
  777. if (grd_clbsmast.selectedRows == 1) { // 한줄
  778. var row = grd_clbsmast.row;
  779. var col = grd_clbsmast.col;
  780. var clip = grd_clbsmast.labelMatrix(row, col);
  781. window.clipBoardData = clip;
  782. }
  783. }
  784. ]]>
  785. </script>
  786. <script type="javascript" ev:event="oncopy">
  787. <![CDATA[
  788. grid_oncopy();
  789. ]]>
  790. </script>
  791. </datagrid>
  792. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:153px; vertical-align:top; ">
  793. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:150px; "/>
  794. <caption id="caption2" class="search_name" style="left:7px; top:9px; width:86px; height:17px; ">청구년월</caption>
  795. <input id="ipt_clamym" ref="/root/send/item1/clamym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:91px; top:8px; width:75px; height:19px; ">
  796. <script type="javascript" ev:event="xforms-value-changed">
  797. <![CDATA[
  798. pidfGetClamdg();
  799. ]]>
  800. </script>
  801. </input>
  802. <caption id="caption5" class="search_name" style="left:475px; top:9px; width:86px; height:17px; ">진료분야</caption>
  803. <select1 id="cmb_ordfildcd" ref="/root/send/item1/ordfildcd" class="combo_search" navindex="13" appearance="minimal" style="left:558px; top:8px; width:116px; height:19px; ">
  804. <choices>
  805. <itemset nodeset="/root/init/P0291list/P0291">
  806. <label ref="cdnm"/>
  807. <value ref="cdid"/>
  808. </itemset>
  809. </choices>
  810. <script type="javascript" ev:event="xforms-value-changed">
  811. <![CDATA[
  812. model.setValue("/root/send/item1/clamdeptcd", "");
  813. cmb_clamdeptcd.disabled = false;
  814. cmb_orddrid.disabled = true;
  815. var ordfildcd = model.getValue("/root/send/item1/ordfildcd");
  816. if (ordfildcd) {
  817. cmb_clamdeptcd.choices.itemset.attribute("nodeset") = "/root/init/clamdept/clamdeptlist[cdval='" + ordfildcd + "']";
  818. } else {
  819. cmb_clamdeptcd.choices.itemset.attribute("nodeset") = "/root/init/clamdept/clamdeptlist";
  820. }
  821. cmb_clamdeptcd.refresh();
  822. ]]>
  823. </script>
  824. </select1>
  825. <caption id="caption8" class="search_name" style="left:260px; top:33px; width:86px; height:17px; ">청구구분</caption>
  826. <select1 id="cmb_clamflagcd" ref="/root/send/item1/clamflagcd" class="combo_search" navindex="9" appearance="minimal" showvalue="true" style="left:344px; top:32px; width:116px; height:19px; ">
  827. <choices>
  828. <itemset nodeset="/root/init/P0155list/P0155">
  829. <label ref="cdnm"/>
  830. <value ref="cdid"/>
  831. </itemset>
  832. </choices>
  833. </select1>
  834. <caption id="caption13" class="search_name" style="left:260px; top:57px; width:86px; height:17px; ">심사상태</caption>
  835. <select1 id="cmb_judgendyn" ref="/root/send/item1/judgendyn" class="combo_search" navindex="10" appearance="minimal" showvalue="true" style="left:344px; top:56px; width:116px; height:19px; ">
  836. <choices>
  837. <itemset nodeset="/root/init/P0151list/P0151[cdid != 'Z']">
  838. <label ref="cdnm"/>
  839. <value ref="cdid"/>
  840. </itemset>
  841. </choices>
  842. </select1>
  843. <caption id="caption4" class="search_name" style="left:686px; top:9px; width:86px; height:17px; ">보험유형</caption>
  844. <select1 id="cmb_insukind" ref="/root/send/item1/insukindcd" class="combo_search" navindex="16" appearance="minimal" style="left:770px; top:8px; width:97px; height:19px; ">
  845. <choices>
  846. <itemset nodeset="/root/init/P0008list/P0008">
  847. <label ref="cdnm"/>
  848. <value ref="cdid"/>
  849. </itemset>
  850. </choices>
  851. <script type="javascript" ev:event="xforms-value-changed">
  852. <![CDATA[
  853. var insukindcd = model.getValue("/root/send/item1/insukindcd");
  854. if (insukindcd) {
  855. if (insukindcd == "1") {
  856. cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/init/suppkind/suppkindlist[up='11' or up='21' or up='22']";
  857. } else if (insukindcd == "2") {
  858. cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/init/suppkind/suppkindlist[up='21' or up='22']";
  859. } else {
  860. cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/init/suppkind/suppkindlist[up='" + insukindcd + "']";
  861. }
  862. } else {
  863. cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/init/P0010list/P0010";
  864. }
  865. cmb_suppkind.refresh();
  866. opt_suppkind.refresh();
  867. if (cmb_suppkind.label) {
  868. } else { // 기존 선택된 보조유형을 선택할 수 없는 보험유형이 선택된 경우이므로
  869. // model.resetInstanceNode("/root/send/item1/suppkindcd"); // 보조유형 선택을 초기화한다.
  870. model.setValue("/root/send/item1/suppkindcd", ""); // 보조유형 선택을 초기화한다.
  871. cmb_suppkind.refresh();
  872. opt_suppkind.refresh();
  873. }
  874. //2009.03.19 syjung 보험유형 전체선택이거나 산재선택했을 때는 접수번호 maxlength를 15, 그 외는 8.
  875. if(insukindcd == "41" || insukindcd == "" ) {
  876. ipt_acptno.attribute("maxlength") = 15;
  877. } else {
  878. ipt_acptno.attribute("maxlength") = 8;
  879. }
  880. ]]>
  881. </script>
  882. </select1>
  883. <caption id="caption11" class="search_name" style="left:475px; top:33px; width:73px; height:17px; ">청구과</caption>
  884. <select1 id="cmb_clamdeptcd" ref="/root/send/item1/clamdeptcd" class="combo_search" navindex="14" appearance="minimal" style="left:558px; top:32px; width:116px; height:19px; ">
  885. <choices>
  886. <itemset nodeset="/root/init/clamdept/clamdeptlist">
  887. <label ref="cdnm"/>
  888. <value ref="cdid"/>
  889. </itemset>
  890. </choices>
  891. </select1>
  892. <caption id="caption3" class="search_name" style="left:686px; top:57px; width:86px; height:17px; ">접수번호</caption>
  893. <input id="ipt_acptno" ref="/root/send/item1/acptno" class="input_search" navindex="18" maxlength="15" style="left:770px; top:56px; width:97px; height:19px; "/>
  894. <caption id="caption14" class="search_name" style="left:686px; top:81px; width:88px; height:17px; ">명번호</caption>
  895. <input id="ipt_docuseqno1" ref="/root/send/item1/docuseqno1" class="input_search" navindex="19" maxlength="15" style="left:770px; top:80px; width:39px; height:19px; ">
  896. <hint>
  897. <![CDATA[시작번호]]>
  898. </hint>
  899. <script type="javascript" ev:event="xforms-value-changed">
  900. <![CDATA[
  901. var docuseqno1 = model.getValue("/root/send/item1/docuseqno1");
  902. if (docuseqno1) {
  903. //docuseqno1 = docuseqno1.getLeftPad(5, "0"); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
  904. //model.setValue("/root/send/item1/docuseqno1", docuseqno1);
  905. model.setValue("/root/send/item1/docuseqno2", docuseqno1);
  906. //model.refreshpart("/root/send/item1/docuseqno1");
  907. model.refreshpart("/root/send/item1/docuseqno2");
  908. }
  909. ]]>
  910. </script>
  911. <script type="javascript" ev:event="onkeypress">
  912. <![CDATA[
  913. if (event.keyCode == "13") { // Enter 입력 시에
  914. //if (ipt_docuseqno1.currentText.length > 1) { // 2글자 이상이면
  915. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  916. ipt_docuseqno1.dispatch("xforms-value-changed");
  917. model.setFocus("ipt_docuseqno2");
  918. //}
  919. }
  920. ]]>
  921. </script>
  922. </input>
  923. <input id="ipt_docuseqno2" ref="/root/send/item1/docuseqno2" class="input_search" navindex="20" maxlength="5" style="left:828px; top:80px; width:39px; height:19px; ">
  924. <hint>
  925. <![CDATA[끝번호]]>
  926. </hint>
  927. <script type="javascript" ev:event="onkeypress">
  928. <![CDATA[
  929. if (event.keyCode == "13") { // Enter 입력 시에
  930. //if (ipt_docuseqno2.currentText.length > 1) { // 2글자 이상이면
  931. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  932. // fGetInAftJudgTrgtManList("docuSrch");
  933. model.removeNodeset("/root/main/list1/clbs");
  934. submit("TRPID20202");
  935. //}
  936. }
  937. ]]>
  938. </script>
  939. </input>
  940. <caption id="caption18" class="search_name" style="left:7px; top:81px; width:112px; height:17px; ">환자조회</caption>
  941. <input id="ipt_patunitsrch" ref="/root/send/item1/patunitsrch1" class="input_search" navindex="3" inputtype="button" maxlength="10" style="left:91px; top:80px; width:90px; height:19px; ">
  942. <hint>
  943. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  944. </hint>
  945. <script type="javascript" ev:event="onkeypress">
  946. <![CDATA[
  947. if (event.keyCode == "13") { // Enter 입력 시에
  948. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  949. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  950. fGetInAftJudgTrgtManList("pidSrch");
  951. }
  952. }
  953. ]]>
  954. </script>
  955. <script type="javascript" ev:event="onbuttonclick">
  956. <![CDATA[
  957. var ipt_pid = model.getValue("/root/send/item1/patunitsrch1");
  958. if (ipt_pid) {
  959. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  960. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  961. } else {
  962. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  963. }
  964. // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
  965. modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
  966. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  967. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  968. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  969. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  970. model.setValue("/root/send/item1/patunitsrch1", srch_pid);
  971. }
  972. model.refresh();
  973. ]]>
  974. </script>
  975. </input>
  976. <caption id="caption15" class="search_name" style="left:260px; top:9px; width:73px; height:17px; ">심사자</caption>
  977. <select1 id="cmb_judgrid" ref="/root/send/item1/judgrid" class="combo_search" navindex="8" appearance="minimal" style="left:344px; top:8px; width:116px; height:19px; ">
  978. <choices>
  979. <itemset nodeset="/root/init/judgrid/judgridlist">
  980. <label ref="nm"/>
  981. <value ref="cd"/>
  982. </itemset>
  983. </choices>
  984. </select1>
  985. <caption id="caption7" class="search_name" style="left:475px; top:81px; width:73px; height:17px; ">전문의</caption>
  986. <select1 id="cmb_orddrid" ref="/root/send/item1/orddrid" class="combo_search" navindex="15" appearance="minimal" style="left:558px; top:80px; width:116px; height:19px; ">
  987. <choices>
  988. <itemset nodeset="/root/init/orddrid/orddridlist">
  989. <label ref="nm"/>
  990. <value ref="cd"/>
  991. </itemset>
  992. </choices>
  993. </select1>
  994. <caption id="caption1" class="search_name" style="left:7px; top:33px; width:86px; height:17px; ">총진료비</caption>
  995. <input id="ipt_totordamt" ref="/root/send/item1/totordamt" class="input_search" navindex="4" maxlength="10" format="#,###" style="left:91px; top:32px; width:90px; height:19px; "/>
  996. <select1 id="cmb_totordamt" ref="/root/send/item1/cmbtotordamt" class="combo_search" navindex="5" appearance="minimal" style="left:184px; top:32px; width:62px; height:19px; ">
  997. <choices>
  998. <item>
  999. <label>원미만</label>
  1000. <value>2</value>
  1001. </item>
  1002. <item>
  1003. <label>원이상</label>
  1004. <value>3</value>
  1005. </item>
  1006. </choices>
  1007. </select1>
  1008. <caption id="caption17" class="search_name" style="left:686px; top:126px; width:73px; height:17px; ">처방별</caption>
  1009. <select1 id="rdo_mchrgcode" ref="/root/send/item1/choicdsrch1" class="radio_search" navindex="11" appearance="full" cols="4" overflow="visible" style="left:769px; top:127px; width:126px; height:15px; ">
  1010. <choices>
  1011. <item>
  1012. <label>수가</label>
  1013. <value>3</value>
  1014. </item>
  1015. <item>
  1016. <label>EDI</label>
  1017. <value>4</value>
  1018. </item>
  1019. <item>
  1020. <label>List</label>
  1021. <value>5</value>
  1022. </item>
  1023. </choices>
  1024. <script type="javascript" ev:event="xforms-select">
  1025. <![CDATA[
  1026. model.setValue("/root/send/item1/choicdsrch2", "");
  1027. ipt_choicdsrch.refresh();
  1028. //if (model.getValue("/root/send/item1/choicdsrch1") == "1") {
  1029. // fGetSnglcalcscorcd();
  1030. //}
  1031. ]]>
  1032. </script>
  1033. </select1>
  1034. <input id="ipt_choicdsrch" ref="/root/send/item1/choicdsrch2" class="input_search" navindex="12" imemode="alpha" inputtype="button" _chartype="upper" style="left:898px; top:124px; width:200px; height:19px; ">
  1035. <script type="javascript" ev:event="onkeypress">
  1036. <![CDATA[
  1037. if (event.keyCode == "13") { // Enter 입력 시에
  1038. if (ipt_choicdsrch.currentText.length > 1) { // 2글자 이상이면
  1039. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  1040. fGetInAftJudgTrgtManList();
  1041. }
  1042. }
  1043. ]]>
  1044. </script>
  1045. <script type="javascript" ev:event="onbuttonclick">
  1046. <![CDATA[
  1047. // var choicdsrch1 = model.getValue("/root/send/item1/choicdsrch1");
  1048. // var choicdsrch2 = model.getValue("/root/send/item1/choicdsrch2").getTrim();
  1049. // model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", choicdsrch2);
  1050. //
  1051. // var clamfromdd = model.getValue("/root/send/item1/clamfromdd");
  1052. // if (clamfromdd) {
  1053. // model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", clamfromdd);
  1054. // } else {
  1055. // model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate()); // (dateHelper.js) 현재날짜 반환
  1056. // }
  1057. //
  1058. // if (choicdsrch1 == "1") { // 명칭인 경우
  1059. // model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "engnm");
  1060. // for (var i=0; i < choicdsrch2.length; i++) {
  1061. // if (choicdsrch2.charCodeAt(i) > 255) { // 한글이 들어오면 255보다 크다.
  1062. // choicdsrch1 = "2";
  1063. // model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "hngnm");
  1064. // }
  1065. // }
  1066. // }
  1067. // else if (choicdsrch1 == "3") { // 수가
  1068. // model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "calcscorcd");
  1069. // }
  1070. // else if (choicdsrch1 == "4") { // EDI
  1071. // model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  1072. // }
  1073. //
  1074. // model.removeNodeset("/root/hidden/smpic00200/rslt"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  1075. // modal("SMPIC00200", "1", "150", "150", "SMPIC00200", "/root/hidden/smpic00200", "/root/temp", "", "");
  1076. //
  1077. // var mechSelect = instance1.selectSingleNode("/root/temp/mech");
  1078. // if (mechSelect == null) { // 선택한 코드가 없는 경우
  1079. // messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  1080. // return;
  1081. // }
  1082. // // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  1083. // model.makeNode("/root/hidden/smpic00200/rslt");
  1084. // model.copyNode("/root/hidden/smpic00200/rslt", "/root/temp/mech");
  1085. // model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  1086. //
  1087. // if (choicdsrch1 == "1") { // 영문 명칭인 경우
  1088. // model.setValue("/root/send/item1/choicdsrch2", model.getValue("/root/hidden/smpic00200/rslt/engnm"));
  1089. // }
  1090. // else if (choicdsrch1 == "2") { // 한글 명칭인 경우
  1091. // model.setValue("/root/send/item1/choicdsrch2", model.getValue("/root/hidden/smpic00200/rslt/hngnm"));
  1092. // }
  1093. // else if (choicdsrch1 == "3") { // 수가
  1094. // model.setValue("/root/send/item1/choicdsrch2", model.getValue("/root/hidden/smpic00200/rslt/calcscorcd"));
  1095. // }
  1096. // else if (choicdsrch1 == "4") { // EDI
  1097. // // [2007.05.17] 추후 보험유형 EDI 코드 뿐만 아니라 의료급여, 산재, 자보에 따라 각 EDI코드로 설정하는 기능을 부여한다.
  1098. // model.setValue("/root/send/item1/choicdsrch2", model.getValue("/root/hidden/smpic00200/rslt/insuedicd"));
  1099. // }
  1100. // else {
  1101. // model.setValue("/root/send/item1/choicdsrch2", model.getValue("/root/hidden/smpic00200/rslt/calcscorcd"));
  1102. // model.setValue ("/root/send/item1/choicdsrch1", "3");
  1103. // }
  1104. // model.refresh();
  1105. var userid = getUserId(); // (common.js) 현재 로그인한 사용자 번호(ID)
  1106. if (userid) {
  1107. model.setValue("/root/hidden/sppiz00900/cond/judgrid", userid);
  1108. } else {
  1109. // SPPIZ00900 에서 테스트용으로 입력된 data의 심사자 ID를 설정한다.
  1110. model.setValue("/root/hidden/sppiz00900/cond/judgrid", "87040221");
  1111. }
  1112. model.removeNodeset("/root/hidden/sppiz00900/rslt");
  1113. modal("SPPIZ00900" ,"1", "150", "150", "SPPIZ00900", "/root/hidden/sppiz00900/cond", "/root/hidden/sppiz00900/cond", "", ""); // SPPIZ00900_선별심사CheckList
  1114. var pchkSelect = instance1.selectSingleNode("/root/hidden/sppiz00900/rslt");
  1115. if (pchkSelect == null) { // 선택한 선별심사 List가 없는 경우
  1116. return;
  1117. }
  1118. var pchkNodes = pchkSelect.childNodes;
  1119. var pchkList = "";
  1120. for (var i = 1; i <= pchkNodes.length; i++) {
  1121. var pchk = model.getValue("/root/hidden/sppiz00900/rslt/pchk[" + i + "]/calcscorcd");
  1122. if (pchkList == "") {
  1123. pchkList = pchk;
  1124. } else {
  1125. pchkList += "|" + pchk;
  1126. }
  1127. }
  1128. model.setValue("/root/send/item1/choicdsrch1", "5"); // 5: List
  1129. model.setValue("/root/send/item1/choicdsrch2", pchkList);
  1130. model.refresh();
  1131. ]]>
  1132. </script>
  1133. </input>
  1134. <caption id="caption16" class="search_name" style="left:7px; top:57px; width:86px; height:17px; ">본인부담</caption>
  1135. <input id="ipt_ownbamt" ref="/root/send/item1/ownbamt" class="input_search" navindex="6" maxlength="10" format="#,###" style="left:91px; top:56px; width:90px; height:19px; "/>
  1136. <select1 id="cmb_ownbamt" ref="/root/send/item1/cmbownbamt" class="combo_search" navindex="7" appearance="minimal" style="left:184px; top:56px; width:62px; height:19px; ">
  1137. <choices>
  1138. <!-- [2007.03.22 박도형대리님] 원 단위 조회는 사용 안하기로 함 -->
  1139. <!--
  1140. <item>
  1141. <label>원</label>
  1142. <value>1</value>
  1143. </item>
  1144. -->
  1145. <item>
  1146. <label>원미만</label>
  1147. <value>2</value>
  1148. </item>
  1149. <item>
  1150. <label>원이상</label>
  1151. <value>3</value>
  1152. </item>
  1153. </choices>
  1154. </select1>
  1155. <button id="btn_search" class="btn1_letter2" navindex="32" style="left:1116px; top:122px; width:56px; height:22px; ">
  1156. <caption>조회</caption>
  1157. <script type="javascript" ev:event="DOMActivate">
  1158. <![CDATA[
  1159. fGetInAftJudgTrgtManList();
  1160. ]]>
  1161. </script>
  1162. </button>
  1163. <line id="line3" class="line_4" style="x1:1103px; y1:118px; x2:1103px; y2:146px; "/>
  1164. <select id="chk_anticncr" ref="/root/send/item1/chkanticncr" class="checkbox_search" navindex="21" overflow="visible" appearance="full" style="left:911px; top:8px; width:77px; height:15px; ">
  1165. <choices>
  1166. <item>
  1167. <label>항암제전체</label>
  1168. <value>Y</value>
  1169. </item>
  1170. </choices>
  1171. </select>
  1172. <select id="chk_anticncr2" ref="/root/send/item1/chkanticncr2" class="checkbox_search" navindex="22" overflow="visible" appearance="full" style="left:1009px; top:8px; width:71px; height:15px; ">
  1173. <choices>
  1174. <item>
  1175. <label>항암제2군</label>
  1176. <value>Y</value>
  1177. </item>
  1178. </choices>
  1179. </select>
  1180. <select id="chk_anst" ref="/root/send/item1/chkanst" class="checkbox_search" navindex="23" overflow="visible" appearance="full" style="left:1106px; top:8px; width:42px; height:15px; ">
  1181. <choices>
  1182. <item>
  1183. <label>수술</label>
  1184. <value>Y</value>
  1185. </item>
  1186. </choices>
  1187. </select>
  1188. <select id="chk_divclam" ref="/root/send/item1/chkdivclam" class="checkbox_search" navindex="28" overflow="visible" appearance="full" style="left:1009px; top:40px; width:66px; height:15px; ">
  1189. <choices>
  1190. <item>
  1191. <label>분할청구</label>
  1192. <value>Y</value>
  1193. </item>
  1194. </choices>
  1195. </select>
  1196. <select id="chk_angioyn1" ref="/root/send/item1/chkangio1" class="checkbox_search" navindex="24" overflow="visible" appearance="full" style="left:911px; top:24px; width:77px; height:15px; border-style:none; ">
  1197. <choices>
  1198. <item>
  1199. <label>혈관조영술</label>
  1200. <value>Y</value>
  1201. </item>
  1202. </choices>
  1203. </select>
  1204. <select id="chk_angioyn2" ref="/root/send/item1/chkangio2" class="checkbox_search" navindex="25" overflow="visible" appearance="full" style="left:1009px; top:24px; width:77px; height:15px; border-style:none; ">
  1205. <choices>
  1206. <item>
  1207. <label>중재적시술</label>
  1208. <value>Y</value>
  1209. </item>
  1210. </choices>
  1211. </select>
  1212. <select id="chk_spcljudg" ref="/root/send/item1/chkspcljudg" class="checkbox_search" navindex="26" overflow="visible" appearance="full" style="left:1106px; top:24px; width:65px; height:15px; border-style:none; ">
  1213. <choices>
  1214. <item>
  1215. <label>선별심사</label>
  1216. <value>Y</value>
  1217. </item>
  1218. </choices>
  1219. </select>
  1220. <select id="chk_petmri" ref="/root/send/item1/chkpetmri" class="checkbox_search" navindex="27" overflow="visible" appearance="full" style="left:911px; top:40px; width:70px; height:15px; ">
  1221. <choices>
  1222. <item>
  1223. <label>PET/MRI</label>
  1224. <value>Y</value>
  1225. </item>
  1226. </choices>
  1227. </select>
  1228. <select id="chk_cpyn" ref="/root/send/item1/chkcpyn" class="checkbox_search" navindex="29" overflow="visible" appearance="full" style="left:911px; top:56px; width:35px; height:15px; border-style:none; ">
  1229. <choices>
  1230. <item>
  1231. <label>CP</label>
  1232. <value>Y</value>
  1233. </item>
  1234. </choices>
  1235. </select>
  1236. <select id="chk_drgyn" ref="/root/send/item1/chkdrgyn" class="checkbox_search" navindex="30" overflow="visible" appearance="full" style="left:1009px; top:56px; width:43px; height:15px; border-style:none; ">
  1237. <choices>
  1238. <item>
  1239. <label>DRG</label>
  1240. <value>Y</value>
  1241. </item>
  1242. </choices>
  1243. </select>
  1244. <select id="chk_reclam" ref="/root/send/item1/chkreclam" class="checkbox_search" navindex="31" overflow="visible" appearance="full" style="left:1106px; top:40px; width:55px; height:15px; ">
  1245. <choices>
  1246. <item>
  1247. <label>재청구</label>
  1248. <value>Y</value>
  1249. </item>
  1250. </choices>
  1251. </select>
  1252. <select1 id="cmb_suppkind" ref="/root/send/item1/suppkindcd" class="combo_search" navindex="17" appearance="minimal" style="left:770px; top:32px; width:97px; height:19px; ">
  1253. <choices>
  1254. <!--<itemset nodeset="root/init/suppkind/suppkindlist">-->
  1255. <itemset nodeset="/root/init/P0010list/P0010">
  1256. <label ref="cdnm"/>
  1257. <value ref="cdid"/>
  1258. </itemset>
  1259. </choices>
  1260. </select1>
  1261. <caption id="caption12" class="search_name" style="left:686px; top:33px; width:86px; height:17px; ">보조유형</caption>
  1262. <caption id="caption25" style="left:813px; top:82px; width:11px; height:16px; ">~</caption>
  1263. <output id="opt_insukind" ref="/root/send/item1/insukindcd" class="output_search" style="left:869px; top:8px; width:17px; height:19px; "/>
  1264. <output id="opt_suppkind" ref="/root/send/item1/suppkindcd" class="output_search" style="left:869px; top:32px; width:17px; height:19px; "/>
  1265. <button id="btn_prvclamym" class="icon_down" style="left:170px; top:18px; width:10px; height:9px; ">
  1266. <caption/>
  1267. <script type="javascript" ev:event="DOMActivate">
  1268. <![CDATA[
  1269. // 2008.06.05 neverdie 청구년월 이전월 클릭
  1270. // 현재청구월에서 이전달을 구한다.
  1271. var nowym = model.getValue("/root/send/item1/clamym");
  1272. var downym;
  1273. downym = pidfCalMonth(-1, nowym);
  1274. model.setValue("/root/send/item1/clamym", downym);
  1275. ipt_clamym.refresh();
  1276. pidfGetClamdg();
  1277. ]]>
  1278. </script>
  1279. </button>
  1280. <button id="btn_preclamym" class="icon_up" style="left:170px; top:7px; width:10px; height:9px; ">
  1281. <caption/>
  1282. <script type="javascript" ev:event="DOMActivate">
  1283. <![CDATA[
  1284. // 2008.06.05 neverdie 청구년월 다음월 클릭
  1285. // 현재청구월에서 다음달을 구한다.
  1286. var nowym = model.getValue("/root/send/item1/clamym");
  1287. var upym;
  1288. upym = pidfCalMonth(1, nowym);
  1289. model.setValue("/root/send/item1/clamym", upym);
  1290. ipt_clamym.refresh();
  1291. pidfGetClamdg();
  1292. ]]>
  1293. </script>
  1294. </button>
  1295. <caption id="caption50" style="left:163px; top:106px; width:11px; height:16px; ">~</caption>
  1296. <caption id="caption48" class="search_name" style="left:7px; top:105px; width:86px; height:17px; ">상병조회</caption>
  1297. <caption id="caption49" class="search_name" style="left:260px; top:106px; width:86px; height:17px; ">특정기호</caption>
  1298. <select1 id="combo12" ref="/root/send/item1/spclmark" class="combo_search" navindex="14" appearance="minimal" editmode="search" itemcount="20" style="left:344px; top:105px; width:55px; height:19px; ">
  1299. <choices>
  1300. <itemset nodeset="/root/init/P0319list/P0319">
  1301. <label ref="cdid"/>
  1302. <value ref="cdid"/>
  1303. </itemset>
  1304. </choices>
  1305. </select1>
  1306. <select1 id="combo14" ref="/root/send/item1/spclmark" class="combo_search" navindex="14" appearance="minimal" editmode="search" itemcount="20" style="left:404px; top:105px; width:270px; height:19px; text-align:left; ">
  1307. <choices>
  1308. <itemset nodeset="/root/init/P0319list/P0319">
  1309. <label ref="cdnm"/>
  1310. <value ref="cdid"/>
  1311. </itemset>
  1312. </choices>
  1313. </select1>
  1314. <select1 id="cmb_orddeptcd" ref="/root/send/item1/orddeptcd" class="combo_search" navindex="14" appearance="minimal" itemcount="20" style="left:558px; top:56px; width:116px; height:19px; ">
  1315. <choices>
  1316. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  1317. <label ref="nm"/>
  1318. <value ref="cd"/>
  1319. </itemset>
  1320. </choices>
  1321. <script type="javascript" ev:event="xforms-value-changed">
  1322. <![CDATA[
  1323. var orddeptcd = model.getValue("/root/send/item1/orddeptcd");
  1324. if (orddeptcd) {
  1325. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp='" + orddeptcd + "' or dp='-']";
  1326. cmb_orddrid.disabled = false;
  1327. } else {
  1328. cmb_orddrid.disabled = true;
  1329. }
  1330. model.setValue("/root/send/item1/orddrid", ""); // 주치의 선택을 초기화한다.
  1331. model.refresh();
  1332. ]]>
  1333. </script>
  1334. </select1>
  1335. <caption id="caption46" class="search_name" style="left:475px; top:56px; width:73px; height:17px; ">진료과</caption>
  1336. <input id="ipt_diagfr" ref="/root/send/item1/diagcdfr" class="input_search" navindex="12" imemode="disabled" inputtype="button" _chartype="upper" style="left:91px; top:104px; width:68px; height:19px; ">
  1337. <script type="javascript" ev:event="onbuttonclick">
  1338. <![CDATA[
  1339. model.removeNodeset("/root/hidden/sppiz00400/rslt");
  1340. model.makeNode("/root/hidden/sppiz00400/rslt/diagcd");
  1341. model.makeNode("/root/hidden/sppiz00400/rslt/diaghngnm");
  1342. model.makeNode("/root/hidden/sppiz00400/rslt/diagengnm");
  1343. model.resetInstanceNode("/root/hidden/sppiz00400/cond");
  1344. model.setValue("/root/hidden/sppiz00400/cond/basedd", getCurrentDate()); // (dateHelper.js) 현재날짜 반환
  1345. model.setValue("/root/hidden/sppiz00400/cond/diagcd", model.getValue("/root/send/item1/diagcd"));
  1346. model.setValue("/root/hidden/sppiz00400/cond/diagnm", "");
  1347. model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind","3"); // 사용자가 직접검색하여 입력 할수 있도록 임의의 값(3)을 넣어줌
  1348. modal("SPPIZ00400", "1", "10", "10", "SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", ""); // SPPIZ00400_상병코드조회.xrw
  1349. /*
  1350. var clamkey = model.getValue("/root/main/item1/clbs/clamkey");
  1351. if (clamkey) { // 조회된 심사대상자가 있음
  1352. fSortDiagNo(true);
  1353. } */
  1354. ]]>
  1355. </script>
  1356. <script type="javascript" ev:event="xforms-value-changed">
  1357. <![CDATA[
  1358. model.setValue("/root/send/item1/diagcdto", model.getValue("/root/send/item1/diagcdfr"));
  1359. model.refresh();
  1360. ]]>
  1361. </script>
  1362. </input>
  1363. <input id="ipt_diagto" ref="/root/send/item1/diagcdto" class="input_search" navindex="4" imemode="disabled" _chartype="upper" style="left:178px; top:104px; width:68px; height:19px; "/>
  1364. <select1 id="cmb_clamdg" ref="/root/send/item1/clamdg" class="combo_search" appearance="minimal" style="left:184px; top:8px; width:62px; height:19px; ">
  1365. <choices>
  1366. <itemset nodeset="/root/init/clamdg/clamdglist">
  1367. <label ref="clamdgnm"/>
  1368. <value ref="clamdgcd"/>
  1369. </itemset>
  1370. </choices>
  1371. </select1>
  1372. <select1 id="cmb_patmode" ref="/root/send/item1/patmode" class="radio_search" navindex="11" appearance="full" cols="2" overflow="visible" style="left:185px; top:80px; width:170px; height:15px; ">
  1373. <choices>
  1374. <item>
  1375. <label>번호</label>
  1376. <value>1</value>
  1377. </item>
  1378. <item>
  1379. <label>성명</label>
  1380. <value>2</value>
  1381. </item>
  1382. </choices>
  1383. <script type="javascript" ev:event="xforms-select">
  1384. <![CDATA[
  1385. model.setValue("/root/send/item1/choicdsrch2", "");
  1386. ipt_choicdsrch.refresh();
  1387. if (model.getValue("/root/send/item1/choicdsrch1") == "1") {
  1388. fGetSnglcalcscorcd();
  1389. }
  1390. ]]>
  1391. </script>
  1392. </select1>
  1393. <select id="checkbox1" ref="/root/send/item1/cutprcp" class="checkbox_search" navindex="31" overflow="visible" appearance="full" style="left:90px; top:129px; width:115px; height:15px; ">
  1394. <choices>
  1395. <item>
  1396. <label>삭감확인(대상자)</label>
  1397. <value>Y</value>
  1398. </item>
  1399. </choices>
  1400. </select>
  1401. <select id="checkbox2" ref="/root/send/item1/chkerdeptyn" class="checkbox_search" navindex="31" overflow="visible" appearance="full" style="left:1106px; top:56px; width:70px; height:15px; ">
  1402. <choices>
  1403. <item>
  1404. <label>응급실주과</label>
  1405. <value>Y</value>
  1406. </item>
  1407. </choices>
  1408. </select>
  1409. <caption id="caption28" class="search_name" style="left:8px; top:128px; width:84px; height:17px; ">삭감처방</caption>
  1410. <select id="checkbox9" ref="/root/send/item1/cutviewyn" class="checkbox_search" navindex="22" overflow="visible" appearance="full" style="left:210px; top:128px; width:115px; height:19px; ">
  1411. <choices>
  1412. <item>
  1413. <label>삭감확인(명세서)</label>
  1414. <value>Y</value>
  1415. </item>
  1416. </choices>
  1417. <script type="javascript" ev:event="xforms-value-changed">
  1418. <![CDATA[
  1419. if(model.getValue("/root/send/item1/cutviewyn") == "Y"){
  1420. radio2.disabled = false;
  1421. model.setValue("/root/send/item1/cutprcpsel", "1");
  1422. model.refreshpart("/root/send/item1/cutprcpsel");
  1423. //model.refresh();
  1424. }else{
  1425. radio2.disabled = true;
  1426. model.setValue("/root/send/item1/cutprcpsel", "");
  1427. model.refreshpart("/root/send/item1/cutprcpsel");
  1428. //model.refresh();
  1429. }
  1430. ]]>
  1431. </script>
  1432. </select>
  1433. <select1 id="radio2" ref="/root/send/item1/cutprcpsel" class="radio_search" disabled="true" navindex="11" appearance="full" cols="2" overflow="visible" style="left:330px; top:128px; width:185px; height:18px; ">
  1434. <choices>
  1435. <item>
  1436. <label>버튼색만 변경</label>
  1437. <value>1</value>
  1438. </item>
  1439. <item>
  1440. <label>삭감창 팝업</label>
  1441. <value>2</value>
  1442. </item>
  1443. </choices>
  1444. <script type="javascript" ev:event="xforms-select">
  1445. <![CDATA[
  1446. // model.resetInstanceNode("/root/send/item1/choicdsrch2");
  1447. model.setValue("/root/send/item1/choicdsrch2", "");
  1448. ipt_choicdsrch.refresh();
  1449. if (model.getValue("/root/send/item1/choicdsrch1") == "1") {
  1450. fGetSnglcalcscorcd();
  1451. }
  1452. ]]>
  1453. </script>
  1454. </select1>
  1455. <caption id="caption29" class="hand" style="left:519px; top:128px; width:236px; height:18px; vertical-align:middle; ">과거 6개월 삭감 조회함.</caption>
  1456. <select id="checkbox11" ref="/root/send/item1/selpiduseyn" class="checkbox_search" navindex="22" visibility="hidden" overflow="visible" appearance="full" style="left:910px; top:98px; width:165px; height:16px; ">
  1457. <choices>
  1458. <item>
  1459. <label>등록번호 타조건 AND검색</label>
  1460. <value>Y</value>
  1461. </item>
  1462. </choices>
  1463. </select>
  1464. <select id="chk_reloadyn" ref="/root/temp/reloadyn" class="checkbox_search" navindex="22" visibility="visible" overflow="visible" appearance="full" style="left:1106px; top:98px; width:70px; height:16px; ">
  1465. <choices>
  1466. <item>
  1467. <label>완료제외</label>
  1468. <value>Y</value>
  1469. </item>
  1470. </choices>
  1471. </select>
  1472. <select id="chk_virusb" ref="/root/send/item1/virusb" class="checkbox_search" navindex="30" overflow="visible" appearance="full" style="left:1106px; top:72px; width:69px; height:15px; border-style:none; ">
  1473. <choices>
  1474. <item>
  1475. <label>B형간염</label>
  1476. <value>Y</value>
  1477. </item>
  1478. </choices>
  1479. </select>
  1480. <caption id="caption30" class="search_name" style="left:686px; top:105px; width:86px; height:17px; ">자보회사</caption>
  1481. <select1 id="cmb_insucmno" ref="/root/send/item1/insucmno" class="combo_search" navindex="22" appearance="minimal" showvalue="true" style="left:770px; top:104px; width:97px; height:19px; ">
  1482. <choices>
  1483. <itemset nodeset="/root/init/PK032list/PK032">
  1484. <label ref="cdnm"/>
  1485. <value ref="cdid"/>
  1486. </itemset>
  1487. </choices>
  1488. </select1>
  1489. <select id="chk_hospice" ref="/root/send/item1/chkhospice" class="checkbox_search" navindex="30" overflow="visible" appearance="full" style="left:911px; top:71px; width:43px; height:15px; border-style:none; ">
  1490. <choices>
  1491. <item>
  1492. <label>완화</label>
  1493. <value>Y</value>
  1494. </item>
  1495. </choices>
  1496. </select>
  1497. </group>
  1498. <caption id="cap_judgtrgtman" class="tit_2" style="left:5px; top:171px; width:187px; height:13px; ">심사 대상자</caption>
  1499. <line id="line1" class="line_1" style="x1:0px; y1:187px; x2:1190px; y2:187px; "/>
  1500. <!-- [2007.03.19. 박도형대리님] Grid 필터용 Radio 사용 부분 삭제 요청 -->
  1501. <!--
  1502. <select1 id="rdo_judgendyn" ref="/root/hidden/clbs/judgendyn" class="radio_search" overflow="visible" appearance="full" cols="7" cellspacing="5" style="left:112px; top:121px; width:373px; height:20px; ">
  1503. <choices>
  1504. <item>
  1505. <label>전체</label>
  1506. <value>-</value>
  1507. </item>
  1508. <item>
  1509. <label>미심사</label>
  1510. <value>1</value>
  1511. </item>
  1512. <item>
  1513. <label>완료</label>
  1514. <value>2</value>
  1515. </item>
  1516. <item>
  1517. <label>심사중</label>
  1518. <value>3</value>
  1519. </item>
  1520. <item>
  1521. <label>보류</label>
  1522. <value>4</value>
  1523. </item>
  1524. <item>
  1525. <label>삭제</label>
  1526. <value>5</value>
  1527. </item>
  1528. <item>
  1529. <label>재청구</label>
  1530. <value>6</value>
  1531. </item>
  1532. </choices>
  1533. <script type="javascript" ev:event="xforms-value-changed">
  1534. <![CDATA[
  1535. fSetWorkStatRadio();
  1536. ]]>
  1537. </script>
  1538. </select1>
  1539. -->
  1540. <caption id="caption10" class="cell_1" style="left:0px; top:664px; width:45px; height:23px; ">총건수</caption>
  1541. <output id="opt_totcnt" ref="/root/hidden/clbs/totcnt" class="output_fix" style="left:46px; top:665px; width:29px; height:19px; text-align:right; "/>
  1542. <caption id="caption19" class="cell_1" style="left:77px; top:664px; width:35px; height:23px; ">완료</caption>
  1543. <output id="opt_endcnt" ref="/root/hidden/clbs/endcnt" class="output_fix" style="left:113px; top:665px; width:29px; height:19px; text-align:right; "/>
  1544. <caption id="caption23" class="cell_1" style="left:144px; top:664px; width:45px; height:23px; ">미심사</caption>
  1545. <output id="opt_unjudgcnt" ref="/root/hidden/clbs/unjudgcnt" class="output_fix" style="left:190px; top:665px; width:29px; height:19px; text-align:right; "/>
  1546. <caption id="caption22" class="cell_1" style="left:221px; top:664px; width:35px; height:23px; ">보류</caption>
  1547. <output id="opt_retecnt" ref="/root/hidden/clbs/retecnt" class="output_fix" style="left:257px; top:665px; width:29px; height:19px; text-align:right; "/>
  1548. <caption id="caption20" class="cell_1" style="left:287px; top:664px; width:35px; height:23px; ">삭제</caption>
  1549. <output id="opt_delcnt" ref="/root/hidden/clbs/delcnt" class="output_fix" style="left:322px; top:665px; width:29px; height:19px; text-align:right; "/>
  1550. <caption id="caption24" class="cell_1" style="left:438px; top:664px; width:45px; height:23px; ">심사중</caption>
  1551. <output id="opt_judgprcscnt" ref="/root/hidden/clbs/judgprcscnt" class="output_fix" style="left:484px; top:665px; width:29px; height:19px; text-align:right; "/>
  1552. <caption id="caption21" class="cell_1" style="left:515px; top:664px; width:35px; height:23px; ">반송</caption>
  1553. <output id="opt_rptclamcnt" ref="/root/hidden/clbs/rptclamcnt" class="output_fix" style="left:551px; top:665px; width:29px; height:19px; text-align:right; ">
  1554. <hint>
  1555. <![CDATA[청구진행상태='C']]>
  1556. </hint>
  1557. </output>
  1558. <line id="line13" class="line_3" style="x1:0px; y1:662px; x2:1190px; y2:662px; "/>
  1559. <line id="line2" class="line_3" style="x1:0px; y1:686px; x2:1190px; y2:686px; "/>
  1560. <button id="btn_judgprcsremv" class="btn2_letter5" style="left:973px; top:167px; width:75px; height:19px; ">
  1561. <caption>심사중해제</caption>
  1562. <script type="javascript" ev:event="DOMActivate">
  1563. <![CDATA[
  1564. fSetJudgEndYN();
  1565. ]]>
  1566. </script>
  1567. </button>
  1568. <button id="btn_excelsave" class="btn2_letter4" style="left:1049px; top:167px; width:64px; height:19px; ">
  1569. <caption>엑셀저장</caption>
  1570. <script type="javascript" ev:event="DOMActivate">
  1571. <![CDATA[
  1572. if (grd_clbsmast.rows > 1) {
  1573. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1574. if (fileName != "") {
  1575. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  1576. // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1577. grd_clbsmast.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  1578. }
  1579. } else {
  1580. messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
  1581. }
  1582. ]]>
  1583. </script>
  1584. </button>
  1585. <button id="btn_envinit" class="btn2_letter5" style="left:1114px; top:167px; width:75px; height:19px; ">
  1586. <caption>환경초기화</caption>
  1587. <script type="javascript" ev:event="DOMActivate">
  1588. <![CDATA[
  1589. // var compsnm = model.getValue("/root/init/listval/uuee/compsnm");
  1590. // if (compsnm) { // Grid ID 정보
  1591. var selrow = grd_clbsmast.selectedRow(0); // row 선택 후 타이틀 부분 조정시 row = 0으로 바뀌므로 selectedRow로 체크함
  1592. // alert("pre>>"+selrow + " / " + grd_clbsmast.row);
  1593. var compsnm = "grd_clbsmast";
  1594. //var refdata = "^docuseqno^clamym^clamdg^clamflagcd^orddeptcd^pid^pidsn^patnm^gender^patage^insukindcd^suppkindcd^payownbrate^diagnm^spclmark^ordcd^ordnm^payflag^drugqtytims^dayno^orddt^execdt^stage^judgmemo^orddrid^judgrid^lastupdtrid^spcljudgyn^opyn^realtmjudg^totordamt^judgenddd^judgendyn^clamendyn^indd^iphsfromdd^iphstodd^ordfromdd^ordtodd^prockindflagyn^insuno^clamno^acptno^judgdg^prepdata^dethyn^divclam^ownbamt^fstrgstdt^clamkey^lockyn"; // Grid의 칼럼명
  1595. //var sizedata = "^42^61^33^35^43^66^19^43^20^30^30^30^30^79^37^0^0^0^0^0^0^0^55^68^42^42^42^19^19^44^67^67^52^70^67^67^67^67^67^20^75^78^54^54^30^20^30^67^67^0^0"; // Grid의 칼럼Size
  1596. var refdata = gClbsmast_refdata; // 20100420 초기설정 담아둔 글로벌 변수에서 가져온다. Grid의 칼럼명
  1597. var sizedata = gClbsmast_sizedata; // 20100420 초기설정 담아둔 글로벌 변수에서 가져온다. Grid의 칼럼Size
  1598. var grdobj = document.controls.item(compsnm);
  1599. var refarr = refdata.split("^");
  1600. var sizearr = sizedata.split("^");
  1601. for(var i = 0; i < refarr.length; i++) {
  1602. var colcnt = grdobj.colref("" + refarr[i] + "");
  1603. grdobj.colMove(i, colcnt, "before", false);
  1604. var size = sizearr[i];
  1605. grdobj.colWidth(i) = eval(size);
  1606. }
  1607. grdobj.rebuild();
  1608. var srchmode = model.getValue("/root/hidden/clbs/srchmode");
  1609. if (srchmode == "specclbs") { // 선별심사 모드인 경우
  1610. grd_clbsmast.colHidden(grd_clbsmast.colRef("ordcd")) = false;
  1611. grd_clbsmast.colHidden(grd_clbsmast.colRef("ordnm")) = false;
  1612. grd_clbsmast.colHidden(grd_clbsmast.colRef("payflag")) = false;
  1613. grd_clbsmast.colHidden(grd_clbsmast.colRef("drugqtytims")) = false;
  1614. grd_clbsmast.colHidden(grd_clbsmast.colRef("dayno")) = false;
  1615. grd_clbsmast.colHidden(grd_clbsmast.colRef("orddt")) = false;
  1616. grd_clbsmast.colHidden(grd_clbsmast.colRef("execdt")) = false;
  1617. cap_judgtrgtman.text = "선별심사 대상자";
  1618. } else {
  1619. grd_clbsmast.colHidden(grd_clbsmast.colRef("ordcd")) = true;
  1620. grd_clbsmast.colHidden(grd_clbsmast.colRef("ordnm")) = true;
  1621. grd_clbsmast.colHidden(grd_clbsmast.colRef("payflag")) = true;
  1622. grd_clbsmast.colHidden(grd_clbsmast.colRef("drugqtytims")) = true;
  1623. grd_clbsmast.colHidden(grd_clbsmast.colRef("dayno")) = true;
  1624. grd_clbsmast.colHidden(grd_clbsmast.colRef("orddt")) = true;
  1625. grd_clbsmast.colHidden(grd_clbsmast.colRef("execdt")) = true;
  1626. cap_judgtrgtman.text = "사후심사 대상자";
  1627. }
  1628. model.setFocus("grd_clbsmast");
  1629. grd_clbsmast.select(selrow, 1) = true;
  1630. grd_clbsmast.row = selrow; // 환경초기화 이후 row = -1로 설정되므로
  1631. // grd_clbsmast.col = 1; // 환경초기화 이후 row = -1로 설정되므로
  1632. // model.refresh();
  1633. // alert(selrow + " / " + grd_clbsmast.row);
  1634. // }
  1635. ]]>
  1636. </script>
  1637. </button>
  1638. <!-- [2007.03.20. 박도형대리님] Grid grd_clbsmast의 data Combo 사용으로 코드명 보여주는 대신 코드ID로 변경 요청 -->
  1639. <!--
  1640. <col ref="insukindcd" type="combo">
  1641. <choices>
  1642. <itemset nodeset="/root/init/P0008list/P0008">
  1643. <label ref="cdnm"/>
  1644. <value ref="cdid"/>
  1645. </itemset>
  1646. </choices>
  1647. </col>
  1648. <col ref="suppkindcd" type="combo">
  1649. <choices>
  1650. <itemset nodeset="/root/init/P0010list/P0010">
  1651. <label ref="cdnm"/>
  1652. <value ref="cdid"/>
  1653. </itemset>
  1654. </choices>
  1655. </col>
  1656. -->
  1657. <group id="grp_judgmemo" visibility="hidden" style="left:0px; top:233px; width:1190px; height:409px; border-color:#333333; border-style:solid; ">
  1658. <line id="line4" class="line_1" style="x1:0px; y1:20px; x2:1188px; y2:20px; "/>
  1659. <caption id="caption26" class="tit_2" style="left:5px; top:5px; width:113px; height:14px; ">심사대상자 메모</caption>
  1660. <textarea id="tar_judgmemo" ref="/root/hidden/clbs/judgmemo" style="left:5px; top:40px; width:1178px; height:324px; ">
  1661. <script type="javascript" ev:event="DOMFocusIn">
  1662. <![CDATA[
  1663. ]]>
  1664. </script>
  1665. </textarea>
  1666. <button id="btn_memocancel" class="btn4_letter2" style="left:1112px; top:374px; width:56px; height:22px; ">
  1667. <caption>취소</caption>
  1668. <script type="javascript" ev:event="DOMActivate">
  1669. <![CDATA[
  1670. grp_judgmemo.visible = false;
  1671. ]]>
  1672. </script>
  1673. </button>
  1674. <button id="btn_memosave" class="btn4_letter2" style="left:1053px; top:374px; width:56px; height:22px; ">
  1675. <caption>저장</caption>
  1676. <script type="javascript" ev:event="DOMActivate">
  1677. <![CDATA[
  1678. var srchmode = model.getValue("/root/hidden/clbs/srchmode");
  1679. if (srchmode == "specclbs") { // 선별심사 모드인 경우
  1680. messageBox("선별심사 모드에서는 심사메모를 저장할 수", "I004"); ///없습니다.
  1681. return;
  1682. }
  1683. model.removeNodeset("/root/send/item2");
  1684. model.makeNode("/root/send/item2");
  1685. var row = grd_clbsmast.row;
  1686. var clamkey = model.getValue("/root/main/list1/clbs[" + row + "]/clamkey");
  1687. var clamym = model.getValue("/root/main/list1/clbs[" + row + "]/clamym");
  1688. var clamdg = model.getValue("/root/main/list1/clbs[" + row + "]/clamdg");
  1689. var pid = model.getValue("/root/main/list1/clbs[" + row + "]/pid");
  1690. var pidsn = model.getValue("/root/main/list1/clbs[" + row + "]/pidsn");
  1691. var judgmemo = model.getValue("/root/hidden/clbs/judgmemo"); // 현재 창에 입력된 내용
  1692. if (judgmemo == model.getValue("/root/main/list1/clbs[" + row + "]/judgmemo")) {
  1693. messageBox("변경된 내용이", "I004"); ///변경된 내용이 없습니다.
  1694. return;
  1695. }
  1696. model.makeValue("/root/send/item2/clsp/status", "d");
  1697. model.makeValue("/root/send/item2/clsp/clamym", clamym);
  1698. model.makeValue("/root/send/item2/clsp/clamdg", clamdg);
  1699. model.makeValue("/root/send/item2/clsp/pid", pid);
  1700. model.makeValue("/root/send/item2/clsp/pidsn", pidsn);
  1701. model.makeValue("/root/send/item2/clsp/spclcd", "MX999");
  1702. model.makeValue("/root/send/item2/clsp/spclspec", "");
  1703. model.makeValue("/root/send/item2/clsp/unitflag", "M");
  1704. model.makeValue("/root/send/item2/clsp/usermemoyn", "Y");
  1705. var insCnt = 1;
  1706. var spclspec = judgmemo;
  1707. var iSpclCdTotLength = getStringLength(spclspec); // (stringHelper.js) 문자열의 길이를 구한다.
  1708. var insCharTotCnt = 0; // 특정내역으로 잘라진 총 글자 수
  1709. if (iSpclCdTotLength > 350) { // 새로 입력된 특정코드가 700byte를 넘는다.
  1710. // 영문(700자), 한글(350자) 길이로 잘라서 n개의 특정코드를 만든다.
  1711. var iLen = 0; // 특정내역 길이가 700 byte가 되었는지 계산
  1712. var iStartInx = 0; // 특정내역 시작 index
  1713. var iCharCnt = 0; // 몇글자로 구성되는지 계산
  1714. for (var j=0; j < spclspec.length; j++) {
  1715. var sBit = spclspec.charAt(j);
  1716. iCharCnt++;
  1717. if (escape(sBit).length > 4) {
  1718. iLen = iLen + 2;
  1719. } else {
  1720. iLen = iLen + 1;
  1721. }
  1722. if (iLen == 350 || iLen > 350) { // 영문(700자), 한글(350자)
  1723. insCnt++;
  1724. if (iLen == 350) { // 700byte로 길이가 끝난 경우
  1725. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/status", "i");
  1726. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/clamym", clamym);
  1727. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/clamdg", clamdg);
  1728. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/pid", pid);
  1729. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/pidsn", pidsn);
  1730. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/spclcd", "MX999");
  1731. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/spclspec", spclspec.substr(iStartInx, iCharCnt));
  1732. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/unitflag", "M");
  1733. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/usermemoyn", "Y");
  1734. iStartInx += iCharCnt;
  1735. insCharTotCnt += 350;
  1736. }
  1737. else if (iLen > 350) { // 영문(700자), 한글(350자)를 넘는 경우
  1738. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/status", "i");
  1739. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/clamym", clamym);
  1740. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/clamdg", clamdg);
  1741. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/pid", pid);
  1742. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/pidsn", pidsn);
  1743. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/spclcd", "MX999");
  1744. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/spclspec", spclspec.substr(iStartInx, iCharCnt - 1));
  1745. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/unitflag", "M");
  1746. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/usermemoyn", "Y");
  1747. iStartInx += (iCharCnt - 1);
  1748. j--;
  1749. insCharTotCnt += 349;
  1750. }
  1751. iCharCnt = 0;
  1752. iLen = 0;
  1753. }
  1754. }
  1755. if (iSpclCdTotLength != insCharTotCnt) {
  1756. insCnt++;
  1757. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/status", "i");
  1758. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/clamym", clamym);
  1759. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/clamdg", clamdg);
  1760. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/pid", pid);
  1761. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/pidsn", pidsn);
  1762. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/spclcd", "MX999");
  1763. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/spclspec", spclspec.substring(iStartInx, spclspec.length));
  1764. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/unitflag", "M");
  1765. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/usermemoyn", "Y");
  1766. }
  1767. var rsltNode = instance1.selectSingleNode("/root/send/item3");
  1768. if (rsltNode != null) {
  1769. insCnt = 1;
  1770. for (var i = 1; i <= rsltNode.childNodes.length; i++) {
  1771. model.makeNode("/root/send/item2/clsp[" + ++insCnt + "]");
  1772. model.copyNode("/root/send/item2/clsp[" + insCnt + "]", "/root/send/item3/clsp[" + i + "]");
  1773. }
  1774. }
  1775. }
  1776. // else { // 새로 입력된 특정코드는 700byte를 넘지 않는다.
  1777. else if (iSpclCdTotLength > 0) { // 새로 추가된 내용이 있다.
  1778. insCnt = 2;
  1779. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/status", "i");
  1780. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/clamym", clamym);
  1781. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/clamdg", clamdg);
  1782. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/pid", pid);
  1783. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/pidsn", pidsn);
  1784. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/spclcd", "MX999");
  1785. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/spclspec", spclspec);
  1786. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/unitflag", "M");
  1787. model.makeValue("/root/send/item2/clsp[" + insCnt + "]/usermemoyn", "Y");
  1788. }
  1789. var clspList = instance1.selectSingleNode("/root/send/item2/clsp");
  1790. if (clspList != null) {
  1791. model.setValue("/root/main/list1/clbs[" + grd_clbsmast.row + "]/judgmemo", model.getValue("/root/hidden/clbs/judgmemo"));
  1792. //alert(instance1.selectNodesXml("/root/send/item2"));
  1793. submit("TXPID20201");
  1794. grp_judgmemo.visible = false;
  1795. } else {
  1796. messageBox("심사자 메모를", "C001"); ///심사자 메모를 입력하십시오.
  1797. }
  1798. model.removeNodeset("/root/send/item2");
  1799. model.makeNode("/root/send/item2");
  1800. /////////////////////////////////////////////////////////
  1801. /*
  1802. if (judgmemo.isByteSize(200)) { // (stringHelper.js) 문자열의 Byte 크기가 제한값을 벗어나는지 체크 (벗어나면 false 리턴)
  1803. model.setValue("/root/send/clsp/clamkey", model.getValue("/root/main/list1/clbs[" + grd_clbsmast.row + "]/clamkey"));
  1804. if (submit("TXPID20201")) {
  1805. model.resetInstanceNode("/root/send/clsp");
  1806. model.setValue("/root/main/list1/clbs[" + grd_clbsmast.row + "]/judgmemo", judgmemo);
  1807. model.refresh();
  1808. grp_judgmemo.visible = false;
  1809. }
  1810. } else {
  1811. messageBox("제한길이(영문 1332자, 한글 666자)를", "E003"); ///제한길이(영문 1332자, 한글 666자)를 초과하였습니다
  1812. }
  1813. */
  1814. ]]>
  1815. </script>
  1816. </button>
  1817. </group>
  1818. <button id="btn_cretdel" class="btn2_letter4" _auth="X" style="left:723px; top:167px; width:64px; height:19px; ">
  1819. <caption>생성삭제</caption>
  1820. <script type="javascript" ev:event="DOMActivate">
  1821. <![CDATA[
  1822. var deptcd = grd_clbsmast.labelMatrix(grd_clbsmast.row, grd_clbsmast.colRef("orddeptcd"));
  1823. pidfDelClamData("I", deptcd); // SMPID20000.js
  1824. ]]>
  1825. </script>
  1826. <hint>
  1827. <![CDATA[청구생성 자료삭제]]>
  1828. </hint>
  1829. </button>
  1830. <output id="output1" ref="/root/hidden/clbs/autodelcnt" class="output_fix" style="left:408px; top:665px; width:29px; height:19px; text-align:right; "/>
  1831. <caption id="caption9" class="cell_1" style="left:352px; top:664px; width:55px; height:23px; ">자동삭제</caption>
  1832. <button id="btn_logview" class="btn2_letter8" style="left:788px; top:167px; width:108px; height:19px; ">
  1833. <caption>생성삭제로그확인</caption>
  1834. <script type="javascript" ev:event="DOMActivate">
  1835. <![CDATA[
  1836. var todd = getCurrentDate();
  1837. todd = todd.toDate().getAddDate(+1, 'D');
  1838. zsbfOpenBatchLogPopup("clamcretmngtmgr.ClamDataCretMain",getCurrentDate(),todd.getDateFormat());
  1839. ]]>
  1840. </script>
  1841. </button>
  1842. <caption id="caption27" class="hand" style="left:590px; top:665px; width:345px; height:20px; vertical-align:middle; ">[청구차수] : 원:1 보완:1001 추가:2001 누락:9001</caption>
  1843. <button id="button4" class="btn2_letter3" style="left:116px; top:167px; width:53px; height:19px; ">
  1844. <caption>셀카피</caption>
  1845. <script type="javascript" ev:event="onclick">
  1846. <![CDATA[
  1847. grd_clbsmast.attribute("selectionmode") = "free";
  1848. ]]>
  1849. </script>
  1850. </button>
  1851. <button id="button5" class="btn2_letter3" style="left:170px; top:167px; width:53px; height:19px; ">
  1852. <caption>열카피</caption>
  1853. <script type="javascript" ev:event="onclick">
  1854. <![CDATA[
  1855. grd_clbsmast.attribute("selectionmode") = "bycol";
  1856. ]]>
  1857. </script>
  1858. </button>
  1859. <button id="button6" class="btn2_letter3" style="left:224px; top:167px; width:53px; height:19px; ">
  1860. <caption>행카피</caption>
  1861. <script type="javascript" ev:event="onclick">
  1862. <![CDATA[
  1863. grd_clbsmast.attribute("selectionmode") = "byrow";
  1864. ]]>
  1865. </script>
  1866. </button>
  1867. <button id="button1" class="btn2_letter4" _auth="X" style="left:658px; top:167px; width:64px; height:19px; ">
  1868. <caption>제출자료</caption>
  1869. <script type="javascript" ev:event="DOMActivate">
  1870. <![CDATA[
  1871. open("SPPID25000", "","","","ccc","","","","");
  1872. ]]>
  1873. </script>
  1874. </button>
  1875. <button id="button2" class="btn2_letter5" visibility="hidden" _auth="X" style="left:582px; top:167px; width:75px; height:19px; ">
  1876. <caption>KDRG생성</caption>
  1877. <script type="javascript" ev:event="DOMActivate">
  1878. <![CDATA[
  1879. fSetKDRGclodlist();
  1880. ]]>
  1881. </script>
  1882. </button>
  1883. <button id="button7" class="btn2_letter5" _auth="X" style="left:897px; top:167px; width:75px; height:19px; ">
  1884. <caption>명세서삭제</caption>
  1885. <script type="javascript" ev:event="DOMActivate">
  1886. <![CDATA[
  1887. var srchmode = model.getValue("/root/hidden/clbs/srchmode");
  1888. var deptcd = "";
  1889. if (srchmode == "specclbs") { // 선별심사 모드인 경우
  1890. deptcd = grd_specclbs.labelMatrix(grd_specclbs.row, grd_specclbscolRef("orddeptcd"));
  1891. } else {
  1892. deptcd = grd_clbsmast.labelMatrix(grd_clbsmast.row, grd_clbsmast.colRef("orddeptcd"));
  1893. }
  1894. pidfDelClbsData("I", deptcd); // SMPID20000.js
  1895. ]]>
  1896. </script>
  1897. <hint>
  1898. <![CDATA[청구생성 자료삭제]]>
  1899. </hint>
  1900. </button>
  1901. </group>
  1902. <group id="grp_btn" scroll="auto" style="left:0px; top:700px; width:1195px; height:27px; ">
  1903. <button id="btn_confirm" class="btn4_letter2" style="left:1079px; top:3px; width:56px; height:22px; ">
  1904. <caption>확인</caption>
  1905. <script type="javascript" ev:event="DOMActivate">
  1906. <![CDATA[
  1907. grp_judgmemo.visible = false; // 대상자 Grid의 메모 필드의 Btn 클릭시 보여지는 메모 저장용 Group을 감춘다.
  1908. if ( checkOpener() ) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  1909. var row = grd_clbsmast.row;
  1910. if (row > 0) {
  1911. var gridclbs = model.getValue("/root/main/list1/clbs["+ row +"]/clamkey");
  1912. if (gridclbs != "") {
  1913. model.setValue(opener.root.hidden.smpid20200.rslt.selectedRow, row); // 대상자 리스트에서 몇번째 row인지 (대상자조회 pre/next 에서 사용)
  1914. model.setValue(opener.root.hidden.smpid20200.rslt.clamkey, gridclbs); // 선택된 대상자의 청구키로 심사정보를 조회한다.
  1915. model.setValue(opener.root.hidden.smpid20200.rslt.oldPid, model.getValue("/root/main/list1/clbs["+ row +"]/pid")); // 현재 조회된 환자의 등록번호를 저장
  1916. opener.javascript.fGetInAftJudgMngt();
  1917. } else {
  1918. messageBox("조회된 대상자가", "I004"); ///조회된 대상자가 없습니다.
  1919. activateOpener(); // (common.js)에서 제공하는 함수로 opener를 activate한다.
  1920. }
  1921. } else {
  1922. messageBox("선택된 대상자가", "I004"); ///선택된 대상자가 없습니다.
  1923. activateOpener(); // (common.js)에서 제공하는 함수로 opener를 activate한다.
  1924. }
  1925. } else {
  1926. messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); ///상위화면이 변경되어 데이터를 전달할 수 없습니다.
  1927. window.close(); // F5 실행시 IE를 종료시킨다.
  1928. }
  1929. ]]>
  1930. </script>
  1931. </button>
  1932. <button id="btn_cancel" class="btn4_letter2" style="left:1136px; top:3px; width:56px; height:22px; ">
  1933. <caption>취소</caption>
  1934. <close ev:event="DOMActivate"/>
  1935. </button>
  1936. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1190px; y2:0px; "/>
  1937. <button id="btn_init" class="btn4_letter3" style="left:1010px; top:3px; width:68px; height:22px; ">
  1938. <caption>초기화</caption>
  1939. <script type="javascript" ev:event="DOMActivate">
  1940. <![CDATA[
  1941. cap_judgtrgtman.text = "심사 대상자";
  1942. // main / send / hidden 데이터를 초기화한다.
  1943. fInitSrchData();
  1944. model.refresh();
  1945. ]]>
  1946. </script>
  1947. </button>
  1948. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  1949. <caption>출력</caption>
  1950. <script type="javascript" ev:event="DOMActivate">
  1951. <![CDATA[
  1952. if (grd_clbsmast.rows > 1) {
  1953. // 선택 : 부분출력(예6), 전체출력(아니오7), 취소(취소7)
  1954. var ret = messageBox("데이터를 부분출력", "S001"); ///데이터를 부분출력 하시려면 예(Yes)\n아니면 아니오(No)
  1955. if (ret == 6) {
  1956. // 1. 부분출력 (그리드에 선택된 행만 보고서로 전달한다.)
  1957. model.removeNodeset("/root/main/rpt1");
  1958. model.makeNode("/root/main/rpt1");
  1959. var idx = 1;
  1960. for (var i = 0; i < grd_clbsmast.selectedRows; i++) {
  1961. var row = grd_clbsmast.selectedRow(i);
  1962. // 리스트
  1963. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/docuseqno", model.getValue("/root/main/list1/clbs["+ row +"]/docuseqno"));
  1964. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/clamym", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("clamym"))); //
  1965. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/clamdg", model.getValue("/root/main/list1/clbs["+ row +"]/clamdg"));
  1966. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/orddeptcd", model.getValue("/root/main/list1/clbs["+ row +"]/orddeptcd"));
  1967. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/pid", model.getValue("/root/main/list1/clbs["+ row +"]/pid"));
  1968. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/patnm", model.getValue("/root/main/list1/clbs["+ row +"]/patnm"));
  1969. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/insukindcd", model.getValue("/root/main/list1/clbs["+ row +"]/insukindcd"));
  1970. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/suppkindcd", model.getValue("/root/main/list1/clbs["+ row +"]/suppkindcd"));
  1971. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/payownbrate", model.getValue("/root/main/list1/clbs["+ row +"]/payownbrate"));
  1972. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/iphsfromdd", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("iphsfromdd")));
  1973. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/iphstodd", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("iphstodd")));
  1974. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/orddrid", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("orddrid")));
  1975. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/judgrid", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("judgrid")));
  1976. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/opyn", model.getValue("/root/main/list1/clbs["+ row +"]/opyn"));
  1977. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/judgendyn", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("judgendyn")));
  1978. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/clamendyn", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("clamendyn")));
  1979. idx++;
  1980. }
  1981. exeReportPreview("RPPID20200", "XMLSTR", "", "", "false", "", "", "", "", "false");
  1982. } else if (ret == 7) {
  1983. // 2. 전체출력 (그리드에 보여지는 내용 전체를 보고서로 전달한다.)
  1984. var isPrint = false;
  1985. model.removeNodeset("/root/main/rpt1");
  1986. model.makeNode("/root/main/rpt1");
  1987. var idx = 1;
  1988. for (var i = grd_clbsmast.fixedRows; i < grd_clbsmast.rows; i ++ ) {
  1989. if (grd_clbsmast.rowHidden(i) == false) {
  1990. isPrint = true;
  1991. var row = i;
  1992. // 리스트
  1993. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/docuseqno", model.getValue("/root/main/list1/clbs["+ row +"]/docuseqno"));
  1994. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/clamym", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("clamym")));
  1995. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/clamdg", model.getValue("/root/main/list1/clbs["+ row +"]/clamdg"));
  1996. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/orddeptcd", model.getValue("/root/main/list1/clbs["+ row +"]/orddeptcd"));
  1997. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/pid", model.getValue("/root/main/list1/clbs["+ row +"]/pid"));
  1998. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/patnm", model.getValue("/root/main/list1/clbs["+ row +"]/patnm"));
  1999. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/insukindcd", model.getValue("/root/main/list1/clbs["+ row +"]/insukindcd"));
  2000. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/suppkindcd", model.getValue("/root/main/list1/clbs["+ row +"]/suppkindcd"));
  2001. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/payownbrate", model.getValue("/root/main/list1/clbs["+ row +"]/payownbrate"));
  2002. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/iphsfromdd", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("iphsfromdd")));
  2003. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/iphstodd", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("iphstodd")));
  2004. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/orddrid", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("orddrid")));
  2005. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/judgrid", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("judgrid")));
  2006. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/opyn", model.getValue("/root/main/list1/clbs["+ row +"]/opyn"));
  2007. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/judgendyn", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("judgendyn")));
  2008. model.makeValue("/root/main/rpt1/clbs["+ idx +"]/clamendyn", grd_clbsmast.labelMatrix(row, grd_clbsmast.colRef("clamendyn")));
  2009. idx++;
  2010. }
  2011. }
  2012. if (isPrint == false) {
  2013. messageBox("처방 필터를 변경하세요. 출력할 처방이", "I004"); ///처방 필터를 변경하세요. 출력할 처방이 없습니다.
  2014. return;
  2015. }
  2016. exeReportPreview("RPPID20200", "XMLSTR", "", "", "false", "", "", "", "", "false");
  2017. } else {
  2018. // 3. 취소
  2019. return;
  2020. }
  2021. } else {
  2022. messageBox("출력할 처방이", "I004"); ///출력할 처방이 없습니다.
  2023. }
  2024. /*
  2025. // parameter를 넘겨 보고서에서 쿼리를 돌린 후, 보여주는 형태
  2026. model.removenode("/root/send/prntinfo");
  2027. model.makeNode("/root/send/prntinfo");
  2028. // parameter 전달
  2029. model.makeValue("/root/send/prntinfo/ioflag", "I"); //model.getValue("/root/send/item1/ioflag"));
  2030. model.makeValue("/root/send/prntinfo/clamym", model.getValue("/root/send/item1/clamym"));
  2031. model.makeValue("/root/send/prntinfo/clamdg", model.getValue("/root/send/item1/clamdg"));
  2032. model.makeValue("/root/send/prntinfo/ordfildcd", model.getValue("/root/send/item1/ordfildcd"));
  2033. model.makeValue("/root/send/prntinfo/docuflagcd", model.getValue("/root/send/item1/clamflagcd"));
  2034. model.makeValue("/root/send/prntinfo/workstat", model.getValue("/root/send/item1/judgendyn"));
  2035. model.makeValue("/root/send/prntinfo/insukindcd", model.getValue("/root/send/item1/insukindcd"));
  2036. model.makeValue("/root/send/prntinfo/suppkindcd", model.getValue("/root/send/item1/suppkindcd"));
  2037. model.makeValue("/root/send/prntinfo/clamdeptcd", model.getValue("/root/send/item1/clamdeptcd"));
  2038. model.makeValue("/root/send/prntinfo/acptno", model.getValue("/root/send/item1/acptno"));
  2039. model.makeValue("/root/send/prntinfo/docuseqno1", model.getValue("/root/send/item1/docuseqno1"));
  2040. model.makeValue("/root/send/prntinfo/docuseqno2", model.getValue("/root/send/item1/docuseqno2"));
  2041. model.makeValue("/root/send/prntinfo/patunitsrch1", model.getValue("/root/send/item1/patunitsrch1"));
  2042. model.makeValue("/root/send/prntinfo/patunitsrch2", model.getValue("/root/send/item1/patunitsrch2"));
  2043. model.makeValue("/root/send/prntinfo/judgrid", model.getValue("/root/send/item1/judgrid"));
  2044. model.makeValue("/root/send/prntinfo/orddrid", model.getValue("/root/send/item1/orddrid"));
  2045. model.makeValue("/root/send/prntinfo/totordamt", model.getValue("/root/send/item1/totordamt"));
  2046. model.makeValue("/root/send/prntinfo/cmbtotordamt", model.getValue("/root/send/item1/cmbtotordamt"));
  2047. model.makeValue("/root/send/prntinfo/ownbamt", model.getValue("/root/send/item1/ownbamt"));
  2048. model.makeValue("/root/send/prntinfo/cmbownbamt", model.getValue("/root/send/item1/cmbownbamt"));
  2049. model.makeValue("/root/send/prntinfo/choicdsrch1", model.getValue("/root/send/item1/choicdsrch1"));
  2050. model.makeValue("/root/send/prntinfo/choicdsrch2", model.getValue("/root/send/item1/choicdsrch2"));
  2051. model.makeValue("/root/send/prntinfo/chkanticncr", model.getValue("/root/send/item1/chkanticncr"));
  2052. model.makeValue("/root/send/prntinfo/chkanticncr2", model.getValue("/root/send/item1/chkanticncr2"));
  2053. model.makeValue("/root/send/prntinfo/chkanst", model.getValue("/root/send/item1/chkanst"));
  2054. model.makeValue("/root/send/prntinfo/chkdivclam", model.getValue("/root/send/item1/chkdivclam"));
  2055. model.makeValue("/root/send/prntinfo/chkangio1", model.getValue("/root/send/item1/chkangio1"));
  2056. model.makeValue("/root/send/prntinfo/chkangio2", model.getValue("/root/send/item1/chkangio2"));
  2057. model.makeValue("/root/send/prntinfo/chkspcljudg", model.getValue("/root/send/item1/chkspcljudg"));
  2058. model.makeValue("/root/send/prntinfo/chkpetmri", model.getValue("/root/send/item1/chkpetmri"));
  2059. model.makeValue("/root/send/prntinfo/chkcpyn", model.getValue("/root/send/item1/chkcpyn"));
  2060. model.makeValue("/root/send/prntinfo/chkdrgyn", model.getValue("/root/send/item1/chkdrgyn"));
  2061. model.makeValue("/root/send/prntinfo/chkreclam", model.getValue("/root/send/item1/chkreclam"));
  2062. model.makeValue("/root/send/prntinfo/instcd", getUserInfo("posinstcd")); // (common.js) 사용자 세션정보
  2063. // 선별심사 상태인지 여부를 전달하여 처방관련 필드 Visible 상태를 설정한다.
  2064. // Rexpert의 경우 필드(컬럼) 단위로는 "조건스타일"이 적용되지 않아서
  2065. // 처방관련 필드를 별도의 표(테이블)로 구성하고, 표 단위로 숨기기 속성을 적용하였음.
  2066. model.makeValue("/root/send/prntinfo/srchmode", model.getValue("/root/hidden/clbs/srchmode"));
  2067. exeReportPreview("RPPID20200", "XML", "/root/send/prntinfo", "", "false", "", "", "", "", "false");
  2068. */
  2069. ]]>
  2070. </script>
  2071. </button>
  2072. <button id="btn_envsave" class="btn4_letter4" style="left:929px; top:3px; width:80px; height:22px; ">
  2073. <caption>환경저장</caption>
  2074. <script type="javascript" ev:event="DOMActivate">
  2075. <![CDATA[
  2076. var captiondata = ""; // caption
  2077. var refdata = ""; // ref
  2078. var sizedata = ""; // size
  2079. var grdobj = document.controls.item("grd_clbsmast");
  2080. for (var i = 0; i < grdobj.cols; i++) {
  2081. var refval = grdobj.colAttribute(i, "ref");
  2082. refdata += refval + "^";
  2083. var sizeval = grdobj.colWidth(i);
  2084. sizedata += sizeval + "^";
  2085. }
  2086. refdata = refdata.substring(0, refdata.length-1);
  2087. sizedata = sizedata.substring(0, sizedata.length-1);
  2088. var compscnts = model.getValue("/root/init/listval/uuee/compscnts"); // Grid의 칼럼명
  2089. var compssizecnts = model.getValue("/root/init/listval/uuee/compssizecnts"); // Grid의 칼럼Size
  2090. if (refdata == compscnts && sizedata == compssizecnts) {
  2091. messageBox("변경된 데이터가", "I004"); ///변경된 데이터가 없습니다.
  2092. return;
  2093. }
  2094. var scrnid = model.getValue("/root/init/listval/uuee/scrnid"); // 화면(xrw)의 ID
  2095. if (scrnid == "") {
  2096. model.setValue("/root/send/listval/uuee/flag", "I");
  2097. } else {
  2098. model.setValue("/root/send/listval/uuee/flag", "U");
  2099. }
  2100. model.setValue("/root/send/listval/uuee/scrnid", "SMPID20200"); // 화면(xrw)의 ID - SMPID20200_입원사후심사대상자조회
  2101. model.setValue("/root/send/listval/uuee/compsnm", "grd_clbsmast"); // Grid ID 정보
  2102. model.setValue("/root/send/listval/uuee/compscnts", refdata); // Grid의 칼럼명
  2103. model.setValue("/root/send/listval/uuee/compsrefcnts", ""); // Grid의 reference명
  2104. model.setValue("/root/send/listval/uuee/compssizecnts", sizedata); // Grid의 칼럼Size
  2105. if (submit("TXPID21601")) {
  2106. messageBox("사용자 환경 저장이", "I002"); ///사용자 환경 저장이 완료되었습니다.
  2107. //그리드 caption 재지정
  2108. var caption = ""
  2109. for( var i = 1; i < grdobj.cols ; i++ ){
  2110. if (caption == "") {
  2111. caption = grdobj.textMatrix(0,i);
  2112. } else {
  2113. caption += "^" + grdobj.textMatrix(0,i);
  2114. }
  2115. }
  2116. grdobj.caption = caption;
  2117. }
  2118. ]]>
  2119. </script>
  2120. </button>
  2121. <button id="btn_smpis00400" class="btn3_letter9" style="left:57px; top:3px; width:140px; height:22px; ">
  2122. <caption>상병별 청구환자조회</caption>
  2123. <script type="javascript" ev:event="DOMActivate">
  2124. <![CDATA[
  2125. pidfOpenSMPIS00400("I");
  2126. ]]>
  2127. </script>
  2128. </button>
  2129. <button id="btn_smpis00600" class="btn3_letter10" style="left:198px; top:3px; width:152px; height:22px; ">
  2130. <caption>처방별 환자조회(삭감)</caption>
  2131. <script type="javascript" ev:event="DOMActivate">
  2132. <![CDATA[
  2133. pidfOpenSMPIS00600("I", "M");
  2134. ]]>
  2135. </script>
  2136. </button>
  2137. <button id="btn_smpis00500" class="btn3_letter10" visibility="visible" style="left:351px; top:3px; width:152px; height:22px; ">
  2138. <caption>처방별 환자조회(계산)</caption>
  2139. <script type="javascript" ev:event="DOMActivate">
  2140. <![CDATA[
  2141. pidfOpenSMPIS00500("I", "M");
  2142. ]]>
  2143. </script>
  2144. </button>
  2145. <button id="btn_calc" class="btn4_letter4" visibility="visible" style="left:653px; top:3px; width:80px; height:22px; ">
  2146. <caption>재계산</caption>
  2147. <script type="javascript" ev:event="DOMActivate">
  2148. <![CDATA[
  2149. submit("TXPID20202");
  2150. ]]>
  2151. </script>
  2152. </button>
  2153. <select1 id="cmb_srchcnt" ref="/root/send/item1/srchcnt" appearance="minimal" style="left:734px; top:4px; width:100px; height:19px; ">
  2154. <choices>
  2155. <itemset nodeset="/root/init/P0201sublist/P0201">
  2156. <label ref="cdnm"/>
  2157. <value ref="cdid"/>
  2158. </itemset>
  2159. </choices>
  2160. <script type="javascript" ev:event="xforms-value-changed">
  2161. <![CDATA[
  2162. model.makeValue("/root/hidden/item1/srchcnt",cmb_srchcnt.value);
  2163. ]]>
  2164. </script>
  2165. </select1>
  2166. <img id="img1" src="../../../com/commonweb/images/loading.gif" style="left:837px; top:1px; width:90px; height:24px; background-stretch:stretch; "/>
  2167. <button id="btn_nextpage" class="btn4_letter5" style="left:836px; top:3px; width:92px; height:22px; ">
  2168. <caption>다음페이지</caption>
  2169. <script type="javascript" ev:event="DOMActivate">
  2170. <![CDATA[
  2171. if (fCheckSrchCond()) {
  2172. // 조회버튼으로 조회 시 offset은 "0"으로 설정하고 submit() 을 수행한다.
  2173. // model.setValue("/root/send/item1/offset", "0"); // offset 변경을 조건 변경으로 처리하지 않기 위해 우선 0으로 초기화한다.
  2174. // model.alert("ok1");
  2175. var initcond = instance1.selectNodesXml("/root/hidden/item1");
  2176. var currentcond = instance1.selectNodesXml("/root/send/item1");
  2177. if (initcond == currentcond) {
  2178. // model.setValue("/root/send/item1/offset", grd_clbsmast.rows - grd_clbsmast.fixedRows); // grid의 header row는 제외
  2179. // model.alert("ok2");
  2180. } else {
  2181. model.setValue("/root/send/item1/lastclamym", "");
  2182. model.setValue("/root/send/item1/lastclamdg", "");
  2183. model.setValue("/root/send/item1/lastjudgno", "");
  2184. model.setValue("/root/send/item1/lastpid", "");
  2185. model.setValue("/root/send/item1/lastpidsn", "");
  2186. model.setValue("/root/send/item1/lastordcd", "");
  2187. model.setValue("/root/send/item1/lastclamkey", "");
  2188. model.setValue("/root/send/item1/lastedilnno", "");
  2189. // removeNodeset 으로 인해 node 순서가 바뀐 경우에도 값이 변경된 것으로 처리된다.
  2190. //alert(initcond + "\n" + currentcond);
  2191. grp_judgmemo.visible = false; // 대상자 Grid의 메모 필드의 Btn 클릭시 보여지는 메모 저장용 Group을 감춘다.
  2192. model.removeNodeset("/root/main/list1/clbs");
  2193. // // 페이지 단위 조회시 기존 조회조건이 변경되었는지 체크한다.
  2194. // model.copyNode("/root/hidden/item1", "/root/send/item1");
  2195. }
  2196. asyncSend("TRPID20202", "/root/send/item1", "/root/hidden/list1/clbs", "responseHandlerTRPID20202");
  2197. btn_nextpage.attribute("visibility") = "hidden";
  2198. //submit("TRPID20202");
  2199. // 검색 결과를 표시한다.
  2200. //fSetSrchJudgTrgtMan();
  2201. //model.refresh();
  2202. }
  2203. ]]>
  2204. </script>
  2205. </button>
  2206. </group>
  2207. </xhtml:body>
  2208. </xhtml:html>