SPPIJ04300_KDRG재원일괄조회.xfdl 51 KB

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