SPPIJ04600_KDRG재원일괄자동생성.xfdl 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIJ04300" position="absolute 0 0 905 910" titletext="재원 KDRG 번호생성프로그램" oninit="SPPIJ04300_oninit" onload="SPPIJ04300_onload" ontimer="SPPIJ04300_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" scrollbars="autoboth" position="absolute 0 15 900 905" style="" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption1" class="tit_2" position="absolute 0 75 110 97" style="" text="대상리스트" anchor="default"/>
  11. <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 89 895 100" style="" anchor="left top right"/>
  12. <Div id="group2" position="absolute 0 9 895 50" style="align: top;" class="div_SA" anchor="left top right">
  13. <Layouts>
  14. <Layout>
  15. <Button id="btn_select" class="btn1" taborder="32" position="absolute 834 10 890 32" style="" text="조회" onclick="group1_group2_btn_select_onclick" anchor="top right"/>
  16. <Shape id="line3" class="line_4" linetype="vertical" position="absolute 825 5 828 38" style="" anchor="top right"/>
  17. <Edit id="ipt_patunitsrch" class="input_search" taborder="3" position="absolute 86 10 176 29" style="" anchor="default" onkeypress="group1_group2_ipt_patunitsrch_onkeypress" onkeydown="group1_group2_ipt_patunitsrch_onkeydown"/>
  18. <Static id="caption18" class="search_name" position="absolute 8 12 91 29" style="" text="환자조회" anchor="default"/>
  19. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="radio1" position="absolute 208 10 313 30" style="" anchor="default">
  20. <Dataset id="innerdataset">
  21. <ColumnInfo>
  22. <Column id="codecolumn"/>
  23. <Column id="datacolumn"/>
  24. </ColumnInfo>
  25. <Rows>
  26. <Row>
  27. <Col id="codecolumn">A</Col>
  28. <Col id="datacolumn">재원</Col>
  29. </Row>
  30. <Row>
  31. <Col id="codecolumn">D</Col>
  32. <Col id="datacolumn">퇴원</Col>
  33. </Row>
  34. </Rows>
  35. </Dataset>
  36. </Radio>
  37. <Button id="btn_cd" taborder="33" class="icon_search" position="absolute 177 10 193 29" anchor="default" onclick="group1_group2_btn_cd_onclick"/>
  38. <CheckBox id="CheckBox00" taborder="34" text="KDRG번호 미생성만 보기" position="absolute 325 9 486 28" truevalue="N" falsevalue="Y" anchor="default"/>
  39. <CheckBox id="chk_autorepeat" taborder="35" text="자동조회" value="0" truevalue="1" falsevalue="0" position="absolute 502 10 572 25" onchanged="group1_group2_chk_autorepeat_onchanged"/>
  40. <Edit id="ipt_settime" taborder="36" class="input_search" position="absolute 578 7 616 26" onkeydown="group1_group2_ipt_settime_onkeydown" oneditclick="group1_group2_ipt_settime_oneditclick"/>
  41. <Static id="caption7" text="초" position="absolute 621 9 641 29"/>
  42. </Layout>
  43. </Layouts>
  44. </Div>
  45. <Button id="button3" class="btn4" position="absolute 839 866 895 888" style="" text="종료" onclick="group1_button3_onclick" anchor="default"/>
  46. <Button id="button4" class="btn4" position="absolute 792 69 896 91" style="" text="DRG번호생성" onclick="group1_button4_onclick" anchor="top right"/>
  47. <Button id="button1" class="btn4" position="absolute 666 69 790 91" style="" text="대상자수집 실행" onclick="group1_button1_onclick" anchor="top right"/>
  48. <Button id="button2" class="btn4" enable="False" visible="false" position="absolute 604 867 660 889" style="" text="배포" onclick="group1_button2_onclick" anchor="default"/>
  49. <Grid id="grd_kdrglist" binddataset="ds_main_drginfo" class="datagrid3" position="absolute 0 96 895 420" style="align:center ;" onscrollpos="group1_grd_kdrglist_onscrollpos" onscroll="group1_grd_kdrglist_onscroll" anchor="all">
  50. <Formats>
  51. <Format id="default">
  52. <Columns>
  53. <Column size="25"/>
  54. <Column size="60"/>
  55. <Column size="50"/>
  56. <Column size="31"/>
  57. <Column size="51"/>
  58. <Column size="52"/>
  59. <Column size="100"/>
  60. <Column size="72"/>
  61. <Column size="74"/>
  62. <Column size="81"/>
  63. <Column size="69"/>
  64. <Column size="37"/>
  65. <Column size="69"/>
  66. <Column size="45"/>
  67. <Column size="301"/>
  68. <Column size="46"/>
  69. <Column size="302"/>
  70. <Column size="45"/>
  71. <Column size="301"/>
  72. <Column size="45"/>
  73. <Column size="299"/>
  74. <Column size="166"/>
  75. <Column size="49"/>
  76. <Column size="54"/>
  77. <Column size="43"/>
  78. <Column size="45"/>
  79. <Column size="43"/>
  80. <Column size="60"/>
  81. <Column size="56"/>
  82. <Column size="43"/>
  83. <Column size="70"/>
  84. <Column size="50"/>
  85. <Column size="50"/>
  86. <Column size="50"/>
  87. <Column size="50"/>
  88. <Column size="50"/>
  89. <Column size="50"/>
  90. <Column size="50"/>
  91. <Column size="50"/>
  92. <Column size="50"/>
  93. <Column size="50"/>
  94. <Column size="50"/>
  95. <Column size="50"/>
  96. <Column size="50"/>
  97. <Column size="50"/>
  98. <Column size="50"/>
  99. <Column size="50"/>
  100. <Column size="50"/>
  101. <Column size="50"/>
  102. <Column size="50"/>
  103. <Column size="50"/>
  104. <Column size="50"/>
  105. <Column size="50"/>
  106. <Column size="53"/>
  107. <Column size="198"/>
  108. <Column size="50"/>
  109. <Column size="50"/>
  110. <Column size="50"/>
  111. <Column size="50"/>
  112. <Column size="50"/>
  113. <Column size="50"/>
  114. <Column size="50"/>
  115. <Column size="50"/>
  116. <Column size="50"/>
  117. <Column size="50"/>
  118. <Column size="50"/>
  119. <Column size="50"/>
  120. <Column size="50"/>
  121. <Column size="50"/>
  122. <Column size="50"/>
  123. <Column size="50"/>
  124. <Column size="50"/>
  125. <Column size="50"/>
  126. <Column size="50"/>
  127. <Column size="0"/>
  128. <Column size="0"/>
  129. <Column size="0"/>
  130. </Columns>
  131. <Rows>
  132. <Row size="44" band="head"/>
  133. <Row size="24"/>
  134. </Rows>
  135. <Band id="head">
  136. <Cell/>
  137. <Cell col="1" text="환자번호"/>
  138. <Cell col="2" text="환자명"/>
  139. <Cell col="3" text="나이"/>
  140. <Cell col="4" colspan="2" text="주민번호" taborder="undefined"/>
  141. <Cell col="6" text="진료과"/>
  142. <Cell col="7" text="진료의"/>
  143. <Cell col="8" text="보험유형"/>
  144. <Cell col="9" text="보조유형"/>
  145. <Cell col="10" text="입원일자"/>
  146. <Cell col="11" text="입원&#10;일수"/>
  147. <Cell col="12" text="진료결과"/>
  148. <Cell col="13" text="주상병"/>
  149. <Cell col="14" text="주상병명"/>
  150. <Cell col="15" text="제1&#10;부상병"/>
  151. <Cell col="16" text="제1부상병명"/>
  152. <Cell col="17" text="처치&#10;코드1"/>
  153. <Cell col="18" text="처치명1"/>
  154. <Cell col="19" text="처치&#10;코드2"/>
  155. <Cell col="20" text="처치명2"/>
  156. <Cell col="21" text="알콜및약물중독재활지료코드"/>
  157. <Cell col="22" text="입원시&#10;체중(g)"/>
  158. <Cell col="23" text="인공&#10;호흡시간&#10;(hour)"/>
  159. <Cell col="24" text="MDC"/>
  160. <Cell col="25" text="ADRG"/>
  161. <Cell col="26" text="PCCL"/>
  162. <Cell col="27" text="DRG&#10;분류번호"/>
  163. <Cell col="28" text="version"/>
  164. <Cell col="29" text="낮병동&#10;유무"/>
  165. <Cell col="30" text="응급실퇴원&#10;유무"/>
  166. <Cell col="31" text="대분류"/>
  167. <Cell col="32" text="진단코드&#13;&#10;3"/>
  168. <Cell col="33" text="진단코드&#13;&#10;4"/>
  169. <Cell col="34" text="진단코드&#13;&#10;5"/>
  170. <Cell col="35" text="진단코드&#13;&#10;6"/>
  171. <Cell col="36" text="진단코드&#13;&#10;7"/>
  172. <Cell col="37" text="진단코드&#13;&#10;8"/>
  173. <Cell col="38" text="진단코드&#13;&#10;9"/>
  174. <Cell col="39" text="진단코드&#13;&#10;10"/>
  175. <Cell col="40" text="시술코드&#13;&#10;3"/>
  176. <Cell col="41" text="시술코드&#13;&#10;4"/>
  177. <Cell col="42" text="시술코드&#13;&#10;5"/>
  178. <Cell col="43" text="시술코드&#13;&#10;6"/>
  179. <Cell col="44" text="시술코드&#13;&#10;7"/>
  180. <Cell col="45" text="시술코드&#13;&#10;8"/>
  181. <Cell col="46" text="시술코드&#13;&#10;9"/>
  182. <Cell col="47" text="시술코드&#13;&#10;10"/>
  183. <Cell col="48" text="검사코드&#13;&#10;1"/>
  184. <Cell col="49" text="검사코드&#13;&#10;2"/>
  185. <Cell col="50" text="검사코드&#13;&#10;3"/>
  186. <Cell col="51" text="검사코드&#13;&#10;4"/>
  187. <Cell col="52" text="검사코드&#13;&#10;5"/>
  188. <Cell col="53" text="방사선코&#13;&#10;드1"/>
  189. <Cell col="54" text="방사선명1"/>
  190. <Cell col="55" text="방사선코&#13;&#10;드2"/>
  191. <Cell col="56" text="방사선코&#13;&#10;드3"/>
  192. <Cell col="57" text="방사선코&#13;&#10;드4"/>
  193. <Cell col="58" text="방사선코&#13;&#10;드5"/>
  194. <Cell col="59" text="주사및혈&#13;&#10;액제제코&#13;&#10;드 1"/>
  195. <Cell col="60" text="주사및혈&#13;&#10;액제제코&#13;&#10;드 2"/>
  196. <Cell col="61" text="주사및혈&#13;&#10;액제제코&#13;&#10;드 3"/>
  197. <Cell col="62" text="주사및혈&#13;&#10;액제제코&#13;&#10;드 4"/>
  198. <Cell col="63" text="주사및혈&#13;&#10;액제제코&#13;&#10;드 5"/>
  199. <Cell col="64" text="마취및호&#13;&#10;흡치료코&#13;&#10;드1"/>
  200. <Cell col="65" text="마취및호&#13;&#10;흡치료코&#13;&#10;드2"/>
  201. <Cell col="66" text="마취및호&#13;&#10;흡치료코&#13;&#10;드3"/>
  202. <Cell col="67" text="마취및호&#13;&#10;흡치료코&#13;&#10;드4"/>
  203. <Cell col="68" text="마취및호&#13;&#10;흡치료코&#13;&#10;드5"/>
  204. <Cell col="69" text="부가코드&#13;&#10;1"/>
  205. <Cell col="70" text="부가코드&#13;&#10;2"/>
  206. <Cell col="71" text="부가코드&#13;&#10;3"/>
  207. <Cell col="72" text="부가코드&#13;&#10;4"/>
  208. <Cell col="73" text="부가코드&#13;&#10;5"/>
  209. <Cell col="74" text="caption1"/>
  210. <Cell col="75" text="caption2"/>
  211. <Cell col="76" text="caption3"/>
  212. </Band>
  213. <Band id="body">
  214. <Cell celltype="head" expr="currow+1"/>
  215. <Cell col="1" text="bind:pid"/>
  216. <Cell col="2" text="bind:hngnm"/>
  217. <Cell col="3" text="bind:age"/>
  218. <Cell col="4" text="bind:rrgstno1"/>
  219. <Cell col="5" text="bind:rrgstno2"/>
  220. <Cell col="6" displaytype="combo" style="align:center middle;" text="bind:orddeptcd" combodataset="ds_init_orddeptcd2_orddeptcdlist" combocodecol="cd" combodatacol="nm"/>
  221. <Cell col="7" text="bind:orddrnm" combodataset="ds_init_P0008list"/>
  222. <Cell col="8" text="bind:insukind" combodataset="ds_init_P0008list" combocodecol="cdid" combodatacol="cdnm"/>
  223. <Cell col="9" text="bind:suppkind" combodataset="ds_init_P0010list" combocodecol="cdid" combodatacol="cdnm"/>
  224. <Cell col="10" text="bind:indd"/>
  225. <Cell col="11" text="bind:chosindayno"/>
  226. <Cell col="12" text="bind:ordrsltcd" combodataset="ds_init_P0110list" combocodecol="cdid" combodatacol="cdnm"/>
  227. <Cell col="13" text="bind:diagcd1"/>
  228. <Cell col="14" style="align:left middle;" text="bind:diagnm1"/>
  229. <Cell col="15" text="bind:diagcd2"/>
  230. <Cell col="16" style="align:left middle;" text="bind:diagnm2"/>
  231. <Cell col="17" text="bind:opcd1"/>
  232. <Cell col="18" style="align:left middle;" text="bind:opnm1"/>
  233. <Cell col="19" text="bind:opcd2"/>
  234. <Cell col="20" style="align:left middle;" text="bind:opnm2"/>
  235. <Cell col="21" text="bind:ncvcd"/>
  236. <Cell col="22" text="bind:bw"/>
  237. <Cell col="23" text="bind:vtl"/>
  238. <Cell col="24" text="bind:mdcno"/>
  239. <Cell col="25" text="bind:adrg"/>
  240. <Cell col="26" text="bind:pccl"/>
  241. <Cell col="27" text="bind:drgno"/>
  242. <Cell col="28" text="bind:version"/>
  243. <Cell col="29" text="bind:dayward"/>
  244. <Cell col="30" text="bind:ioflagyn"/>
  245. <Cell col="31" text="bind:drgtype"/>
  246. <Cell col="32" text="bind:diagcd3"/>
  247. <Cell col="33" text="bind:diagcd4"/>
  248. <Cell col="34" text="bind:diagcd5"/>
  249. <Cell col="35" text="bind:diagcd6"/>
  250. <Cell col="36" text="bind:diagcd7"/>
  251. <Cell col="37" text="bind:diagcd8"/>
  252. <Cell col="38" text="bind:diagcd9"/>
  253. <Cell col="39" text="bind:diagcd10"/>
  254. <Cell col="40" text="bind:opcd3"/>
  255. <Cell col="41" text="bind:opcd4"/>
  256. <Cell col="42" text="bind:opcd5"/>
  257. <Cell col="43" text="bind:opcd6"/>
  258. <Cell col="44" text="bind:opcd7"/>
  259. <Cell col="45" text="bind:opcd8"/>
  260. <Cell col="46" text="bind:opcd9"/>
  261. <Cell col="47" text="bind:opcd10"/>
  262. <Cell col="48" text="bind:excd1"/>
  263. <Cell col="49" text="bind:excd2"/>
  264. <Cell col="50" text="bind:excd3"/>
  265. <Cell col="51" text="bind:excd4"/>
  266. <Cell col="52" text="bind:excd5"/>
  267. <Cell col="53" text="bind:rgcd1"/>
  268. <Cell col="54" style="align:left middle;" text="bind:rgnm1" wordwrap="word"/>
  269. <Cell col="55" text="bind:rgcd2"/>
  270. <Cell col="56" text="bind:rgcd3"/>
  271. <Cell col="57" text="bind:rgcd4"/>
  272. <Cell col="58" text="bind:rgcd5"/>
  273. <Cell col="59" text="bind:ibcd1"/>
  274. <Cell col="60" text="bind:ibcd2"/>
  275. <Cell col="61" text="bind:ibcd3"/>
  276. <Cell col="62" text="bind:ibcd4"/>
  277. <Cell col="63" text="bind:ibcd5"/>
  278. <Cell col="64" text="bind:arcd1"/>
  279. <Cell col="65" text="bind:arcd2"/>
  280. <Cell col="66" text="bind:arcd3"/>
  281. <Cell col="67" text="bind:arcd4"/>
  282. <Cell col="68" text="bind:arcd5"/>
  283. <Cell col="69" text="bind:detailcd1" combodataset="ds_init_PK015list" combocodecol="cdid" combodatacol="cdnm"/>
  284. <Cell col="70" text="bind:detailcd2" combodataset="ds_init_PK015list" combocodecol="cdid" combodatacol="cdnm"/>
  285. <Cell col="71" text="bind:detailcd3" combodataset="ds_init_PK015list" combocodecol="cdid" combodatacol="cdnm"/>
  286. <Cell col="72" text="bind:detailcd4" combodataset="ds_init_PK015list" combocodecol="cdid" combodatacol="cdnm"/>
  287. <Cell col="73" text="bind:detailcd5" combodataset="ds_init_PK015list" combocodecol="cdid" combodatacol="cdnm"/>
  288. <Cell col="74" text="bind:seqno"/>
  289. <Cell col="75" text="bind:ordfromdd"/>
  290. <Cell col="76" text="bind:tdrgnm"/>
  291. </Band>
  292. </Format>
  293. </Formats>
  294. </Grid>
  295. <Button id="btn_excelsave" class="btn7" position="absolute 585 72 665 91" style="" text="엑셀저장" onclick="group1_btn_excelsave_onclick" anchor="top right"/>
  296. <Button id="btn_cretrslt" class="btn2" position="absolute 486 72 583 91" style="align:center ;" text="생성로그확인" onclick="group1_btn_cretrslt_onclick" anchor="top right"/>
  297. <Grid id="Grid00" taborder="1" useinputpanel="false" position="absolute 2 435 895 865" binddataset="ds_log">
  298. <Formats>
  299. <Format id="default">
  300. <Columns>
  301. <Column size="623"/>
  302. <Column size="209"/>
  303. </Columns>
  304. <Rows>
  305. <Row size="24" band="head"/>
  306. <Row size="24"/>
  307. </Rows>
  308. <Band id="head">
  309. <Cell text="로그"/>
  310. <Cell col="1" text="날짜 시간"/>
  311. </Band>
  312. <Band id="body">
  313. <Cell displaytype="text" text="bind:msg"/>
  314. <Cell col="1" displaytype="date" text="bind:dd" mask="yyyy-MM-dd HH:mm:ss"/>
  315. </Band>
  316. </Format>
  317. </Formats>
  318. </Grid>
  319. </Layout>
  320. </Layouts>
  321. </Div>
  322. <Static id="cap_title" text="KDRG 번호생성프로그램" class="tit_1" position="absolute 0 0 219 23"/>
  323. </Layout>
  324. </Layouts>
  325. <Objects>
  326. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  327. <ColumnInfo>
  328. <Column id="filepath" type="STRING" size="256"/>
  329. <Column id="file" type="STRING" size="256"/>
  330. <Column id="pid" type="STRING" size="256"/>
  331. <Column id="clamfromym" type="STRING" size="256"/>
  332. <Column id="clamtoym" type="STRING" size="256"/>
  333. <Column id="clamym" type="STRING" size="256"/>
  334. <Column id="offset" type="STRING" size="256"/>
  335. <Column id="instcd" type="STRING" size="256"/>
  336. <Column id="indschacptstat" type="STRING" size="256"/>
  337. <Column id="drgnocretyn" type="STRING" size="256"/>
  338. <Column id="idrgnocretyn" type="STRING" size="256"/>
  339. <Column id="infilenm" type="STRING" size="256"/>
  340. <Column id="autorepeat" type="STRING" size="256"/>
  341. <Column id="settime" type="STRING" size="256"/>
  342. </ColumnInfo>
  343. <Rows>
  344. <Row>
  345. <Col id="filepath"/>
  346. <Col id="file"/>
  347. <Col id="pid"/>
  348. <Col id="clamfromym"/>
  349. <Col id="clamtoym"/>
  350. <Col id="clamym"/>
  351. <Col id="offset"/>
  352. <Col id="instcd">031</Col>
  353. <Col id="indschacptstat">A</Col>
  354. <Col id="drgnocretyn">N</Col>
  355. <Col id="settime">1200</Col>
  356. <Col id="autorepeat">1</Col>
  357. </Row>
  358. </Rows>
  359. </Dataset>
  360. <Dataset id="ds_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  361. <ColumnInfo>
  362. <Column id="cdnm" type="STRING" size="256"/>
  363. <Column id="cdid" type="STRING" size="256"/>
  364. </ColumnInfo>
  365. </Dataset>
  366. <Dataset id="ds_init_P0155list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  367. <ColumnInfo>
  368. <Column id="cdnm" type="STRING" size="256"/>
  369. <Column id="cdid" type="STRING" size="256"/>
  370. </ColumnInfo>
  371. </Dataset>
  372. <Dataset id="ds_init_P0010list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  373. <ColumnInfo>
  374. <Column id="cdnm" type="STRING" size="256"/>
  375. <Column id="cdid" type="STRING" size="256"/>
  376. </ColumnInfo>
  377. </Dataset>
  378. <Dataset id="ds_init_P0110list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  379. <ColumnInfo>
  380. <Column id="cdnm" type="STRING" size="256"/>
  381. <Column id="cdid" type="STRING" size="256"/>
  382. </ColumnInfo>
  383. </Dataset>
  384. <Dataset id="ds_init_PK015list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  385. <ColumnInfo>
  386. <Column id="cdnm" type="STRING" size="256"/>
  387. <Column id="cdid" type="STRING" size="256"/>
  388. </ColumnInfo>
  389. </Dataset>
  390. <Dataset id="ds_init_PK016list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  391. <ColumnInfo>
  392. <Column id="cdnm" type="STRING" size="256"/>
  393. <Column id="cdid" type="STRING" size="256"/>
  394. </ColumnInfo>
  395. </Dataset>
  396. <Dataset id="ds_init_PK054list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  397. <ColumnInfo>
  398. <Column id="cdnm" type="STRING" size="256"/>
  399. <Column id="cdid" type="STRING" size="256"/>
  400. </ColumnInfo>
  401. </Dataset>
  402. <Dataset id="ds_init_PK055list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  403. <ColumnInfo>
  404. <Column id="cdnm" type="STRING" size="256"/>
  405. <Column id="cdid" type="STRING" size="256"/>
  406. </ColumnInfo>
  407. </Dataset>
  408. <Dataset id="ds_init_orddeptcd2_orddeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  409. <ColumnInfo>
  410. <Column id="cd" type="STRING" size="256"/>
  411. <Column id="nm" type="STRING" size="256"/>
  412. </ColumnInfo>
  413. </Dataset>
  414. <Dataset id="ds_hidden_sppmc02500_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  415. <ColumnInfo>
  416. <Column id="srchcond" type="STRING" size="256"/>
  417. <Column id="pid" type="STRING" size="256"/>
  418. </ColumnInfo>
  419. <Rows>
  420. <Row/>
  421. </Rows>
  422. </Dataset>
  423. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  424. <Dataset id="ds_main_drginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  425. <ColumnInfo>
  426. <Column id="seqno" type="STRING" size="256" sumtext="작업회차"/>
  427. <Column id="ordfromdd" type="STRING" size="256" sumtext="요양개시일자"/>
  428. <Column id="orddeptcd" type="STRING" size="256" sumtext="부서"/>
  429. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  430. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  431. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  432. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  433. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  434. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  435. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  436. <Column id="histstat" type="STRING" size="256" sumtext="이력상태"/>
  437. <Column id="proccorpcd" type="STRING" size="256" sumtext="요양기관번호"/>
  438. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
  439. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
  440. <Column id="chosindayno" type="STRING" size="256" sumtext="입원일수"/>
  441. <Column id="ordrsltcd" type="STRING" size="256" sumtext="퇴원진료결과"/>
  442. <Column id="dschnotiyn" type="STRING" size="256" sumtext="퇴원확정구분"/>
  443. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  444. <Column id="diagcd1" type="STRING" size="256" sumtext="진단코드1"/>
  445. <Column id="diagcd2" type="STRING" size="256" sumtext="진단코드2"/>
  446. <Column id="diagcd3" type="STRING" size="256" sumtext="진단코드3"/>
  447. <Column id="diagcd4" type="STRING" size="256" sumtext="진단코드4"/>
  448. <Column id="diagcd5" type="STRING" size="256" sumtext="진단코드5"/>
  449. <Column id="diagcd6" type="STRING" size="256" sumtext="진단코드6"/>
  450. <Column id="diagcd7" type="STRING" size="256" sumtext="진단코드7"/>
  451. <Column id="diagcd8" type="STRING" size="256" sumtext="진단코드8"/>
  452. <Column id="diagcd9" type="STRING" size="256" sumtext="진단코드9"/>
  453. <Column id="diagcd10" type="STRING" size="256" sumtext="진단코드10"/>
  454. <Column id="opcd1" type="STRING" size="256" sumtext="시술코드1"/>
  455. <Column id="opcd2" type="STRING" size="256" sumtext="시술코드2"/>
  456. <Column id="opcd3" type="STRING" size="256" sumtext="시술코드3"/>
  457. <Column id="opcd4" type="STRING" size="256" sumtext="시술코드4"/>
  458. <Column id="opcd5" type="STRING" size="256" sumtext="시술코드5"/>
  459. <Column id="opcd6" type="STRING" size="256" sumtext="시술코드6"/>
  460. <Column id="opcd7" type="STRING" size="256" sumtext="시술코드7"/>
  461. <Column id="opcd8" type="STRING" size="256" sumtext="시술코드8"/>
  462. <Column id="opcd9" type="STRING" size="256" sumtext="시술코드9"/>
  463. <Column id="opcd10" type="STRING" size="256" sumtext="시술코드10"/>
  464. <Column id="excd1" type="STRING" size="256" sumtext="검사코드1"/>
  465. <Column id="excd2" type="STRING" size="256" sumtext="검사코드2"/>
  466. <Column id="excd3" type="STRING" size="256" sumtext="검사코드3"/>
  467. <Column id="excd4" type="STRING" size="256" sumtext="검사코드4"/>
  468. <Column id="excd5" type="STRING" size="256" sumtext="검사코드5"/>
  469. <Column id="rgcd1" type="STRING" size="256" sumtext="방사선코드1"/>
  470. <Column id="rgcd2" type="STRING" size="256" sumtext="방사선코드2"/>
  471. <Column id="rgcd3" type="STRING" size="256" sumtext="방사선코드3"/>
  472. <Column id="rgcd4" type="STRING" size="256" sumtext="방사선코드4"/>
  473. <Column id="rgcd5" type="STRING" size="256" sumtext="방사선코드5"/>
  474. <Column id="ibcd1" type="STRING" size="256" sumtext="주사및혈액제제코드1"/>
  475. <Column id="ibcd2" type="STRING" size="256" sumtext="주사및혈액제제코드2"/>
  476. <Column id="ibcd3" type="STRING" size="256" sumtext="주사및혈액제제코드3"/>
  477. <Column id="ibcd4" type="STRING" size="256" sumtext="주사및혈액제제코드4"/>
  478. <Column id="ibcd5" type="STRING" size="256" sumtext="주사및혈액제제코드5"/>
  479. <Column id="arcd1" type="STRING" size="256" sumtext="마취및호흡치료코드1"/>
  480. <Column id="arcd2" type="STRING" size="256" sumtext="마취및호흡치료코드2"/>
  481. <Column id="arcd3" type="STRING" size="256" sumtext="마취및호흡치료코드3"/>
  482. <Column id="arcd4" type="STRING" size="256" sumtext="마취및호흡치료코드4"/>
  483. <Column id="arcd5" type="STRING" size="256" sumtext="마취및호흡치료코드5"/>
  484. <Column id="ncvcd" type="STRING" size="256" sumtext="알콜및약물중독재활치료코드"/>
  485. <Column id="detailcd1" type="STRING" size="256" sumtext="부가코드1"/>
  486. <Column id="detailcd2" type="STRING" size="256" sumtext="부가코드2"/>
  487. <Column id="detailcd3" type="STRING" size="256" sumtext="부가코드3"/>
  488. <Column id="detailcd4" type="STRING" size="256" sumtext="부가코드4"/>
  489. <Column id="detailcd5" type="STRING" size="256" sumtext="부가코드5"/>
  490. <Column id="bw" type="STRING" size="256" sumtext="입원시체중(만1세미만)"/>
  491. <Column id="vtl" type="STRING" size="256" sumtext="인공호흡시간(hour, 만1세미만)"/>
  492. <Column id="mdcno" type="STRING" size="256" sumtext="MDC번호"/>
  493. <Column id="adrg" type="STRING" size="256" sumtext="adrg"/>
  494. <Column id="pccl" type="STRING" size="256" sumtext="pccl"/>
  495. <Column id="drgno" type="STRING" size="256" sumtext="DRG분류번호"/>
  496. <Column id="drggbn" type="STRING" size="256" sumtext="DRG구분"/>
  497. <Column id="version" type="STRING" size="256" sumtext="버젼"/>
  498. <Column id="drgnm" type="STRING" size="256" sumtext="DRG명칭"/>
  499. <Column id="nightflag" type="STRING" size="256" sumtext="야간,공휴가산"/>
  500. <Column id="totalamt" type="STRING" size="256" sumtext="행위별 총진료비"/>
  501. <Column id="nopyamt" type="STRING" size="256" sumtext="행위별 비급여액"/>
  502. <Column id="allownbamt" type="STRING" size="256" sumtext="DRG 전액본인부담액"/>
  503. <Column id="payamt" type="STRING" size="256" sumtext="DRG열외군보상금액"/>
  504. <Column id="specamt" type="STRING" size="256" sumtext="행위별 선택진료비"/>
  505. <Column id="totownbamt" type="STRING" size="256" sumtext="행위별 본인부담총액 (급여본인부담+전액본인부담+비급여+선택진료)"/>
  506. <Column id="payownbamt" type="STRING" size="256" sumtext="행위별 급여본인부담금"/>
  507. <Column id="payinsubamt" type="STRING" size="256" sumtext="행위별 급여보험자부담금"/>
  508. <Column id="drgnopyamt" type="STRING" size="256" sumtext="DRG 법정비급여액"/>
  509. <Column id="drgpayamt" type="STRING" size="256" sumtext="DRG 급여액"/>
  510. <Column id="drgeatamt" type="STRING" size="256" sumtext="DRG 식대"/>
  511. <Column id="drggsaddamt" type="STRING" size="256" sumtext="DRG 외과가산"/>
  512. <Column id="drgtotalamt" type="STRING" size="256" sumtext="DRG 총진료비 (DRG급여액+DRG식대+DRG외과가산+DRG법정비급여액)"/>
  513. <Column id="drgownbamt" type="STRING" size="256" sumtext="DRG 본인부담금"/>
  514. <Column id="drginsubamt" type="STRING" size="256" sumtext="DRG 보험자부담금"/>
  515. <Column id="drggapamt" type="STRING" size="256" sumtext="DRG 차액"/>
  516. <Column id="grupgbn" type="STRING" size="256" sumtext="열외군 구분 (N:정상군,H:상단열외군,L:하단열외군)"/>
  517. <Column id="tdrgno" type="STRING" size="256" sumtext="임시 DRG 분류번호"/>
  518. <Column id="tdrgnm" type="STRING" size="256" sumtext="임시 DRG 명칭"/>
  519. <Column id="drgeatownbamt" type="STRING" size="256" sumtext="DRG 식대 본인부담"/>
  520. <Column id="drgeatinsubamt" type="STRING" size="256" sumtext="DRG 식대 보험자부담"/>
  521. <Column id="drggsaddownbamt" type="STRING" size="256" sumtext="DRG 외과가산 본인부담"/>
  522. <Column id="drggsaddinsubamt" type="STRING" size="256" sumtext="DRG 외과가산 보험자부담"/>
  523. <Column id="drgpaydiscamt" type="STRING" size="256" sumtext="DRG급여할인금액"/>
  524. <Column id="drgnopydiscamt" type="STRING" size="256" sumtext="DRG비급여할인금액"/>
  525. <Column id="drgspecdiscamt" type="STRING" size="256" sumtext="DRG선택진료할인금액"/>
  526. <Column id="drgeatdiscamt" type="STRING" size="256" sumtext="DRG식대할인금액"/>
  527. <Column id="drggsadddiscamt" type="STRING" size="256" sumtext="DRG외과가산할인금액"/>
  528. <Column id="drgallownbamt" type="STRING" size="256" sumtext="DRG 전액본인부담액"/>
  529. <Column id="drgoverpayinsubamt" type="STRING" size="256" sumtext="DRG열외군보상보험자부담"/>
  530. <Column id="drgoverpayamt" type="STRING" size="256" sumtext="DRG열외군보상금액"/>
  531. <Column id="drgoverpayownbamt" type="STRING" size="256" sumtext="DRG열외군보상본인부담"/>
  532. <Column id="nodata" type="STRING" size="256" sumtext="임시DRG생성유무"/>
  533. <Column id="accnopyamt" type="STRING" size="256" sumtext="행위별법정비급여액"/>
  534. <Column id="drgpayownbamt" type="STRING" size="256" sumtext="DRG 급여본인부담총"/>
  535. <Column id="obgaaddyn" type="STRING" size="256" sumtext="산부인과가산 유무"/>
  536. <Column id="drgaccpayamt" type="STRING" size="256" sumtext="DRG 인정급여총액"/>
  537. <Column id="drgaccpayownbamt" type="STRING" size="256" sumtext="DRG 인정급여본인부담금"/>
  538. <Column id="drgaccpayinsubamt" type="STRING" size="256" sumtext="DRG 인정급여보험자부담금"/>
  539. <Column id="drgaccpaydiscamt" type="STRING" size="256" sumtext="DRG 인정급여할인금액"/>
  540. <Column id="accnopygapamt" type="STRING" size="256" sumtext="DRG 행위별비급여단기차액"/>
  541. <Column id="robotyn" type="STRING" size="256" sumtext="DRG 로봇수술유무"/>
  542. <Column id="drgrobotamt" type="STRING" size="256" sumtext="DRG 로봇수술제외금액"/>
  543. <Column id="drgrobotinsubamt" type="STRING" size="256" sumtext="DRG 로봇수술보험자부담제외금액"/>
  544. <Column id="drgrobotownbamt" type="STRING" size="256" sumtext="DRG 로봇수술본인부담제외금액"/>
  545. <Column id="drgtype" type="STRING" size="256" sumtext="drgtype"/>
  546. <Column id="opnm1" type="STRING" size="256" sumtext="opnm1"/>
  547. <Column id="opnm2" type="STRING" size="256" sumtext="opnm2"/>
  548. <Column id="diagnm1" type="STRING" size="256" sumtext="diagnm1"/>
  549. <Column id="diagnm2" type="STRING" size="256" sumtext="diagnm2"/>
  550. <Column id="rgnm1" type="STRING" size="256" sumtext="rgnm1"/>
  551. <Column id="orddrnm" type="STRING" size="256" sumtext="orddrnm"/>
  552. </ColumnInfo>
  553. </Dataset>
  554. <Dataset id="ds_main_chklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  555. <ColumnInfo>
  556. <Column id="dschyn" type="STRING" size="256" sumtext="퇴원여부"/>
  557. <Column id="indayyn" type="STRING" size="256" sumtext="재원30일여부"/>
  558. <Column id="drgyn" type="STRING" size="256" sumtext="DRG여부"/>
  559. </ColumnInfo>
  560. </Dataset>
  561. <Dataset id="ds_filelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  562. <ColumnInfo>
  563. <Column id="attfilecnts" type="STRING" size="256"/>
  564. </ColumnInfo>
  565. <Rows>
  566. <Row/>
  567. </Rows>
  568. </Dataset>
  569. <Dataset id="ds_attachfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  570. <ColumnInfo>
  571. <Column id="filedata" type="STRING" size="256"/>
  572. </ColumnInfo>
  573. </Dataset>
  574. <Dataset id="ds_drginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  575. <Dataset id="ds_send_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  576. <ColumnInfo>
  577. <Column id="filenm" type="STRING" size="256" sumtext="첨부파일명"/>
  578. <Column id="filedata" type="" size="256" sumtext="첨부파일데이터"/>
  579. <Column id="filesize" type="STRING" size="256" sumtext="첨부파일크기"/>
  580. <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
  581. <Column id="file" type="STRING" size="256"/>
  582. </ColumnInfo>
  583. <Rows>
  584. <Row/>
  585. </Rows>
  586. </Dataset>
  587. <Dataset id="ds_tmp_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  588. <ColumnInfo>
  589. <Column id="filenm" type="STRING" size="256"/>
  590. <Column id="filesize" type="INT" size="256"/>
  591. <Column id="filetype" type="STRING" size="256"/>
  592. <Column id="filedata" type="BLOB" size="256"/>
  593. </ColumnInfo>
  594. <Rows>
  595. <Row/>
  596. </Rows>
  597. </Dataset>
  598. <Dataset id="ds_log" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  599. <ColumnInfo>
  600. <Column id="msg" type="STRING" size="256"/>
  601. <Column id="dd" type="STRING" size="256"/>
  602. </ColumnInfo>
  603. </Dataset>
  604. </Objects>
  605. <Bind>
  606. <BindItem id="item0" compid="group1.group2.ipt_patunitsrch" propid="value" datasetid="ds_send" columnid="pid"/>
  607. <BindItem id="item1" compid="group1.group2.radio1" propid="value" datasetid="ds_send" columnid="indschacptstat"/>
  608. <BindItem id="item2" compid="group1.group2.CheckBox00" propid="value" datasetid="ds_send" columnid="drgnocretyn"/>
  609. <BindItem id="item33" compid="group1.group2.chk_autorepeat" propid="value" datasetid="ds_send" columnid="autorepeat"/>
  610. <BindItem id="item34" compid="group1.group2.ipt_settime" propid="value" datasetid="ds_send" columnid="settime"/>
  611. </Bind>
  612. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  613. * System Name :
  614. * Job Name :
  615. * Creator :
  616. * Make Date : 2016-07-22
  617. * Description :
  618. *---------------------------------------------------------------------------------------
  619. * Modify Date Modifier Modify Description
  620. *---------------------------------------------------------------------------------------
  621. * 2016-07-22 Live Converter TF->XP
  622. *
  623. *---------------------------------------------------------------------------------------
  624. ****************************************************************************************/
  625. include "com_commonxp::comm_main.xjs";
  626. include "pam_pamcomnxp::PAM001.xjs";
  627. var fldr = "";
  628. var infile = "";
  629. var outfile = "";
  630. function SPPIJ04300_oninit(obj:Form, e:InitEventInfo)
  631. {
  632. frmf_initForm(obj);
  633. }
  634. function SPPIJ04300_onload(obj:Form, e:LoadEventInfo)
  635. {
  636. grdf_initGrid(group1.grd_kdrglist);
  637. var arrParam = [{dsNm: "ds_init_P0008list", cdGrpId: "P0008"}
  638. ,{dsNm: "ds_init_P0155list", cdGrpId: "P0155"}
  639. ,{dsNm: "ds_init_P0010list", cdGrpId: "P0010"}// 보조유형
  640. ,{dsNm: "ds_init_P0110list", cdGrpId: "P0110"}]
  641. appf_getCodeList(arrParam);
  642. var arrParam = new Array();
  643. arrParam = [ {dsNm: "ds_init_PK015list", cdGrpId: "PK015", showValue: true}
  644. ,{dsNm: "ds_init_PK016list", cdGrpId: "PK016", showValue: true}
  645. ,{dsNm: "ds_init_PK054list", cdGrpId: "PK054", showValue: true}
  646. ,{dsNm: "ds_init_PK055list", cdGrpId: "PK055", showValue: true}];
  647. pamfGetCodeList(arrParam, true, "");
  648. dsf_createDsRow("ds_send_req", [{col:"ioflag", val:""}]);
  649. var oParam = {};
  650. oParam.id = "TRPID20309";
  651. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  652. oParam.method = "reqGetDeptCDDrID";
  653. oParam.inds = "req=ds_send_req";
  654. oParam.outds = "ds_init_orddeptcd2_orddeptcdlist=orddeptcd2";
  655. oParam.async = true;
  656. oParam.force = true;
  657. //oParam.callback = "cf_TRPID20309";
  658. tranf_submit(oParam);
  659. fInitialize();
  660. }
  661. function fInitialize()
  662. {
  663. var gToday = new Date();
  664. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  665. var gBasemonth = gToday.getDateFormat("MM");
  666. var gBaseday = gToday.getDateFormat("DD");
  667. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  668. var gCurrentym = gBaseyear + gBasemonth;
  669. var gUserid = sysf_getUserId();
  670. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  671. fSetAutoRepeat();
  672. }
  673. function group1_group2_ipt_patunitsrch_onkeydown(obj:Edit, e:KeyEventInfo)
  674. {
  675. if(e.keycode == 13)
  676. {
  677. obj.updateToDataset();
  678. fGetDocuList();
  679. }
  680. }
  681. function group1_group2_btn_cd_onclick(obj:Button, e:ClickEventInfo)
  682. {
  683. var ipt_pid = group1.group2.ipt_patunitsrch.value;
  684. ds_hidden_sppmc02500_cond.setColumn(0, "srchcond", "1");
  685. ds_hidden_sppmc02500_cond.setColumn(0, "pid", ipt_pid);
  686. var objArg = new Object();
  687. objArg.arg_ds_send = ds_hidden_sppmc02500_cond;
  688. frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", "", "", "", "", "", "", "", "", "M");
  689. var srch_pid = ds_patinfolist.getColumn(0, "pid");
  690. if (srch_pid)
  691. {
  692. ds_patinfolist.clearData();
  693. ds_send.setColumn(0, "pid", srch_pid);
  694. }
  695. }
  696. function group1_group2_btn_select_onclick(obj:Button, e:ClickEventInfo)
  697. {
  698. fGetDocuList();
  699. }
  700. function fGetDocuList()
  701. {
  702. var offcnt = ds_main_drginfo.rowcount;
  703. if(offcnt >= 10000)
  704. {
  705. ds_send.setColumn(0, "offset", offcnt);
  706. }
  707. else
  708. {
  709. }
  710. var oParam = {};
  711. oParam.id = "TRPIJ04211";
  712. oParam.service = "bfjudgapp.DRGJudgList";
  713. oParam.method = "reqGetKDrgAllList";
  714. oParam.inds = "req=ds_send";
  715. oParam.outds = "ds_main_drginfo=drginfo";
  716. oParam.async = true;
  717. oParam.force = true;
  718. oParam.callback = "cf_TRPIJ04211";
  719. tranf_submit(oParam);
  720. }
  721. function cf_TRPIJ04211(sSvcId, nErrorCode, sErrorMsg) {
  722. if(nErrorCode < 0) return;
  723. if (ds_main_drginfo.rowcount > 0){
  724. group1.button4.click();
  725. }
  726. }
  727. function group1_btn_cretrslt_onclick(obj:Button, e:ClickEventInfo)
  728. {
  729. var todd = utlf_getCurrentDate();
  730. todd = todd.toDate().getAddDate(+1, "D").getDateFormat();
  731. var objArg = new Object();
  732. objArg.todd = todd;
  733. objArg.execrid = sysf_getUserId();
  734. objArg.prgmid = "BfKdrgListBatch";
  735. frmf_open("SPZSB00301", "SPZSB00301", objArg, "","","","","","","","","","M");
  736. }
  737. function group1_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  738. {
  739. if(ds_main_drginfo.rowcount == 0)
  740. {
  741. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  742. }
  743. else
  744. {
  745. grdf_exportExcel(group1.grd_kdrglist, "", "see");
  746. }
  747. }
  748. function group1_button1_onclick(obj:Button, e:ClickEventInfo)
  749. {
  750. var oParam = {};
  751. oParam.id = "TRPIJ04201";
  752. oParam.service = "bfjudgapp.DRGJudgList";
  753. oParam.method = "reqExeBfJudgKdrgBatch";
  754. oParam.inds = "req=ds_send";
  755. oParam.outds = "ds_main_chklist=chklist";
  756. oParam.async = false;
  757. oParam.force = true;
  758. //oParam.callback = "cf_TRPIJ04201";
  759. tranf_submit(oParam);
  760. //group1_btn_cretrslt_onclick();
  761. }
  762. function group1_button4_onclick(obj:Button, e:ClickEventInfo)
  763. {
  764. fldr = system.convertRealPath("%MYDOCUMENT%") + "\KU20\\" + ds_init_PK054list.lookupExpr("cdid=='06'","cdnm") +"\\"//"//KDRG";
  765. infile = ds_init_PK054list.lookupExpr("cdid=='02'","cdnm");//"kdrg33.in";
  766. outfile = ds_init_PK054list.lookupExpr("cdid=='03'","cdnm");//"kdrg33.out";
  767. var exefile = ds_init_PK054list.lookup("cdid", "04", "cdnm");
  768. var updfileyn = ds_init_PK054list.lookup("cdid", "05", "cdnm");
  769. var fso;
  770. var nofile = "";
  771. ds_send_attach.setColumn(0, "file", fldr+outfile);
  772. fExistFolder(fldr);
  773. var files = new Array();
  774. var filecnt = ds_init_PK055list.rowcount;
  775. for (var i = 0; i < filecnt; i++)
  776. {
  777. files.push(ds_init_PK055list.getColumn(i, "cdnm"));
  778. }
  779. var updfilechk = true;
  780. for (var i = 0; i < files.length; i++)
  781. {
  782. var updfilesize = utlf_transNullToEmpty(ds_init_PK055list.lookup("cdnm", files[i], "dispseq"));
  783. var updfilepath = utlf_transNullToEmpty(ds_init_PK055list.lookup("cdnm", files[i], "detldesc"));
  784. var vfile = new VirtualFile(fldr+files[i], VirtualFile.openRead);
  785. if (vfile.getFileSize() > 0)
  786. {
  787. if (updfileyn == "Y")
  788. {
  789. var nowfilesize = vfile.getFileSize();
  790. if (updfilesize != nowfilesize && updfilepath.length > 0 )
  791. {
  792. dsf_createDsRow("ds_send_downfile", [{col:"attfilepath", type:"STRING", size:256, val:updfilepath}
  793. , {col:"filepathcolnm", type:"STRING", size:256, val:"attfilepath"}]);
  794. var oParam = {};
  795. oParam.id = "TXPIJ03208";
  796. oParam.service = "bfjudgapp.DRGJudgList";
  797. oParam.method = "reqExeKDrgdDownload";
  798. oParam.inds = "req=ds_send_downfile";
  799. oParam.outds = "ds_filelist=filelist";
  800. oParam.async = false;
  801. oParam.force = true;
  802. //oParam.callback = "cf_TXPIJ03205";
  803. tranf_submit(oParam);
  804. vfile.close();
  805. dsf_readFileFromDs(fldr+files[i], ds_filelist, 0, "attfilecnts"); // 파일저장
  806. updfilechk = false;
  807. }
  808. }
  809. }
  810. else
  811. {
  812. if (updfileyn == "Y")
  813. {
  814. dsf_createDsRow("ds_send_downfile", [{col:"attfilepath", type:"STRING", size:256, val:updfilepath}
  815. , {col:"filepathcolnm", type:"STRING", size:256, val:"attfilepath"}]);
  816. var oParam = {};
  817. oParam.id = "TXPIJ03208";
  818. oParam.service = "bfjudgapp.DRGJudgList";
  819. oParam.method = "reqExeKDrgdDownload";
  820. oParam.inds = "req=ds_send_downfile";
  821. oParam.outds = "ds_filelist=filelist";
  822. oParam.async = false;
  823. oParam.force = true;
  824. //oParam.callback = "cf_TXPIJ03205";
  825. tranf_submit(oParam);
  826. vfile.close();
  827. dsf_readFileFromDs(fldr+files[i], ds_filelist, 0, "attfilecnts"); // 파일저장
  828. updfilechk = false;
  829. }
  830. else
  831. {
  832. nofile += files[i]+"의 구성요서가 없습니다.! 다운로드 하세요.\n";
  833. }
  834. }
  835. vfile.close();
  836. }
  837. if (!updfilechk)
  838. {
  839. var addrow = ds_log.addRow();
  840. ds_log.setColumn(addrow,"msg", "파일이 업데이트 되었습니다. 다시 시도 해주세요.");
  841. ds_log.setColumn(addrow,"dd", utlf_getCurrentDate() + "" + utlf_getCurrentTime());
  842. return false;
  843. }
  844. if (nofile.length>0 && updfileyn == "Y")
  845. {
  846. var addrow = ds_log.addRow();
  847. ds_log.setColumn(addrow,"msg", nofile);
  848. ds_log.setColumn(addrow,"dd", utlf_getCurrentDate() + "" + utlf_getCurrentTime());
  849. return false;
  850. }
  851. else
  852. {
  853. if (VirtualFile.isExist(fldr + infile)){ VirtualFile.delete(fldr + infile); }
  854. if (VirtualFile.isExist(fldr + outfile)){ VirtualFile.delete(fldr + outfile); }
  855. var ipid = ds_send.getColumn(0, "pid");
  856. var indschacptstat= ds_send.getColumn(0, "indschacptstat");
  857. var idrgnocretyn = ds_send.getColumn(0, "idrgnocretyn");
  858. var clamtoym = ds_send.getColumn(0, "clamtoym");
  859. var clamfromym = ds_send.getColumn(0, "clamfromym");
  860. dsf_setDefaultVal(ds_main_drginfo, "ordrsltcd:1");
  861. var oParam = {};
  862. oParam.id = "TXPIJ04000";
  863. oParam.service = "bfjudgapp.DRGJudgList";
  864. oParam.method = "reqExeKDrgMastrInfo";
  865. oParam.inds = "drginfo=ds_main_drginfo";
  866. oParam.outds = "";
  867. oParam.async = false;
  868. oParam.force = true;
  869. //oParam.callback = "cf_TXPIJ04000";
  870. tranf_submit(oParam);
  871. ds_send.setColumn(0, "infilenm", infile)
  872. var oParam = {};
  873. oParam.id = "TXPIJ03201";
  874. oParam.service = "bfjudgapp.DRGJudgList";
  875. oParam.method = "reqExeDrgMakeInFile";
  876. oParam.inds = "req=ds_send";
  877. oParam.outds = "ds_attachfile=attachfile";
  878. oParam.async = false;
  879. oParam.force = true;
  880. //oParam.callback = "cf_TXPIJ03201";
  881. tranf_submit(oParam);
  882. dsf_readFileFromDs(fldr + infile, ds_attachfile, 0, "filedata"); // 파일저장
  883. fSleep(infile);
  884. if (VirtualFile.isExist(fldr + infile))
  885. {
  886. var gBatfileExe = "@ECHO OFF\r\nCD " + fldr + "\r\n"+ exefile;
  887. var objExtCommon = new ExtCommon();
  888. var gBatfilenm = "KDRG.bat";
  889. var sFileContent = objExtCommon.writeFile( fldr + gBatfilenm ,gBatfileExe, 932);
  890. var rtn = objExtCommon.executeProcess(fldr + gBatfilenm);
  891. fStandby();
  892. fSleep(outfile);
  893. var vfile = new VirtualFile(fldr+outfile, VirtualFile.openRead);
  894. if (vfile.getFileSize() > 0)
  895. {
  896. ds_tmp_attach.clearData();
  897. ds_tmp_attach.addRow();
  898. var objFileinfo = dsf_writeFileToDs(vfile, ds_tmp_attach, 0, "filedata");
  899. ds_tmp_attach.setColumn(0, "filenm", objFileinfo.filename);
  900. ds_tmp_attach.setColumn(0, "filesize", objFileinfo.filesize);
  901. ds_tmp_attach.setColumn(0, "filetype", objFileinfo.filetype);
  902. var oParam = {};
  903. oParam.id = "TXPIJ04002";
  904. oParam.service = "bfjudgapp.DRGJudgList";
  905. oParam.method = "reqExeKDrgMakeOutFile";
  906. oParam.inds = "attach=ds_tmp_attach req=ds_send";
  907. oParam.outds = "ds_main_drginfo=drginfo";
  908. oParam.async = false;
  909. oParam.force = true;
  910. oParam.callback = "cf_TXPIJ03202";
  911. tranf_submit(oParam);
  912. if (VirtualFile.isExist(fldr + infile)){ VirtualFile.delete(fldr + infile); }
  913. if (VirtualFile.isExist(fldr + outfile)){ VirtualFile.delete(fldr + outfile); }
  914. }
  915. else
  916. {
  917. var addrow = ds_log.addRow();
  918. ds_log.setColumn(addrow,"msg", "out 파일이 존재 하지 않습니다.");
  919. ds_log.setColumn(addrow,"dd", utlf_getCurrentDate() + "" + utlf_getCurrentTime());
  920. }
  921. vfile.close();
  922. }
  923. else
  924. {
  925. var addrow = ds_log.addRow();
  926. ds_log.setColumn(addrow,"msg", "in 파일이 존재 하지 않습니다.");
  927. ds_log.setColumn(addrow,"dd", utlf_getCurrentDate() + "" + utlf_getCurrentTime());
  928. }
  929. }
  930. }
  931. function cf_TXPIJ03202(sSvcId, nErrorCode, sErrorMsg)
  932. {
  933. if(nErrorCode < 0)
  934. {
  935. var addrow = ds_log.addRow();
  936. ds_log.setColumn(addrow,"msg", "DRG번호생성을 실패");
  937. ds_log.setColumn(addrow,"dd", utlf_getCurrentDate() + "" + utlf_getCurrentTime());
  938. return;
  939. }
  940. else
  941. {
  942. var addrow = ds_log.addRow();
  943. ds_log.setColumn(addrow,"msg", "DRG번호생성이 성공");
  944. ds_log.setColumn(addrow,"dd", utlf_getCurrentDate() + "" + utlf_getCurrentTime());
  945. }
  946. }
  947. function fExistFolder(foldernm)
  948. {
  949. var objExtCommon = new ExtCommon();
  950. if(utlf_isNull(foldernm))
  951. {
  952. return;
  953. }
  954. var folderDept = foldernm.split("\\");
  955. var currentPos = folderDept[0];
  956. for(var i = 1; i < folderDept.length ; i++)
  957. {
  958. if(utlf_isNull(folderDept[i]))
  959. {
  960. break;
  961. }
  962. currentPos += ("\\" + folderDept[i]);
  963. objExtCommon.checkDirectory(currentPos, 1);
  964. }
  965. }
  966. function fSleep(filenm)
  967. {
  968. var now = new Date();
  969. var exitTime = now.getTime() + 30000;
  970. while (true)
  971. {
  972. now = new Date();
  973. var vfile = new VirtualFile(fldr+filenm, VirtualFile.openRead);
  974. if (VirtualFile.isExist(fldr+filenm) && vfile.getFileSize() > 0)
  975. {
  976. vfile.close();
  977. break;
  978. }
  979. vfile.close();
  980. if (now.getTime() > exitTime)
  981. {
  982. break;
  983. }
  984. }
  985. }
  986. function fStandby()
  987. {
  988. var now = new Date();
  989. var exitTime = now.getTime() + 5000;
  990. while (true)
  991. {
  992. now = new Date();
  993. if (now.getTime() > exitTime)
  994. {
  995. break;
  996. }
  997. }
  998. }
  999. function group1_button3_onclick(obj:Button, e:ClickEventInfo)
  1000. {
  1001. this.close();
  1002. }
  1003. function group1_button2_onclick(obj:Button, e:ClickEventInfo)
  1004. {
  1005. frmf_open("SMPID24301", "SMPID24301", "", "", "", "", "", "", "", "", "", "", "M");
  1006. }
  1007. function SPPIJ04300_ontimer(obj:Form, e:TimerEventInfo)
  1008. {
  1009. fGetDocuList();
  1010. var addrow = ds_log.addRow();
  1011. ds_log.setColumn(addrow,"msg", "DRG번호 리스트 조회");
  1012. ds_log.setColumn(addrow,"dd", utlf_getCurrentDate() + "" + utlf_getCurrentTime());
  1013. }
  1014. function fSetAutoRepeat()
  1015. {
  1016. var autoRepeat = group1.group2.chk_autorepeat.value
  1017. var settime = group1.group2.ipt_settime.value*1000;
  1018. if(autoRepeat == "1")
  1019. {
  1020. this.setTimer(0,settime);
  1021. }
  1022. else
  1023. {
  1024. this.killTimer(0);
  1025. }
  1026. }
  1027. function group1_group2_chk_autorepeat_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  1028. {
  1029. fSetAutoRepeat();
  1030. }
  1031. function group1_group2_ipt_settime_onkeydown(obj:Edit, e:KeyEventInfo)
  1032. {
  1033. fSetAutoRepeat();
  1034. }
  1035. function group1_group2_ipt_settime_oneditclick(obj:Edit, e:EditClickEventInfo)
  1036. {
  1037. if(e.keycode == 13) {
  1038. obj.updateToDataset();
  1039. fSetAutoRepeat();
  1040. }
  1041. }
  1042. ]]></Script>
  1043. </Form>
  1044. </FDL>