SMPIR30400_이의신청.xrw 136 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>이의신청</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <obtmlist>
  11. <gridpirhobtm>
  12. <check/>
  13. <abdyn/>
  14. <obtappyn/>
  15. <orddeptcd/>
  16. <docuseqno/>
  17. <pid/>
  18. <patnm/>
  19. <orddrnm/>
  20. <judgdg/>
  21. <clamno/>
  22. <acptno/>
  23. <obtappflag/>
  24. <instcd/>
  25. <notidd/>
  26. <obtappendflag/>
  27. <obtappdocuno/>
  28. </gridpirhobtm>
  29. <acptinfo>
  30. <claminfo/>
  31. <adjtamt/>
  32. <obtappamt/>
  33. <abdamt/>
  34. <obtappendflag/>
  35. <restterm/>
  36. </acptinfo>
  37. <deptinfo>
  38. <cd/>
  39. <nm/>
  40. </deptinfo>
  41. <doctinfo>
  42. <cd/>
  43. <nm/>
  44. </doctinfo>
  45. <judgrinfo>
  46. <cd/>
  47. <nm/>
  48. </judgrinfo>
  49. </obtmlist>
  50. <patinfodata>
  51. <gridpatinfo>
  52. <pid/>
  53. <patnm/>
  54. <sexage/>
  55. <orddrid/>
  56. <insukind/>
  57. <corpactaddrate/>
  58. <payownbrate/>
  59. <spclspec/>
  60. <indd/>
  61. <dschdd/>
  62. <ordfromdd/>
  63. <ordtodd/>
  64. <chosindayno/>
  65. <medcaredayno/>
  66. <clmcstotamt/>
  67. <clownbamt/>
  68. <clclamamt/>
  69. <jrmcstotamt/>
  70. <jrownbamt/>
  71. <jrinsubamt/>
  72. <jrjudgdeciamt/>
  73. <jradjtsum/>
  74. <judgmemo/>
  75. <edimemo/>
  76. <obtapprem/>
  77. <rem/>
  78. <docuseqnorem/>
  79. <judgcls/>
  80. <attdocu/>
  81. </gridpatinfo>
  82. <gridadjtord>
  83. <obtappyn/>
  84. <lnno/>
  85. <item/>
  86. <adjtresncd/>
  87. <obtappflag/>
  88. <calcscorcd/>
  89. <hngnm/>
  90. <unitcost/>
  91. <clamdayqty/>
  92. <clamtotqty/>
  93. <adjtdayqty/>
  94. <adjttotqty/>
  95. <adjtamt/>
  96. <obtappdayqty/>
  97. <obtapptotqty/>
  98. <obtappamt/>
  99. <detladjtflag/>
  100. <adjtresndesc/>
  101. <displayyn/>
  102. <abdresncd/>
  103. <abdresnmemo/>
  104. <judgdg/>
  105. <clamno/>
  106. <acptno/>
  107. <docuseqno/>
  108. <mpsno/>
  109. <instcd/>
  110. <clamdd/>
  111. <ordym/>
  112. <edicd/>
  113. <orddeptcd/>
  114. <orddrid/>
  115. <workflag/>
  116. </gridadjtord>
  117. <gridlnnoadjtresncd>
  118. <lnno/>
  119. <edicd/>
  120. <rem/>
  121. </gridlnnoadjtresncd>
  122. <gridmemo>
  123. <judgmemo/>
  124. <edimemo/>
  125. <judgdg/>
  126. <clamno/>
  127. <acptno/>
  128. <docuseqno/>
  129. <obtappflag/>
  130. </gridmemo>
  131. <gridjudgclass>
  132. <judgcls>2</judgcls>
  133. <attdocu>1</attdocu>
  134. </gridjudgclass>
  135. <griddiaginfo>
  136. <diagkindcd/>
  137. <diagcd/>
  138. <diagseq/>
  139. <diagnm/>
  140. <clamdeptcd/>
  141. <ordfromdd/>
  142. </griddiaginfo>
  143. </patinfodata>
  144. <temp>
  145. <gridadjtord/>
  146. </temp>
  147. <temp2>
  148. <adjtremdata>
  149. <adjt_judgdg/>
  150. <adjt_clamno/>
  151. <adjt_acptno/>
  152. <adjt_docuseqno/>
  153. <adjt_obtappflag/>
  154. <adjt_obtapprem/>
  155. <adjt_rem/>
  156. <adjt_status/>
  157. <adjt_judgcls/>
  158. <adjt_attdocu/>
  159. </adjtremdata>
  160. </temp2>
  161. </main>
  162. <send>
  163. <send_obtmlist>
  164. <judgdg/>
  165. <clamno/>
  166. <acptno/>
  167. <setno/>
  168. <obtappdocuno/>
  169. <obtappflag/>
  170. <orddeptcd/>
  171. <codegubun/>
  172. <cd/>
  173. <item/>
  174. <adjtresncd/>
  175. <orddrid/>
  176. <judgrid/>
  177. <adjtamt/>
  178. <notidd/>
  179. <rejudgflag/>
  180. <endn/>
  181. <judgrid2/>
  182. </send_obtmlist>
  183. <send_patinfo>
  184. <judgdg/>
  185. <clamno/>
  186. <acptno/>
  187. <docuseqno/>
  188. <obtappflag/>
  189. <instcd/>
  190. </send_patinfo>
  191. <send_adjtord>
  192. <judgdg/>
  193. <clamno/>
  194. <acptno/>
  195. <docuseqno/>
  196. <obtappflag/>
  197. <mpsno/>
  198. <lnno/>
  199. <adjtresncd/>
  200. </send_adjtord>
  201. <send_clamno>
  202. <judgdg/>
  203. <acptno/>
  204. </send_clamno>
  205. <send_remdata>
  206. <judgdg/>
  207. <clamno/>
  208. <acptno/>
  209. <docuseqno/>
  210. <obtappflag/>
  211. <obtapprem/>
  212. <rem/>
  213. <status/>
  214. <judgcls/>
  215. <attdocu/>
  216. </send_remdata>
  217. <send_end>
  218. <judgdg/>
  219. <clamno/>
  220. <acptno/>
  221. <obtappflag/>
  222. <notidd/>
  223. <obtappdd/>
  224. <obtappdocuno/>
  225. <status/>
  226. <endflag/>
  227. <obtappendflag/>
  228. <indendyn/>
  229. </send_end>
  230. <send_rejudgrgst>
  231. <status/>
  232. <judgdg/>
  233. <clamno/>
  234. <acptno/>
  235. <docuseqno/>
  236. <obtappflag/>
  237. <obtappdocuno/>
  238. </send_rejudgrgst>
  239. <send_docusearch>
  240. <docuseqno/>
  241. </send_docusearch>
  242. <send_afjudg>
  243. <workflag/>
  244. <clamym/>
  245. <clamdg/>
  246. <pid/>
  247. <pidsn/>
  248. <ioflag/>
  249. </send_afjudg>
  250. </send>
  251. <popupdata>
  252. <popupmenu>
  253. <gridpirhobtm>
  254. <item>
  255. <name>개별 문서마감</name>
  256. <func>fIndDocuEnd</func>
  257. </item>
  258. <item>
  259. <name>전체 선택</name>
  260. <func>fSelectAll</func>
  261. </item>
  262. <item>
  263. <name>전체 선택 해제</name>
  264. <func>fDeSelectAll</func>
  265. </item>
  266. </gridpirhobtm>
  267. <gridadjtord>
  268. <item>
  269. <name>삭감처방 의사전송</name>
  270. <func>fGridCutOrdRgst</func>
  271. </item>
  272. <item>
  273. <name>부제기사유</name>
  274. <func>fGridAbdResnCdRgst</func>
  275. </item>
  276. </gridadjtord>
  277. </popupmenu>
  278. </popupdata>
  279. <init>
  280. <P0287list>
  281. <P0287>
  282. <cdid/>
  283. <cdnm/>
  284. </P0287>
  285. </P0287list>
  286. <P0264list>
  287. <P0264>
  288. <cdid/>
  289. <cdnm/>
  290. </P0264>
  291. </P0264list>
  292. <P0277list>
  293. <P0277>
  294. <cdid/>
  295. <cdnm/>
  296. </P0277>
  297. </P0277list>
  298. <P0250list>
  299. <P0250>
  300. <cdid/>
  301. <cdnm/>
  302. </P0250>
  303. </P0250list>
  304. <P0265list>
  305. <P0265>
  306. <cdid/>
  307. <cdnm/>
  308. </P0265>
  309. </P0265list>
  310. </init>
  311. <hidden>
  312. <obtmlist>
  313. <claminfo>
  314. <clamno/>
  315. </claminfo>
  316. </obtmlist>
  317. <adjtresndesc/>
  318. <abdresnmemo/>
  319. <abdresncd_all/>
  320. <abdresnmemo_all/>
  321. <totadjtamt/>
  322. <totobtappamt/>
  323. <smaer00800>
  324. <cond>
  325. <srchdata1/>
  326. <srchdata2/>
  327. <srchpid/>
  328. <wardcd/>
  329. <roomcd/>
  330. <listflag/>
  331. <deptcd/>
  332. <drid/>
  333. <chkcheck/>
  334. <chkcheck1/>
  335. <chkcheck2/>
  336. <chkcheck3/>
  337. <chkcheck4/>
  338. <chkcheck5/>
  339. <chkcheck6/>
  340. <chkcheck7/>
  341. <chkcheck8/>
  342. <tabflag/>
  343. <mdlcd/>
  344. <examgubun/>
  345. <srchflag/>
  346. </cond>
  347. </smaer00800>
  348. <smpid20300>
  349. <cond>
  350. <!-- "이전 명세서 목록" Grid에서 선택한 명세서의 청구키를 SMPID20300_입원사후심사관리 에 전달하기 위한 조건 값 -->
  351. <clamym/>
  352. <clamdg/>
  353. <pid/>
  354. <pidsn/>
  355. <ioflag/>
  356. <workflag/>
  357. </cond>
  358. </smpid20300>
  359. <smpid20500>
  360. <cond>
  361. <!-- "이전 명세서 목록" Grid에서 선택한 명세서의 청구키를 SMPID20500_외래사후심사관리 에 전달하기 위한 조건 값 -->
  362. <clamym/>
  363. <clamdg/>
  364. <pid/>
  365. <pidsn/>
  366. <ioflag/>
  367. <workflag/>
  368. </cond>
  369. </smpid20500>
  370. <sppiz00700>
  371. <cond>
  372. <judgrid/>
  373. <memoflag/>
  374. <memocls/>
  375. <ediitem1/>
  376. </cond>
  377. <rslt>
  378. <memocd/>
  379. <memo/>
  380. </rslt>
  381. </sppiz00700>
  382. <enddata>
  383. <endinfo>
  384. <notidd/>
  385. <obtappdd/>
  386. <obtappdocuno/>
  387. </endinfo>
  388. <docuendlist>
  389. <judgdg/>
  390. <clamno/>
  391. <acptno/>
  392. <docuseqno/>
  393. <obtappflag/>
  394. <notidd/>
  395. <obtappdd/>
  396. <obtappdocuno/>
  397. <status/>
  398. <endflag/>
  399. <obtappendflag/>
  400. </docuendlist>
  401. </enddata>
  402. <tmp>
  403. <row/>
  404. <scroll/>
  405. <saveyn/>
  406. </tmp>
  407. <smpie03000>
  408. <cond>
  409. <flag/>
  410. <fromdd/>
  411. <todd/>
  412. <ioflag/>
  413. <calcjudgdg/>
  414. <noflag/>
  415. <no/>
  416. <clamflag/>
  417. <relbase/>
  418. <formflag/>
  419. <judgrid/>
  420. <orddeptcd/>
  421. <endyn/>
  422. </cond>
  423. </smpie03000>
  424. </hidden>
  425. <source_CutOrdRgst/>
  426. <source_AbdResnCdRgst>
  427. <status/>
  428. <judgdg/>
  429. <clamno/>
  430. <acptno/>
  431. <docuseqno/>
  432. <obtappflag/>
  433. <mpsno/>
  434. <lnno/>
  435. <adjtresncd/>
  436. <abdresncd/>
  437. <abdresnmemo/>
  438. </source_AbdResnCdRgst>
  439. <source>
  440. <judgdg/>
  441. <clamno/>
  442. <acptno/>
  443. <docuseqno/>
  444. <mpsno/>
  445. <lnno/>
  446. <adjtresn/>
  447. <workflag/>
  448. <judgrid/>
  449. </source>
  450. <source_result>
  451. <termflag1/>
  452. <termflag2/>
  453. <fromobtappdd/>
  454. <toobtappdd/>
  455. <from_ordym/>
  456. <to_ordym/>
  457. <insukind/>
  458. <chosflag/>
  459. <clamflag/>
  460. <judgdg/>
  461. <ordfildcd/>
  462. <acptno/>
  463. <obtappflag/>
  464. <obtappdocuno/>
  465. <decidocuno/>
  466. <rejudgflag/>
  467. <obtapprsltendflag/>
  468. <obtappamt/>
  469. <cuttotamt/>
  470. <recogamt/>
  471. </source_result>
  472. <searchinfo>
  473. <orddeptcd/>
  474. <orddrid/>
  475. <judgrid/>
  476. </searchinfo>
  477. <init2>
  478. <abdresnlist>
  479. <abdmlist>
  480. <nm/>
  481. <cd/>
  482. </abdmlist>
  483. </abdresnlist>
  484. </init2>
  485. <send_rejudgrgst>
  486. <status/>
  487. <judgdg/>
  488. <clamno/>
  489. <acptno/>
  490. <docuseqno/>
  491. <obtappflag/>
  492. </send_rejudgrgst>
  493. <temp>
  494. <obtappdocuno/>
  495. <rejudg/>
  496. </temp>
  497. </root>
  498. </instance>
  499. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  500. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  501. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  502. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  503. <script type="javascript" src="../../../pam/insucomweb/js/PAM.js"/>
  504. <submission id="TRPIR30400" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_obtmlist" resultref="/root/main/obtmlist"/>
  505. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  506. <submission id="TRPIR30401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_patinfo" resultref="/root/main/patinfodata"/>
  507. <submission id="TXPIR30401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main"/>
  508. <submission id="TRPIR30402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_clamno" resultref="/root/hidden/obtmlist"/>
  509. <submission id="TXPIR30402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_remdata"/>
  510. <submission id="TXPIR30300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_rejudgrgst"/>
  511. <submission id="TRPIR30403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init2/abdresnlist"/>
  512. <submission id="TXPIR30403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main"/>
  513. <submission id="TXPIR30301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_rejudgrgst"/>
  514. <submission id="TRPIR30301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_obtmlist" resultref="/root/init/list1"/>
  515. <submission id="TXPIR30422" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata/datalist"/>
  516. </model>
  517. <script type="javascript" ev:event="xforms-ready">
  518. <![CDATA[
  519. // 1. 공통코드 초기화
  520. CommCode_Load();
  521. // 2. 다른화면에서 팝업으로 이 화면을 열었을때 넘어온 파라미터로 대상목록을 조회한다.
  522. // 조회필수 항목인 심사차수, 접수번호로 CHECK한다.
  523. if (model.getValue("/root/send/send_obtmlist/judgdg") != '' && model.getValue("/root/send/send_obtmlist/acptno") != '' ) {
  524. fGetJudgdg("1");
  525. model.setValue("/root/send/send_obtmlist/judgrid", "");
  526. submit("TRPIR30400");
  527. var obtappflag = model.getValue("/root/main/obtmlist/gridpirhobtm/obtappflag");
  528. if (obtappflag == "22") {
  529. checkbox2.attribute("visibility") = "visible";
  530. chk_attdocu.attribute("visibility") = "hidden";
  531. } else {
  532. checkbox2.attribute("visibility") = "hidden";
  533. chk_attdocu.attribute("visibility") = "visible";
  534. }
  535. }
  536. var judgrid = model.getValue("/root/send/send_obtmlist/judgrid2");
  537. model.setValue("/root/searchinfo/orddeptcd","A");
  538. model.setValue("/root/searchinfo/orddrid","A");
  539. model.setValue("/root/searchinfo/judgrid", (judgrid.length > 2 ? judgrid : "A"));
  540. // 3. 화면 초기화
  541. finitialize();
  542. if (grd_pirhobtm.rows > grd_pirhobtm.fixedrows) {
  543. var rowno = model.getValue("/root/hidden/tmp/row");
  544. button2.dispatch("onclick");
  545. }
  546. ]]>
  547. </script>
  548. <script type="javascript">
  549. <![CDATA[
  550. // 공통코드 Load작업
  551. function CommCode_Load() {
  552. // 관련 Control 초기화
  553. zbcfGetCodeList(new Array("P0287","P0264","P0277","P0250","P0265"), new Array("/root/init/P0287list", "/root/init/P0264list","/root/init/P0277list", "/root/init/P0250list", "/root/init/P0265list"));
  554. //부제기코드 초기화
  555. submit("TRPIR30403");
  556. // 삭감사유 형태 '[코드] 설명' 으로 구성
  557. var nodeList = instance1.selectNodes("/root/init/P0250list/P0250");
  558. var length = nodeList.length;
  559. for(var i = 1; i <= length; i++){
  560. var cdid = model.getValue("/root/init/P0250list/P0250["+ i +"]/cdid");
  561. var cdnm = "[" + cdid + "]" + model.getValue("/root/init/P0250list/P0250["+ i +"]/cdnm");
  562. if (cdid != "") model.setValue("/root/init/P0250list/P0250["+ i +"]/cdnm", cdnm);
  563. }
  564. model.refresh();
  565. }
  566. // 저장 데이터 검사
  567. function fCheckData() {
  568. // 1. 삭감처방 데이터 검사
  569. var row = grd_adjtord.rows;
  570. var obtappamtyn = 0;
  571. for (var i = 2; i < row; i++) {
  572. // if (grd_adjtord.rowStatus(i) == 2) {
  573. var obtappyn = grd_adjtord.valueMatrix(i,grd_adjtord.colRef("obtappyn")); // 이의신청여부
  574. var obtappamt = Number(grd_adjtord.valueMatrix(i,grd_adjtord.colRef("obtappamt"))); // 이의신청금액
  575. var abdresncd = grd_adjtord.valueMatrix(i,grd_adjtord.colRef("abdresncd")); // 부제기사유코드
  576. var abdresnmemo = grd_adjtord.valueMatrix(i,grd_adjtord.colRef("abdresnmemo")); // 부제기사유설명
  577. var attdocu = model.getValue("/root/main/patinfodata/gridpatinfo/attdocu");
  578. var obtapprem = model.getValue("/root/main/patinfodata/gridpatinfo/obtapprem");
  579. var obtappflag = model.getValue("/root/main/obtmlist/gridpirhobtm/obtappflag");
  580. var attdocu = model.getValue("/root/main/patinfodata/gridpatinfo/attdocu");
  581. // 이의신청이 체크되어 있으면
  582. if (obtappyn == "true") {
  583. if (obtappamt == 0 && obtappamtyn != 6) {
  584. obtappamtyn = messageBox("이의신청금액이 0원입니다. 계속 진행", "S001")
  585. if (obtappamtyn != 6) return false;
  586. }
  587. if (abdresncd != "-" || (abdresnmemo != "-" && abdresnmemo != "")) {
  588. messageBox("이의신청시 부제기사유는 입력", "E001");
  589. return false;
  590. }
  591. if (obtapprem.length < 2 || (attdocu == "" || attdocu == "-") && obtappflag != "22" ) {
  592. messageBox("이의신청하려면 이의신청사유나 첨부문서는", "I003");
  593. return false;
  594. }
  595. // 이의신청이 해제되어 있으면
  596. } else {
  597. if (obtappamt != 0) {
  598. messageBox("이의신청을 하지 않는 삭감처방의 이신금액은 0원", "E008");
  599. return false;
  600. }
  601. if (abdresncd == "T" && (abdresnmemo == "-" || abdresnmemo == "")) {
  602. messageBox("부제기사유시 부제기사유설명을 ", "C001");
  603. return false;
  604. }
  605. }
  606. //}
  607. }
  608. return true;
  609. }
  610. // 이의신청 자동 선택
  611. function fObtappynAutoCheck(chkgb) {
  612. var obtappyn = "";
  613. var abdresncd = "-";
  614. for (i=grd_adjtord.fixedRows; i < grd_adjtord.rows; i++) {
  615. //자동선택값 설정
  616. obtappyn = grd_adjtord.valueMatrix(i,grd_adjtord.colRef("obtappyn"));
  617. abdresncd = grd_adjtord.valueMatrix(i,grd_adjtord.colRef("abdresncd"));
  618. if (chkgb == "true" && obtappyn == "false" && abdresncd == "-" ) {
  619. grd_adjtord.valueMatrix(i,grd_adjtord.colRef("obtappyn")) = chkgb;
  620. //계산로직
  621. fObtappynCheck(i);
  622. } else if (chkgb == "false" && grd_adjtord.rowStatus(i) == 2) {
  623. grd_adjtord.valueMatrix(i,grd_adjtord.colRef("obtappyn")) = chkgb;
  624. //계산로직
  625. fObtappynCheck(i);
  626. }
  627. }
  628. }
  629. // 이의신청 계산로직
  630. function fObtappynCheck(curr_row) {
  631. var obtappyn = "false";
  632. var abdresncd = "";
  633. var oldobtappyn = "";
  634. obtappyn = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappyn"));
  635. abdresncd = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("abdresncd"));
  636. oldobtappyn = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("oldobtappyn"));
  637. //정산의뢰 및 자격정산의뢰 구분일 경우 계산로직 제외
  638. var obtappflag = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappflag"));
  639. //if(obtappflag != "10" && obtappflag != "11"){
  640. // 신청을 체크한 경우
  641. if (obtappyn == "true") {
  642. if (abdresncd != "-") {
  643. messageBox("부제기 처방은 삭제전 이의신청", "E001");
  644. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappyn")) = "false";
  645. grd_adjtord.rowstatus(curr_row) = 0;
  646. } else {
  647. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtapponeqty")) = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("adjtoneqty"));
  648. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappdayqty")) = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("adjtdayqty"));
  649. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtapptotqty")) = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("adjttotqty"));
  650. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappamt")) = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("adjtamt"));
  651. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("abdresncd")) = "-";
  652. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("abdresnmemo")) = "-";
  653. //grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "appinfo";
  654. grd_adjtord.rowstatus(curr_row) = 2;
  655. }
  656. // 신청을 해제한 경우
  657. } else if (obtappyn == "false") {
  658. if (oldobtappyn == "true") {
  659. messageBox("이미 이의신청된 삭감처방의 신청해지는 삭제", "E012");
  660. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappyn")) = "true";
  661. grd_adjtord.rowstatus(curr_row) = 0;
  662. } else {
  663. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtapponeqty")) = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("oldobtapponeqty"));
  664. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappdayqty")) = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("oldobtappdayqty"));
  665. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtapptotqty")) = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("oldobtapptotqty"));
  666. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappamt")) = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("oldobtappamt"));
  667. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("detladjtflag")) = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("olddetladjtflag"));
  668. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("adjtresndesc")) = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("oldadjtresndesc"));
  669. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("displayyn")) = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("olddisplayyn"));
  670. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("abdresncd")) = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("oldabdresncd"));
  671. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("abdresnmemo")) = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("oldabdresnmemo"));
  672. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "";
  673. grd_adjtord.rowstatus(curr_row) = 0;
  674. }
  675. }
  676. //}
  677. }
  678. // 초기화
  679. function finitialize() {
  680. // form load시에 Default 이신구분을 전체를 선택한다.
  681. //rdo_obtappflag.select(0);
  682. model.makeValue("/root/send/send_obtmlist/rejudgflag", "1");
  683. // 심사분류(의학적심사) 기본 세팅
  684. //rdo_judgflag.select(1);
  685. model.makeValue("/root/main/patinfodata/gridpatinfo/judgcls","2");
  686. }
  687. // 재심사저장(취소), 저장, 삭제 버튼 활성화 여부
  688. function fInitControl() {
  689. // 이의신청 청구서 마감상태가 최종마감(S)이면 비활성화
  690. if (model.getValue("/root/send/send_end/obtappendflag") == "S" || model.getValue("/root/send/send_end/obtappendflag") == "Y") {
  691. btn_rejudg.disabled = true;
  692. btn_save.disabled = true;
  693. btn_delete.disabled = true;
  694. rdo_judgflag.disabled = true;
  695. grd_adjtord.colDisabled(grd_adjtord.colRef("obtappyn")) = true;
  696. grd_adjtord.colDisabled(grd_adjtord.colRef("obtapponeqty")) = true;
  697. grd_adjtord.colDisabled(grd_adjtord.colRef("obtappdayqty")) = true;
  698. grd_adjtord.colDisabled(grd_adjtord.colRef("obtapptotqty")) = true;
  699. grd_adjtord.colDisabled(grd_adjtord.colRef("obtappamt")) = true;
  700. grd_adjtord.colDisabled(grd_adjtord.colRef("abdresncd")) = true;
  701. grd_adjtord.colDisabled(grd_adjtord.colRef("abdresnmemo")) = true;
  702. grd_adjtord.colDisabled(grd_adjtord.colRef("detladjtflag")) = true;
  703. grd_adjtord.colDisabled(grd_adjtord.colRef("adjtresndesc")) = true;
  704. grd_adjtord.colDisabled(grd_adjtord.colRef("displayyn")) = true;
  705. } else {
  706. btn_rejudg.disabled = false;
  707. btn_save.disabled = false;
  708. btn_delete.disabled = false;
  709. rdo_judgflag.disabled = false;
  710. grd_adjtord.colDisabled(grd_adjtord.colRef("obtappyn")) = false;
  711. grd_adjtord.colDisabled(grd_adjtord.colRef("obtapponeqty")) = false;
  712. grd_adjtord.colDisabled(grd_adjtord.colRef("obtappdayqty")) = false;
  713. grd_adjtord.colDisabled(grd_adjtord.colRef("obtapptotqty")) = false;
  714. grd_adjtord.colDisabled(grd_adjtord.colRef("obtappamt")) = false;
  715. grd_adjtord.colDisabled(grd_adjtord.colRef("abdresncd")) = false;
  716. grd_adjtord.colDisabled(grd_adjtord.colRef("abdresnmemo")) = false;
  717. grd_adjtord.colDisabled(grd_adjtord.colRef("detladjtflag")) = false;
  718. grd_adjtord.colDisabled(grd_adjtord.colRef("adjtresndesc")) = false;
  719. grd_adjtord.colDisabled(grd_adjtord.colRef("displayyn")) = false;
  720. }
  721. //마감일자 초과된 이의신청내역 재심사저장 버튼 비활성화
  722. if(model.getValue("/root/main/obtmlist/acptinfo/restterm") < 0 && model.getValue("/root/temp/rejudg") != "재심사취소"){
  723. btn_rejudg.disabled = true;
  724. }else if(model.getValue("/root/main/obtmlist/acptinfo/restterm") >= 0){
  725. btn_rejudg.disabled = false;
  726. }
  727. model.refresh();
  728. }
  729. function fDisplayObtappdocuno() {
  730. //opt_obtappdocuno.value = "";
  731. model.setValue("/root/temp/obtappdocuno", "");
  732. var curr_row = grd_pirhobtm.row;
  733. var obtappdocuno = grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("obtappdocuno"));
  734. //opt_obtappdocuno.value = obtappdocuno;
  735. model.setValue("/root/temp/obtappdocuno", obtappdocuno);
  736. }
  737. // 명세서에 대한 내역 조회
  738. function fObtappSerch() {
  739. var rtn = null;
  740. if (grd_pirhobtm.row >= grd_pirhobtm.fixedRows ) {
  741. var row = grd_pirhobtm.selectedRow(0);
  742. var t1= grd_pirhobtm.textmatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("judgdg"));
  743. var t2= grd_pirhobtm.textmatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("clamno"));
  744. var t3= grd_pirhobtm.textmatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("acptno"));
  745. var t4= grd_pirhobtm.textmatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("docuseqno"));
  746. var t5= grd_pirhobtm.textmatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("obtappflag"));
  747. var t6= grd_pirhobtm.textmatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("instcd"));
  748. var t7= grd_pirhobtm.textmatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("notidd"));
  749. var t8= grd_pirhobtm.textmatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("obtappendflag")); // 이의신청마감구분
  750. var t9= grd_pirhobtm.textmatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("obtappdocuno"));
  751. var t10= grd_pirhobtm.textmatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("obtappdd"));
  752. model.setValue( "instance('instance1')/send/send_patinfo/judgdg", t1 );
  753. model.setValue( "instance('instance1')/send/send_patinfo/clamno", t2 );
  754. model.setValue( "instance('instance1')/send/send_patinfo/acptno", t3 );
  755. model.setValue( "instance('instance1')/send/send_patinfo/docuseqno", t4 );
  756. model.setValue( "instance('instance1')/send/send_patinfo/obtappflag", t5 );
  757. model.setValue( "instance('instance1')/send/send_patinfo/instcd", t6 );
  758. // 문서마감 위한 Copy
  759. model.setValue( "instance('instance1')/send/send_end/status", "update" );
  760. model.setValue( "instance('instance1')/send/send_end/judgdg", t1 );
  761. model.setValue( "instance('instance1')/send/send_end/clamno", t2 );
  762. model.setValue( "instance('instance1')/send/send_end/acptno", t3 );
  763. model.setValue( "instance('instance1')/send/send_end/obtappflag", t5 );
  764. model.setValue( "instance('instance1')/send/send_end/notidd", t7 );
  765. model.setValue( "instance('instance1')/send/send_end/obtappdd", t10 );
  766. model.setValue( "instance('instance1')/send/send_end/obtappdocuno", t9.replace("가의강", "보험") );
  767. model.setValue( "instance('instance1')/send/send_end/endflag", "" );
  768. model.setValue( "instance('instance1')/send/send_end/obtappendflag", t8 );
  769. if (grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("obtappflag")) == "03") {
  770. //btn_rejudg.value = "재심사취소";
  771. model.setValue("/root/temp/rejudg","재심사취소");
  772. } else {
  773. //btn_rejudg.value = "재심사저장";
  774. model.setValue("/root/temp/rejudg","재심사저장");
  775. }
  776. // 특정 명일련의 이의신청정보를 조회한다.
  777. submit("TRPIR30401");
  778. // 명일련별 삭감액, 이의신청액 SUM을 보여준다.
  779. fSubtotal();
  780. }
  781. }
  782. // 삭감처방 의사전송
  783. function fGridCutOrdRgst() {
  784. /*
  785. var curr_row = grd_adjtord.row - 1;
  786. model.setValue("/root/source/judgdg", model.getValue("/root/main/patinfodata/gridadjtord[" + curr_row + "]/judgdg"));
  787. model.setValue("/root/source/clamno", model.getValue("/root/main/patinfodata/gridadjtord[" + curr_row + "]/clamno"));
  788. model.setValue("/root/source/acptno", model.getValue("/root/main/patinfodata/gridadjtord[" + curr_row + "]/acptno"));
  789. model.setValue("/root/source/docuseqno", model.getValue("/root/main/patinfodata/gridadjtord[" + curr_row + "]/docuseqno"));
  790. // 이의신청구분
  791. model.setValue("/root/source/mpsno", model.getValue("/root/main/patinfodata/gridadjtord[" + curr_row + "]/mpsno"));
  792. model.setValue("/root/source/lnno", model.getValue("/root/main/patinfodata/gridadjtord[" + curr_row + "]/lnno"));
  793. model.setValue("/root/source/adjtresn", model.getValue("/root/main/patinfodata/gridadjtord[" + curr_row + "]/adjtresncd"));
  794. model.setValue("/root/source/workflag", "obtapprgst");
  795. modal("SPPIR30320", 1, "", "", "SPPIR30320", "/root/source", "/root/send/send_adjtord");
  796. */
  797. /*
  798. if (grd_adjtord.disabled) return;
  799. var selectCnt = grd_adjtord.selectedRows
  800. var grd_nodeSet = grd_adjtord.nodeset;
  801. var destNode = instance1.selectSingleNode("/root/source_CutOrdRgst");
  802. var srcNode;
  803. for (var i = 0; i < selectCnt; i++ ) {
  804. srcNode = instance1.selectSingleNode(grd_nodeSet + "[" + (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) + "]");
  805. model.duplicate(destNode, srcNode);
  806. }
  807. */
  808. if (grd_adjtord.disabled) return;
  809. model.removeNodeset("/root/tmp/gridpirhobtspec");
  810. model.removeNodeset("/root/source_CutOrdRgst/gridpirhobtspec");
  811. //model.makeNode("/root/source_CutOrdRgst/gridpirhobtspec");
  812. model.makeNode("/root/tmp/gridpirhobtspec/judgdg");
  813. model.makeNode("/root/tmp/gridpirhobtspec/acptno");
  814. model.makeNode("/root/tmp/gridpirhobtspec/docuseqno");
  815. model.makeNode("/root/tmp/gridpirhobtspec/snglcalcscorcd");
  816. model.makeNode("/root/tmp/gridpirhobtspec/edicd");
  817. model.makeNode("/root/tmp/gridpirhobtspec/hngnm");
  818. model.makeNode("/root/tmp/gridpirhobtspec/orddeptcd");
  819. model.makeNode("/root/tmp/gridpirhobtspec/orddrid");
  820. model.makeNode("/root/tmp/gridpirhobtspec/pid");
  821. model.makeNode("/root/tmp/gridpirhobtspec/patnm");
  822. model.makeNode("/root/tmp/gridpirhobtspec/maindiag");
  823. model.makeNode("/root/tmp/gridpirhobtspec/dschdd");
  824. model.makeNode("/root/tmp/gridpirhobtspec/judgrid");
  825. model.makeNode("/root/tmp/gridpirhobtspec/lnno");
  826. model.makeNode("/root/tmp/gridpirhobtspec/item");
  827. model.makeNode("/root/tmp/gridpirhobtspec/adjtresncd");
  828. model.makeNode("/root/tmp/gridpirhobtspec/matractflag");
  829. model.makeNode("/root/tmp/gridpirhobtspec/unitcost");
  830. model.makeNode("/root/tmp/gridpirhobtspec/adjtdayqty");
  831. model.makeNode("/root/tmp/gridpirhobtspec/adjttotqty");
  832. model.makeNode("/root/tmp/gridpirhobtspec/adjtamt");
  833. model.makeNode("/root/tmp/gridpirhobtspec/oprcpadjtamt");
  834. model.makeNode("/root/tmp/gridpirhobtspec/obtappdayqty");
  835. model.makeNode("/root/tmp/gridpirhobtspec/obtapptotqty");
  836. model.makeNode("/root/tmp/gridpirhobtspec/obtappamt");
  837. model.makeNode("/root/tmp/gridpirhobtspec/oprcpobtappamt");
  838. model.makeNode("/root/tmp/gridpirhobtspec/detladjtflag");
  839. model.makeNode("/root/tmp/gridpirhobtspec/adjtresndesc");
  840. model.makeNode("/root/tmp/gridpirhobtspec/ordmemo");
  841. model.makeNode("/root/tmp/gridpirhobtspec/rem");
  842. model.makeNode("/root/tmp/gridpirhobtspec/abdresncd");
  843. model.makeNode("/root/tmp/gridpirhobtspec/abdresnmemo");
  844. model.makeNode("/root/tmp/gridpirhobtspec/itemnm");
  845. model.makeNode("/root/tmp/gridpirhobtspec/obtappflag");
  846. model.makeNode("/root/tmp/gridpirhobtspec/clamno");
  847. model.makeNode("/root/tmp/gridpirhobtspec/mpsno");
  848. model.makeNode("/root/tmp/gridpirhobtspec/displayyn");
  849. model.makeNode("/root/tmp/gridpirhobtspec/clamym");
  850. model.makeNode("/root/tmp/gridpirhobtspec/ordym");
  851. model.makeNode("/root/tmp/gridpirhobtspec/clamdg");
  852. model.makeNode("/root/tmp/gridpirhobtspec/edicdflag");
  853. model.makeNode("/root/tmp/gridpirhobtspec/adjtsumqty");
  854. var selectCnt = 0;
  855. selectCnt = grd_adjtord.selectedRows;
  856. var grd_nodeSet = grd_adjtord.nodeset;
  857. var destNode = instance1.selectSingleNode("/root/source_CutOrdRgst");
  858. var srcNode;
  859. var icnt = 0;
  860. for( var i = 0; i < selectCnt; i++ ){
  861. model.setValue("/root/tmp/gridpirhobtspec/judgdg",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/judgdg"));
  862. model.setValue("/root/tmp/gridpirhobtspec/acptno",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/acptno"));
  863. model.setValue("/root/tmp/gridpirhobtspec/docuseqno",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/docuseqno"));
  864. model.setValue("/root/tmp/gridpirhobtspec/snglcalcscorcd",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/calcscorcd"));
  865. model.setValue("/root/tmp/gridpirhobtspec/edicd",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/edicd"));
  866. model.setValue("/root/tmp/gridpirhobtspec/hngnm",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/hngnm"));
  867. model.setValue("/root/tmp/gridpirhobtspec/orddeptcd",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/orddeptcd"));
  868. model.setValue("/root/tmp/gridpirhobtspec/orddrid",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/orddrid"));
  869. model.setValue("/root/tmp/gridpirhobtspec/pid",model.getValue("/root/main/patinfodata/gridpatinfo/pid"));
  870. model.setValue("/root/tmp/gridpirhobtspec/patnm",model.getValue("/root/main/patinfodata/gridpatinfo/patnm"));
  871. model.setValue("/root/tmp/gridpirhobtspec/maindiag",model.getValue("/root/main/patinfodata/griddiaginfo[" + 0 + "]/diagcd"));
  872. //model.setValue("/root/tmp/gridpirhobtspec/dschdd","");
  873. model.setValue("/root/tmp/gridpirhobtspec/judgrid",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/judgrid"));
  874. model.setValue("/root/tmp/gridpirhobtspec/lnno",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/lnno"));
  875. model.setValue("/root/tmp/gridpirhobtspec/item",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/item"));
  876. model.setValue("/root/tmp/gridpirhobtspec/adjtresncd",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/adjtresncd"));
  877. //model.setValue("/root/tmp/gridpirhobtspec/matractflag","");
  878. model.setValue("/root/tmp/gridpirhobtspec/unitcost",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/unitcost"));
  879. model.setValue("/root/tmp/gridpirhobtspec/adjtdayqty",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/adjtdayqty"));
  880. model.setValue("/root/tmp/gridpirhobtspec/adjttotqty",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/adjttotqty"));
  881. model.setValue("/root/tmp/gridpirhobtspec/adjtamt",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/adjtamt"));
  882. //model.setValue("/root/tmp/gridpirhobtspec/oprcpadjtamt","");
  883. //model.setValue("/root/tmp/gridpirhobtspec/obtappdayqty","");
  884. model.setValue("/root/tmp/gridpirhobtspec/obtapptotqty",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/obtapptotqty"));
  885. model.setValue("/root/tmp/gridpirhobtspec/obtappamt",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/obtappamt"));
  886. //model.setValue("/root/tmp/gridpirhobtspec/oprcpobtappamt","");
  887. model.setValue("/root/tmp/gridpirhobtspec/detladjtflag",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/detladjtflag"));
  888. model.setValue("/root/tmp/gridpirhobtspec/adjtresndesc",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/adjtresndesc"));
  889. //model.setValue("/root/tmp/gridpirhobtspec/ordmemo","");
  890. //model.setValue("/root/tmp/gridpirhobtspec/rem","");
  891. model.setValue("/root/tmp/gridpirhobtspec/abdresncd",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/abdresncd"));
  892. model.setValue("/root/tmp/gridpirhobtspec/abdresnmemo",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/abdresnmemo"));
  893. //model.setValue("/root/tmp/gridpirhobtspec/itemnm","");
  894. model.setValue("/root/tmp/gridpirhobtspec/obtappflag",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/obtappflag"));
  895. model.setValue("/root/tmp/gridpirhobtspec/clamno",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/clamno"));
  896. model.setValue("/root/tmp/gridpirhobtspec/mpsno",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/mpsno"));
  897. model.setValue("/root/tmp/gridpirhobtspec/displayyn",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/displayyn"));
  898. model.setValue("/root/tmp/gridpirhobtspec/clamym",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/clamym"));
  899. model.setValue("/root/tmp/gridpirhobtspec/ordym",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/ordym"));
  900. model.setValue("/root/tmp/gridpirhobtspec/clamdg",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/clamdg"));
  901. model.setValue("/root/tmp/gridpirhobtspec/edicdflag",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/edicdflag"));
  902. model.setValue("/root/tmp/gridpirhobtspec/adjtsumqty",model.getValue("/root/main/patinfodata/gridadjtord["+ (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) +"]/adjttotqty"));
  903. model.duplicate(destNode, "/root/tmp/gridpirhobtspec");
  904. }
  905. window.load("../../../pam/edimngtweb/xrw/SPPIR30310_의사삭감전달처방등록관리.xrw", "modeless", "pop", "", "/root/source_CutOrdRgst", "/root/main/cuodlist");
  906. }
  907. // 부제기사유
  908. function fGridAbdResnCdRgst() {
  909. /*
  910. var curr_row = grd_adjtord.row - 1;
  911. var status = "update";
  912. model.setValue("/root/source_AbdResnCdRgst/status", status);
  913. model.setValue("/root/source_AbdResnCdRgst/judgdg", model.getValue("/root/main/patinofodata/gridadjtord[" + curr_row + "]/judgdg"));
  914. model.setValue("/root/source_AbdResnCdRgst/clamno", model.getValue("/root/main/patinofodata/gridadjtord[" + curr_row + "]/clamno"));
  915. model.setValue("/root/source_AbdResnCdRgst/acptno", model.getValue("/root/main/patinofodata/gridadjtord[" + curr_row + "]/acptno"));
  916. model.setValue("/root/source_AbdResnCdRgst/docuseqno", model.getValue("/root/main/patinofodata/gridadjtord[" + curr_row + "]/docuseqno"));
  917. model.setValue("/root/source_AbdResnCdRgst/obtappflag", model.getValue("/root/main/patinofodata/gridadjtord[" + curr_row + "]/obtappflag"));
  918. model.setValue("/root/source_AbdResnCdRgst/mpsno", model.getValue("/root/main/patinofodata/gridadjtord[" + curr_row + "]/mpsno"));
  919. model.setValue("/root/source_AbdResnCdRgst/lnno", model.getValue("/root/main/patinofodata/gridadjtord[" + curr_row + "]/lnno"));
  920. model.setValue("/root/source_AbdResnCdRgst/adjtresncd", model.getValue("/root/main/patinofodata/gridadjtord[" + curr_row + "]/adjtresncd"));
  921. model.setValue("/root/source_AbdResnCdRgst/instcd", model.getValue("/root/main/patinofodata/gridadjtord[" + curr_row + "]/instcd"));
  922. model.setValue("/root/source_AbdResnCdRgst/abdresncd", "");
  923. */
  924. if (grd_adjtord.disabled) return;
  925. grp_abdresnmemo_all.visible = true;
  926. }
  927. function fGetJudgdg(flag) {
  928. var acptno = model.getValue("/root/send/send_obtmlist/acptno");
  929. if (acptno != "") {
  930. // 1. 심사차수를 초기화한다.
  931. model.removenode("/root/init/list1");
  932. model.makeNode("/root/init/list1");
  933. // 2. 접수번호에 해당되는 심사차수를 조회한다.
  934. submit("TRPIR30301");
  935. if (flag == "1") {
  936. return;
  937. }
  938. // 3. 첫번째 심사차수를 선택한다.
  939. var nodelist = instance1.selectNodes("/root/init/list1/judg");
  940. if (nodelist.length > 0) {
  941. //ipt_judgdg.select(0);
  942. model.setValue("/root/send/send_obtmlist/judgdg","/root/send/send_obtmlist[0]/judgdg");
  943. }
  944. } else {
  945. model.removenode("/root/init/list1");
  946. model.makeNode("/root/init/list1");
  947. model.setValue("/root/send/send_obtmlist/judgdg", "");
  948. ipt_judgdg.refresh();
  949. }
  950. }
  951. function fSubtotal() {
  952. var totadjtamt = 0;
  953. var totobtappamt = 0;
  954. var row = grd_adjtord.rows;
  955. for (var i = 2; i < row; i++) {
  956. var adjtamt = Number(grd_adjtord.valueMatrix(i,grd_adjtord.colRef("adjtamt"))); // 삭감액
  957. var obtappamt = Number(grd_adjtord.valueMatrix(i,grd_adjtord.colRef("obtappamt"))); // 이의신청금액
  958. totadjtamt += adjtamt;
  959. totobtappamt += obtappamt;
  960. //이의신청 처방그리드이 사유콤보 풍선도움말을 라벨료 표시하기위해/root/main/patinfodata/gridadjtord
  961. grd_adjtord.tooltipText(i, grd_adjtord.colRef("abdresncd")) = model.getValue("/root/init2/abdresnlist/abdmlist[cd='" + grd_adjtord.valueMatrix(i,grd_adjtord.colRef("abdresncd")) + "']/nm");
  962. grd_adjtord.tooltipText(i, grd_adjtord.colRef("detladjtflag")) = model.getValue("/root/init/P0250list/P0250[cdid='" + grd_adjtord.valueMatrix(i,grd_adjtord.colRef("detladjtflag")) + "']/cdnm");
  963. //부제기코드가 있는경우 색갈 지정
  964. if (grd_adjtord.colRef("abdresncd") != "-") {
  965. }
  966. }
  967. model.setValue("/root/hidden/totadjtamt", totadjtamt);
  968. model.setValue("/root/hidden/totobtappamt", totobtappamt);
  969. opt_totadjtamt.refresh();
  970. opt_totobtappamt.refresh();
  971. setRowStyle("grd_adjtord", "4", "Y", "adjtmakeyn");
  972. /*
  973. grd_adjtord.subtotalposition="below";
  974. grd_adjtord.subtotal("sum", -1, grd_adjtord.colRef("adjtamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계", false);
  975. grd_adjtord.subtotal("sum", -1, grd_adjtord.colRef("obtappamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "소계", false);
  976. */
  977. }
  978. // SPPIZ00700_심사Comment조회.xrw 호출(심사자메모,EDI메모)
  979. function fGetJudgEdiComment(memoflag, memocls) {
  980. model.resetInstanceNode("/root/hidden/sppiz00700/rslt");
  981. model.resetInstanceNode("/root/hidden/sppiz00700/cond");
  982. model.setValue("/root/hidden/sppiz00700/cond/memoflag", memoflag);
  983. model.setValue("/root/hidden/sppiz00700/cond/memocls", memocls);
  984. modal("SPPIZ00700" ,"", "10", "10", "SPPIZ00700", "/root/hidden/sppiz00700", "/root/send/sppiz00700", "", "");
  985. }
  986. //심사자 메모 팝업 갱신
  987. function fSetJudgMemoRefresh(){
  988. model.refresh();
  989. var memo = model.getValue("/root/hidden/sppiz00700/rslt/memo");
  990. var tmp = model.getValue("/root/main/item1/iteminfo/judgrmk");
  991. if(tmp){
  992. tmp = tmp + " ";
  993. }
  994. //model.makeNode("/root/main/patinfodata/gridpatinfo/obtapprem");
  995. var bfobtapprem = model.getValue("/root/main/patinfodata/gridpatinfo/obtapprem");
  996. if( bfobtapprem == '-' || bfobtapprem == '' || bfobtapprem == ' '){
  997. //bfTelRsrvRem = telrsrvrem;
  998. }else{
  999. memo = bfobtapprem + " " + memo;
  1000. }
  1001. model.setValue("/root/main/patinfodata/gridpatinfo/obtapprem",tmp + memo);
  1002. //model.refresh(); 최적화 문제로 대체 20080731 박창원
  1003. model.refresh();
  1004. }
  1005. //부제기 신청
  1006. function fSetAbdMemoRefresh(){
  1007. var memo = model.getValue("/root/hidden/sppiz00700/rslt/memo");
  1008. model.setValue("/root/hidden/abdresnmemo",memo);
  1009. model.setValue("/root/hidden/abdresnmemo_all",memo);
  1010. model.refresh();
  1011. }
  1012. //EDI 메모 팝업 갱신
  1013. function fSetEdiMemoRefresh(){
  1014. var memo = model.getValue("/root/hidden/sppiz00700/rslt/memo");
  1015. var tmp = model.getValue("/root/main/item1/iteminfo/edirmk");
  1016. if(tmp){
  1017. tmp = tmp + " ";
  1018. }
  1019. var bfobtapprem = model.getValue("/root/main/patinfodata/gridpatinfo/obtapprem");
  1020. if( bfobtapprem == '-' || bfobtapprem == '' || bfobtapprem == ' '){
  1021. //bfTelRsrvRem = telrsrvrem;
  1022. }else{
  1023. memo = bfobtapprem + " " + memo;
  1024. }
  1025. model.setValue("/root/main/patinfodata/gridpatinfo/obtapprem",tmp + memo);
  1026. //model.refresh(); 최적화 문제로 대체 20080731 박창원
  1027. model.refresh();
  1028. }
  1029. // 개별 문서마감
  1030. function fIndDocuEnd(){
  1031. // 드래그로 선택시 선택된 행들의 선택필드를 Y로 체크한다.
  1032. var rows = grd_pirhobtm.selectedRows;
  1033. var cur_row = 0;
  1034. for (var i = 0; i < rows; i++) {
  1035. cur_row = grd_pirhobtm.selectedRow(i);
  1036. // 완료 여부 체크
  1037. if( grd_pirhobtm.valueMatrix(cur_row, grd_pirhobtm.colRef("endyn")) != "true"){
  1038. messageBox("완료되지 않은 항목이 존재 합니다. 확인 후 다시 시도해 주세요. ","E999");
  1039. return;
  1040. }
  1041. // 마감 여부 체크
  1042. if(grd_pirhobtm.valueMatrix(cur_row, grd_pirhobtm.colRef("closeyn")) == "Y"){
  1043. messageBox("마감된 명세서는 선택", "E001"); // 할 수 없습니다.
  1044. return;
  1045. }
  1046. grd_pirhobtm.valueMatrix(cur_row, grd_pirhobtm.colRef("check")) = "Y";
  1047. }
  1048. grp_memo.visible = true; // 개별마감 박스 보이기
  1049. // 기본정보 셋팅
  1050. model.setValue("/root/hidden/enddata/endinfo/notidd", model.getValue("/root/send/send_end/notidd"));
  1051. model.setValue("/root/hidden/enddata/endinfo/obtappdd", getCurrentDate());
  1052. model.setValue("/root/hidden/enddata/endinfo/obtappdocuno", "보험");
  1053. ipt_notidd.refresh();
  1054. ipt_obtappdd.refresh();
  1055. ipt_docuno.refresh();
  1056. }
  1057. // 전체 선택
  1058. function fSelectAll() {
  1059. var endList = "";
  1060. var closeList = "";
  1061. for (var i = 1; i < grd_pirhobtm.rows; i++) {
  1062. // 완료 여부 체크
  1063. if(grd_pirhobtm.valueMatrix(i, grd_pirhobtm.colRef("endyn")) != "true"){
  1064. endList = endList + grd_pirhobtm.valueMatrix(i, grd_pirhobtm.colRef("docuseqno"))+ " ";
  1065. } else if(grd_pirhobtm.valueMatrix(i, grd_pirhobtm.colRef("closeyn")) == "Y"){ // 마감 여부 체크
  1066. closeList = closeList + grd_pirhobtm.valueMatrix(i, grd_pirhobtm.colRef("docuseqno")) + " ";
  1067. } else { // 그 외에는 체크
  1068. grd_pirhobtm.valueMatrix(i, grd_pirhobtm.colRef("check")) = "Y";
  1069. }
  1070. }
  1071. if (endList != "" || closeList != "") {
  1072. messageBox("선택에서 제외된 건 \nㅁ미완료\n" + endList + "\nㅁ기마감\n" + closeList,"I999");
  1073. }
  1074. }
  1075. // 전체 선택 해제
  1076. function fDeSelectAll() {
  1077. for (var i = 1; i < grd_pirhobtm.rows; i++) {
  1078. grd_pirhobtm.valueMatrix(i, grd_pirhobtm.colRef("check")) = "N";
  1079. }
  1080. }
  1081. function fSetPopupRefresh() {
  1082. var vpid = grd_pirhobtm.valueMatrix(grd_pirhobtm.row, grd_pirhobtm.colRef("pid"));
  1083. var vhngnm = grd_pirhobtm.valueMatrix(grd_pirhobtm.row, grd_pirhobtm.colRef("patnm"));
  1084. var vprcpdd = getCurrentDate();
  1085. var vprcpcd = grd_pirhobtm.valueMatrix(grd_pirhobtm.row, grd_pirhobtm.colRef("prcpcd"));
  1086. var indd = grd_pirhobtm.valueMatrix(grd_pirhobtm.row, grd_pirhobtm.colRef("notidd"));
  1087. var orddeptcd = grd_pirhobtm.valueMatrix(grd_pirhobtm.row, grd_pirhobtm.colRef("orddeptcd"));
  1088. var sChildSMMRI00400 = findChildWindowByScreenID("SMMRI00400");
  1089. if (sChildSMMRI00400 != null) {
  1090. var wndobj = getOpenWindow("SMMRI00400");
  1091. if(wndobj != null)
  1092. {
  1093. setParameter("SMMRI00400_param_pid", vpid);
  1094. // 초기화함수 호출
  1095. wndobj.javascript.fInitalize();
  1096. }
  1097. }
  1098. var sChildSMPPI00700 = findChildWindowByScreenID("SMPPI00700");
  1099. if (sChildSMPPI00700 != null) {
  1100. var wndobj = getOpenWindow("SMPPI00700");
  1101. if(wndobj != null)
  1102. {
  1103. setParameter("pid", vpid);
  1104. setParameter("hngnm", vhngnm);
  1105. setParameter("prcpdd", vprcpdd);
  1106. setParameter("prcpcd", vprcpcd);
  1107. // 초기화함수 호출
  1108. wndobj.javascript.fInitalize();
  1109. }
  1110. }
  1111. var sChildSMAER00800 = findChildWindowByScreenID("SMAER00800");
  1112. if (sChildSMAER00800 != null) {
  1113. var wndobj = getOpenWindow("SMAER00800");
  1114. if(wndobj != null)
  1115. {
  1116. wndobj.javascript.model.makeValue("/root/send/data/singdata/srchdate1", indd);
  1117. wndobj.javascript.model.makeValue("/root/send/data/singdata/srchpid", vpid);
  1118. wndobj.javascript.model.makeValue("/root/send/data/singdata/orddeptcd", orddeptcd);
  1119. wndobj.javascript.model.refresh();
  1120. wndobj.javascript.model.dispatch("xforms-ready");
  1121. }
  1122. }
  1123. }
  1124. ]]>
  1125. </script>
  1126. </xhtml:head>
  1127. <xhtml:body guideline="1,1197;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1128. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1129. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:135px; height:14px; ">이의신청</caption>
  1130. </group>
  1131. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744; ">
  1132. <line id="line8" class="line_2" style="x1:350px; y1:121px; x2:727px; y2:121px; "/>
  1133. <line id="line9" class="line_2" style="x1:350px; y1:145px; x2:727px; y2:145px; "/>
  1134. <caption id="caption27" class="cell_1" style="left:350px; top:147px; width:55px; height:23px; text-align:center; vertical-align:middle; ">S/A</caption>
  1135. <caption id="caption1" class="tit_2" style="left:5px; top:79px; width:60px; height:13px; ">대상자</caption>
  1136. <line id="line1" class="line_1" style="x1:0px; y1:121px; x2:290px; y2:121px; "/>
  1137. <caption id="caption15" class="tit_2" style="left:349px; top:315px; width:74px; height:13px; ">상병</caption>
  1138. <line id="line4" class="line_1" style="x1:350px; y1:330px; x2:728px; y2:330px; "/>
  1139. <datagrid id="datagrid2" nodeset="/root/main/patinfodata/griddiaginfo" caption="R/O^코드^순번^상병명^과^진료개시일" colsep="^" colwidth="29, 51, 19, 116, 65, 62" dataheight="25" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:350px; top:335px; width:379px; height:116px; ">
  1140. <col disabled="true" ref="diagkindcd" type="checkbox"/>
  1141. <col ref="diagcd"/>
  1142. <col ref="diagseq" visibility="hidden"/>
  1143. <col ref="diagnm"/>
  1144. <col ref="clamdeptcd"/>
  1145. <col ref="ordfromdd" format="yyyy/mm/dd"/>
  1146. </datagrid>
  1147. <caption id="caption23" class="cell_1" style="left:350px; top:99px; width:55px; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
  1148. <output id="output11" ref="/root/main/patinfodata/gridpatinfo/indd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:520px; top:100px; width:70px; height:19px; text-align:center; "/>
  1149. <caption id="caption24" class="cell_1" style="left:474px; top:99px; width:44px; height:23px; text-align:center; vertical-align:middle; ">입원일</caption>
  1150. <output id="output15" ref="/root/main/patinfodata/gridpatinfo/dschdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:520px; top:124px; width:70px; height:19px; text-align:center; "/>
  1151. <output id="output16" ref="/root/main/patinfodata/gridpatinfo/patnm" class="output_fix" appearance="output" style="left:406px; top:124px; width:65px; height:19px; text-align:center; "/>
  1152. <caption id="caption25" class="cell_1" style="left:350px; top:123px; width:55px; height:23px; text-align:center; vertical-align:middle; ">수진자</caption>
  1153. <caption id="caption26" class="cell_1" style="left:474px; top:123px; width:44px; height:23px; text-align:center; vertical-align:middle; ">퇴원일</caption>
  1154. <output id="output17" ref="/root/main/patinfodata/gridpatinfo/ordfromdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:520px; top:148px; width:70px; height:19px; text-align:center; "/>
  1155. <output id="output18" ref="/root/main/patinfodata/gridpatinfo/sexage" class="output_fix" appearance="output" style="left:406px; top:148px; width:65px; height:19px; text-align:center; "/>
  1156. <caption id="caption28" class="cell_1" style="left:474px; top:147px; width:44px; height:23px; text-align:center; vertical-align:middle; ">개시일</caption>
  1157. <caption id="caption34" class="cell_1" style="left:966px; top:71px; width:59px; height:21px; text-align:left; vertical-align:middle; ">심사분류</caption>
  1158. <select1 id="rdo_judgflag" ref="/root/main/patinfodata/gridpatinfo/judgcls" disabled="false" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:1026px; top:72px; width:164px; height:19px; border-style:none; ">
  1159. <choices>
  1160. <item>
  1161. <label>단순심사</label>
  1162. <value>1</value>
  1163. </item>
  1164. <item>
  1165. <label>의학적 심사</label>
  1166. <value>2</value>
  1167. </item>
  1168. </choices>
  1169. </select1>
  1170. <caption id="caption36" class="tit_2" style="left:349px; top:75px; width:75px; height:13px; ">환자기본</caption>
  1171. <line id="line2" class="line_1" style="x1:350px; y1:93px; x2:728px; y2:93px; "/>
  1172. <line id="line16" class="line_3" style="x1:0px; y1:741px; x2:1194px; y2:741px; "/>
  1173. <output id="output1" ref="/root/main/patinfodata/gridpatinfo/orddrid" class="output_fix" appearance="output" style="left:406px; top:172px; width:65px; height:19px; text-align:center; "/>
  1174. <output id="output2" ref="/root/main/patinfodata/gridpatinfo/ordtodd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:520px; top:172px; width:70px; height:19px; text-align:center; "/>
  1175. <output id="output3" ref="/root/main/patinfodata/gridpatinfo/chosindayno" class="output_fix" appearance="output" style="left:657px; top:100px; width:35px; height:19px; text-align:center; "/>
  1176. <caption id="caption22" class="cell_1" style="left:350px; top:171px; width:55px; height:23px; text-align:center; vertical-align:middle; ">진료의</caption>
  1177. <output id="output4" ref="/root/main/patinfodata/gridpatinfo/insukind" class="output_fix" appearance="output" style="left:657px; top:124px; width:70px; height:19px; text-align:center; "/>
  1178. <caption id="caption30" class="cell_1" style="left:474px; top:171px; width:44px; height:23px; text-align:center; vertical-align:middle; ">종료일</caption>
  1179. <output id="output5" ref="/root/main/patinfodata/gridpatinfo/medcaredayno" class="output_fix" appearance="output" style="left:693px; top:100px; width:35px; height:19px; text-align:center; "/>
  1180. <caption id="caption37" class="cell_1" style="left:593px; top:123px; width:61px; height:23px; text-align:center; vertical-align:middle; ">유형/보조</caption>
  1181. <output id="output6" ref="/root/main/patinfodata/gridpatinfo/payownbrate" class="output_fix" appearance="output" style="left:657px; top:148px; width:70px; height:19px; text-align:center; "/>
  1182. <caption id="caption41" class="cell_1" style="left:593px; top:99px; width:61px; height:23px; text-align:center; vertical-align:middle; ">내원/요양</caption>
  1183. <caption id="caption42" class="cell_1" style="left:593px; top:147px; width:61px; height:23px; text-align:center; vertical-align:middle; ">적용요율</caption>
  1184. <caption id="caption43" class="cell_1" style="left:593px; top:171px; width:61px; height:23px; text-align:center; vertical-align:middle; ">MT002</caption>
  1185. <line id="line20" class="line_2" style="x1:350px; y1:169px; x2:727px; y2:169px; "/>
  1186. <datagrid id="grd_pirhobtm" nodeset="/root/main/obtmlist/gridpirhobtm" class="datagrid2" caption="선택^마감^완료^이신^관&#xA;심^과^명일련^등록&#xA;번호^수진자^진료의^^^^^^^^^^^^" colsep="^" colwidth="17, 18, 18, 18, 18, 34, 40, 53, 50, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="0" explorerbar="sortshowmove" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" style="left:0px; top:99px; width:348px; height:401px; ">
  1187. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  1188. <col checkvalue="Y,N" disabled="true" ref="closeyn" type="checkbox" style="color:#ff0000; "/>
  1189. <col disabled="true" ref="endyn" type="checkbox" style="color:#ff0000; "/>
  1190. <col disabled="true" ref="obtappyn" type="checkbox" style="color:#ff0000; "/>
  1191. <col checkvalue="Y,N" disabled="true" ref="concprcpyn" type="checkbox"/>
  1192. <col disabled="true" ref="orddeptcd" type="output" style="text-align:center; ">
  1193. <choices>
  1194. <itemset nodeset="/root/init/P0287list/P0287">
  1195. <label ref="cdnm"/>
  1196. <value ref="cdid"/>
  1197. </itemset>
  1198. </choices>
  1199. </col>
  1200. <col disabled="true" ref="docuseqno" style="text-align:center; "/>
  1201. <col disabled="true" ref="pid" style="left:140px; top:32px; width:62px; height:23px; text-align:center; "/>
  1202. <col disabled="true" ref="patnm" style="left:202px; top:32px; width:65px; height:23px; text-align:center; "/>
  1203. <col disabled="true" ref="orddrnm" style="text-align:center; "/>
  1204. <col ref="judgdg" visibility="hidden"/>
  1205. <col ref="clamno" visibility="hidden"/>
  1206. <col ref="acptno" visibility="hidden"/>
  1207. <col ref="obtappflag" visibility="hidden"/>
  1208. <col ref="instcd" visibility="hidden"/>
  1209. <col ref="notidd" visibility="hidden"/>
  1210. <col ref="obtappendflag" visibility="hidden"/>
  1211. <col ref="obtappdocuno" visibility="hidden"/>
  1212. <col ref="atdoct" visibility="hidden"/>
  1213. <col ref="judgrid" visibility="hidden"/>
  1214. <col ref="clamym" visibility="hidden"/>
  1215. <col ref="clamdg" visibility="hidden"/>
  1216. <col ref="pidsn" visibility="hidden"/>
  1217. <col ref="ioflag" visibility="hidden"/>
  1218. <col ref="obtappdd" visibility="hidden"/>
  1219. <script type="javascript" ev:event="ondblclick">
  1220. <![CDATA[
  1221. if (grd_pirhobtm.isCell(event.target) && grd_pirhobtm.mouseRow >= grd_pirhobtm.fixedrows) {
  1222. fObtappSerch();
  1223. }
  1224. ]]>
  1225. </script>
  1226. <script type="javascript" ev:event="onclick">
  1227. <![CDATA[
  1228. // 선택 체크 했을 경우 유효성 검사
  1229. if (grd_pirhobtm.isCell(event.target) && grd_pirhobtm.mouseRow >= grd_pirhobtm.fixedrows && grd_pirhobtm.col == grd_pirhobtm.colRef("check")) {
  1230. // 마감된 경우 체크 불허
  1231. if ( grd_pirhobtm.valueMatrix(grd_pirhobtm.row, grd_pirhobtm.colRef("closeyn")) == "Y" ) {
  1232. messageBox("마감된 명세서는 선택", "E001"); // 할 수 없습니다.
  1233. grd_pirhobtm.valueMatrix(grd_pirhobtm.row, grd_pirhobtm.colRef("check")) = "N" ;
  1234. grd_pirhobtm.rowStatus(grd_pirhobtm.row) = "0";
  1235. return;
  1236. }
  1237. // 완료 여부 체크
  1238. if ( grd_pirhobtm.valueMatrix(grd_pirhobtm.row, grd_pirhobtm.colRef("endyn")) != "true" ) {
  1239. messageBox("완료되지 않은 명세서는 선택","E001"); // 할 수 없습니다.
  1240. grd_pirhobtm.valueMatrix(grd_pirhobtm.row, grd_pirhobtm.colRef("check")) = "N" ;
  1241. grd_pirhobtm.rowStatus(grd_pirhobtm.row) = "0";
  1242. return;
  1243. }
  1244. }
  1245. // 선택 체크 했을 때는 조회 안 한다.
  1246. if (grd_pirhobtm.isCell(event.target) && grd_pirhobtm.mouseRow >= grd_pirhobtm.fixedrows && grd_pirhobtm.col != grd_pirhobtm.colRef("check")) {
  1247. fDisplayObtappdocuno();
  1248. fObtappSerch();
  1249. fInitControl(); // 2010.06.09 컨트롤 활성화 여부(개별 마감 때문에 명세서별로 마감 여부가 다르다)
  1250. }
  1251. fSetPopupRefresh();
  1252. model.setValue("/root/hidden/tmp/row",grd_pirhobtm.row);
  1253. model.setValue("/root/hidden/tmp/scroll",grd_pirhobtm.vscroll.attribute("pos"));
  1254. ]]>
  1255. </script>
  1256. <script type="javascript" ev:event="onmousedown">
  1257. <![CDATA[
  1258. if (event.button == 3) {
  1259. if (grd_pirhobtm.disabled) return;
  1260. if (grd_pirhobtm.isCell(event.target) && grd_pirhobtm.mouseRow >= grd_pirhobtm.fixedrows) {
  1261. window.setPopupMenu(true, "/root/popupdata/popupmenu/gridpirhobtm/item", "name", "func", false);
  1262. }
  1263. else {
  1264. window.setPopupMenu(false);
  1265. }
  1266. }
  1267. ]]>
  1268. </script>
  1269. <script type="javascript" ev:event="DOMFocusOut">
  1270. <![CDATA[
  1271. window.setPopupMenu(false);
  1272. ]]>
  1273. </script>
  1274. <script type="javascript" ev:event="onaftersort">
  1275. <![CDATA[
  1276. //grd_pirhobtm.gridToInstance();
  1277. ]]>
  1278. </script>
  1279. </datagrid>
  1280. <output id="opt_obtappdocuno" ref="/root/temp/obtappdocuno" class="output_fix" style="left:220px; top:75px; width:110px; height:19px; "/>
  1281. <caption id="caption33" style="left:168px; top:78px; width:60px; height:14px; ">문서번호</caption>
  1282. <group id="grp_sea" style="left:0; top:10px; width:1194px; height:60px; vertical-align:top; ">
  1283. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1191px; height:58px; background-color:#fffbf2; border-color:#ffd799; "/>
  1284. <caption id="caption2" class="search_name" style="left:7px; top:9px; width:96px; height:17px; ">청구번호 :</caption>
  1285. <button id="button1" class="btn1_letter2" style="left:1130px; top:30px; width:56px; height:22px; ">
  1286. <caption>조회</caption>
  1287. <script type="javascript" ev:event="onclick">
  1288. <![CDATA[
  1289. if (model.getValue("/root/send/send_obtmlist/judgdg") == "") {
  1290. alert("심사차수를 입력해 주세요");
  1291. model.setFocus("ipt_judgdg");
  1292. return false;
  1293. }
  1294. if (model.getValue("/root/send/send_obtmlist/acptno") == "") {
  1295. alert("접수번호를 입력해 주세요");
  1296. model.setFocus("ipt_acptno");
  1297. return false;
  1298. }
  1299. // model.resetInstanceNode("/root/main/list01");
  1300. model.resetInstanceNode("/root/main/obtmlist");
  1301. model.refresh();
  1302. submit("TRPIR30400");
  1303. button2.dispatch("onclick");
  1304. var obtappflag = model.getValue("/root/main/obtmlist/gridpirhobtm/obtappflag");
  1305. if (obtappflag == "22") {
  1306. checkbox2.attribute("visibility") = "visible";
  1307. chk_attdocu.attribute("visibility") = "hidden";
  1308. } else {
  1309. checkbox2.attribute("visibility") = "hidden";
  1310. chk_attdocu.attribute("visibility") = "visible";
  1311. }
  1312. ]]>
  1313. </script>
  1314. </button>
  1315. <line id="line13" class="line_4" style="x1:1118px; y1:30px; x2:1118px; y2:52px; "/>
  1316. <caption id="caption7" class="search_name" style="left:335px; top:33px; width:86px; height:17px; ">문서번호 :</caption>
  1317. <input id="ipt_obtappdocuno" ref="/root/send/send_obtmlist/obtappdocuno" class="input_search" style="left:422px; top:32px; width:73px; height:19px; "/>
  1318. <caption id="caption3" class="search_name" style="left:173px; top:9px; width:96px; height:17px; ">접수번호 :</caption>
  1319. <caption id="caption4" class="search_name" style="left:335px; top:9px; width:88px; height:17px; ">심사차수 :</caption>
  1320. <caption id="caption21" class="search_name" style="left:496px; top:9px; width:88px; height:17px; ">묶음번호 :</caption>
  1321. <input id="input7" ref="/root/send/send_obtmlist/setno" class="input_search" style="left:585px; top:8px; width:73px; height:19px; text-align:center; "/>
  1322. <output id="output8" ref="/root/main/obtmlist/acptinfo/claminfo" class="output_search" style="left:6px; top:32px; width:328px; height:19px; "/>
  1323. <caption id="caption5" class="search_name" style="left:661px; top:33px; width:86px; height:17px; ">이 신 액 :</caption>
  1324. <caption id="caption8" class="search_name" style="left:496px; top:33px; width:86px; height:17px; ">총삭감액 :</caption>
  1325. <caption id="caption9" class="search_name" style="left:824px; top:33px; width:83px; height:17px; ">부 제 기 :</caption>
  1326. <input id="input11" ref="/root/send/send_obtmlist/notidd" class="output_search" format="yyyy-mm-dd" style="left:749px; top:8px; width:73px; height:19px; "/>
  1327. <caption id="caption10" class="search_name" style="left:661px; top:9px; width:86px; height:17px; ">도착일자 :</caption>
  1328. <input id="ipt_clamno" ref="/root/send/send_obtmlist/clamno" class="input_search" style="left:93px; top:8px; width:73px; height:19px; "/>
  1329. <input id="ipt_acptno" ref="/root/send/send_obtmlist/acptno" class="input_s_essential" navindex="1" inputtype="button" style="left:260px; top:8px; width:73px; height:19px; ">
  1330. <script type="javascript" ev:event="onkeypress">
  1331. <![CDATA[
  1332. setInputNodeCurText();
  1333. if (event.keyCode == "13") {
  1334. fGetJudgdg("2");
  1335. }
  1336. ]]>
  1337. </script>
  1338. </input>
  1339. <output id="output9" ref="/root/main/obtmlist/acptinfo/obtappamt" class="output_search" format="#,###" style="left:749px; top:32px; width:73px; height:19px; text-align:right; "/>
  1340. <output id="output10" ref="/root/main/obtmlist/acptinfo/abdamt" class="output_search" format="#,###" style="left:915px; top:32px; width:64px; height:19px; text-align:right; "/>
  1341. <output id="output12" ref="/root/main/obtmlist/acptinfo/adjtamt" class="output_search" format="#,###" style="left:585px; top:32px; width:73px; height:19px; text-align:right; "/>
  1342. <caption id="caption19" class="search_name" style="left:824px; top:9px; width:86px; height:17px; ">이신구분 :</caption>
  1343. <select1 id="cmb_obtappflag" ref="/root/send/send_obtmlist/obtappflag" class="combo_search" navindex="4" appearance="minimal" style="left:1044px; top:6px; width:142px; height:19px; ">
  1344. <choices>
  1345. <itemset nodeset="/root/init/P0264list/P0264">
  1346. <label ref="cdnm"/>
  1347. <value ref="cdid"/>
  1348. </itemset>
  1349. </choices>
  1350. <script type="javascript" ev:event="xforms-select">
  1351. <![CDATA[
  1352. rdo_obtappflag.deselect(1);
  1353. rdo_obtappflag.deselect(2);
  1354. button1.dispatch("onclick");
  1355. ]]>
  1356. </script>
  1357. </select1>
  1358. <select1 id="rdo_obtappflag" ref="/root/send/send_obtmlist/rejudgflag" class="radio_search" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:915px; top:8px; width:125px; height:15px; border-style:none; ">
  1359. <choices>
  1360. <item>
  1361. <label>전체</label>
  1362. <value>1</value>
  1363. </item>
  1364. <item>
  1365. <label>재심사제외</label>
  1366. <value>2</value>
  1367. </item>
  1368. </choices>
  1369. <script type="javascript" ev:event="onclick">
  1370. <![CDATA[
  1371. cmb_obtappflag.deselect(1);
  1372. ]]>
  1373. </script>
  1374. </select1>
  1375. <select1 id="ipt_judgdg" ref="/root/send/send_obtmlist/judgdg" class="combo_s_essential" navindex="2" appearance="minimal" style="left:422px; top:8px; width:73px; height:19px; ">
  1376. <choices>
  1377. <itemset nodeset="/root/init/list1/judg">
  1378. <label ref="judgdg"/>
  1379. <value ref="judgdg"/>
  1380. </itemset>
  1381. </choices>
  1382. <script type="javascript" ev:event="xforms-value-changed">
  1383. <![CDATA[
  1384. button1.dispatch("onclick");
  1385. ]]>
  1386. </script>
  1387. </select1>
  1388. <select id="checkbox1" ref="/root/send/send_obtmlist/endn" overflow="visible" appearance="full" style="left:1094px; top:34px; width:15px; height:15px; border-style:none; ">
  1389. <choices>
  1390. <item>
  1391. <label/>
  1392. <value>Y</value>
  1393. </item>
  1394. </choices>
  1395. <script type="javascript" ev:event="xforms-value-changed">
  1396. <![CDATA[
  1397. button1.dispatch("onclick");
  1398. ]]>
  1399. </script>
  1400. </select>
  1401. <caption id="caption45" class="search_name" style="left:983px; top:33px; width:112px; height:17px; ">대상완료제외 :</caption>
  1402. </group>
  1403. <input id="ipt_docuseqno" ref="/root/send/send_docusearch/docuseqno" class="input_search" style="left:126px; top:75px; width:39px; height:19px; ">
  1404. <script type="javascript" ev:event="onkeyup">
  1405. <![CDATA[
  1406. // ENTER 키
  1407. if (event.keyCode == "13") {
  1408. setInputNodeCurText();
  1409. var docuseqno = model.getValue("/root/send/send_docusearch/docuseqno"); //ipt_docuseqno.value;
  1410. var sfind = "N";
  1411. if (docuseqno.length == 0) {
  1412. return false;
  1413. }
  1414. else if (docuseqno.length == 1) {
  1415. docuseqno = "0000"+docuseqno;
  1416. }
  1417. else if (docuseqno.length == 2) {
  1418. docuseqno = "000"+docuseqno;
  1419. }
  1420. else if (docuseqno.length == 3) {
  1421. docuseqno = "00"+docuseqno;
  1422. }
  1423. else if (docuseqno.length == 4) {
  1424. docuseqno = "0"+docuseqno;
  1425. }
  1426. else if (docuseqno.length == 5) {
  1427. docuseqno = docuseqno;
  1428. }
  1429. else if (docuseqno.length > 5) {
  1430. messageBox("명세서일련번호는 최대 5자리","E008");
  1431. //ipt_docuseqno.value = "";
  1432. model.setValue("/root/send/send_docusearch/docuseqno","")
  1433. return false;
  1434. }
  1435. var rows = grd_pirhobtm.rows;
  1436. for (var i=1; i<rows; i++) {
  1437. if (grd_pirhobtm.valueMatrix(i,grd_pirhobtm.colRef("docuseqno")) == docuseqno) {
  1438. // grd_pifmiunc02.select(i,9) = true;
  1439. grd_pirhobtm.row = i;
  1440. grd_pirhobtm.topRow = i;
  1441. sfind = "Y";
  1442. }
  1443. }
  1444. if (sfind == "Y") {
  1445. fDisplayObtappdocuno();
  1446. fObtappSerch();
  1447. }
  1448. }
  1449. ]]>
  1450. </script>
  1451. </input>
  1452. <caption id="caption48" style="left:65px; top:78px; width:62px; height:14px; ">명일련검색</caption>
  1453. <line id="line30" class="line_1" style="x1:350px; y1:211px; x2:728px; y2:211px; "/>
  1454. <input id="input8" ref="/root/main/patinfodata/gridpatinfo/jrinsubamt" class="input_default" editable="false" format="#,###" style="left:641px; top:268px; width:87px; height:19px; text-align:right; "/>
  1455. <caption id="caption71" class="cell_1" style="left:350px; top:216px; width:108px; height:23px; vertical-align:middle; "/>
  1456. <line id="line31" class="line_3" style="x1:350px; y1:289px; x2:728px; y2:289px; "/>
  1457. <input id="input9" ref="/root/main/patinfodata/gridpatinfo/jrownbamt" class="input_default" editable="false" format="#,###" style="left:551px; top:268px; width:87px; height:19px; text-align:right; "/>
  1458. <caption id="caption72" class="cell_1" style="left:350px; top:265px; width:108px; height:23px; text-align:center; vertical-align:middle; ">심사결정내역</caption>
  1459. <caption id="caption73" class="cell_1" style="left:461px; top:216px; width:87px; height:23px; text-align:center; vertical-align:middle; ">급여총액</caption>
  1460. <caption id="caption74" class="cell_1" style="left:551px; top:216px; width:87px; height:23px; text-align:center; vertical-align:middle; ">본인부담액</caption>
  1461. <input id="input10" ref="/root/main/patinfodata/gridpatinfo/clmcstotamt" class="input_default" editable="false" format="#,###" style="left:461px; top:242px; width:87px; height:19px; text-align:right; "/>
  1462. <caption id="caption75" class="cell_1" style="left:350px; top:240px; width:108px; height:23px; text-align:center; vertical-align:middle; ">청구내역</caption>
  1463. <caption id="caption76" class="cell_1" style="left:641px; top:216px; width:87px; height:23px; text-align:center; vertical-align:middle; ">청구액</caption>
  1464. <caption id="caption77" class="cell_1" style="left:551px; top:291px; width:87px; height:23px; text-align:center; vertical-align:middle; ">조정합계</caption>
  1465. <input id="input12" ref="/root/main/patinfodata/gridpatinfo/jrmcstotamt" class="input_default" editable="false" format="#,###" style="left:461px; top:268px; width:87px; height:19px; text-align:right; "/>
  1466. <caption id="caption78" class="cell_1" style="left:350px; top:291px; width:108px; height:23px; text-align:center; vertical-align:middle; ">심사결정액</caption>
  1467. <caption id="caption79" class="tit_2" style="left:349px; top:196px; width:131px; height:13px; ">금액</caption>
  1468. <line id="line28" class="line_2" style="x1:350px; y1:264px; x2:728px; y2:264px; "/>
  1469. <line id="line29" class="line_2" style="x1:350px; y1:238px; x2:728px; y2:238px; text-align:center; "/>
  1470. <input id="input1" ref="/root/main/patinfodata/gridpatinfo/jrjudgdeciamt" class="input_default" editable="false" format="#,###" style="left:461px; top:294px; width:87px; height:19px; text-align:right; "/>
  1471. <input id="input2" ref="/root/main/patinfodata/gridpatinfo/clclamamt" class="input_default" editable="false" format="#,###" style="left:641px; top:242px; width:87px; height:19px; text-align:right; "/>
  1472. <input id="input3" ref="/root/main/patinfodata/gridpatinfo/clownbamt" class="input_default" editable="false" format="#,###" style="left:551px; top:242px; width:87px; height:19px; text-align:right; "/>
  1473. <input id="input4" ref="/root/main/patinfodata/gridpatinfo/jradjtsum" class="input_default" editable="false" format="#,###" style="left:641px; top:293px; width:87px; height:19px; text-align:right; "/>
  1474. <textarea id="txtbox_obtapprem" ref="/root/main/patinfodata/gridpatinfo/obtapprem" style="left:730px; top:335px; width:465px; height:141px; ">
  1475. <script type="javascript" ev:event="ondblclick">
  1476. <![CDATA[
  1477. modal("SPPIE00200", "", "400", "400" ,"", "/root/main/patinfodata/gridpatinfo/obtapprem", "/root/send/textno");
  1478. ]]>
  1479. </script>
  1480. </textarea>
  1481. <line id="line12" class="line_1" style="x1:730px; y1:95px; x2:1193px; y2:94px; "/>
  1482. <caption id="caption38" class="tit_2" style="left:730px; top:316px; width:162px; height:13px; ">이의신청 사유 및 비고</caption>
  1483. <line id="line3" class="line_1" style="x1:735px; y1:331px; x2:1191px; y2:332px; "/>
  1484. <select id="chk_attdocu" ref="/root/main/patinfodata/gridpatinfo/attdocu" overflow="visible" appearance="full" cellspacing="1" cols="5" sep="," vcellspacing="10" style="left:350px; top:475px; width:370px; height:20px; border-style:none; ">
  1485. <choices>
  1486. <item>
  1487. <label>1심결통보서</label>
  1488. <value>1</value>
  1489. </item>
  1490. <item>
  1491. <label>2진료기록부</label>
  1492. <value>2</value>
  1493. </item>
  1494. <item>
  1495. <label>3X-ray</label>
  1496. <value>3</value>
  1497. </item>
  1498. <item>
  1499. <label>4검사결과지</label>
  1500. <value>4</value>
  1501. </item>
  1502. <item>
  1503. <label>5기타</label>
  1504. <value>5</value>
  1505. </item>
  1506. </choices>
  1507. <script type="javascript" ev:event="xforms-value-changed">
  1508. <![CDATA[
  1509. if (chk_attdocu.value != "") {
  1510. fObtappynAutoCheck("true");
  1511. } else {
  1512. fObtappynAutoCheck("false")
  1513. }
  1514. fSubtotal();
  1515. ]]>
  1516. </script>
  1517. </select>
  1518. <select1 id="combo4" ref="/root/searchinfo/orddeptcd" class="combo_search" appearance="minimal" style="left:502px; top:72px; width:73px; height:19px; ">
  1519. <choices>
  1520. <itemset nodeset="/root/main/obtmlist/deptinfo">
  1521. <label ref="nm"/>
  1522. <value ref="cd"/>
  1523. </itemset>
  1524. </choices>
  1525. <script type="javascript" ev:event="xforms-value-changed">
  1526. <![CDATA[
  1527. model.setValue("/root/searchinfo/orddrid", "A");
  1528. if (model.getValue("/root/searchinfo/orddeptcd") == "A") {
  1529. combo2.choices.itemset.attribute("nodeset") = "/root/main/obtmlist/doctinfo";
  1530. } else {
  1531. combo2.choices.itemset.attribute("nodeset") = "/root/main/obtmlist/doctinfo[orddeptcd='"+model.getValue("/root/searchinfo/orddeptcd")+"' or orddeptcd='']";
  1532. }
  1533. combo2.refresh();
  1534. button2.dispatch("onclick");
  1535. ]]>
  1536. </script>
  1537. </select1>
  1538. <caption id="caption16" class="search_name" style="left:419px; top:73px; width:83px; height:17px; ">진 료 과 :</caption>
  1539. <caption id="caption17" class="search_name" style="left:577px; top:73px; width:83px; height:17px; ">진 료 의 :</caption>
  1540. <caption id="caption18" class="search_name" style="left:739px; top:73px; width:93px; height:17px; ">심 사 자 :</caption>
  1541. <button id="button2" class="btn1_letter2" style="left:901px; top:71px; width:56px; height:22px; ">
  1542. <caption>검색</caption>
  1543. <script type="javascript" ev:event="onclick">
  1544. <![CDATA[
  1545. var orddept = model.getValue("/root/searchinfo/orddeptcd");
  1546. var orddrid = model.getValue("/root/searchinfo/orddrid");
  1547. var judgrid = model.getValue("/root/searchinfo/judgrid");
  1548. var hiddenyn
  1549. var rowcnt = grd_pirhobtm.rows;
  1550. var j = 0;
  1551. var allcnt = 0;
  1552. var ycnt = 0;
  1553. var nodenm = "";
  1554. if ( orddept != "A") {
  1555. nodenm = " orddeptcd='" + orddept +"' " ;
  1556. ycnt++;
  1557. }
  1558. if ( orddrid != "A") {
  1559. if (ycnt < 1) {
  1560. nodenm = " atdoct='" + orddrid +"' " ;
  1561. ycnt++;
  1562. } else {
  1563. nodenm += "and atdoct='" + orddrid +"' " ;
  1564. }
  1565. }
  1566. if ( judgrid != "A") {
  1567. if (ycnt < 1) {
  1568. nodenm = " judgrid='" + judgrid +"' " ;
  1569. ycnt++;
  1570. } else {
  1571. nodenm += "and judgrid='" + judgrid +"' " ;
  1572. }
  1573. }
  1574. if (ycnt == 0){
  1575. grd_pirhobtm.nodeset = "/root/main/obtmlist/gridpirhobtm";
  1576. } else {
  1577. grd_pirhobtm.nodeset = "/root/main/obtmlist/gridpirhobtm[" + nodenm + "]";
  1578. }
  1579. if (model.getValue("/root/hidden/tmp/saveyn") == "Y") {
  1580. grd_pirhobtm.row = model.getValue("/root/hidden/tmp/row").length == 0 ? i : model.getValue("/root/hidden/tmp/row");
  1581. } else {
  1582. grd_pirhobtm.row = 1;
  1583. model.setValue("/root/hidden/tmp/row", 1);
  1584. }
  1585. grd_pirhobtm.topRow = grd_pirhobtm.row;
  1586. fDisplayObtappdocuno();
  1587. fObtappSerch();
  1588. fInitControl(); // 2010.06.09 컨트롤 활성화 여부(개별 마감 때문에 명세서별로 마감 여부가 다르다)
  1589. fSetPopupRefresh();
  1590. model.setValue("/root/hidden/tmp/saveyn","");
  1591. model.refresh();
  1592. ]]>
  1593. </script>
  1594. </button>
  1595. <caption id="caption11" class="tit_2" style="left:349px; top:456px; width:74px; height:13px; ">첨부문서</caption>
  1596. <line id="line6" class="line_1" style="x1:350px; y1:470px; x2:728px; y2:470px; "/>
  1597. <output id="output13" ref="/root/main/patinfodata/gridpatinfo/spclspec" class="output_fix" appearance="output" style="left:657px; top:172px; width:70px; height:19px; text-align:center; "/>
  1598. <textarea id="textarea3" ref="/root/main/patinfodata/gridpatinfo/docuseqnorem" editable="false" style="left:730px; top:115px; width:465px; height:97px; ">
  1599. <script type="javascript" ev:event="ondblclick">
  1600. <![CDATA[
  1601. modal("SPPIE00200", "", "400", "400" ,"", "/root/main/patinfodata/gridpatinfo/docuseqnorem", "/root/send/textno");
  1602. ]]>
  1603. </script>
  1604. </textarea>
  1605. <datagrid id="datagrid3" nodeset="/root/main/patinfodata/gridlnnoadjtresncd" autoresize="true" caption="줄^EDICODE^참조란" colsep="^" colwidth="27, 67, 354" defaultrows="2" mergecellsfixedrows="bycolrec" rowsep="|" style="left:730px; top:211px; width:465px; height:99px; ">
  1606. <col ref="lnno"/>
  1607. <col ref="edicd"/>
  1608. <col ref="rem" type="inputbutton"/>
  1609. <script type="javascript" ev:event="onbuttonclick">
  1610. <![CDATA[
  1611. //model.setValue("/root/main/list04/rem", datagrid3.valueMatrix(datagrid3.row,datagrid3.col));
  1612. modal("SPPIE00200", "", "400", "400" ,"", "/root/main/patinfodata/gridlnnoadjtresncd[" + datagrid3.row + "]/rem", "/root/send/textno");
  1613. ]]>
  1614. </script>
  1615. </datagrid>
  1616. <caption id="caption12" class="tit_2" style="left:730px; top:100px; width:219px; height:13px; ">명일련 비고사항 및 수신 조정사유</caption>
  1617. <input id="ipt_rem" ref="/root/main/patinfodata/gridpatinfo/rem" style="left:730px; top:475px; width:464px; height:19px; "/>
  1618. <select1 id="combo2" ref="/root/searchinfo/orddrid" class="combo_search" appearance="minimal" style="left:662px; top:72px; width:73px; height:19px; ">
  1619. <choices>
  1620. <itemset nodeset="/root/main/obtmlist/doctinfo">
  1621. <label ref="nm"/>
  1622. <value ref="cd"/>
  1623. </itemset>
  1624. </choices>
  1625. <script type="javascript" ev:event="xforms-value-changed">
  1626. <![CDATA[
  1627. button2.dispatch("onclick");
  1628. ]]>
  1629. </script>
  1630. </select1>
  1631. <select1 id="combo3" ref="/root/searchinfo/judgrid" class="combo_search" appearance="minimal" style="left:823px; top:72px; width:73px; height:19px; ">
  1632. <choices>
  1633. <itemset nodeset="/root/main/obtmlist/judgrinfo">
  1634. <label ref="nm"/>
  1635. <value ref="cd"/>
  1636. </itemset>
  1637. </choices>
  1638. <script type="javascript" ev:event="xforms-value-changed">
  1639. <![CDATA[
  1640. button2.dispatch("onclick");
  1641. ]]>
  1642. </script>
  1643. </select1>
  1644. <group id="group1" style="left:1px; top:500px; width:1193px; height:215px; ">
  1645. <button id="btn_smallscale" class="btn2_letter2" visibility="hidden" style="left:85px; top:5px; width:42px; height:19px; ">
  1646. <caption>축소</caption>
  1647. <script type="javascript" ev:event="DOMActivate">
  1648. <![CDATA[
  1649. group1.attribute("top") = "500"
  1650. group1.attribute("height") = "215"
  1651. grd_adjtord.attribute("height") = "186";
  1652. btn_largescale.visible = true;
  1653. btn_smallscale.visible = false;
  1654. btn_memohistory.visible = true;
  1655. btn_memohistory_drug.visible = true;
  1656. btn_memohistory_injection.visible = true;
  1657. btn_memohistory_treat.visible = true;
  1658. btn_memohistory_exam.visible = true;
  1659. btn_memohistory_etc.visible = true;
  1660. ]]>
  1661. </script>
  1662. </button>
  1663. <line id="line11" class="line_1" style="x1:0px; y1:27px; x2:1193px; y2:26px; "/>
  1664. <caption id="caption31" class="tit_2" style="left:5px; top:11px; width:90px; height:13px; ">삭감 처방</caption>
  1665. <button id="btn_largescale" class="btn2_letter2" style="left:85px; top:5px; width:42px; height:19px; ">
  1666. <caption>확대</caption>
  1667. <script type="javascript" ev:event="DOMActivate">
  1668. <![CDATA[
  1669. group1.attribute("top") = "123"
  1670. group1.attribute("height") = "592"
  1671. grd_adjtord.attribute("height") = "561";
  1672. btn_largescale.visible = false;
  1673. btn_smallscale.visible = true;
  1674. btn_memohistory.visible = false;
  1675. btn_memohistory_drug.visible = false;
  1676. btn_memohistory_injection.visible = false;
  1677. btn_memohistory_treat.visible = false;
  1678. btn_memohistory_exam.visible = false;
  1679. btn_memohistory_etc.visible = false;
  1680. ]]>
  1681. </script>
  1682. </button>
  1683. <button id="btn_save" class="btn2_letter4" style="left:1062px; top:5px; width:64px; height:19px; ">
  1684. <caption>저 장</caption>
  1685. <script type="javascript" ev:event="DOMActivate">
  1686. <![CDATA[
  1687. // 1. 데이터 검사
  1688. if (!fCheckData()) return;
  1689. // 2. 저장하시겠습니까?
  1690. //if (messageBox("저장", "S001") != 6) return;
  1691. // 3. 블럭 지정한 row 수정
  1692. var rows = grd_adjtord.selectedRows;
  1693. if (rows > 1) {
  1694. for (var k = 0; k < rows; k++) {
  1695. var sel = grd_adjtord.selectedRow(k) - 1;
  1696. var row = grd_adjtord.selectedRow(k);
  1697. var obtappyn = grd_adjtord.valueMatrix(row,grd_adjtord.colRef("obtappyn"));
  1698. var abdresncd = grd_adjtord.valueMatrix(row,grd_adjtord.colRef("abdresncd"));
  1699. if (obtappyn == "false" && abdresncd != "-") {
  1700. messageBox("부제기 처방은 삭제전 이의신청", "E001");
  1701. return;
  1702. }
  1703. }
  1704. for (var i = 0; i < rows; i++) {
  1705. var sel = grd_adjtord.selectedRow(i) - 1;
  1706. var row = grd_adjtord.selectedRow(i);
  1707. var obtappyn = grd_adjtord.valueMatrix(row,grd_adjtord.colRef("obtappyn"));
  1708. // 신청 체크가 안되어 있으면 체크된 상태로 만든다.
  1709. if (obtappyn == "false") {
  1710. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("obtappyn")) = "true";
  1711. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("obtapponeqty")) = grd_adjtord.valueMatrix(row,grd_adjtord.colRef("adjtoneqty"));
  1712. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("obtappdayqty")) = grd_adjtord.valueMatrix(row,grd_adjtord.colRef("adjtdayqty"));
  1713. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("obtapptotqty")) = grd_adjtord.valueMatrix(row,grd_adjtord.colRef("adjttotqty"));
  1714. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("obtappamt")) = grd_adjtord.valueMatrix(row,grd_adjtord.colRef("adjtamt"));
  1715. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("abdresncd")) = "-";
  1716. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("abdresnmemo")) = "-";
  1717. //grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "appinfo";
  1718. grd_adjtord.rowstatus(row) = 2;
  1719. }
  1720. }
  1721. }
  1722. // 4. 저장 수행
  1723. var curr_row = grd_pirhobtm.row;
  1724. var status = "update";
  1725. var judgdg = grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("judgdg"));
  1726. var clamno = grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("clamno"));
  1727. var acptno = grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("acptno"));
  1728. var docuseqno = grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("docuseqno"));
  1729. var obtappflag = grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("obtappflag"));
  1730. var obtapprem = model.getValue("/root/main/patinfodata/gridpatinfo/obtapprem");
  1731. var rem = model.getValue("/root/main/patinfodata/gridpatinfo/rem"); //ipt_rem.value;
  1732. var judgcls = model.getValue("/root/main/patinfodata/gridpatinfo/judgcls"); //rdo_judgflag.value;
  1733. var attdocu = model.getValue("/root/main/patinfodata/gridpatinfo/attdocu"); //chk_attdocu.value;
  1734. model.setValue("/root/main/temp2/adjtremdata/adjt_judgdg", judgdg);
  1735. model.setValue("/root/main/temp2/adjtremdata/adjt_clamno", clamno);
  1736. model.setValue("/root/main/temp2/adjtremdata/adjt_acptno", acptno);
  1737. model.setValue("/root/main/temp2/adjtremdata/adjt_docuseqno", docuseqno);
  1738. model.setValue("/root/main/temp2/adjtremdata/adjt_obtappflag", obtappflag);
  1739. model.setValue("/root/main/temp2/adjtremdata/adjt_status", status);
  1740. model.setValue("/root/main/temp2/adjtremdata/adjt_obtapprem", obtapprem);
  1741. model.setValue("/root/main/temp2/adjtremdata/adjt_rem", rem);
  1742. model.setValue("/root/main/temp2/adjtremdata/adjt_judgcls", judgcls);
  1743. if (attdocu != "") {
  1744. model.setValue("/root/main/temp2/adjtremdata/adjt_attdocu", attdocu);
  1745. } else {
  1746. model.setValue("/root/main/temp2/adjtremdata/adjt_attdocu", "-");
  1747. }
  1748. model.setValue("/root/main/temp/gridadjtord", grd_adjtord.getUpdateData());
  1749. // 저장....
  1750. // 1. 이신일투/이신총투 저장
  1751. // 2. 심사분류및 첨부문서 저장
  1752. // 3. 이의신청사유/비고란 저장
  1753. submit("TXPIR30401"); // 1 번만 저장처리됨..확인
  1754. model.setValue("/root/hidden/tmp/saveyn","Y");
  1755. button1.dispatch("onclick");
  1756. ]]>
  1757. </script>
  1758. </button>
  1759. <button id="button5" class="btn2_letter4" style="left:831px; top:5px; width:64px; height:19px; ">
  1760. <caption>결과조회</caption>
  1761. <script type="javascript" ev:event="DOMActivate">
  1762. <![CDATA[
  1763. // 이의신청등록관리화면의 조회조건과 이의신청결과조회화면의 조회조건이 부분적으로 일치하기 때문에
  1764. // 동일한 조회조건에 해당하는 항목만 매핑처리한다.
  1765. /*
  1766. model.setValue("/root/source_result/termflag1", "");
  1767. model.setValue("/root/source_result/termflag2", "");
  1768. model.setValue("/root/source_result/fromobtappdd", "");
  1769. model.setValue("/root/source_result/toobtappdd", "");
  1770. model.setValue("/root/source_result/from_ordym", "");
  1771. model.setValue("/root/source_result/to_ordym", "");
  1772. model.setValue("/root/source_result/insukind", "");
  1773. model.setValue("/root/source_result/chosflag", "");
  1774. model.setValue("/root/source_result/clamflag", "");
  1775. model.setValue("/root/source_result/judgdg", model.getValue("/root/send/send_obtmlist/judgdg"));
  1776. model.setValue("/root/source_result/ordfildcd", "");
  1777. model.setValue("/root/source_result/acptno", model.getValue("/root/send/send_obtmlist/acptno"));
  1778. model.setValue("/root/source_result/obtappflag", model.getValue("/root/send/send_obtmlist/obtappflag"));
  1779. model.setValue("/root/source_result/obtappdocuno", "");
  1780. model.setValue("/root/source_result/decidocuno", "");
  1781. model.setValue("/root/source_result/rejudgflag", "");
  1782. model.setValue("/root/source_result/obtapprsltendflag", "");
  1783. model.setValue("/root/source_result/obtappamt", "");
  1784. model.setValue("/root/source_result/cuttotamt", "");
  1785. model.setValue("/root/source_result/recogamt", "");
  1786. modal("SMPIR30700", 1, 1, 1, "SMPIR30700", "/root/source_result", "/root/send/send_dataqry");
  1787. */
  1788. /*
  1789. setParameter("SMMRI00400_param_pid", model.getValue("/root/main/patinfodata/gridpatinfo/pid"));
  1790. open("SMMRI00400", "", "10", "10", "SMMRI00400", "", "", "", "");
  1791. */
  1792. model.makevalue("/root/hidden/smaer00800/cond/srchdate1", "");
  1793. model.makevalue("/root/hidden/smaer00800/cond/srchdate2", "");
  1794. model.makevalue("/root/hidden/smaer00800/cond/srchpid", model.getValue("/root/main/patinfodata/gridpatinfo/pid"));
  1795. model.makevalue("/root/hidden/smaer00800/cond/wardcd", "");
  1796. model.makevalue("/root/hidden/smaer00800/cond/roomcd", "");
  1797. model.makevalue("/root/hidden/smaer00800/cond/listflag", "P");
  1798. model.makevalue("/root/hidden/smaer00800/cond/deptcd", "");
  1799. model.makevalue("/root/hidden/smaer00800/cond/drid", "");
  1800. model.makevalue("/root/hidden/smaer00800/cond/chkcheck", "");
  1801. model.makevalue("/root/hidden/smaer00800/cond/chkcheck1", "A");
  1802. model.makevalue("/root/hidden/smaer00800/cond/chkcheck2", "B");
  1803. model.makevalue("/root/hidden/smaer00800/cond/chkcheck3", "C");
  1804. model.makevalue("/root/hidden/smaer00800/cond/chkcheck4", "D");
  1805. model.makevalue("/root/hidden/smaer00800/cond/chkcheck5", "E");
  1806. model.makevalue("/root/hidden/smaer00800/cond/chkcheck6", "F");
  1807. model.makevalue("/root/hidden/smaer00800/cond/chkcheck7", "G");
  1808. model.makevalue("/root/hidden/smaer00800/cond/chkcheck8", "");
  1809. model.makevalue("/root/hidden/smaer00800/cond/tabflag", "");
  1810. model.makevalue("/root/hidden/smaer00800/cond/mdlcd", "");
  1811. model.makevalue("/root/hidden/smaer00800/cond/examgubun", "");
  1812. model.makevalue("/root/hidden/smaer00800/cond/srchflag", "B");
  1813. model.makevalue("/root/hidden/smaer00800/cond/hlaflag", "N");
  1814. model.makevalue("/root/hidden/smaer00800/cond/prntfrmflag", "");
  1815. open("SMAER00800" ,"", "10", "10", "SMAER00800", "/root/hidden/smaer00800/cond", "/root/send/data/singdata", "", "");
  1816. ]]>
  1817. </script>
  1818. </button>
  1819. <button id="btn_before" class="btn2_letter4" style="left:765px; top:5px; width:64px; height:19px; ">
  1820. <caption>이전단계</caption>
  1821. <script type="javascript" ev:event="DOMActivate">
  1822. <![CDATA[
  1823. // [이전단계 클릭시에 이전신청구분을 조회 : [재심사 후 이의] -> [재심사], [심사청구/행정심판] -> [이의신청]
  1824. // 01:이의신청, 02:재심후이의신청, 03:재심사조정청구, 04:원외이의신청, 05:원외이의신청(추가), 06:심사청구, 07:행정심판, 08:정산환수, 09:원외정산환수, 10:정산의뢰, 11:자격정산의뢰
  1825. // model.setValue("/root/send/send_obtmlist/clamno", model.getValue("/root/hidden/obtmlist/claminfo/clamno"));
  1826. var v_obtappflag = model.getValue("/root/send/send_patinfo/obtappflag");
  1827. // alert("v_obtappflag : " + v_obtappflag);
  1828. var v_bfobtappflag = null;
  1829. // alert("v_obtappflag : " + v_obtappflag);
  1830. // 02:재심후 이의신청
  1831. if (v_obtappflag == "02") {
  1832. v_bfobtappflag = '03'; // 03:재심사 조정청구
  1833. model.setValue("/root/send/send_patinfo/obtappflag", v_bfobtappflag);
  1834. }
  1835. // 06:심사청구, 07:행정심판
  1836. if ((v_obtappflag == "06") || (v_obtappflag == "07")) {
  1837. v_bfobtappflag = '01'; // 01:이의신청
  1838. model.setValue("/root/send/send_patinfo/obtappflag", v_bfobtappflag);
  1839. }
  1840. // 01:이의신청, 02:재심후 이의신청, 06:심사청구, 07:행정심판
  1841. if ( (v_obtappflag == "02") || (v_obtappflag == "06") || (v_obtappflag == "07") || (v_obtappflag == "01")) {
  1842. modal("SMPIR30410", 1, 1, 1, "SMPIR30410", "/root/send/send_patinfo", "/root/send/send_patinfo");
  1843. }
  1844. ]]>
  1845. </script>
  1846. </button>
  1847. <button id="button8" class="btn2_letter6" style="left:897px; top:5px; width:86px; height:19px; ">
  1848. <caption>심사화면보기</caption>
  1849. <script type="javascript" ev:event="onclick">
  1850. <![CDATA[
  1851. var row = grd_pirhobtm.row;
  1852. if (grd_pirhobtm.row >= grd_pirhobtm.fixedRows ) {
  1853. if (grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("ioflag")) == "I") {
  1854. var preDocuWindow = getChildWindow("SMPID20300");
  1855. } else {
  1856. var preDocuWindow = getChildWindow("SMPID20500");
  1857. }
  1858. if (preDocuWindow == null) {
  1859. model.setValue("/root/send/send_afjudg/workflag", "12");
  1860. model.setValue("/root/send/send_afjudg/clamym",grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("clamym")));
  1861. model.setValue("/root/send/send_afjudg/clamdg",grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("clamdg")));
  1862. model.setValue("/root/send/send_afjudg/pid",grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("pid")));
  1863. model.setValue("/root/send/send_afjudg/pidsn",grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("pidsn")));
  1864. model.setValue("/root/send/send_afjudg/ioflag",grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("ioflag")));
  1865. if (grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("ioflag")) == "I") {
  1866. open("SMPID20300", "2", "10", "10", "SMPID20300", "/root/send/send_afjudg","/root/send/item1/clbs", "", "");
  1867. } else {
  1868. open("SMPID20500", "2", "10", "10", "SMPID20500", "/root/send/send_afjudg","/root/send/item1/clbs", "", "");
  1869. }
  1870. } else {
  1871. if (grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("ioflag")) == "I") {
  1872. model.setValue("/root/hidden/smpid20300/cond/workflag", "12");
  1873. model.setValue("/root/hidden/smpid20300/cond/clamym", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("clamym")));
  1874. model.setValue("/root/hidden/smpid20300/cond/clamdg", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("clamdg")));
  1875. model.setValue("/root/hidden/smpid20300/cond/pid", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("pid")));
  1876. model.setValue("/root/hidden/smpid20300/cond/pidsn", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("pidsn")));
  1877. model.setValue("/root/hidden/smpid20300/cond/ioflag", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("ioflag")));
  1878. preDocuWindow.javascript.fActivatePreDocuWindow();
  1879. activateChild("SMPID20300");
  1880. } else {
  1881. model.setValue("/root/hidden/smpid20500/cond/workflag", "12");
  1882. model.setValue("/root/hidden/smpid20500/cond/clamym", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("clamym")));
  1883. model.setValue("/root/hidden/smpid20500/cond/clamdg", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("clamdg")));
  1884. model.setValue("/root/hidden/smpid20500/cond/pid", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("pid")));
  1885. model.setValue("/root/hidden/smpid20500/cond/pidsn", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("pidsn")));
  1886. model.setValue("/root/hidden/smpid20500/cond/ioflag", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("ioflag")));
  1887. preDocuWindow.javascript.fActivatePreDocuWindow();
  1888. activateChild("SMPID20500");
  1889. }
  1890. }
  1891. }
  1892. ]]>
  1893. </script>
  1894. </button>
  1895. <button id="btn_rejudg" class="btn2_letter5" ref="/root/temp/rejudg" style="left:985px; top:5px; width:75px; height:19px; ">
  1896. <caption>재심사저장</caption>
  1897. <script type="javascript" ev:event="DOMActivate">
  1898. <![CDATA[
  1899. // 이의신청 대상자리스트 클릭시에 명일련단위로 재심사 등록을 처리 : 이의신청 상세 조회 화면의 재심사처리 Logic을 그대로 사용
  1900. var curr_row = grd_pirhobtm.row;
  1901. var status = "update";
  1902. model.setValue("/root/send/send_rejudgrgst/status", status);
  1903. model.setValue("/root/send/send_rejudgrgst/judgdg", grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("judgdg")));
  1904. model.setValue("/root/send/send_rejudgrgst/clamno", grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("clamno")));
  1905. model.setValue("/root/send/send_rejudgrgst/acptno", grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("acptno")));
  1906. model.setValue("/root/send/send_rejudgrgst/docuseqno", grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("docuseqno")));
  1907. model.setValue("/root/send/send_rejudgrgst/obtappflag", grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("obtappflag")));
  1908. // 2010.06.14 이의신청문서번호를 같이 보낸다. 무조건 - 로만 보내진다. 마감 안 한건만 재심사저장이 되니까.
  1909. model.setValue("/root/send/send_rejudgrgst/obtappdocuno", grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("obtappdocuno")));
  1910. if (grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("obtappflag")) == "03") {
  1911. if (messageBox("재심사 취소", "S001") != 6) return;
  1912. submit("TXPIR30301");
  1913. } else {
  1914. if (grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("obtappflag")) != "01" && grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("obtappflag")) != "04"
  1915. && grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("obtappflag")) != "08") { // 2014.02.20 정산환수도 재심사 저장 되도록 추가(L.E.J)
  1916. model.alert("이의신청,정산환수만 재심사조정 할 수 있습니다");
  1917. return;
  1918. }
  1919. if (messageBox("재심사 저장", "S001") != 6) return;
  1920. submit("TXPIR30300");
  1921. }
  1922. model.refresh();
  1923. submit("TRPIR30401");
  1924. //fSubtotal();
  1925. model.setValue("/root/hidden/tmp/saveyn","Y");
  1926. button1.dispatch("onclick");
  1927. ]]>
  1928. </script>
  1929. </button>
  1930. <line id="line5" class="line_3" style="x1:125px; y1:0px; x2:1193px; y2:0px; "/>
  1931. <button id="btn_delete" class="btn2_letter4" style="left:1128px; top:5px; width:64px; height:19px; ">
  1932. <caption>삭 제</caption>
  1933. <script type="javascript" ev:event="DOMActivate">
  1934. <![CDATA[
  1935. // 1. 삭제하시겠습니까?
  1936. if (messageBox("삭제", "S001") != 6) return;
  1937. // 2. 그리드 초기화
  1938. grd_adjtord.clearStatus();
  1939. // 3. 그리드 상태를 삭제로 변경한다.
  1940. var rows = grd_adjtord.selectedRows;
  1941. for (var i = 0; i < rows; i++) {
  1942. var row = grd_adjtord.selectedRow(i);
  1943. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("obtappyn")) = "false";
  1944. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("obtapponeqty")) = 0;
  1945. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("obtappdayqty")) = 0;
  1946. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("obtapptotqty")) = 0;
  1947. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("obtappamt")) = 0;
  1948. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("detladjtflag")) = "-";
  1949. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("adjtresndesc")) = "-";
  1950. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("displayyn")) = "N";
  1951. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("abdresncd")) = "-";
  1952. grd_adjtord.valueMatrix(row,grd_adjtord.colRef("abdresnmemo")) = "-";
  1953. grd_adjtord.rowstatus(row) = 4;
  1954. }
  1955. if (model.getValue("/root/main/patinfodata/gridadjtord[obtappyn='true']/obtappyn") != "true") {
  1956. //4. 이의사유.첨부파일 초기화 셋팅
  1957. var curr_row = grd_pirhobtm.row;
  1958. var status = "update";
  1959. var judgdg = grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("judgdg"));
  1960. var clamno = grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("clamno"));
  1961. var acptno = grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("acptno"));
  1962. var docuseqno = grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("docuseqno"));
  1963. var obtappflag = grd_pirhobtm.valueMatrix(curr_row,grd_pirhobtm.colRef("obtappflag"));
  1964. var obtapprem = model.getValue("/root/main/patinfodata/gridpatinfo/obtapprem");
  1965. var rem = model.getValue("/root/main/patinfodata/gridpatinfo/rem"); //ipt_rem.value;
  1966. var judgcls = model.getValue("/root/main/patinfodata/gridpatinfo/judgcls"); //rdo_judgflag.value;
  1967. var attdocu = model.getValue("/root/main/patinfodata/gridpatinfo/attdocu"); //chk_attdocu.value;
  1968. model.setValue("/root/main/temp2/adjtremdata/adjt_judgdg", judgdg);
  1969. model.setValue("/root/main/temp2/adjtremdata/adjt_clamno", clamno);
  1970. model.setValue("/root/main/temp2/adjtremdata/adjt_acptno", acptno);
  1971. model.setValue("/root/main/temp2/adjtremdata/adjt_docuseqno", docuseqno);
  1972. model.setValue("/root/main/temp2/adjtremdata/adjt_obtappflag", obtappflag);
  1973. model.setValue("/root/main/temp2/adjtremdata/adjt_status", status);
  1974. model.setValue("/root/main/temp2/adjtremdata/adjt_obtapprem", "");
  1975. model.setValue("/root/main/temp2/adjtremdata/adjt_rem", rem);
  1976. model.setValue("/root/main/temp2/adjtremdata/adjt_judgcls", judgcls);
  1977. model.setValue("/root/main/temp2/adjtremdata/adjt_attdocu", "-");
  1978. // 6. 초기화 저장....
  1979. // 1. 이신일투/이신총투 저장
  1980. // 2. 심사분류및 첨부문서 저장
  1981. // 3. 이의신청사유/비고란 저장
  1982. submit("TXPIR30401"); // 1 번만 저장처리됨..확인
  1983. }
  1984. // 5. 삭제를 수행한다.
  1985. model.setValue("/root/main/temp/gridadjtord", grd_adjtord.getUpdateData());
  1986. submit("TXPIR30403");
  1987. // 7. 재조회한다.
  1988. button1.dispatch("onclick");
  1989. model.setValue("/root/hidden/tmp/saveyn","Y");
  1990. button2.dispatch("onclick");
  1991. ]]>
  1992. </script>
  1993. </button>
  1994. <datagrid id="grd_adjtord" nodeset="/root/main/patinfodata/gridadjtord" caption="신청^관심^줄^항^사&#xA;유^구&#xA;분^이신구분^처방코드^EDI코드^처방명칭^단가^청구^청구^청구^삭감^삭감^삭감^삭감액^이의신청^이의신청^이의신청^이의신청&#xA;금액^부제기^부제기^삭감사유진료의통보용^삭감사유진료의통보용^진료의&#xA;통보여부^부제기일자^^^^^^^^^^^^^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12|신청^관심^줄^항^사&#xA;유^구&#xA;분^이신구분^처방코드^EDI코드^처방명칭^단가^1회^일투^총투^1회^일투^총투^삭감액^1회^일투^총투^이의신청&#xA;금액^사유^사유설명^사유^사유설명^진료의&#xA;통보여부^부제기일자^^^^^^^^^^^^^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12" colsep="^" colwidth="30, 30, 29, 25, 26, 28, 30, 67, 68, 181, 61, 30, 30, 30, 30, 30, 30, 66, 30, 30, 30, 66, 54, 70, 60, 70, 60, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortmove" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:29px; width:1193px; height:170px; ">
  1995. <col ref="obtappyn" type="checkbox"/>
  1996. <col checkvalue="Y,N" ref="concprcpyn" type="checkbox"/>
  1997. <col ref="lnno"/>
  1998. <col ref="item"/>
  1999. <col ref="adjtresncd" style="text-align:center; "/>
  2000. <col ref="matractflag" style="text-align:center; "/>
  2001. <col ref="obtappflag" visibility="hidden"/>
  2002. <col ref="calcscorcd"/>
  2003. <col ref="edicd"/>
  2004. <col ref="hngnm"/>
  2005. <col ref="unitcost" format="#,###" style="text-align:right; "/>
  2006. <col ref="edidrugqty" style="text-align:right; "/>
  2007. <col ref="tims" style="text-align:right; "/>
  2008. <col ref="edidayno" style="text-align:right; "/>
  2009. <col ref="adjtoneqty" style="text-align:right; "/>
  2010. <col ref="adjtdayqty" style="text-align:right; "/>
  2011. <col ref="adjttotqty" style="text-align:right; "/>
  2012. <col ref="adjtamt" format="#,###" style="left:682px; top:43px; width:66px; height:23px; text-align:right; "/>
  2013. <col ref="obtapponeqty" type="input" style="text-align:right; "/>
  2014. <col ref="obtappdayqty" type="input" style="text-align:right; "/>
  2015. <col ref="obtapptotqty" type="input" style="text-align:right; "/>
  2016. <col ref="obtappamt" type="input" format="#,###" style="text-align:right; "/>
  2017. <col ref="abdresncd" type="combo">
  2018. <choices>
  2019. <itemset nodeset="/root/init2/abdresnlist/abdmlist">
  2020. <label ref="nm"/>
  2021. <value ref="cd"/>
  2022. </itemset>
  2023. </choices>
  2024. </col>
  2025. <col ref="abdresnmemo" type="inputbutton"/>
  2026. <col ref="detladjtflag" type="combo">
  2027. <choices>
  2028. <itemset nodeset="/root/init/P0250list/P0250">
  2029. <label ref="cdnm"/>
  2030. <value ref="cdid"/>
  2031. </itemset>
  2032. </choices>
  2033. </col>
  2034. <col ref="adjtresndesc" type="inputbutton"/>
  2035. <col ref="displayyn" type="combo">
  2036. <choices>
  2037. <item>
  2038. <label>Y</label>
  2039. <value>Y</value>
  2040. </item>
  2041. <item>
  2042. <label>N</label>
  2043. <value>N</value>
  2044. </item>
  2045. </choices>
  2046. </col>
  2047. <col ref="abddd" format="yyyy-mm-dd" style="text-align:center; "/>
  2048. <col ref="judgdg" visibility="hidden"/>
  2049. <col ref="clamno" visibility="hidden"/>
  2050. <col ref="acptno" visibility="hidden"/>
  2051. <col ref="docuseqno" visibility="hidden"/>
  2052. <col ref="mpsno" visibility="hidden"/>
  2053. <col ref="instcd" visibility="hidden"/>
  2054. <col ref="clamym" visibility="hidden"/>
  2055. <col ref="clamdg" visibility="hidden"/>
  2056. <col ref="ordym" visibility="hidden"/>
  2057. <col ref="orddeptcd" visibility="hidden"/>
  2058. <col ref="orddrid" visibility="hidden"/>
  2059. <col ref="workflag" visibility="hidden"/>
  2060. <col ref="edicdflag" visibility="hidden"/>
  2061. <col ref="oldobtapponeqty" visibility="hidden"/>
  2062. <col ref="oldobtappdayqty" visibility="hidden"/>
  2063. <col ref="oldobtapptotqty" visibility="hidden"/>
  2064. <col ref="oldobtappamt" visibility="hidden"/>
  2065. <col ref="olddetladjtflag" visibility="hidden"/>
  2066. <col ref="oldadjtresndesc" visibility="hidden"/>
  2067. <col ref="olddisplayyn" visibility="hidden"/>
  2068. <col ref="oldabdresncd" visibility="hidden"/>
  2069. <col ref="oldabdresnmemo" visibility="hidden"/>
  2070. <col ref="judgrid" visibility="hidden"/>
  2071. <col ref="oldobtappyn" visibility="hidden"/>
  2072. <col ref="adjtmakeyn"/>
  2073. <script type="javascript" ev:event="onmousedown">
  2074. <![CDATA[
  2075. if (event.button == 3) {
  2076. if (grd_adjtord.disabled) return;
  2077. if (grd_adjtord.isCell(event.target) && grd_adjtord.mouseRow >= grd_adjtord.fixedrows) {
  2078. if (model.getValue("/root/send/send_end/obtappendflag") != "S" && model.getValue("/root/send/send_end/obtappendflag") != "Y") {
  2079. window.setPopupMenu(true, "/root/popupdata/popupmenu/gridadjtord/item", "name", "func", false);
  2080. }
  2081. }
  2082. else {
  2083. window.setPopupMenu(false);
  2084. }
  2085. }
  2086. ]]>
  2087. </script>
  2088. <script type="javascript" ev:event="DOMFocusOut">
  2089. <![CDATA[
  2090. window.setPopupMenu(false);
  2091. ]]>
  2092. </script>
  2093. <script type="javascript" ev:event="xforms-value-changed">
  2094. <![CDATA[
  2095. var curr_row = grd_adjtord.row;
  2096. var obtapponeqty = Number(grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtapponeqty")));
  2097. var obtappdayqty = Number(grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappdayqty")));
  2098. var obtapptot = Number(grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtapptotqty")));
  2099. var unitcost = Number(grd_adjtord.valueMatrix(curr_row, grd_adjtord.colRef("unitcost")));
  2100. var adjtresncd = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("detladjtflag"));
  2101. var adjtresncdtext = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("adjtresndesc"));
  2102. var abdresncd = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("abdresncd"));
  2103. var obtappyn = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappyn"));
  2104. var oldobtappyn = grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("oldobtappyn"));
  2105. var corpactaddrate = model.getValue("/root/main/patinfodata/gridpatinfo/corpactaddrate");
  2106. /*
  2107. // 삭감사유
  2108. if (grd_adjtord.col == grd_adjtord.colRef("detladjtflag")) {
  2109. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "adjtinfo"; // workflag = "adjtinfo" set
  2110. }
  2111. // 삭감사유설명
  2112. if (grd_adjtord.col == grd_adjtord.colRef("adjtresndesc")) {
  2113. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "adjtinfo"; // workflag = "adjtinfo" set
  2114. }
  2115. */
  2116. // 이의신청1회
  2117. if (grd_adjtord.col == grd_adjtord.colRef("obtapponeqty")) {
  2118. if (grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtapponeqty")) != "") {
  2119. grd_adjtord.rowStatus(curr_row) = 2; // update
  2120. if (grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("edicdflag")) == "1") {
  2121. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappamt")) = Math.round((unitcost * obtapponeqty * obtappdayqty * obtapptot) * (1 + (corpactaddrate/100))); // 이의신청액
  2122. } else {
  2123. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappamt")) = Math.round(unitcost * obtapponeqty * obtappdayqty * obtapptot); // 이의신청액
  2124. }
  2125. //grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "appinfo"; // workflag = "appinfo" set
  2126. }
  2127. }
  2128. // 이의신청일투
  2129. if (grd_adjtord.col == grd_adjtord.colRef("obtappdayqty")) {
  2130. if (grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappdayqty")) != "") {
  2131. grd_adjtord.rowStatus(curr_row) = 2; // update
  2132. if (grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("edicdflag")) == "1") {
  2133. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappamt")) = Math.round((unitcost * obtapponeqty * obtappdayqty * obtapptot) * (1 + (corpactaddrate/100))); // 이의신청액
  2134. } else {
  2135. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappamt")) = Math.round(unitcost * obtapponeqty * obtappdayqty * obtapptot); // 이의신청액
  2136. }
  2137. //grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappamt")) = Math.round((unitcost * obtapponeqty * obtappdayqty * obtapptot) * (1 + (corpactaddrate/100))); // 이의신청액
  2138. //grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "appinfo"; // workflag = "appinfo" set
  2139. }
  2140. }
  2141. // 이의신청총투
  2142. if (grd_adjtord.col == grd_adjtord.colRef("obtapptotqty")) {
  2143. if ((grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtapptotqty")) != "") & (grd_adjtord.col != grd_adjtord.colRef("detladjtflag")) & (grd_adjtord.col != grd_adjtord.colRef("adjtresndesc"))) {
  2144. grd_adjtord.rowStatus(curr_row) = 2; // update
  2145. if (grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("edicdflag")) == "1") {
  2146. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappamt")) = Math.round((unitcost * obtapponeqty * obtappdayqty * obtapptot) * (1 + (corpactaddrate/100))); // 이의신청액
  2147. } else {
  2148. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappamt")) = Math.round(unitcost * obtapponeqty * obtappdayqty * obtapptot); // 이의신청액
  2149. }
  2150. //grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("obtappamt")) = Math.round((unitcost * obtapponeqty * obtappdayqty * obtapptot) * (1 + (corpactaddrate/100))); // 이의신청액
  2151. //grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "appinfo"; // workflag = "appinfo" set
  2152. }
  2153. }
  2154. // 부제기사유
  2155. if (grd_adjtord.col == grd_adjtord.colRef("abdresncd")) {
  2156. if (abdresncd == "-") {
  2157. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("abdresnmemo")) = "-";
  2158. }
  2159. }
  2160. // 신청
  2161. if (grd_adjtord.col == grd_adjtord.colRef("obtappyn")) {
  2162. fObtappynCheck(curr_row);
  2163. }
  2164. fSubtotal();
  2165. //grd_adjtord.gridToInstance();
  2166. ]]>
  2167. </script>
  2168. <script type="javascript" ev:event="ondblclick">
  2169. <![CDATA[
  2170. if (grd_adjtord.isCell(event.target) && grd_adjtord.mouseRow >= grd_adjtord.fixedrows) {
  2171. var curr_row = grd_adjtord.row - 1;
  2172. var col = grd_adjtord.col;
  2173. if (col == grd_adjtord.colRef("edicd") || col == grd_adjtord.colRef("hngnm")) {
  2174. var obtapprem = model.getValue("/root/main/patinfodata/gridpatinfo/obtapprem");
  2175. if (obtapprem == "-") {
  2176. if (col == grd_adjtord.colRef("edicd")) obtapprem = model.getValue("/root/main/patinfodata/gridadjtord[" + curr_row + "]/edicd") + " : ";
  2177. else if (col == grd_adjtord.colRef("hngnm")) obtapprem = model.getValue("/root/main/patinfodata/gridadjtord[" + curr_row + "]/hngnm") + " : ";
  2178. } else {
  2179. if (col == grd_adjtord.colRef("edicd")) obtapprem += model.getValue("/root/main/patinfodata/gridadjtord[" + curr_row + "]/edicd") + " : ";
  2180. else if (col == grd_adjtord.colRef("hngnm")) obtapprem += model.getValue("/root/main/patinfodata/gridadjtord[" + curr_row + "]/hngnm") + " : ";
  2181. }
  2182. model.setValue("/root/main/patinfodata/gridpatinfo/obtapprem", obtapprem);
  2183. txtbox_obtapprem.refresh();
  2184. model.setFocus("txtbox_obtapprem");
  2185. obtapprem.length
  2186. txtbox_obtapprem.selBegin = obtapprem.length;
  2187. txtbox_obtapprem.selEnd = obtapprem.length;
  2188. }
  2189. }
  2190. ]]>
  2191. </script>
  2192. <script type="javascript" ev:event="onbuttonclick">
  2193. <![CDATA[
  2194. var row = grd_adjtord.row - 1;
  2195. var col = grd_adjtord.col;
  2196. if (col == grd_adjtord.colRef("adjtresndesc")) { // 삭감사유설명
  2197. // 삭감사유코드가 먼저 들어가야 함
  2198. if (model.getValue("/root/main/patinfodata/gridadjtord[" + row + " ]/detladjtflag") == "") {
  2199. messageBox("삭감사유코드가 입력되지", "E007");
  2200. return;
  2201. }
  2202. model.setValue("/root/hidden/adjtresndesc",model.getValue("/root/main/patinfodata/gridadjtord[" + row + " ]/adjtresndesc"));
  2203. ipt_adjtresndesc.refresh();
  2204. grp_adjtresndesc.visible= true;
  2205. }
  2206. if (col == grd_adjtord.colRef("abdresnmemo")) { // 부제기사유설명
  2207. // 부제기사유코드가 먼저 들어가야 함
  2208. if (model.getValue("/root/main/patinfodata/gridadjtord[" + row + " ]/abdresncd") == "") {
  2209. messageBox("부제기사유코드가 입력되지", "E007");
  2210. return;
  2211. }
  2212. model.setValue("/root/hidden/abdresnmemo",model.getValue("/root/main/patinfodata/gridadjtord[" + row + " ]/abdresnmemo"));
  2213. ipt_abdresnmemo.refresh();
  2214. grp_abdresnmemo.visible= true;
  2215. }
  2216. ]]>
  2217. </script>
  2218. <script type="javascript" ev:event="onaftersort">
  2219. <![CDATA[
  2220. grd_adjtord.gridToInstance();
  2221. ]]>
  2222. </script>
  2223. <script type="javascript" ev:event="onbeforesort">
  2224. <![CDATA[
  2225. ]]>
  2226. </script>
  2227. <script type="javascript" ev:event="DOMFocusIn">
  2228. <![CDATA[
  2229. ]]>
  2230. </script>
  2231. <script type="javascript" ev:event="onmouseover">
  2232. <![CDATA[
  2233. if (grd_adjtord.isCell(event.target) && grd_adjtord.mouseRow >= grd_adjtord.fixedrows) {
  2234. var clodstatus = grd_adjtord.valueMatrix(grd_adjtord.mouseRow, grd_adjtord.colRef("obtappyn"));
  2235. if (clodstatus == "false") { // 0 : new, 2 : update
  2236. // 조회된 처방에 대해서는 그룹/수가/EDI코드 입력을 제한한다.
  2237. grd_adjtord.colDisabled(grd_adjtord.colRef("obtapponeqty")) = true;
  2238. grd_adjtord.colDisabled(grd_adjtord.colRef("obtappdayqty")) = true;
  2239. grd_adjtord.colDisabled(grd_adjtord.colRef("obtapptotqty")) = true;
  2240. grd_adjtord.colDisabled(grd_adjtord.colRef("obtappamt")) = true;
  2241. } else {
  2242. grd_adjtord.colDisabled(grd_adjtord.colRef("obtapponeqty")) = false;
  2243. grd_adjtord.colDisabled(grd_adjtord.colRef("obtappdayqty")) = false;
  2244. grd_adjtord.colDisabled(grd_adjtord.colRef("obtapptotqty")) = false;
  2245. grd_adjtord.colDisabled(grd_adjtord.colRef("obtappamt")) = false;
  2246. }
  2247. }
  2248. ]]>
  2249. </script>
  2250. </datagrid>
  2251. <output id="opt_totadjtamt" ref="/root/hidden/totadjtamt" class="output_fix" format="#,###" style="left:216px; top:5px; width:75px; height:19px; text-align:right; "/>
  2252. <caption id="caption29" style="left:165px; top:7px; width:51px; height:15px; ">총삭감액</caption>
  2253. <output id="opt_totobtappamt" ref="/root/hidden/totobtappamt" class="output_fix" format="#,###" style="left:369px; top:5px; width:75px; height:19px; text-align:right; "/>
  2254. <caption id="caption32" style="left:295px; top:7px; width:74px; height:15px; ">총이의신청액</caption>
  2255. <button id="button11" class="btn2_letter4" disabled="false" visibility="visible" style="left:699px; top:5px; width:64px; height:19px; ">
  2256. <caption>약제누적</caption>
  2257. <script type="javascript" ev:event="DOMActivate">
  2258. <![CDATA[
  2259. var cur_row = grd_pirhobtm.row;
  2260. // 누적 제어일 경우 환자별약제누적관리 현황을 팝업으로 연다.
  2261. //var vacmlyn = grd_detlprcpspec.valueMatrix(cur_row, grd_detlprcpspec.colRef("acmlyn"));
  2262. // 누적여부 항목이 Y 일때 환자별약제누적관리 창을 팝업으로 뛰운다
  2263. //if(vacmlyn == "Y") {
  2264. var vpid = grd_pirhobtm.valueMatrix(cur_row, grd_pirhobtm.colRef("pid"));
  2265. var vhngnm = grd_pirhobtm.valueMatrix(cur_row, grd_pirhobtm.colRef("patnm"));
  2266. var vprcpdd = getCurrentDate();
  2267. var vprcpcd = grd_pirhobtm.valueMatrix(cur_row, grd_pirhobtm.colRef("prcpcd"));
  2268. setParameter("pid", vpid);
  2269. setParameter("hngnm", vhngnm);
  2270. setParameter("prcpdd", vprcpdd);
  2271. setParameter("prcpcd", vprcpcd);
  2272. open("../../../pam/bfjudgcareweb/xrw/SMPPI00700_환자별약제누적관리", "1", "20", "80" ,"SMPPI00700_환자별약제누적관리", "", "");
  2273. ]]>
  2274. </script>
  2275. </button>
  2276. <button id="button12" class="btn2_letter6" disabled="false" visibility="visible" style="left:611px; top:5px; width:86px; height:19px; ">
  2277. <caption>통합기록조회</caption>
  2278. <script type="javascript" ev:event="DOMActivate">
  2279. <![CDATA[
  2280. if(grd_pirhobtm.valueMatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("pid")) != "" ) {
  2281. fOpenSMMRI00400(grd_pirhobtm.valueMatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("pid")));
  2282. }
  2283. ]]>
  2284. </script>
  2285. </button>
  2286. <button id="button13" class="btn2_letter7" disabled="false" visibility="visible" style="left:512px; top:5px; width:97px; height:19px; ">
  2287. <caption>급여비용결정서</caption>
  2288. <script type="javascript" ev:event="DOMActivate">
  2289. <![CDATA[
  2290. if(grd_pirhobtm.valueMatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("pid")) != "" ) {
  2291. model.setValue("/root/hidden/smpie03000/cond/flag", "1");
  2292. model.setValue("/root/hidden/smpie03000/cond/ioflag", "A");
  2293. model.setValue("/root/hidden/smpie03000/cond/noflag", "A");
  2294. model.setValue("/root/hidden/smpie03000/cond/no", grd_pirhobtm.valueMatrix(grd_pirhobtm.row,grd_pirhobtm.colRef("acptno")));
  2295. open("SMPIE03000" ,"", "10", "10", "SMPIE03000", "/root/hidden/smpie03000/cond", "/root/send/send_f131", "", "");
  2296. }
  2297. ]]>
  2298. </script>
  2299. </button>
  2300. </group>
  2301. <input id="output7" ref="/root/main/patinfodata/gridpatinfo/pid" class="input_search" style="left:406px; top:100px; width:65px; height:19px; text-align:center; "/>
  2302. <button id="btn_memohistory_etc" class="btn2_letter2" _auth="X" style="left:1130px; top:311px; width:42px; height:19px; ">
  2303. <caption>기타</caption>
  2304. <script type="javascript" ev:event="DOMActivate">
  2305. <![CDATA[
  2306. // SPPIZ00700_심사Comment조회.xrw 호출
  2307. fGetJudgEdiComment("5", "99"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  2308. ]]>
  2309. </script>
  2310. </button>
  2311. <button id="btn_memohistory_treat" class="btn2_letter2" _auth="X" style="left:1040px; top:311px; width:42px; height:19px; ">
  2312. <caption>처치</caption>
  2313. <script type="javascript" ev:event="DOMActivate">
  2314. <![CDATA[
  2315. // SPPIZ00700_심사Comment조회.xrw 호출
  2316. fGetJudgEdiComment("5", "03"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  2317. ]]>
  2318. </script>
  2319. </button>
  2320. <button id="btn_memohistory_exam" class="btn2_letter2" _auth="X" style="left:1085px; top:311px; width:42px; height:19px; ">
  2321. <caption>검사</caption>
  2322. <script type="javascript" ev:event="DOMActivate">
  2323. <![CDATA[
  2324. // SPPIZ00700_심사Comment조회.xrw 호출
  2325. fGetJudgEdiComment("5", "04"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  2326. ]]>
  2327. </script>
  2328. </button>
  2329. <button id="btn_memohistory" class="btn2_letter4" _auth="X" style="left:883px; top:311px; width:64px; height:19px; ">
  2330. <caption>이의신청</caption>
  2331. <script type="javascript" ev:event="DOMActivate">
  2332. <![CDATA[
  2333. // SPPIZ00700_심사Comment조회.xrw 호출
  2334. fGetJudgEdiComment("5", "");
  2335. ]]>
  2336. </script>
  2337. </button>
  2338. <button id="btn_memohistory_injection" class="btn2_letter2" _auth="X" style="left:995px; top:311px; width:42px; height:19px; ">
  2339. <caption>주사</caption>
  2340. <script type="javascript" ev:event="DOMActivate">
  2341. <![CDATA[
  2342. // SPPIZ00700_심사Comment조회.xrw 호출
  2343. fGetJudgEdiComment("5", "02"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  2344. ]]>
  2345. </script>
  2346. </button>
  2347. <button id="btn_memohistory_drug" class="btn2_letter2" _auth="X" style="left:950px; top:311px; width:42px; height:19px; ">
  2348. <caption>약</caption>
  2349. <script type="javascript" ev:event="DOMActivate">
  2350. <![CDATA[
  2351. // SPPIZ00700_심사Comment조회.xrw 호출
  2352. fGetJudgEdiComment("5", "01"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  2353. ]]>
  2354. </script>
  2355. </button>
  2356. <select id="checkbox2" ref="/root/main/patinfodata/gridpatinfo/attdocu" visibility="hidden" overflow="visible" appearance="full" cellspacing="1" cols="7" sep="," vcellspacing="10" style="left:355px; top:450px; width:535px; height:20px; border-style:none; ">
  2357. <choices>
  2358. <item>
  2359. <label>6.진료기록부사본</label>
  2360. <value>6</value>
  2361. </item>
  2362. <item>
  2363. <label>7.CD</label>
  2364. <value>7</value>
  2365. </item>
  2366. <item>
  2367. <label>8.필름</label>
  2368. <value>8</value>
  2369. </item>
  2370. <item>
  2371. <label>9.기타</label>
  2372. <value>9</value>
  2373. </item>
  2374. <item>
  2375. <label>5.기타</label>
  2376. <value>5</value>
  2377. </item>
  2378. <item>
  2379. <label>10.신규</label>
  2380. <value>10</value>
  2381. </item>
  2382. <item>
  2383. <label>11.변경</label>
  2384. <value>11</value>
  2385. </item>
  2386. </choices>
  2387. <script type="javascript" ev:event="xforms-value-changed">
  2388. <![CDATA[
  2389. if (chk_attdocu.value != "") {
  2390. fObtappynAutoCheck("true");
  2391. } else {
  2392. fObtappynAutoCheck("false")
  2393. }
  2394. fSubtotal();
  2395. ]]>
  2396. </script>
  2397. </select>
  2398. </group>
  2399. <group id="grp_btn" style="left:0px; top:728px; width:1195px; height:26px; ">
  2400. <button id="button7" class="btn3_letter7" style="left:0px; top:2px; width:116px; height:22px; ">
  2401. <caption>이의신청서 출력</caption>
  2402. <script type="javascript" ev:event="onclick">
  2403. <![CDATA[
  2404. if (grd_pirhobtm.rows > 1) {
  2405. model.setValue("/root/send/send_obtmlist/judgdg",grd_pirhobtm.valueMatrix(1,grd_pirhobtm.colRef("judgdg")));
  2406. model.setValue("/root/send/send_obtmlist/clamno",grd_pirhobtm.valueMatrix(1,grd_pirhobtm.colRef("clamno")));
  2407. model.setValue("/root/send/send_obtmlist/acptno",grd_pirhobtm.valueMatrix(1,grd_pirhobtm.colRef("acptno")));
  2408. model.setValue("/root/send/send_obtmlist/obtappflag",grd_pirhobtm.valueMatrix(1,grd_pirhobtm.colRef("obtappflag")));
  2409. }
  2410. modal("SPPIR30500", 1, 1, 1, "SPPIR30500", "/root/send/send_obtmlist", "/root/receiveref");
  2411. ]]>
  2412. </script>
  2413. </button>
  2414. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
  2415. <button id="button6" class="btn3_letter6" style="left:198px; top:2px; width:104px; height:22px; ">
  2416. <caption>이의신청 결정</caption>
  2417. <script type="javascript" ev:event="DOMActivate">
  2418. <![CDATA[
  2419. modal("SMPIR30800", 1, 1, 1, "SMPIR30800", "/root/send/send_obtmlist", "/root/send/send_obtmlist");
  2420. ]]>
  2421. </script>
  2422. </button>
  2423. <button id="button3" class="btn3_letter4" style="left:117px; top:2px; width:80px; height:22px; ">
  2424. <caption>문서 마감</caption>
  2425. <script type="javascript" ev:event="DOMActivate">
  2426. <![CDATA[
  2427. // 이의신청등록관리화면의 조회조건과 이의신청과조회화면의 조회조건이 부분적으로 일치하기 때문에 동일한 조회조건에 해당하는 항목만 매핑처리한다.
  2428. // var curr_row = grd_pirhobtm.row;
  2429. // var status = "update";
  2430. // model.setValue("/root/send/send_end/status", status);
  2431. // model.setValue("/root/send/send_end/judgdg", model.getValue("/root/main/obtmlist/gridpirmobth[" + curr_row + "]/judgdg"));
  2432. // model.setValue("/root/send/send_end/clamno", model.getValue("/root/main/obtmlist/gridpirmobth[" + curr_row + "]/clamno"));
  2433. // model.setValue("/root/send/send_end/acptno", model.getValue("/root/main/obtmlist/gridpirmobth[" + curr_row + "]/acptno"));
  2434. // model.setValue("/root/send/send_end/obtappflag", model.getValue("/root/main/obtmlist/gridpirmobth[" + curr_row + "]/obtappflag"));
  2435. // model.setValue("/root/send/send_end/notidd", model.getValue("/root/main/obtmlist/gridpirmobth[" + curr_row + "]/notidd"));
  2436. // 개별 마감 여부 체크. 개별 마감시 전체 마감 기능을 제한해야 한다. 2010.06.16
  2437. var closecnt = 0;
  2438. for ( var i = 1 ; i < grd_pirhobtm.rows ; i++ ) {
  2439. if ( grd_pirhobtm.valueMatrix(i, grd_pirhobtm.colRef("closeyn")) == "Y" ) {
  2440. closecnt++;
  2441. }
  2442. }
  2443. // 명세서의 일부만 마감이 됐을 경우 개별 마감으로 분류한다. 문서마감 팝업시에 개별마감건은 일괄 마감처리를 막아야 한다.
  2444. if ( closecnt == 0 || closecnt == grd_pirhobtm.rows - 1 ) {
  2445. model.setValue("/root/send/send_end/indendyn", "N");
  2446. } else {
  2447. model.setValue("/root/send/send_end/indendyn", "Y");
  2448. }
  2449. modal("SPPIR30420", 1, 1, 1, "SPPIR30420", "/root/send/send_end", "/root/main/enddata");
  2450. ]]>
  2451. </script>
  2452. </button>
  2453. <caption id="caption44" style="left:310px; top:5px; width:825px; height:20px; color:#ff0000; ">* 삭감액(약제상한차액포함), 이의신청금액(약제상한차액포함 )</caption>
  2454. </group>
  2455. <group id="grp_adjtresndesc" visibility="hidden" style="left:710px; top:580px; width:415px; height:103px; ">
  2456. <shape id="roundrect3" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:2px; top:2px; width:413px; height:100px; "/>
  2457. <textarea id="ipt_adjtresndesc" ref="/root/hidden/adjtresndesc" style="left:6px; top:24px; width:404px; height:46px; "/>
  2458. <caption id="caption13" class="search_name" style="left:6px; top:5px; width:154px; height:17px; ">삭감사유 설명</caption>
  2459. <button id="btn_confirm1" class="btn4_letter2" style="left:295px; top:75px; width:56px; height:22px; ">
  2460. <caption>확인</caption>
  2461. <script type="javascript" ev:event="DOMActivate">
  2462. <![CDATA[
  2463. var row = grd_adjtord.row - 1;
  2464. var adjtresndesc = model.getValue("/root/main/patinfodata/gridadjtord[" + row + "]/adjtresndesc");
  2465. if(adjtresndesc != ipt_adjtresndesc.value){
  2466. model.setValue("/root/main/patinfodata/gridadjtord[" + row + "]/adjtresndesc",ipt_adjtresndesc.currentText);
  2467. grd_adjtord.addstatus(grd_adjtord.row, "update");
  2468. }
  2469. model.setValue("/root/hidden/adjtresndesc", "");
  2470. ipt_adjtresndesc.refresh();
  2471. grp_adjtresndesc.visible = false;
  2472. ]]>
  2473. </script>
  2474. </button>
  2475. <button id="btn_cancel1" class="btn4_letter2" style="left:354px; top:75px; width:56px; height:22px; ">
  2476. <caption>취소</caption>
  2477. <script type="javascript" ev:event="DOMActivate">
  2478. <![CDATA[
  2479. model.setValue("/root/hidden/adjtresndesc", "");
  2480. ipt_adjtresndesc.refresh();
  2481. grp_adjtresndesc.visible = false;
  2482. ]]>
  2483. </script>
  2484. </button>
  2485. </group>
  2486. <group id="grp_abdresnmemo" visibility="hidden" style="left:695px; top:625px; width:415px; height:103px; ">
  2487. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:2px; top:2px; width:413px; height:100px; "/>
  2488. <textarea id="ipt_abdresnmemo" ref="/root/hidden/abdresnmemo" style="left:6px; top:24px; width:404px; height:46px; "/>
  2489. <caption id="caption14" class="search_name" style="left:6px; top:5px; width:154px; height:17px; ">부제기사유 설명</caption>
  2490. <button id="btn_confirm2" class="btn4_letter2" style="left:295px; top:75px; width:56px; height:22px; ">
  2491. <caption>확인</caption>
  2492. <script type="javascript" ev:event="DOMActivate">
  2493. <![CDATA[
  2494. var row = grd_adjtord.row - 1;
  2495. var abdresnmemo = model.getValue("/root/main/patinfodata/gridadjtord[" + row + "]/abdresnmemo");
  2496. if(abdresnmemo != ipt_abdresnmemo.value){
  2497. model.setValue("/root/main/patinfodata/gridadjtord[" + row + "]/abdresnmemo",ipt_abdresnmemo.currentText);
  2498. grd_adjtord.addstatus(grd_adjtord.row, "update");
  2499. }
  2500. model.setValue("/root/hidden/abdresnmemo", "");
  2501. ipt_abdresnmemo.refresh();
  2502. grp_abdresnmemo.visible = false;
  2503. ]]>
  2504. </script>
  2505. </button>
  2506. <button id="btn_cancel2" class="btn4_letter2" style="left:354px; top:75px; width:56px; height:22px; ">
  2507. <caption>취소</caption>
  2508. <script type="javascript" ev:event="DOMActivate">
  2509. <![CDATA[
  2510. model.setValue("/root/hidden/abdresnmemo", "");
  2511. ipt_abdresnmemo.refresh();
  2512. grp_abdresnmemo.visible = false;
  2513. ]]>
  2514. </script>
  2515. </button>
  2516. <button id="button4" class="btn2_letter6" _auth="X" style="left:7px; top:75px; width:86px; height:19px; ">
  2517. <caption>부제기신청</caption>
  2518. <script type="javascript" ev:event="DOMActivate">
  2519. <![CDATA[
  2520. // SPPIZ00700_심사Comment조회.xrw 호출
  2521. fGetJudgEdiComment("8", "");
  2522. ]]>
  2523. </script>
  2524. </button>
  2525. </group>
  2526. <group id="grp_abdresnmemo_all" visibility="hidden" style="left:105px; top:605px; width:415px; height:130px; ">
  2527. <shape id="roundrect4" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:2px; top:2px; width:413px; height:128px; "/>
  2528. <textarea id="ipt_abdresnmemo_all" ref="/root/hidden/abdresnmemo_all" style="left:7px; top:46px; width:404px; height:46px; "/>
  2529. <caption id="caption20" class="search_name" style="left:6px; top:5px; width:154px; height:17px; ">일괄 부제기사유 전달</caption>
  2530. <button id="btn_confirm3" class="btn4_letter2" style="left:295px; top:100px; width:56px; height:22px; ">
  2531. <caption>확인</caption>
  2532. <script type="javascript" ev:event="DOMActivate">
  2533. <![CDATA[
  2534. var rows = grd_adjtord.selectedRows;
  2535. for (var i = 0; i < rows; i++) {
  2536. var sel = grd_adjtord.selectedRow(i) - 1;
  2537. var row = grd_adjtord.selectedRow(i);
  2538. var abdresncd = model.getValue("/root/main/patinfodata/gridadjtord[" + sel + "]/abdresncd");
  2539. var abdresnmemo = model.getValue("/root/main/patinfodata/gridadjtord[" + sel + "]/abdresnmemo");
  2540. if (abdresncd != model.getValue("/root/hidden/abdresncd_all") || abdresnmemo != model.getValue("/root/hidden/abdresnmemo_all")) {
  2541. model.setValue("/root/main/patinfodata/gridadjtord[" + sel + "]/abdresncd", model.getValue("/root/hidden/abdresncd_all"));
  2542. model.setValue("/root/main/patinfodata/gridadjtord[" + sel + "]/abdresnmemo", model.getValue("/root/hidden/abdresnmemo_all"));
  2543. grd_adjtord.rowstatus(row) = 2;
  2544. model.setValue("/root/main/patinfodata/gridadjtord[" + sel + "]/workflag", "abdinfo");
  2545. }
  2546. }
  2547. grd_adjtord.row = grd_adjtord.row;
  2548. model.setValue("/root/hidden/abdresnmemo_all", "");
  2549. ipt_abdresnmemo_all.refresh();
  2550. model.setValue("/root/hidden/abdresncd_all", "");
  2551. cmb_abdresncd_all.refresh();
  2552. grp_abdresnmemo_all.visible = false;
  2553. ]]>
  2554. </script>
  2555. </button>
  2556. <button id="button10" class="btn4_letter2" style="left:354px; top:100px; width:56px; height:22px; ">
  2557. <caption>취소</caption>
  2558. <script type="javascript" ev:event="DOMActivate">
  2559. <![CDATA[
  2560. model.setValue("/root/hidden/abdresnmemo_all", "");
  2561. ipt_abdresnmemo_all.refresh();
  2562. model.setValue("/root/hidden/abdresncd_all", "");
  2563. cmb_abdresncd_all.refresh();
  2564. grp_abdresnmemo_all.visible = false;
  2565. ]]>
  2566. </script>
  2567. </button>
  2568. <select1 id="cmb_abdresncd_all" ref="/root/hidden/abdresncd_all" appearance="minimal" style="left:7px; top:25px; width:404px; height:19px; ">
  2569. <choices>
  2570. <itemset nodeset="/root/init2/abdresnlist/abdmlist">
  2571. <label ref="nm"/>
  2572. <value ref="cd"/>
  2573. </itemset>
  2574. </choices>
  2575. </select1>
  2576. <button id="button9" class="btn2_letter6" _auth="X" style="left:7px; top:100px; width:86px; height:19px; ">
  2577. <caption>부제기신청</caption>
  2578. <script type="javascript" ev:event="DOMActivate">
  2579. <![CDATA[
  2580. // SPPIZ00700_심사Comment조회.xrw 호출
  2581. fGetJudgEdiComment("8", "");
  2582. ]]>
  2583. </script>
  2584. </button>
  2585. </group>
  2586. <group id="grp_memo" visibility="hidden" style="left:435px; top:295px; width:285px; height:144px; border-color:#c7a3cf; border-style:solid; ">
  2587. <caption id="cpt_text" class="tit_2" style="left:5px; top:0px; width:144px; height:14px; ">이의신청 명세서 마감</caption>
  2588. <line id="line7" class="line_1" style="x1:0px; y1:15px; x2:277px; y2:15px; "/>
  2589. <shape id="roundrect5" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:275px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  2590. <button id="btn_cancel" class="btn4_letter2" style="left:217px; top:113px; width:56px; height:22px; ">
  2591. <caption>닫기</caption>
  2592. <script type="javascript" ev:event="DOMActivate">
  2593. <![CDATA[
  2594. model.destroy("/root/hidden/enddate");
  2595. model.makeNode("/root/hidden/enddate");
  2596. grp_memo.visible = false;
  2597. ]]>
  2598. </script>
  2599. </button>
  2600. <button id="btn_end" class="btn4_letter2" style="left:159px; top:113px; width:56px; height:22px; ">
  2601. <caption>마감</caption>
  2602. <script type="javascript" ev:event="DOMActivate">
  2603. <![CDATA[
  2604. /* 주석을 풀고 구형해야함 */
  2605. // 2010.06.03 구현 시작
  2606. // 완료 여부 체크 // 개별마감 요청 할때 체크함.
  2607. // var startRow = grd_pirhobtm.fixedRows;
  2608. // var endRow = grd_pirhobtm.rows;
  2609. //
  2610. // startRow = startRow-1;
  2611. // endRow = endRow-1;
  2612. //
  2613. // for( var i = startRow; i < endRow; i++){
  2614. // if(model.getValue("/root/main/obtmlist/gridpirhobtm["+ startRow +"]/endyn") != 'true'){
  2615. // messageBox("완료되지 않은 항목이 존재 합니다. 확인 후 다시 시도해 주세요. ","E999");
  2616. // return;
  2617. // }
  2618. // }
  2619. // var row = grd_pirhobtm.row;
  2620. var rows = grd_pirhobtm.rows;
  2621. var cnt = 0;
  2622. // var check = model.getValue("/root/main/obtmlist/gridpirhobtm["+ row +"]/check");
  2623. if( messageBox("선택하신 대상자를 마감 하시겠습니까 ?", "Q999", "") != 6){
  2624. return false;
  2625. }
  2626. model.makeNode("/root/send/updatedata/datalist");
  2627. grd_pirhobtm.clearStatus();
  2628. for( var i = 1; i < rows; i++){
  2629. if( grd_pirhobtm.valueMatrix(i,grd_pirhobtm.colRef("check")) == 'Y'){
  2630. grd_pirhobtm.valueMatrix(i,grd_pirhobtm.colRef("notidd")) = model.getValue("/root/hidden/enddata/endinfo/notidd");
  2631. grd_pirhobtm.valueMatrix(i,grd_pirhobtm.colRef("obtappdd")) = model.getValue("/root/hidden/enddata/endinfo/obtappdd");
  2632. grd_pirhobtm.valueMatrix(i,grd_pirhobtm.colRef("obtappdocuno")) = model.getValue("/root/hidden/enddata/endinfo/obtappdocuno");
  2633. grd_pirhobtm.rowstatus(i) = 2;
  2634. cnt++;
  2635. } else {
  2636. grd_pirhobtm.rowstatus(i) = 0;
  2637. }
  2638. }
  2639. // var cur_row = grd_pirhobtm.row;
  2640. if( cnt > 0 ){
  2641. model.setValue("/root/send/updatedata/datalist",grd_pirhobtm.getUpdateData());
  2642. if ( submit("TXPIR30422") ) {
  2643. button1.dispatch("onclick");
  2644. }
  2645. grd_pirhobtm.clearStatus();
  2646. model.removeNodeset("/root/send/updatedata/datalist");
  2647. // model.makeNode("/root/send/updatedata/datalist");
  2648. // fSearch();
  2649. // model.refresh();
  2650. }
  2651. grp_memo.visible = false;
  2652. ]]>
  2653. </script>
  2654. </button>
  2655. <caption id="caption35" class="search_name" style="left:15px; top:84px; width:138px; height:17px; ">이의신청문서번호 :</caption>
  2656. <caption id="caption39" class="search_name" style="left:15px; top:29px; width:138px; height:17px; ">심사결과통보일자 :</caption>
  2657. <input id="ipt_obtappdd" ref="/root/hidden/enddata/endinfo/obtappdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:160px; top:55px; width:100px; height:19px; "/>
  2658. <input id="ipt_notidd" ref="/root/hidden/enddata/endinfo/notidd" class="input_default" disabled="true" inputtype="date" format="yyyy-mm-dd" style="left:160px; top:28px; width:100px; height:19px; "/>
  2659. <input id="ipt_docuno" ref="/root/hidden/enddata/endinfo/obtappdocuno" class="input_search" style="left:160px; top:83px; width:100px; height:19px; "/>
  2660. <caption id="caption40" class="search_name" style="left:15px; top:56px; width:163px; height:17px; ">이의신청일자 :</caption>
  2661. </group>
  2662. </xhtml:body>
  2663. </xhtml:html>