SMPID24300_KDRG 번호생성 프로그램.xfdl 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPID24300" position="absolute 0 0 900 910" titletext="KDRG 번호생성프로그램" oninit="SMPID24300_oninit" onload="SMPID24300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 15 897 905" id="group1" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Static text="대상리스트" position="absolute 0 77 110 99" id="caption1" class="tit_2" anchor="default"/>
  11. <Shape position="absolute 0 93 895 99" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  12. <Div position="absolute 0 9 895 50" align="align:center top;" id="group2" class="div_SA" anchor="left top right">
  13. <Layouts>
  14. <Layout>
  15. <Static text="청구년월 :" position="absolute 7 12 94 29" id="caption30" class="search_name" anchor="default"/>
  16. <Static text="~" position="absolute 165 10 180 30" id="caption2" anchor="default"/>
  17. <Button position="absolute 832 9 888 31" id="btn_select" class="btn1" taborder="32" text="조회" anchor="top right" onclick="group1_group2_btn_select_onclick"/>
  18. <Shape position="absolute 822 4 828 37" linetype="vertical" id="line3" class="line_4" anchor="top right"/>
  19. <Edit position="absolute 358 11 448 30" id="ipt_patunitsrch" class="input_search" taborder="3" anchor="default" onkeydown="group1_group2_ipt_patunitsrch_onkeydown"/>
  20. <Static text="환자조회" position="absolute 279 12 362 29" id="caption18" class="search_name" anchor="default"/>
  21. <cp_monthCal id="ipt_clamfromym" titletext="monthCalendar" taborder="33" text="cp_monthCal00" scrollbars="none" position="absolute 87 10 156 35" anchor="default"/>
  22. <cp_monthCal id="ipt_clamtoym" titletext="monthCalendar" taborder="34" text="cp_monthCal00" scrollbars="none" position="absolute 181 10 250 35" anchor="default"/>
  23. <Button id="btn_patunitsrch" taborder="35" class="icon_search" position="absolute 449 10 469 30" onclick="group1_group2_btn_patunitsrch_onclick" anchor="default"/>
  24. </Layout>
  25. </Layouts>
  26. </Div>
  27. <Button position="absolute 839 866 895 888" id="button3" class="btn4" text="종료" anchor="right bottom" onclick="group1_button3_onclick"/>
  28. <Button position="absolute 791 71 895 93" id="button4" class="btn4" text="DRG번호생성" anchor="top right" onclick="group1_button4_onclick"/>
  29. <Button position="absolute 665 71 789 93" id="button1" class="btn4" text="대상자수집 실행" anchor="top right" onclick="group1_button1_onclick"/>
  30. <Button position="absolute 782 866 838 888" id="button2" class="btn4" enable="true" visible="true" text="배포" anchor="right bottom" onclick="group1_button2_onclick" hotkey="CTRL+F6"/>
  31. <Grid position="absolute 0 98 895 865" align="align:center middle;" id="grd_kdrglist" class="datagrid3" binddataset="ds_main_kdrglist_kdrg" anchor="all" cellsizingtype="col">
  32. <Formats>
  33. <Format id="default">
  34. <Columns>
  35. <Column size="32"/>
  36. <Column size="62"/>
  37. <Column size="35"/>
  38. <Column size="60"/>
  39. <Column size="50"/>
  40. <Column size="31"/>
  41. <Column size="100"/>
  42. <Column size="100"/>
  43. <Column size="74"/>
  44. <Column size="81"/>
  45. <Column size="69"/>
  46. <Column size="37"/>
  47. <Column size="69"/>
  48. <Column size="50"/>
  49. <Column size="47"/>
  50. <Column size="306"/>
  51. <Column size="54"/>
  52. <Column size="196"/>
  53. <Column size="53"/>
  54. <Column size="189"/>
  55. <Column size="57"/>
  56. <Column size="207"/>
  57. <Column size="259"/>
  58. <Column size="250"/>
  59. <Column size="225"/>
  60. <Column size="211"/>
  61. <Column size="194"/>
  62. <Column size="235"/>
  63. <Column size="49"/>
  64. <Column size="54"/>
  65. <Column size="43"/>
  66. <Column size="45"/>
  67. <Column size="43"/>
  68. <Column size="60"/>
  69. <Column size="133"/>
  70. <Column size="56"/>
  71. <Column size="43"/>
  72. <Column size="72"/>
  73. <Column size="50"/>
  74. <Column size="252"/>
  75. <Column size="242"/>
  76. <Column size="0"/>
  77. <Column size="0"/>
  78. <Column size="49"/>
  79. <Column size="51"/>
  80. <Column size="53"/>
  81. <Column size="52"/>
  82. <Column size="52"/>
  83. <Column size="50"/>
  84. <Column size="57"/>
  85. <Column size="55"/>
  86. <Column size="0"/>
  87. <Column size="0"/>
  88. <Column size="49"/>
  89. <Column size="49"/>
  90. <Column size="49"/>
  91. <Column size="49"/>
  92. <Column size="49"/>
  93. <Column size="49"/>
  94. <Column size="49"/>
  95. <Column size="49"/>
  96. <Column size="54"/>
  97. <Column size="54"/>
  98. <Column size="54"/>
  99. <Column size="54"/>
  100. <Column size="54"/>
  101. <Column size="65"/>
  102. <Column size="190"/>
  103. <Column size="65"/>
  104. <Column size="65"/>
  105. <Column size="65"/>
  106. <Column size="65"/>
  107. <Column size="65"/>
  108. <Column size="65"/>
  109. <Column size="65"/>
  110. <Column size="65"/>
  111. <Column size="65"/>
  112. <Column size="65"/>
  113. <Column size="65"/>
  114. <Column size="65"/>
  115. <Column size="65"/>
  116. <Column size="65"/>
  117. <Column size="50"/>
  118. <Column size="50"/>
  119. <Column size="50"/>
  120. <Column size="50"/>
  121. <Column size="50"/>
  122. </Columns>
  123. <Rows>
  124. <Row size="47" band="head"/>
  125. <Row size="24"/>
  126. </Rows>
  127. <Band id="head">
  128. <Cell/>
  129. <Cell col="1" text="청구월"/>
  130. <Cell col="2" text="청구&#13;&#10;차수"/>
  131. <Cell col="3" text="환자번호"/>
  132. <Cell col="4" text="환자명"/>
  133. <Cell col="5" text="나이"/>
  134. <Cell col="6" text="주민번호"/>
  135. <Cell col="7" text="진료과"/>
  136. <Cell col="8" text="보험유형"/>
  137. <Cell col="9" text="보조유형"/>
  138. <Cell col="10" text="입원일자"/>
  139. <Cell col="11" text="입원&#10;일수"/>
  140. <Cell col="12" text="진료결과"/>
  141. <Cell col="13" text="청구&#10;구분"/>
  142. <Cell col="14" text="주상병"/>
  143. <Cell col="15" text="주상병명"/>
  144. <Cell col="16" text="제1&#13;&#10;부상병"/>
  145. <Cell col="17" text="제1부상병명"/>
  146. <Cell col="18" text="처치&#13;&#10;코드1"/>
  147. <Cell col="19" text="처치명1"/>
  148. <Cell col="20" text="처치&#13;&#10;코드2"/>
  149. <Cell col="21" text="처치명2"/>
  150. <Cell col="22" text="검사코드1-5"/>
  151. <Cell col="23" text="방사선코드1-5"/>
  152. <Cell col="24" text="주사및혈액제제코드1-5"/>
  153. <Cell col="25" text="마취및호흡치료코드1-5"/>
  154. <Cell col="26" text="알콜및약물중독재활치료코드"/>
  155. <Cell col="27" text="부가코드1-5"/>
  156. <Cell col="28" text="입원시&#10;체중(g)"/>
  157. <Cell col="29" text="인공&#10;호흡시간&#10;(hour)"/>
  158. <Cell col="30" text="MDC"/>
  159. <Cell col="31" text="ADRG"/>
  160. <Cell col="32" text="PCCL"/>
  161. <Cell col="33" text="DRG&#10;분류번호"/>
  162. <Cell col="34" text="DRG명"/>
  163. <Cell col="35" text="version"/>
  164. <Cell col="36" text="낮병동&#10;유무"/>
  165. <Cell col="37" text="응급실퇴원&#13;&#10;유무"/>
  166. <Cell col="38" text="대분류"/>
  167. <Cell col="39" text="진단코드1-10"/>
  168. <Cell col="40" text="수술코드1-10"/>
  169. <Cell col="41" text="진단코드&#13;&#10;1"/>
  170. <Cell col="42" text="진단코드&#13;&#10;2"/>
  171. <Cell col="43" text="진단코드&#13;&#10;3"/>
  172. <Cell col="44" text="진단코드&#13;&#10;4"/>
  173. <Cell col="45" text="진단코드&#13;&#10;5"/>
  174. <Cell col="46" text="진단코드&#13;&#10;6"/>
  175. <Cell col="47" text="진단코드&#13;&#10;7"/>
  176. <Cell col="48" text="진단코드&#13;&#10;8"/>
  177. <Cell col="49" text="진단코드&#13;&#10;9"/>
  178. <Cell col="50" text="진단코드&#13;&#10;10"/>
  179. <Cell col="51" text="시술코드&#13;&#10;1"/>
  180. <Cell col="52" text="시술코드&#13;&#10;2"/>
  181. <Cell col="53" text="시술코드&#13;&#10;3"/>
  182. <Cell col="54" text="시술코드&#13;&#10;4"/>
  183. <Cell col="55" text="시술코드&#13;&#10;5"/>
  184. <Cell col="56" text="시술코드&#13;&#10;6"/>
  185. <Cell col="57" text="시술코드&#13;&#10;7"/>
  186. <Cell col="58" text="시술코드&#13;&#10;8"/>
  187. <Cell col="59" text="시술코드&#13;&#10;9"/>
  188. <Cell col="60" text="시술코드&#13;&#10;10"/>
  189. <Cell col="61" text="검사코드&#13;&#10;1"/>
  190. <Cell col="62" text="검사코드&#13;&#10;2"/>
  191. <Cell col="63" text="검사코드&#13;&#10;3"/>
  192. <Cell col="64" text="검사코드&#13;&#10;4"/>
  193. <Cell col="65" text="검사코드&#13;&#10;5"/>
  194. <Cell col="66" text="방사선코드&#13;&#10;1"/>
  195. <Cell col="67" text="방사선명1"/>
  196. <Cell col="68" text="방사선코드&#13;&#10;2"/>
  197. <Cell col="69" text="방사선코드&#13;&#10;3"/>
  198. <Cell col="70" text="방사선코드&#13;&#10;4"/>
  199. <Cell col="71" text="방사선코드&#13;&#10;5"/>
  200. <Cell col="72" text="주사및혈&#13;&#10;액제제코&#13;&#10;드1"/>
  201. <Cell col="73" text="주사및혈&#13;&#10;액제제코&#13;&#10;드2"/>
  202. <Cell col="74" text="주사및혈&#13;&#10;액제제코&#13;&#10;드3"/>
  203. <Cell col="75" text="주사및혈&#13;&#10;액제제코&#13;&#10;드4"/>
  204. <Cell col="76" text="주사및혈&#13;&#10;액제제코&#13;&#10;드5"/>
  205. <Cell col="77" text="마취및호&#13;&#10;흡치료코&#13;&#10;드1"/>
  206. <Cell col="78" text="마취및호&#13;&#10;흡치료코&#13;&#10;드2"/>
  207. <Cell col="79" text="마취및호&#13;&#10;흡치료코&#13;&#10;드3"/>
  208. <Cell col="80" text="마취및호&#13;&#10;흡치료코&#13;&#10;드4"/>
  209. <Cell col="81" text="마취및호&#13;&#10;흡치료코&#13;&#10;드5"/>
  210. <Cell col="82" text="부가코드&#13;&#10;1"/>
  211. <Cell col="83" text="부가코드&#13;&#10;2"/>
  212. <Cell col="84" text="부가코드&#13;&#10;3"/>
  213. <Cell col="85" text="부가코드&#13;&#10;4"/>
  214. <Cell col="86" text="부가코드&#13;&#10;5"/>
  215. </Band>
  216. <Band id="body">
  217. <Cell celltype="head" expr="currow+1"/>
  218. <Cell col="1" displaytype="date" text="bind:clamym" mask="yyyy-MM"/>
  219. <Cell col="2" style="align:center middle;" text="bind:clamdg"/>
  220. <Cell col="3" text="bind:pid"/>
  221. <Cell col="4" text="bind:patnm"/>
  222. <Cell col="5" text="bind:patage"/>
  223. <Cell col="6" text="bind:patrrgstno" mask="######-####aaa" maskchar="*"/>
  224. <Cell col="7" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:orddeptcd" combodataset="ds_init_orddeptcd2_orddeptcdlist" combocodecol="cd" combodatacol="nm"/>
  225. <Cell col="8" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:insukind" combodataset="ds_init_P0008list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  226. <Cell col="9" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:suppkind" combodataset="ds_init_P0010list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  227. <Cell col="10" displaytype="date" text="bind:indd" mask="yyyy-MM-dd"/>
  228. <Cell col="11" text="bind:chosindayno"/>
  229. <Cell col="12" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:ordrsltcd" combodataset="ds_init_P0110list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  230. <Cell col="13" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:clamflagcd" combodataset="ds_init_P0155list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  231. <Cell col="14" style="align:left middle;" text="bind:diagcd"/>
  232. <Cell col="15" style="align:left middle;" text="bind:diagnm1"/>
  233. <Cell col="16" style="align:left middle;" text="bind:diagcd2"/>
  234. <Cell col="17" style="align:left middle;" text="bind:diagnm2"/>
  235. <Cell col="18" style="align:left middle;" text="bind:opcd1"/>
  236. <Cell col="19" style="align:left middle;" text="bind:opnm1"/>
  237. <Cell col="20" style="align:left middle;" text="bind:opcd2"/>
  238. <Cell col="21" style="align:left middle;" text="bind:opnm2"/>
  239. <Cell col="22" style="align:left middle;" text="bind:excd"/>
  240. <Cell col="23" style="align:left middle;" text="bind:rgcd"/>
  241. <Cell col="24" style="align:left middle;" text="bind:ibcd"/>
  242. <Cell col="25" style="align:left middle;" text="bind:arcd"/>
  243. <Cell col="26" style="align:left middle;" text="bind:ncvcd"/>
  244. <Cell col="27" style="align:left middle;" text="bind:detailcd"/>
  245. <Cell col="28" text="bind:bw"/>
  246. <Cell col="29" text="bind:vtl"/>
  247. <Cell col="30" text="bind:mdc"/>
  248. <Cell col="31" text="bind:adrg"/>
  249. <Cell col="32" text="bind:pccl"/>
  250. <Cell col="33" text="bind:drgno"/>
  251. <Cell col="34" style="align:left middle;" text="bind:drgnm"/>
  252. <Cell col="35" text="bind:version"/>
  253. <Cell col="36" text="bind:dayward"/>
  254. <Cell col="37" text="bind:ioflagyn"/>
  255. <Cell col="38" text="bind:drgtype"/>
  256. <Cell col="39" style="align:left middle;" text="bind:diagcd"/>
  257. <Cell col="40" style="align:left middle;" text="bind:opcd"/>
  258. <Cell col="41" text="bind:diagcd1"/>
  259. <Cell col="42" text="bind:diagcd2"/>
  260. <Cell col="43" text="bind:diagcd3"/>
  261. <Cell col="44" text="bind:diagcd4"/>
  262. <Cell col="45" text="bind:diagcd5"/>
  263. <Cell col="46" text="bind:diagcd6"/>
  264. <Cell col="47" text="bind:diagcd7"/>
  265. <Cell col="48" text="bind:diagcd8"/>
  266. <Cell col="49" text="bind:diagcd9"/>
  267. <Cell col="50" text="bind:diagcd10"/>
  268. <Cell col="51" text="bind:opcd1"/>
  269. <Cell col="52" text="bind:opcd2"/>
  270. <Cell col="53" text="bind:opcd3"/>
  271. <Cell col="54" text="bind:opcd4"/>
  272. <Cell col="55" text="bind:opcd5"/>
  273. <Cell col="56" text="bind:opcd6"/>
  274. <Cell col="57" text="bind:opcd7"/>
  275. <Cell col="58" text="bind:opcd8"/>
  276. <Cell col="59" text="bind:opcd9"/>
  277. <Cell col="60" text="bind:opcd10"/>
  278. <Cell col="61" text="bind:excd1"/>
  279. <Cell col="62" text="bind:excd2"/>
  280. <Cell col="63" text="bind:excd3"/>
  281. <Cell col="64" text="bind:excd4"/>
  282. <Cell col="65" text="bind:excd5"/>
  283. <Cell col="66" text="bind:rgcd1"/>
  284. <Cell col="67" style="align:left middle;" text="bind:rgnm1"/>
  285. <Cell col="68" text="bind:rgcd2"/>
  286. <Cell col="69" text="bind:rgcd3"/>
  287. <Cell col="70" text="bind:rgcd4"/>
  288. <Cell col="71" text="bind:rgcd5"/>
  289. <Cell col="72" text="bind:ibcd1"/>
  290. <Cell col="73" text="bind:ibcd2"/>
  291. <Cell col="74" text="bind:ibcd3"/>
  292. <Cell col="75" text="bind:ibcd4"/>
  293. <Cell col="76" text="bind:ibcd5"/>
  294. <Cell col="77" text="bind:arcd1"/>
  295. <Cell col="78" text="bind:arcd2"/>
  296. <Cell col="79" text="bind:arcd3"/>
  297. <Cell col="80" text="bind:arcd4"/>
  298. <Cell col="81" text="bind:arcd5"/>
  299. <Cell col="82" text="bind:detailcd1"/>
  300. <Cell col="83" text="bind:detailcd2"/>
  301. <Cell col="84" text="bind:detailcd3"/>
  302. <Cell col="85" text="bind:detailcd4"/>
  303. <Cell col="86" text="bind:detailcd5"/>
  304. </Band>
  305. </Format>
  306. </Formats>
  307. </Grid>
  308. <Button position="absolute 584 71 664 93" id="btn_excelsave" class="btn7" text="엑셀저장" anchor="top right" onclick="group1_btn_excelsave_onclick"/>
  309. </Layout>
  310. </Layouts>
  311. </Div>
  312. <Static id="cap_title" text="KDRG 번호생성프로그램" class="tit_1" position="absolute 0 0 211 23"/>
  313. </Layout>
  314. </Layouts>
  315. <Objects>
  316. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  317. <ColumnInfo>
  318. <Column id="clamfromym" type="STRING" size="256"/>
  319. <Column id="clamtoym" type="STRING" size="256"/>
  320. <Column id="pid" type="STRING" size="256"/>
  321. <Column id="offset" type="STRING" size="256"/>
  322. <Column id="pageyn" type="STRING" size="256"/>
  323. <Column id="clamym" type="STRING" size="256"/>
  324. <Column id="infilenm" type="STRING" size="256"/>
  325. </ColumnInfo>
  326. <Rows>
  327. <Row/>
  328. </Rows>
  329. </Dataset>
  330. <Dataset id="ds_main_kdrglist_kdrg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  331. <ColumnInfo>
  332. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  333. <Column id="clamym" type="STRING" size="256" sumtext="청구년월"/>
  334. <Column id="clamdg" type="STRING" size="256" sumtext="청구차수"/>
  335. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  336. <Column id="pidsn" type="STRING" size="256" sumtext="환자번호순번"/>
  337. <Column id="diagcd" type="STRING" size="256" sumtext="진단"/>
  338. <Column id="opcd" type="STRING" size="256" sumtext="시술"/>
  339. <Column id="excd" type="STRING" size="256" sumtext="검사"/>
  340. <Column id="rgcd" type="STRING" size="256" sumtext="방사선"/>
  341. <Column id="ibcd" type="STRING" size="256" sumtext="주사및혈액제제코드"/>
  342. <Column id="arcd" type="STRING" size="256" sumtext="마취및호흡치료코드"/>
  343. <Column id="ncvcd" type="STRING" size="256" sumtext="알콜및약품중독재활치료코드"/>
  344. <Column id="detailcd" type="STRING" size="256" sumtext="부가코드"/>
  345. <Column id="bw" type="STRING" size="256" sumtext="체중"/>
  346. <Column id="vtl" type="STRING" size="256" sumtext="인공호흡시간"/>
  347. <Column id="mdc" type="STRING" size="256" sumtext="mdc"/>
  348. <Column id="adrg" type="STRING" size="256" sumtext="drg"/>
  349. <Column id="pccl" type="STRING" size="256" sumtext="pccl"/>
  350. <Column id="drgno" type="STRING" size="256" sumtext="drgno"/>
  351. <Column id="version" type="STRING" size="256" sumtext="버전"/>
  352. <Column id="FSTRGSTRID" type="STRING" size="256" sumtext="등록자"/>
  353. <Column id="fstrgstdt" type="STRING" size="256" sumtext="등록일자"/>
  354. <Column id="lastupdtrid" type="STRING" size="256" sumtext="수정자"/>
  355. <Column id="lastupdtdt" type="STRING" size="256" sumtext="수정일자"/>
  356. <Column id="patrrgstno" type="STRING" size="256" sumtext="환자주민번호"/>
  357. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  358. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  359. <Column id="ordfromdd" type="STRING" size="256" sumtext="진료개시일"/>
  360. <Column id="chosindayno" type="STRING" size="256" sumtext="입원일수"/>
  361. <Column id="ordrsltcd" type="STRING" size="256" sumtext="진료결과"/>
  362. <Column id="clamno" type="STRING" size="256" sumtext="청구번호"/>
  363. <Column id="docuseqno" type="STRING" size="256" sumtext="명세서일련번호"/>
  364. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  365. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  366. <Column id="orddeptcd" type="STRING" size="256" sumtext="부서코드"/>
  367. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의"/>
  368. <Column id="patage" type="STRING" size="256" sumtext="환자나이"/>
  369. <Column id="tot_cnt" type="STRING" size="256" sumtext="총건수"/>
  370. <Column id="drgtype" type="STRING" size="256" sumtext="총건수"/>
  371. <Column id="dayward" type="STRING" size="256" sumtext="낮병동유무"/>
  372. <Column id="clamflagcd" type="STRING" size="256" sumtext="낮병동유무"/>
  373. <Column id="diagcd1" type="STRING" size="256" sumtext="응급퇴원포함"/>
  374. <Column id="diagcd2" type="STRING" size="256" sumtext="응급퇴원포함"/>
  375. <Column id="diagcd3" type="STRING" size="256" sumtext="응급퇴원포함"/>
  376. <Column id="diagcd4" type="STRING" size="256" sumtext="응급퇴원포함"/>
  377. <Column id="diagcd5" type="STRING" size="256" sumtext="응급퇴원포함"/>
  378. <Column id="diagcd6" type="STRING" size="256" sumtext="응급퇴원포함"/>
  379. <Column id="diagcd7" type="STRING" size="256" sumtext="응급퇴원포함"/>
  380. <Column id="diagcd8" type="STRING" size="256" sumtext="응급퇴원포함"/>
  381. <Column id="diagcd9" type="STRING" size="256" sumtext="응급퇴원포함"/>
  382. <Column id="diagcd10" type="STRING" size="256" sumtext="응급퇴원포함"/>
  383. <Column id="opcd1" type="STRING" size="256" sumtext="응급퇴원포함"/>
  384. <Column id="opcd2" type="STRING" size="256" sumtext="응급퇴원포함"/>
  385. <Column id="opcd3" type="STRING" size="256" sumtext="응급퇴원포함"/>
  386. <Column id="opcd4" type="STRING" size="256" sumtext="응급퇴원포함"/>
  387. <Column id="opcd5" type="STRING" size="256" sumtext="응급퇴원포함"/>
  388. <Column id="opcd6" type="STRING" size="256" sumtext="응급퇴원포함"/>
  389. <Column id="opcd7" type="STRING" size="256" sumtext="응급퇴원포함"/>
  390. <Column id="opcd8" type="STRING" size="256" sumtext="응급퇴원포함"/>
  391. <Column id="opcd9" type="STRING" size="256" sumtext="응급퇴원포함"/>
  392. <Column id="opcd10" type="STRING" size="256" sumtext="응급퇴원포함"/>
  393. <Column id="excd1" type="STRING" size="256" sumtext="응급퇴원포함"/>
  394. <Column id="excd2" type="STRING" size="256" sumtext="응급퇴원포함"/>
  395. <Column id="excd3" type="STRING" size="256" sumtext="응급퇴원포함"/>
  396. <Column id="excd4" type="STRING" size="256" sumtext="응급퇴원포함"/>
  397. <Column id="excd5" type="STRING" size="256" sumtext="응급퇴원포함"/>
  398. <Column id="rgcd1" type="STRING" size="256" sumtext="응급퇴원포함"/>
  399. <Column id="rgnm1" type="STRING" size="256" sumtext="응급퇴원포함"/>
  400. <Column id="rgcd2" type="STRING" size="256" sumtext="응급퇴원포함"/>
  401. <Column id="rgcd3" type="STRING" size="256" sumtext="응급퇴원포함"/>
  402. <Column id="rgcd4" type="STRING" size="256" sumtext="응급퇴원포함"/>
  403. <Column id="rgcd5" type="STRING" size="256" sumtext="응급퇴원포함"/>
  404. <Column id="ibcd1" type="STRING" size="256" sumtext="응급퇴원포함"/>
  405. <Column id="ibcd2" type="STRING" size="256" sumtext="응급퇴원포함"/>
  406. <Column id="ibcd3" type="STRING" size="256" sumtext="응급퇴원포함"/>
  407. <Column id="ibcd4" type="STRING" size="256" sumtext="응급퇴원포함"/>
  408. <Column id="ibcd5" type="STRING" size="256" sumtext="응급퇴원포함"/>
  409. <Column id="arcd1" type="STRING" size="256" sumtext="응급퇴원포함"/>
  410. <Column id="arcd2" type="STRING" size="256" sumtext="응급퇴원포함"/>
  411. <Column id="arcd3" type="STRING" size="256" sumtext="응급퇴원포함"/>
  412. <Column id="arcd4" type="STRING" size="256" sumtext="응급퇴원포함"/>
  413. <Column id="arcd5" type="STRING" size="256" sumtext="응급퇴원포함"/>
  414. <Column id="detailcd1" type="STRING" size="256" sumtext="응급퇴원포함"/>
  415. <Column id="detailcd2" type="STRING" size="256" sumtext="응급퇴원포함"/>
  416. <Column id="detailcd3" type="STRING" size="256" sumtext="응급퇴원포함"/>
  417. <Column id="detailcd4" type="STRING" size="256" sumtext="응급퇴원포함"/>
  418. <Column id="detailcd5" type="STRING" size="256" sumtext="응급퇴원포함"/>
  419. <Column id="diagnm1" type="STRING" size="256" sumtext="응급퇴원포함"/>
  420. <Column id="diagnm2" type="STRING" size="256" sumtext="응급퇴원포함"/>
  421. <Column id="opnm1" type="STRING" size="256" sumtext="응급퇴원포함"/>
  422. <Column id="opnm2" type="STRING" size="256" sumtext="응급퇴원포함"/>
  423. </ColumnInfo>
  424. </Dataset>
  425. <Dataset id="ds_init_orddeptcd2_orddeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  426. <ColumnInfo>
  427. <Column id="cd" type="STRING" size="256"/>
  428. <Column id="nm" type="STRING" size="256"/>
  429. </ColumnInfo>
  430. </Dataset>
  431. <Dataset id="ds_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  432. <ColumnInfo>
  433. <Column id="cdnm" type="STRING" size="256"/>
  434. <Column id="cdid" type="STRING" size="256"/>
  435. </ColumnInfo>
  436. </Dataset>
  437. <Dataset id="ds_init_P0010list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  438. <ColumnInfo>
  439. <Column id="cdnm" type="STRING" size="256"/>
  440. <Column id="cdid" type="STRING" size="256"/>
  441. </ColumnInfo>
  442. </Dataset>
  443. <Dataset id="ds_init_P0110list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  444. <ColumnInfo>
  445. <Column id="cdnm" type="STRING" size="256"/>
  446. <Column id="cdid" type="STRING" size="256"/>
  447. </ColumnInfo>
  448. </Dataset>
  449. <Dataset id="ds_init_P0155list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  450. <ColumnInfo>
  451. <Column id="cdnm" type="STRING" size="256"/>
  452. <Column id="cdid" type="STRING" size="256"/>
  453. </ColumnInfo>
  454. </Dataset>
  455. <Dataset id="ds_init_PK015list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  456. <Dataset id="ds_init_PK016list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  457. <Dataset id="ds_init_PK054list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  458. <Dataset id="ds_init_PK055list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  459. <Dataset id="ds_hidden_sppmc02500_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  460. <ColumnInfo>
  461. <Column id="srchcond" type="STRING" size="256"/>
  462. <Column id="pid" type="STRING" size="256"/>
  463. </ColumnInfo>
  464. <Rows>
  465. <Row/>
  466. </Rows>
  467. </Dataset>
  468. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  469. <Dataset id="ds_send_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  470. <ColumnInfo>
  471. <Column id="filenm" type="STRING" size="256" sumtext="첨부파일명"/>
  472. <Column id="filedata" type="" size="256" sumtext="첨부파일데이터"/>
  473. <Column id="filesize" type="STRING" size="256" sumtext="첨부파일크기"/>
  474. <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
  475. <Column id="file" type="STRING" size="256"/>
  476. </ColumnInfo>
  477. <Rows>
  478. <Row/>
  479. </Rows>
  480. </Dataset>
  481. <Dataset id="ds_tmp_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  482. <ColumnInfo>
  483. <Column id="filenm" type="STRING" size="256"/>
  484. <Column id="filesize" type="INT" size="256"/>
  485. <Column id="filetype" type="STRING" size="256"/>
  486. <Column id="filedata" type="BLOB" size="256"/>
  487. </ColumnInfo>
  488. <Rows>
  489. <Row/>
  490. </Rows>
  491. </Dataset>
  492. <Dataset id="ds_filelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  493. <Dataset id="ds_attachfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  494. <ColumnInfo>
  495. <Column id="filedata" type="STRING" size="256"/>
  496. </ColumnInfo>
  497. </Dataset>
  498. <Dataset id="ds_drginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  499. </Objects>
  500. <Bind>
  501. <BindItem id="item0" compid="group1.group2.ipt_patunitsrch" propid="value" datasetid="ds_send" columnid="pid"/>
  502. </Bind>
  503. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  504. * System Name :
  505. * Job Name :
  506. * Creator :
  507. * Make Date : 2016-05-24
  508. * Description :
  509. *---------------------------------------------------------------------------------------
  510. * Modify Date Modifier Modify Description
  511. *---------------------------------------------------------------------------------------
  512. * 2016-05-24 Live Converter TF->XP
  513. *
  514. *---------------------------------------------------------------------------------------
  515. ****************************************************************************************/
  516. include "com_commonxp::comm_main.xjs";
  517. include "pam_pamcomnxp::PAM001.xjs";
  518. var fldr = "";
  519. var infile = "";
  520. var outfile = "";
  521. function SMPID24300_oninit(obj:Form, e:InitEventInfo)
  522. {
  523. frmf_initForm(obj);
  524. }
  525. function SMPID24300_onload(obj:Form, e:LoadEventInfo)
  526. {
  527. group1.group2.ipt_clamfromym.setCallEvent("fn_Cal");
  528. group1.group2.ipt_clamtoym.setCallEvent("fn_Cal1");
  529. var arrParam = [{dsNm: "ds_init_P0008list", cdGrpId: "P0008"}
  530. ,{dsNm: "ds_init_P0155list", cdGrpId: "P0155"}
  531. ,{dsNm: "ds_init_P0010list", cdGrpId: "P0010"}// 보조유형
  532. ,{dsNm: "ds_init_P0110list", cdGrpId: "P0110"}]
  533. appf_getCodeList(arrParam);
  534. var arrParam = new Array();
  535. arrParam = [ {dsNm: "ds_init_PK015list", cdGrpId: "PK015", showValue: true}
  536. ,{dsNm: "ds_init_PK016list", cdGrpId: "PK016", showValue: true}
  537. ,{dsNm: "ds_init_PK054list", cdGrpId: "PK054", showValue: true}
  538. ,{dsNm: "ds_init_PK055list", cdGrpId: "PK055", showValue: true}];
  539. pamfGetCodeList(arrParam, true, "");
  540. dsf_createDsRow("ds_send_req", [{col:"ioflag", val:""}]);
  541. var oParam = {};
  542. oParam.id = "TRPID20309";
  543. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  544. oParam.method = "reqGetDeptCDDrID";
  545. oParam.inds = "req=ds_send_req";
  546. oParam.outds = "ds_init_orddeptcd2_orddeptcdlist=orddeptcd2";
  547. oParam.async = true;
  548. //oParam.callback = "cf_TRPID20309";
  549. tranf_submit(oParam);
  550. fInitialize();
  551. }
  552. function fInitialize()
  553. {
  554. var gToday = new Date();
  555. var gBaseyear = gToday.getDateFormat("YYYY");
  556. var gBasemonth = gToday.getDateFormat("MM");
  557. var gBaseday = gToday.getDateFormat("DD");
  558. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  559. var gCurrentym = gBaseyear + gBasemonth;
  560. var gUserid = sysf_getUserId();
  561. ds_send.setColumn(0, "clamfromym", gCurrentym);
  562. ds_send.setColumn(0, "clamtoym", gCurrentym);
  563. }
  564. function fn_Cal()
  565. {
  566. var date = group1.group2.ipt_clamfromym.getData();
  567. ds_send.setColumn(0, "clamfromym", date);
  568. }
  569. function fn_Cal1()
  570. {
  571. var date = group1.group2.ipt_clamtoym.getData();
  572. ds_send.setColumn(0, "clamtoym", date);
  573. }
  574. function group1_group2_btn_patunitsrch_onclick(obj:Button, e:ClickEventInfo)
  575. {
  576. var ipt_pid = group1.group2.ipt_patunitsrch.value;
  577. ds_hidden_sppmc02500_cond.setColumn(0, "srchcond", "1");
  578. ds_hidden_sppmc02500_cond.setColumn(0, "pid", ipt_pid);
  579. var objArg = new Object();
  580. objArg.arg_ds_send = ds_hidden_sppmc02500_cond;
  581. frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", "", "", "", "", "", "", "", "", "M");
  582. var srch_pid = ds_patinfolist.getColumn(0, "pid");
  583. if (srch_pid)
  584. {
  585. ds_patinfolist.clearData();
  586. ds_send.setColumn(0, "pid", srch_pid);
  587. }
  588. }
  589. function group1_group2_btn_select_onclick(obj:Button, e:ClickEventInfo)
  590. {
  591. fGetDocuList();
  592. }
  593. function fGetDocuList()
  594. {
  595. var offcnt = ds_main_kdrglist_kdrg.rowcount;
  596. if (offcnt >= 10000)
  597. {
  598. ds_send.setColumn(0, "offset", offcnt);
  599. }
  600. else
  601. {
  602. }
  603. dsf_setDefaultVal(ds_send, "pageyn:Y");
  604. var oParam = {};
  605. oParam.id = "TRPID20202";
  606. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  607. oParam.method = "reqGetKdrgList";
  608. oParam.inds = "req=ds_send";
  609. oParam.outds = "ds_main_kdrglist_kdrg=kdrglist";
  610. oParam.async = false;
  611. //oParam.callback = "cf_TRPID20202";
  612. tranf_submit(oParam);
  613. }
  614. function group1_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  615. {
  616. if(ds_main_kdrglist_kdrg.rowcount == 0)
  617. {
  618. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  619. }
  620. else
  621. {
  622. grdf_exportExcel(group1.grd_kdrglist, "", "see");
  623. }
  624. }
  625. function group1_button1_onclick(obj:Button, e:ClickEventInfo)
  626. {
  627. var clamfromym = ds_send.getColumn(0, "clamfromym");
  628. var clamtoym = ds_send.getColumn(0, "clamtoym");
  629. var mthcnt = utlf_getDateInterval(clamfromym + "01", clamtoym + "01", "mm");
  630. if (mthcnt == 0)
  631. {
  632. ds_send.setColumn(0, "clamym", clamfromym);
  633. var sWindowMsg = clamfromym + " KDRG 대상자 수집중입니다...";
  634. //callLoadingWindow(sWindowMsg);
  635. var oParam = {};
  636. oParam.id = "TRPID20202";
  637. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  638. oParam.method = "reqExeKdrgProc";
  639. oParam.inds = "req=ds_send";
  640. oParam.outds = "";
  641. oParam.async = false;
  642. //oParam.callback = "cf_TRPID20202";
  643. tranf_submit(oParam);
  644. //removeLoadingWindow();
  645. }
  646. else if (mthcnt > 0)
  647. {
  648. for (var i = 0; i < mthcnt; i++)
  649. {
  650. var myDate = new Date("01" + "/" + String(clamfromym).substr(4,6) +"/" + String(clamfromym).substr(0,4));
  651. var dayOfMonth = myDate.getDate();
  652. myDate.setMonth(dayOfMonth - 1 + i);
  653. ds_send.setColumn(0, "clamym", myDate.getDateFormat("YYYYMM"));
  654. var sWindowMsg = myDate.getDateFormat('YYYY년MM월') + " KDRG 대상자 수집중입니다...";
  655. //callLoadingWindow(sWindowMsg);
  656. var oParam = {};
  657. oParam.id = "TRPID20202";
  658. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  659. oParam.method = "reqExeKdrgProc";
  660. oParam.inds = "req=ds_send";
  661. oParam.outds = "";
  662. oParam.async = false;
  663. //oParam.callback = "cf_TRPID20202";
  664. tranf_submit(oParam);
  665. //removeLoadingWindow();
  666. }
  667. }
  668. }
  669. function group1_button4_onclick(obj:Button, e:ClickEventInfo)
  670. {
  671. fldr = system.convertRealPath("%MYDOCUMENT%") + "\KU20\\" + ds_init_PK054list.lookupExpr("cdid=='06'","cdnm") +"\\"//"//KDRG";
  672. infile = ds_init_PK054list.lookupExpr("cdid=='02'","cdnm");//"kdrg33.in";
  673. outfile = ds_init_PK054list.lookupExpr("cdid=='03'","cdnm");//"kdrg33.out";
  674. var exefile = ds_init_PK054list.lookup("cdid", "04", "cdnm");
  675. var updfileyn = ds_init_PK054list.lookup("cdid", "05", "cdnm");
  676. var fso;
  677. var nofile = "";
  678. ds_send_attach.setColumn(0, "file", fldr+outfile);
  679. fExistFolder(fldr);
  680. var files = new Array();
  681. var filecnt = ds_init_PK055list.rowcount;
  682. for (var i = 0; i < filecnt; i++)
  683. {
  684. files.push(ds_init_PK055list.getColumn(i, "cdnm"));
  685. }
  686. var updfilechk = true;
  687. for (var i = 0; i < files.length; i++)
  688. {
  689. var updfilesize = utlf_transNullToEmpty(ds_init_PK055list.lookup("cdnm", files[i], "dispseq"));
  690. var updfilepath = utlf_transNullToEmpty(ds_init_PK055list.lookup("cdnm", files[i], "detldesc"));
  691. var vfile = new VirtualFile(fldr+files[i], VirtualFile.openRead);
  692. if (vfile.getFileSize() > 0)
  693. {
  694. if (updfileyn == "Y")
  695. {
  696. var nowfilesize = vfile.getFileSize();
  697. if (updfilesize != nowfilesize && updfilepath.length > 0 )
  698. {
  699. dsf_createDsRow("ds_send_downfile", [{col:"attfilepath", type:"STRING", size:256, val:updfilepath}
  700. , {col:"filepathcolnm", type:"STRING", size:256, val:"attfilepath"}]);
  701. var oParam = {};
  702. oParam.id = "TXPIJ03208";
  703. oParam.service = "bfjudgapp.DRGJudgList";
  704. oParam.method = "reqExeKDrgdDownload";
  705. oParam.inds = "req=ds_send_downfile";
  706. oParam.outds = "ds_filelist=filelist";
  707. oParam.async = false;
  708. tranf_submit(oParam);
  709. vfile.close();
  710. dsf_readFileFromDs(fldr+files[i], ds_filelist, 0, "attfilecnts"); // 파일저장
  711. updfilechk = false;
  712. }
  713. }
  714. }
  715. else
  716. {
  717. if (updfileyn == "Y")
  718. {
  719. dsf_createDsRow("ds_send_downfile", [{col:"attfilepath", type:"STRING", size:256, val:updfilepath}
  720. , {col:"filepathcolnm", type:"STRING", size:256, val:"attfilepath"}]);
  721. var oParam = {};
  722. oParam.id = "TXPIJ03208";
  723. oParam.service = "bfjudgapp.DRGJudgList";
  724. oParam.method = "reqExeKDrgdDownload";
  725. oParam.inds = "req=ds_send_downfile";
  726. oParam.outds = "ds_filelist=filelist";
  727. oParam.async = false;
  728. tranf_submit(oParam);
  729. vfile.close();
  730. dsf_readFileFromDs(fldr+files[i], ds_filelist, 0, "attfilecnts"); // 파일저장
  731. updfilechk = false;
  732. }
  733. else
  734. {
  735. nofile += files[i]+"의 구성요서가 없습니다.! 다운로드 하세요.\n";
  736. }
  737. }
  738. vfile.close();
  739. }
  740. if (!updfilechk)
  741. {
  742. alert("파일이 업데이트 되었습니다. 다시 시도 해주세요." );
  743. return false;
  744. }
  745. if (nofile.length > 0 && updfileyn == "Y")
  746. {
  747. alert(nofile);
  748. return false;
  749. }
  750. else
  751. {
  752. if (VirtualFile.isExist(fldr + infile)){ VirtualFile.delete(fldr + infile); }
  753. if (VirtualFile.isExist(fldr + outfile)){ VirtualFile.delete(fldr + outfile); }
  754. var ipid = ds_send.getColumn(0, "pid");
  755. var clamtoym = ds_send.getColumn(0, "clamtoym");
  756. var clamfromym = ds_send.getColumn(0, "clamfromym");
  757. ds_send.setColumn(0, "infilenm", infile)
  758. dsf_setDefaultVal(ds_send, "pid:,infilenm:kdrg35.in");
  759. var oParam = {};
  760. oParam.id = "TXPID24301";
  761. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  762. oParam.method = "reqExeKDrgMakeInFile";
  763. oParam.inds = "req=ds_send";
  764. oParam.outds = "ds_attachfile=attachfile";
  765. oParam.async = false;
  766. //oParam.callback = "cf_TXPID24301";
  767. tranf_submit(oParam);
  768. dsf_readFileFromDs(fldr + infile, ds_attachfile, 0, "filedata");
  769. fSleep(infile);
  770. if (VirtualFile.isExist(fldr + infile))
  771. {
  772. var gBatfileExe = "@ECHO OFF\r\nCD " + fldr + "\r\n"+ exefile;
  773. var objExtCommon = new ExtCommon();
  774. var gBatfilenm = "KDRG.bat";
  775. var sFileContent = objExtCommon.writeFile( fldr + gBatfilenm ,gBatfileExe, 932);
  776. var rtn = objExtCommon.executeProcess(fldr + gBatfilenm);
  777. fStandby();
  778. var vfile = new VirtualFile(fldr+outfile, VirtualFile.openRead);
  779. if (vfile.getFileSize() > 0)
  780. {
  781. ds_tmp_attach.clearData();
  782. ds_tmp_attach.addRow();
  783. var objFileinfo = dsf_writeFileToDs(vfile, ds_tmp_attach, 0, "filedata");
  784. ds_tmp_attach.setColumn(0, "filenm", objFileinfo.filename);
  785. ds_tmp_attach.setColumn(0, "filesize", objFileinfo.filesize);
  786. ds_tmp_attach.setColumn(0, "filetype", objFileinfo.filetype);
  787. var oParam = {};
  788. oParam.id = "TXPIJ03202";
  789. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  790. oParam.method = "reqExeKDrgMakeOutFile";
  791. oParam.inds = "attach=ds_tmp_attach req=ds_send";
  792. oParam.outds = "ds_drginfo=drginfo";
  793. oParam.async = false;
  794. oParam.callback = "cf_TXPIJ03202";
  795. tranf_submit(oParam);
  796. if (VirtualFile.isExist(fldr + infile)){ VirtualFile.delete(fldr + infile); }
  797. if (VirtualFile.isExist(fldr + outfile)){ VirtualFile.delete(fldr + outfile); }
  798. }
  799. else
  800. {
  801. sysf_messageBox("in 파일이 존재 하지 않습니다.","E");
  802. }
  803. vfile.close();
  804. }
  805. else
  806. {
  807. sysf_messageBox("in 파일이 존재 하지 않습니다.","E");
  808. }
  809. }
  810. }
  811. function cf_TXPIJ03202(sSvcId, nErrorCode, sErrorMsg)
  812. {
  813. if(nErrorCode < 0)
  814. {
  815. sysf_messageBox("DRG번호생성을","E009");
  816. return;
  817. }
  818. else
  819. {
  820. sysf_messageBox("DRG번호생성이","I002");
  821. }
  822. }
  823. function fExistFolder(foldernm)
  824. {
  825. var objExtCommon = new ExtCommon();
  826. if(utlf_isNull(foldernm))
  827. {
  828. return;
  829. }
  830. var folderDept = foldernm.split("\\");
  831. var currentPos = folderDept[0];
  832. for(var i = 1; i < folderDept.length ; i++)
  833. {
  834. if(utlf_isNull(folderDept[i]))
  835. {
  836. break;
  837. }
  838. currentPos += ("\\" + folderDept[i]);
  839. objExtCommon.checkDirectory(currentPos, 1);
  840. }
  841. }
  842. function fSleep(filenm)
  843. {
  844. var now = new Date();
  845. var exitTime = now.getTime() + 50000;
  846. while (true)
  847. {
  848. now = new Date();
  849. var vfile = new VirtualFile(fldr+filenm, VirtualFile.openRead);
  850. if (VirtualFile.isExist(fldr+filenm) && vfile.getFileSize() > 0)
  851. {
  852. vfile.close();
  853. break;
  854. }
  855. vfile.close();
  856. if (now.getTime() > exitTime)
  857. {
  858. break;
  859. }
  860. }
  861. }
  862. function fStandby()
  863. {
  864. var now = new Date();
  865. var exitTime = now.getTime() + 5000;
  866. while (true)
  867. {
  868. now = new Date();
  869. if (now.getTime() > exitTime)
  870. {
  871. break;
  872. }
  873. }
  874. }
  875. function group1_button2_onclick(obj:Button, e:ClickEventInfo)
  876. {
  877. var req = dsf_createDsRow("ds_send_info", [
  878. { col: "cdgrupid", type: "STRING", size: 256, val: "PK055" }
  879. ,{ col: "path", type: "STRING", size: 256, val: "kdrg35"}
  880. ]);
  881. var objArg = new Object();
  882. objArg.args_ds_send = ds_send_info;
  883. frmf_modal("SMPID24301", "SMPID24301", objArg, "", "", "", "", "", "", "", "", "", "M");
  884. }
  885. function group1_button3_onclick(obj:Button, e:ClickEventInfo)
  886. {
  887. this.close();
  888. }
  889. function group1_group2_ipt_patunitsrch_onkeydown(obj:Edit, e:KeyEventInfo)
  890. {
  891. if(e.keycode == 13)
  892. {
  893. obj.updateToDataset();
  894. fGetDocuList();
  895. }
  896. }
  897. ]]></Script>
  898. </Form>
  899. </FDL>