SMPIS00600_청구삭감조회.xfdl 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPIS00600" position="absolute 0 0 1211 784" titletext="청구삭감 환자조회" onload="SMPIS00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="청구/삭감 환자조회" class="tit_1" position="absolute 0 3 240 23" positiontype="position"/>
  8. <Div id="group4" taborder="1" style="align:center top;" class="div_SA" position="absolute 0 25 1211 142" anchor="left top right" align="align:center top;" positiontype="position">
  9. <Layouts>
  10. <Layout>
  11. <cp_patientInfo id="cp_patientInfo00" titletext="New Form" taborder="34" text="cp_patientInfo00" position="absolute 666 85 1038 111" style="background:transparent; " anchor="default" onclick="group4_cp_patientInfo00_onclick"/>
  12. <cp_monthCal id="cp_monthCal02" titletext="monthCalendar" taborder="33" text="cp_monthCal02" scrollbars="none" position="absolute 241 10 316 30" class="input_essential" anchor="default" onclick="group4_cp_monthCal02_onclick"/>
  13. <Static id="caption5" text="청구년월" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position"/>
  14. <Combo id="cmb_clamdgfrom" taborder="5" class="combo_search" position="absolute 175 10 225 30" anchor="default" innerdataset="@DS_INIT_clamdgfrom" codecolumn="clamdgcd" datacolumn="clamdgnm" onitemchanged="cmb_clamdgfrom_onitemchanged" positiontype="position"/>
  15. <Static id="caption6" text="진료과" class="search_name" position="absolute 666 34 727 54" anchor="default" positiontype="position"/>
  16. <Combo id="combo2" taborder="6" class="combo_search" position="absolute 752 35 882 55" anchor="default" innerdataset="@DS_INIT_combo2" codecolumn="cd" datacolumn="nm" onitemchanged="combo2_onitemchanged" positiontype="position"/>
  17. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1114 5 1114 109" anchor="default" positiontype="position"/>
  18. <Button id="button1" taborder="7" text="조회" class="btn1" position="absolute 1145 10 1201 30" anchor="top right" onclick="button1_onclick" positiontype="position"/>
  19. <Static id="caption7" text="진료의" class="search_name" position="absolute 905 35 966 55" anchor="default" positiontype="position"/>
  20. <Static id="caption9" text="내원유형" class="search_name" position="absolute 441 35 515 55" anchor="default" positiontype="position"/>
  21. <Combo id="rdo_ioflag" taborder="8" class="combo_search" position="absolute 529 36 643 56" anchor="default" codecolumn="value" datacolumn="label" innerdataset="@DS_INIT_ioflag" onitemchanged="rdo_ioflag_onitemchanged" positiontype="position"/>
  22. <Edit id="ipt_code" taborder="9" class="input_search" position="absolute 979 60 1070 80" anchor="default" maxlength="10" positiontype="position" onkeydown="group4_ipt_code_onkeydown"/>
  23. <Combo id="cmb_orddrid" taborder="11" class="combo_search" position="absolute 979 35 1093 55" anchor="default" innerdataset="@DS_INIT_cmb_orddrid" codecolumn="cd" datacolumn="nm" positiontype="position"/>
  24. <Static id="caption11" text="청구구분" class="search_name" position="absolute 441 10 515 30" anchor="default" positiontype="position"/>
  25. <Combo id="cmb_clamflag" taborder="12" class="combo_search" position="absolute 529 10 643 30" anchor="default" innerdataset="@DS_INIT_cmb_clamflag" codecolumn="cdid" datacolumn="cdnm" positiontype="position"/>
  26. <Static id="caption13" text="보험유형" class="search_name" position="absolute 666 10 740 30" anchor="default" positiontype="position"/>
  27. <Edit id="opt_insukind" taborder="14" readonly="true" class="output_search" position="absolute 752 10 772 30" anchor="default" positiontype="position"/>
  28. <Combo id="cmb_insukind" taborder="15" class="combo_search" position="absolute 752 10 882 30" anchor="default" innerdataset="@DS_INIT_cmb_insukind" codecolumn="cdid" datacolumn="cdnm" onitemchanged="group4_cmb_insukind_onitemchanged" positiontype="position"/>
  29. <Combo id="cmb_clamdgto" taborder="17" class="combo_search" position="absolute 319 10 369 30" anchor="default" innerdataset="@DS_INIT_clamdgto" codecolumn="clamdgcd" datacolumn="clamdgnm" onitemchanged="cmb_clamdgto_onitemchanged" positiontype="position"/>
  30. <Static id="cp_code" text="수가코드" class="search_name" position="absolute 905 60 979 80" anchor="default" positiontype="position"/>
  31. <Static id="caption8" text="삭감처방만" class="search_name" position="absolute 441 85 528 105" anchor="default" positiontype="position"/>
  32. <CheckBox id="bool1" taborder="18" position="absolute 529 85 551 105" anchor="default" onclick="group4_bool1_onclick" positiontype="position"/>
  33. <Radio id="rdo_searchcond" taborder="19" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 97 85 282 105" anchor="default" onitemchanged="rdo_searchcond_onitemchanged" positiontype="position">
  34. <Dataset id="innerdataset">
  35. <ColumnInfo>
  36. <Column id="codecolumn" size="256"/>
  37. <Column id="datacolumn" size="256"/>
  38. </ColumnInfo>
  39. <Rows>
  40. <Row>
  41. <Col id="codecolumn">calc</Col>
  42. <Col id="datacolumn">코드별</Col>
  43. </Row>
  44. <Row>
  45. <Col id="codecolumn">cancer</Col>
  46. <Col id="datacolumn">항암제</Col>
  47. </Row>
  48. <Row>
  49. <Col id="codecolumn">kind</Col>
  50. <Col id="datacolumn">분류별</Col>
  51. </Row>
  52. </Rows>
  53. </Dataset>
  54. </Radio>
  55. <Static id="caption14" text="검색조건" class="search_name" position="absolute 8 86 82 106" anchor="default" positiontype="position"/>
  56. <Radio id="rdo_cancer" taborder="20" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 281 85 421 105" anchor="default" enable="false" visible="true" positiontype="position">
  57. <Dataset id="innerdataset">
  58. <ColumnInfo>
  59. <Column id="codecolumn" size="256"/>
  60. <Column id="datacolumn" size="256"/>
  61. </ColumnInfo>
  62. <Rows>
  63. <Row>
  64. <Col id="codecolumn">A</Col>
  65. <Col id="datacolumn">전체</Col>
  66. </Row>
  67. <Row>
  68. <Col id="codecolumn">1</Col>
  69. <Col id="datacolumn">1군</Col>
  70. </Row>
  71. <Row>
  72. <Col id="codecolumn">2</Col>
  73. <Col id="datacolumn">2군</Col>
  74. </Row>
  75. </Rows>
  76. </Dataset>
  77. </Radio>
  78. <Edit id="ipt_edicd" taborder="21" class="input_search" position="absolute 979 83 1070 103" anchor="default" maxlength="10" positiontype="position" onkeydown="group4_ipt_edicd_onkeydown"/>
  79. <Static id="cp_edicd" text="EDI코드" class="search_name" position="absolute 905 85 992 105" anchor="default" positiontype="position"/>
  80. <Combo id="cmb_middle" taborder="22" position="absolute 296 60 410 80" anchor="default" enable="false" visible="true" innerdataset="DS_INIT_cmb_middle" codecolumn="earncls2" datacolumn="earncls2nm" onitemchanged="cmb_middle_onitemchanged" positiontype="position"/>
  81. <Static id="cp_middle" text="중분류" class="search_name" position="absolute 234 60 295 80" anchor="default" positiontype="position"/>
  82. <Combo id="cmb_small" taborder="23" position="absolute 529 60 643 80" anchor="default" enable="false" visible="true" innerdataset="DS_INIT_cmb_small" codecolumn="earncls3" datacolumn="earncls3nm" positiontype="position"/>
  83. <Static id="cp_small" text="소분류" class="search_name" position="absolute 441 60 502 80" anchor="default" positiontype="position"/>
  84. <Combo id="cmb_large" taborder="24" position="absolute 97 60 211 80" anchor="default" enable="false" visible="true" innerdataset="DS_INIT_cmb_large" codecolumn="earncls1" datacolumn="earncls1nm" onitemchanged="cmb_large_onitemchanged" positiontype="position"/>
  85. <Static id="cp_large" text="처방대분류" class="search_name" position="absolute 9 60 96 80" anchor="default" positiontype="position"/>
  86. <Static id="caption15" text="심사자" class="search_name" position="absolute 905 10 966 27" anchor="default" positiontype="position"/>
  87. <Static id="caption4" text="위탁기관명" class="search_name" position="absolute 666 61 753 81" anchor="default" positiontype="position"/>
  88. <Combo id="combo3" taborder="25" position="absolute 752 60 882 80" anchor="default" innerdataset="@DS_INIT_combo3" codecolumn="trustinstcd" datacolumn="trustinstnm" positiontype="position"/>
  89. <Combo id="combo1" taborder="26" position="absolute 979 10 1093 30" anchor="default" innerdataset="@DS_INIT_combo1" codecolumn="cdid" datacolumn="cdnm" positiontype="position"/>
  90. <Radio id="rdo_year" taborder="27" columncount="4" rowcount="0" codecolumn="value" datacolumn="label" position="absolute 97 35 341 55" anchor="default" innerdataset="@DS_INIT_year" onitemchanged="rdo_year_onitemchanged" positiontype="position"/>
  91. <Button id="button00" taborder="29" class="icon_search" position="absolute 1073 60 1093 80" onclick="button00_onclick" anchor="default"/>
  92. <Button id="button02" taborder="30" class="icon_search" position="absolute 1073 83 1093 103" onclick="button02_onclick" anchor="default"/>
  93. <Static id="caption2" text="~" position="absolute 226 10 241 30" style="align:center middle;" anchor="default" positiontype="position"/>
  94. <cp_monthCal id="cp_monthCal01" titletext="monthCalendar" taborder="32" text="cp_monthCal00" scrollbars="none" position="absolute 97 10 172 30" class="input_essential" anchor="default"/>
  95. </Layout>
  96. </Layouts>
  97. </Div>
  98. <Static id="caption12" text="환자 리스트" class="tit_2" position="absolute 0 152 100 172" positiontype="position"/>
  99. <Button id="button2" taborder="2" text="엑셀저장" class="btn7" position="absolute 1131 149 1211 169" anchor="top right" positiontype="position" onclick="button2_onclick"/>
  100. <Grid id="grd_outjudg" class="datagrid2" taborder="3" useinputpanel="false" position="absolute 0 172 1211 784" anchor="all" autofittype="none" binddataset="DS_GRID_grd_outjudg" positiontype="position" cellsizingtype="both">
  101. <Formats>
  102. <Format id="default">
  103. <Columns>
  104. <Column size="21"/>
  105. <Column size="76"/>
  106. <Column size="59"/>
  107. <Column size="37"/>
  108. <Column size="67"/>
  109. <Column size="40"/>
  110. <Column size="45"/>
  111. <Column size="20"/>
  112. <Column size="23"/>
  113. <Column size="100"/>
  114. <Column size="54"/>
  115. <Column size="66"/>
  116. <Column size="66"/>
  117. <Column size="75"/>
  118. <Column size="48"/>
  119. <Column size="47"/>
  120. <Column size="86"/>
  121. <Column size="86"/>
  122. <Column size="205"/>
  123. <Column size="78"/>
  124. <Column size="54"/>
  125. <Column size="46"/>
  126. <Column size="37"/>
  127. <Column size="56"/>
  128. <Column size="83"/>
  129. <Column size="75"/>
  130. <Column size="75"/>
  131. <Column size="83"/>
  132. <Column size="60"/>
  133. <Column size="36"/>
  134. <Column size="70"/>
  135. <Column size="62"/>
  136. <Column size="67"/>
  137. <Column size="85"/>
  138. <Column size="100"/>
  139. <Column size="100"/>
  140. <Column size="100"/>
  141. <Column size="31"/>
  142. <Column size="24"/>
  143. <Column size="55"/>
  144. </Columns>
  145. <Rows>
  146. <Row size="35" band="head"/>
  147. <Row size="20"/>
  148. </Rows>
  149. <Band id="head">
  150. <Cell/>
  151. <Cell col="1" text="등록번호"/>
  152. <Cell col="2" text="성명"/>
  153. <Cell col="3" text="내원&#10;유형"/>
  154. <Cell col="4" text="청구월"/>
  155. <Cell col="5" text="구분"/>
  156. <Cell col="6" text="차수"/>
  157. <Cell col="7" text="유&#10;형"/>
  158. <Cell col="8" text="보&#10;조"/>
  159. <Cell col="9" text="청구과"/>
  160. <Cell col="10" text="진료과"/>
  161. <Cell col="11" text="진료의"/>
  162. <Cell col="12" text="주상병"/>
  163. <Cell col="13" text="접수번호"/>
  164. <Cell col="14" text="명일련"/>
  165. <Cell col="15" text="줄번호"/>
  166. <Cell col="16" text="처방코드"/>
  167. <Cell col="17" text="EDI코드"/>
  168. <Cell col="18" text="한글명"/>
  169. <Cell col="19" text="단가"/>
  170. <Cell col="20" text="수량"/>
  171. <Cell col="21" text="횟수"/>
  172. <Cell col="22" text="일수"/>
  173. <Cell col="23" text="총투여량"/>
  174. <Cell col="24" text="금액"/>
  175. <Cell col="25" text="입원일자"/>
  176. <Cell col="26" text="유형시작일"/>
  177. <Cell col="27" text="종료일"/>
  178. <Cell col="28" text="처방의"/>
  179. <Cell col="29" text="심사&#10;결정"/>
  180. <Cell col="30" text="삭감투여량"/>
  181. <Cell col="31" text="삭감횟수"/>
  182. <Cell col="32" text="삭감일수"/>
  183. <Cell col="33" text="총투삭감량"/>
  184. <Cell col="34" text="조정금액"/>
  185. <Cell col="35" text="이의신청금액"/>
  186. <Cell col="36" text="실삭감금액"/>
  187. <Cell col="37" text="원외"/>
  188. <Cell col="38" text="급&#10;비"/>
  189. <Cell col="39" text="심사자"/>
  190. </Band>
  191. <Band id="body">
  192. <Cell celltype="head" text="bind:pid" expr="expr:currow+1"/>
  193. <Cell col="1" style="align:center middle;" text="bind:pid"/>
  194. <Cell col="2" displaytype="normal" edittype="normal" style="align:center middle;" text="bind:hngnm"/>
  195. <Cell col="3" displaytype="combo" edittype="normal" style="align:center middle;" text="bind:ioflag" combodataset="DS_INIT_ioflag" combocodecol="value" combodatacol="label"/>
  196. <Cell col="4" displaytype="date" edittype="none" style="align:center middle;" text="bind:clamym" mask="yyyy-MM"/>
  197. <Cell col="5" displaytype="combo" edittype="normal" style="align:center middle;" text="bind:clamflagcd" combodataset="DS_INIT_cmb_clamflag" combocodecol="cdid" combodatacol="cdnm"/>
  198. <Cell col="6" style="align:center middle;" text="bind:clamdg"/>
  199. <Cell col="7" text="bind:insukind"/>
  200. <Cell col="8" text="bind:suppkind"/>
  201. <Cell col="9" displaytype="normal" text="bind:clamdeptcd"/>
  202. <Cell col="10" text="bind:orddeptcd"/>
  203. <Cell col="11" style="align:center middle;" text="bind:orddrnm"/>
  204. <Cell col="12" text="bind:diagcd"/>
  205. <Cell col="13" style="align:center middle;" text="bind:acptno"/>
  206. <Cell col="14" style="align:center middle;" text="bind:docuseqno"/>
  207. <Cell col="15" style="align:center middle;" text="bind:edilnno"/>
  208. <Cell col="16" text="bind:snglcalcscorcd"/>
  209. <Cell col="17" text="bind:edicd"/>
  210. <Cell col="18" text="bind:calchngnm"/>
  211. <Cell col="19" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:unitcost"/>
  212. <Cell col="20" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:drugqty"/>
  213. <Cell col="21" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:tims"/>
  214. <Cell col="22" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:dayno"/>
  215. <Cell col="23" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:totdrugqty"/>
  216. <Cell col="24" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:amt"/>
  217. <Cell col="25" displaytype="date" style="align:center middle;" text="bind:indd" calendardisplaynulltype="nullmask"/>
  218. <Cell col="26" displaytype="date" edittype="none" style="align:center middle;" text="bind:cretfromdd" calendardisplay="edit" calendardisplaynulltext=" " calendardisplaynulltype="none"/>
  219. <Cell col="27" displaytype="date" edittype="none" style="align:center middle;" text="bind:crettodd" calendardisplaynulltext=" " calendardisplaynulltype="none"/>
  220. <Cell col="28" style="align:center middle;" text="bind:clamdrid"/>
  221. <Cell col="29" style="align:center middle;" text="bind:judgyn"/>
  222. <Cell col="30" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:cutdrugqty"/>
  223. <Cell col="31" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:cuttims"/>
  224. <Cell col="32" style="align:right middle;padding:0 5 0 0;" text="bind:cutdayno"/>
  225. <Cell col="33" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:totcutqty"/>
  226. <Cell col="34" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:adjtamt"/>
  227. <Cell col="35" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:obtappamt"/>
  228. <Cell col="36" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:orgreduamt"/>
  229. <Cell col="37" displaytype="normal" edittype="none" text="bind:oprcp"/>
  230. <Cell col="38" displaytype="combo" edittype="normal" style="align:center;" text="bind:payflag" combodataset="ds_init_payflag" combocodecol="value" combodatacol="label"/>
  231. <Cell col="39" text="bind:judgrnm"/>
  232. </Band>
  233. </Format>
  234. </Formats>
  235. </Grid>
  236. </Layout>
  237. </Layouts>
  238. <Objects>
  239. <FileDialog id="fld_input" filter="Worksheet Files (*.xls;*.xlsx)|*.xls;*.xlsx" filterindex="0" defaultextension="false"/>
  240. <Dataset id="DS_GRID_grd_outjudg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  241. <ColumnInfo>
  242. <Column id="pid" type="STRING"/>
  243. <Column id="hngnm" type="STRING"/>
  244. <Column id="ioflag" type="STRING"/>
  245. <Column id="clamym" type="STRING"/>
  246. <Column id="clamflagcd" type="STRING"/>
  247. <Column id="clamdg" type="STRING"/>
  248. <Column id="insukind" type="STRING"/>
  249. <Column id="suppkind" type="STRING"/>
  250. <Column id="clamdeptcd" type="STRING"/>
  251. <Column id="orddeptcd" type="STRING"/>
  252. <Column id="orddrnm" type="STRING"/>
  253. <Column id="diagcd" type="STRING"/>
  254. <Column id="acptno" type="STRING"/>
  255. <Column id="docuseqno" type="STRING"/>
  256. <Column id="edilnno" type="STRING"/>
  257. <Column id="snglcalcscorcd" type="STRING"/>
  258. <Column id="edicd" type="STRING"/>
  259. <Column id="calchngnm" type="STRING"/>
  260. <Column id="unitcost" type="STRING"/>
  261. <Column id="drugqty" type="STRING"/>
  262. <Column id="tims" type="STRING"/>
  263. <Column id="dayno" type="STRING"/>
  264. <Column id="totdrugqty" type="STRING"/>
  265. <Column id="amt" type="STRING"/>
  266. <Column id="indd" type="STRING"/>
  267. <Column id="cretfromdd" type="STRING"/>
  268. <Column id="crettodd" type="STRING"/>
  269. <Column id="clamdrid" type="STRING"/>
  270. <Column id="judgyn" type="STRING"/>
  271. <Column id="cutdrugqty" type="STRING"/>
  272. <Column id="cuttims" type="STRING"/>
  273. <Column id="cutdayno" type="STRING"/>
  274. <Column id="totcutqty" type="STRING"/>
  275. <Column id="adjtamt" type="STRING"/>
  276. <Column id="obtappamt" type="STRING"/>
  277. <Column id="orgreduamt" type="STRING"/>
  278. <Column id="oprcp" type="STRING"/>
  279. <Column id="payflag" type="STRING"/>
  280. <Column id="judgrnm" type="STRING"/>
  281. </ColumnInfo>
  282. </Dataset>
  283. <Dataset id="DS_INIT_combo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  284. <ColumnInfo>
  285. <Column id="cdid" type="STRING" size="256"/>
  286. <Column id="cdnm" type="STRING" size="256"/>
  287. </ColumnInfo>
  288. </Dataset>
  289. <Dataset id="DS_INIT_cmb_large" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  290. <ColumnInfo>
  291. <Column id="step" type="STRING" size="256"/>
  292. <Column id="earncls1" type="STRING" size="256"/>
  293. <Column id="earncls2" type="STRING" size="256"/>
  294. <Column id="earncls3" type="STRING" size="256"/>
  295. <Column id="earncls1nm" type="STRING" size="256"/>
  296. <Column id="earncls2nm" type="STRING" size="256"/>
  297. <Column id="earncls3nm" type="STRING" size="256"/>
  298. </ColumnInfo>
  299. </Dataset>
  300. <Dataset id="DS_INIT_cmb_middle" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  301. <ColumnInfo>
  302. <Column id="step" type="STRING" size="256"/>
  303. <Column id="earncls1" type="STRING" size="256"/>
  304. <Column id="earncls2" type="STRING" size="256"/>
  305. <Column id="earncls3" type="STRING" size="256"/>
  306. <Column id="earncls1nm" type="STRING" size="256"/>
  307. <Column id="earncls2nm" type="STRING" size="256"/>
  308. <Column id="earncls3nm" type="STRING" size="256"/>
  309. </ColumnInfo>
  310. </Dataset>
  311. <Dataset id="DS_INIT_cmb_small" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  312. <ColumnInfo>
  313. <Column id="step" type="STRING" size="256"/>
  314. <Column id="earncls1" type="STRING" size="256"/>
  315. <Column id="earncls2" type="STRING" size="256"/>
  316. <Column id="earncls3" type="STRING" size="256"/>
  317. <Column id="earncls1nm" type="STRING" size="256"/>
  318. <Column id="earncls2nm" type="STRING" size="256"/>
  319. <Column id="earncls3nm" type="STRING" size="256"/>
  320. </ColumnInfo>
  321. </Dataset>
  322. <Dataset id="DS_INIT_combo3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  323. <ColumnInfo>
  324. <Column id="trustinstcd" type="STRING" size="256"/>
  325. <Column id="trustinstnm" type="STRING" size="256"/>
  326. </ColumnInfo>
  327. </Dataset>
  328. <Dataset id="DS_INIT_cmb_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  329. <ColumnInfo>
  330. <Column id="cdid" type="STRING" size="256"/>
  331. <Column id="cdnm" type="STRING" size="256"/>
  332. </ColumnInfo>
  333. </Dataset>
  334. <Dataset id="DS_INIT_cmb_clamflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  335. <ColumnInfo>
  336. <Column id="cdid" type="STRING" size="256"/>
  337. <Column id="cdnm" type="STRING" size="256"/>
  338. </ColumnInfo>
  339. </Dataset>
  340. <Dataset id="DS_INIT_ioflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  341. <ColumnInfo>
  342. <Column id="label" type="STRING" size="256"/>
  343. <Column id="value" type="STRING" size="256"/>
  344. </ColumnInfo>
  345. <Rows>
  346. <Row>
  347. <Col id="label">전체</Col>
  348. <Col id="value">A</Col>
  349. </Row>
  350. <Row>
  351. <Col id="label">입원</Col>
  352. <Col id="value">I</Col>
  353. </Row>
  354. <Row>
  355. <Col id="label">외래</Col>
  356. <Col id="value">O</Col>
  357. </Row>
  358. </Rows>
  359. </Dataset>
  360. <Dataset id="DS_INIT_year" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  361. <ColumnInfo>
  362. <Column id="label" type="STRING" size="256"/>
  363. <Column id="value" type="STRING" size="256"/>
  364. </ColumnInfo>
  365. <Rows>
  366. <Row>
  367. <Col id="label">6개월</Col>
  368. <Col id="value">sixm</Col>
  369. </Row>
  370. <Row>
  371. <Col id="label">1년</Col>
  372. <Col id="value">oney</Col>
  373. </Row>
  374. <Row>
  375. <Col id="label">2년</Col>
  376. <Col id="value">twoy</Col>
  377. </Row>
  378. <Row>
  379. <Col id="label">3년</Col>
  380. <Col id="value">threey</Col>
  381. </Row>
  382. </Rows>
  383. </Dataset>
  384. <Dataset id="DS_INIT_clamdgfrom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  385. <ColumnInfo>
  386. <Column id="clamdgnm" type="STRING" size="256"/>
  387. <Column id="clamdgcd" type="STRING" size="256"/>
  388. </ColumnInfo>
  389. </Dataset>
  390. <Dataset id="DS_INIT_clamdgto" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  391. <ColumnInfo>
  392. <Column id="clamdgnm" type="STRING" size="256"/>
  393. <Column id="clamdgcd" type="STRING" size="256"/>
  394. </ColumnInfo>
  395. </Dataset>
  396. <Dataset id="DS_INIT_cmb_clamdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  397. <ColumnInfo>
  398. <Column id="cdnm" type="STRING" size="256"/>
  399. <Column id="cdid" type="STRING" size="256"/>
  400. </ColumnInfo>
  401. </Dataset>
  402. <Dataset id="DS_INIT_cmb_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  403. <ColumnInfo>
  404. <Column id="cd" type="STRING" size="256"/>
  405. <Column id="nm" type="STRING" size="256"/>
  406. <Column id="dp" type="STRING" size="256"/>
  407. <Column id="sp" type="STRING" size="256"/>
  408. <Column id="reqdp" type="STRING" size="256"/>
  409. </ColumnInfo>
  410. </Dataset>
  411. <ExportObject id="ExtObj" exporttype="0" exporteventtype="itemrecord"/>
  412. <Dataset id="ds_init_payflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  413. <ColumnInfo>
  414. <Column id="label" type="STRING" size="256"/>
  415. <Column id="value" type="STRING" size="256"/>
  416. </ColumnInfo>
  417. <Rows>
  418. <Row>
  419. <Col id="label">급</Col>
  420. <Col id="value">0</Col>
  421. </Row>
  422. <Row>
  423. <Col id="label">100</Col>
  424. <Col id="value">1</Col>
  425. </Row>
  426. <Row>
  427. <Col id="label">일</Col>
  428. <Col id="value">2</Col>
  429. </Row>
  430. <Row>
  431. <Col id="label">선</Col>
  432. <Col id="value">8</Col>
  433. </Row>
  434. <Row>
  435. <Col id="label">선</Col>
  436. <Col id="value">9</Col>
  437. </Row>
  438. </Rows>
  439. </Dataset>
  440. <Dataset id="DS_INIT_combo2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  441. <ColumnInfo>
  442. <Column id="cd" type="STRING" size="256"/>
  443. <Column id="nm" type="STRING" size="256"/>
  444. <Column id="deptengabbr" type="STRING" size="256"/>
  445. <Column id="reqfild" type="STRING" size="256"/>
  446. <Column id="reqdeptno" type="STRING" size="256"/>
  447. <Column id="orddeptflag" type="STRING" size="256"/>
  448. </ColumnInfo>
  449. </Dataset>
  450. <Dataset id="ds_cond_smpic00200" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  451. <ColumnInfo>
  452. <Column id="con1_dd" type="STRING" size="256"/>
  453. <Column id="con2_gsflag" type="STRING" size="256"/>
  454. <Column id="con3_search1" type="STRING" size="256"/>
  455. <Column id="con4_search2" type="STRING" size="256"/>
  456. <Column id="con5_insu" type="STRING" size="256"/>
  457. <Column id="con6_calcscorcd" type="STRING" size="256"/>
  458. <Column id="con7_todd" type="STRING" size="256"/>
  459. <Column id="con8_instcd" type="STRING" size="256"/>
  460. <Column id="con9_lastupdtdt" type="STRING" size="256"/>
  461. <Column id="con10_preord_chk" type="STRING" size="256"/>
  462. <Column id="con_ordinptflag" type="STRING" size="256"/>
  463. <Column id="con11_edicd" type="STRING" size="256"/>
  464. <Column id="con12_drugelectric" type="STRING" size="256"/>
  465. </ColumnInfo>
  466. <Rows>
  467. <Row/>
  468. </Rows>
  469. </Dataset>
  470. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  471. </Objects>
  472. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  473. * System Name :
  474. * Job Name :
  475. * Creator :
  476. * Make Date : 2016-05-24
  477. * Description :
  478. *---------------------------------------------------------------------------------------
  479. * Modify Date Modifier Modify Description
  480. *---------------------------------------------------------------------------------------
  481. * 2016-05-24 Live Converter TF->XP
  482. *
  483. *---------------------------------------------------------------------------------------
  484. ****************************************************************************************/
  485. include "com_commonxp::comm_main.xjs";
  486. include "com_basiccodexp::ZBC001.xjs";
  487. // 위탁기관명 flag 값
  488. var vtrustinstcd = "A";
  489. var trustinstcd = "";
  490. // 화면 초기화
  491. function fInitialize(){
  492. // 그리드 초기화
  493. DS_GRID_grd_outjudg.clearData();
  494. // 심사자 콤보리스트
  495. var sInDsName = dsf_createDsRow("ds_cond", [{col: "instcd", val: ""}]);
  496. var oParam = {};
  497. oParam.id = "TRPIB00603";
  498. oParam.service = "insubasecdmngtapp.JudgCmt";
  499. oParam.method = "reqGetJudgRidList";
  500. oParam.inds = "req="+sInDsName;
  501. oParam.outds = "DS_INIT_combo1=U0001";
  502. oParam.async = false;
  503. tranf_submit(oParam);
  504. group4.combo1.index = 0;
  505. // 수가 수익분류 리스트 세팅
  506. var sInDsName = dsf_createDsRow("ds_cond", [{col: "group", val: ""}]);
  507. var oParam = {};
  508. oParam.id = "TRPIS00510";
  509. oParam.service = "aftjudgstatapp.CalcOrderList";
  510. oParam.method = "reqGetEarnclsList";
  511. oParam.inds = "req="+sInDsName;
  512. oParam.outds = "DS_INIT_cmb_large=earnclslist";
  513. oParam.async = false;
  514. tranf_submit(oParam);
  515. dsf_copyDs(DS_INIT_cmb_middle, DS_INIT_cmb_large);
  516. dsf_copyDs(DS_INIT_cmb_small , DS_INIT_cmb_large);
  517. DS_INIT_cmb_large.filterstr = "step == 'L'";
  518. DS_INIT_cmb_middle.filterstr = "step == 'M'";
  519. DS_INIT_cmb_small.filterstr = "step == 'S'";
  520. // 위탁기관명 리스트
  521. var oParam = {};
  522. oParam.id = "TRPIS00601";
  523. oParam.service = "aftjudgstatapp.CalcOrderList";
  524. oParam.method = "reqGetTrusTinstcdList";
  525. oParam.outds = "DS_INIT_combo3=trust";
  526. oParam.async = false;
  527. tranf_submit(oParam);
  528. // 검색조건 : 코드별
  529. group4.rdo_searchcond.value = "calc";
  530. // 보험유형, 청구구분 리스트
  531. appf_getCodeListSubmit([{cdGrpId: "P0008", dsNm: "DS_INIT_cmb_insukind", sortField: "cdnm", sortMehotd: "desc"}
  532. ,{cdGrpId: "P0155", dsNm: "DS_INIT_cmb_clamflag", sortField: "cdnm", sortMehotd: "desc"}], false, false, "");
  533. // 진료과,진료의 콤보 리스트
  534. fGetOrdDept();
  535. // 청구과 콤보 리스트
  536. fGetClamDept();
  537. // combo 전체 세팅: 청구구분
  538. frmf_addComboItem("group4.cmb_clamflag", "전체", "-");
  539. group4.cmb_clamflag.index = 0;
  540. // 위탁기관
  541. group4.combo3.index = 0;
  542. // 보험유형
  543. frmf_addComboItem("group4.cmb_insukind", "전체", "-");
  544. group4.cmb_insukind.index = 0;
  545. // 심사자
  546. group4.combo1.index = 0;
  547. // 진료의
  548. var nRow = DS_INIT_cmb_orddrid.findRow("cd", "-");
  549. group4.cmb_orddrid.index = nRow;
  550. // 대분류
  551. frmf_addComboItem("group4.cmb_large", "전체", "-");
  552. group4.cmb_large.index = 0;
  553. // 중분류
  554. frmf_addComboItem("group4.cmb_middle", "전체", "-");
  555. group4.cmb_middle.index = 0;
  556. // 소분류
  557. frmf_addComboItem("group4.cmb_small", "전체", "-");
  558. group4.cmb_small.index = 0;
  559. // 내원유형
  560. group4.rdo_ioflag.index = 0;
  561. if (frmf_checkOpener()){
  562. try { // 데이터 셋으로 받는다
  563. if (args_ds_send.rowcount > 0) {
  564. ds_send.copyData(args_ds_send);
  565. var flag = ds_send.getColumn(0, "openflag");
  566. var orddeptcd = ds_send.getColumn(0, "orddeptcd");
  567. var pid = ds_send.getColumn(0, "patunitsrch");
  568. var clamflag = ds_send.getColumn(0, "clamflag");
  569. var insukind = ds_send.getColumn(0, "insukind");
  570. var ioflag = ds_send.getColumn(0, "ioflag");
  571. var codecond = ds_send.getColumn(0, "codecond");
  572. var code = ds_send.getColumn(0, "code");
  573. var orddrid = ds_send.getColumn(0, "orddrid");
  574. var orddeptcd = ds_send.getColumn(0, "orddeptcd");
  575. }
  576. } catch(e) {
  577. }
  578. var curDate = new Date();
  579. var currentym = curDate.toFormatString("%Y%m");
  580. //외래사후심사대상자조회에서 팝업호출할 경우
  581. if( flag == "O" ){
  582. var fromDate = curDate.addMonth(-6);
  583. fromDate = curDate.toFormatString("%Y%m");
  584. // 내원유형:전체
  585. group4.rdo_ioflag.value = "A";
  586. group4.cp_monthCal01.cal_Month.value = fromDate;
  587. group4.cp_monthCal02.cal_Month.value = currentym;
  588. group4.rdo_year.value = "sixm";
  589. group4.cp_patientInfo00.edt_pid.value = pid;
  590. group4.ipt_code.value = code;
  591. group4.bool1.value = "true";
  592. pidfGetClamdgfrom();
  593. pidfGetClamdgto();
  594. // 조회
  595. fSearch();
  596. } else {
  597. var fromDate = curDate.addMonth(-12);
  598. fromDate = curDate.toFormatString("%Y%m");
  599. // 청구구분
  600. group4.cmb_clamflag.value = clamflag;
  601. // 보험유형
  602. group4.cmb_insukind.value = insukind;
  603. group4.opt_insukind.value = insukind;
  604. // 내원유형
  605. group4.rdo_ioflag.value = "A";
  606. // 환자번호
  607. group4.cp_patientInfo00.edt_pid.value = pid;
  608. // 검색조건
  609. group4.rdo_searchcond.value = codecond;
  610. vtrustinstcd = "N";
  611. group4.cp_monthCal01.cal_Month.value = fromDate;
  612. group4.cp_monthCal02.cal_Month.value = currentym;
  613. group4.ipt_code.value = code;
  614. group4.cmb_orddrid.value = orddrid;
  615. group4.combo2.value = orddeptcd;
  616. group4.rdo_year.value = "oney";
  617. group4.bool1.value = "true";
  618. pidfGetClamdgfrom();
  619. pidfGetClamdgto();
  620. fSearch();
  621. }
  622. } else {
  623. group4.rdo_ioflag.value = "A";
  624. vtrustinstcd = "N";
  625. // 청구년월, 차수 셋팅 시작
  626. var objDate = new Date();
  627. var Month = objDate.toFormatString("%Y%m");
  628. group4.cp_monthCal01.cal_Month.value = Month;
  629. group4.cp_monthCal02.cal_Month.value = Month;
  630. group4.rdo_year.value = "oney";
  631. group4.bool1.value = "true";
  632. pidfGetClamdgfrom();
  633. pidfGetClamdgto();
  634. // IOFLAG를 파라메터로 받아야 하므로 IOFLAG가 정해진 후 호출 한다
  635. }
  636. }
  637. // 청구년월 함수
  638. function pidfGetClamdgfrom()
  639. {
  640. if ( group4.cp_monthCal01.cal_Month.value > group4.cp_monthCal02.cal_Month.value ){
  641. sysf_messageBox("종료일은 시작일보다 클 수 ", "I004");
  642. group4.cp_monthCal02.cal_Month.value = "";
  643. } else {
  644. var Month = group4.cp_monthCal01.cal_Month.value;
  645. var clamym = Month.toFormatString("%Y%m");
  646. var sInDsName = dsf_createDsRow("ds_cond"
  647. ,[{col: "clamym", val: clamym}
  648. , {col: "ioflag", val: group4.rdo_ioflag.value}]);
  649. var oParam = {};
  650. oParam.id = "TRPID20407";
  651. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  652. oParam.method = "reqGetClamdg";
  653. oParam.inds = "req="+sInDsName;
  654. oParam.outds = "DS_INIT_clamdgfrom=clamdg";
  655. oParam.async = false;
  656. tranf_submit(oParam);
  657. DS_INIT_clamdgto.copyData(DS_INIT_clamdgfrom);
  658. frmf_addComboItem("group4.cmb_clamdgfrom", "전체", "");
  659. frmf_addComboItem("group4.cmb_clamdgto" , "전체", "");
  660. group4.cmb_clamdgfrom.index = 0;
  661. group4.cmb_clamdgto.index = 0;
  662. }
  663. }
  664. function pidfGetClamdgto()
  665. {
  666. if ( group4.cp_monthCal01.cal_Month.value > group4.cp_monthCal02.cal_Month.value ){
  667. sysf_messageBox("종료일은 시작일보다 클 수 ", "I004");
  668. group4.cp_monthCal02.cal_Month.value = "";
  669. } else {
  670. var Month = group4.cp_monthCal02.cal_Month.value;
  671. var clamym = Month.toFormatString("%Y%m");
  672. var sInDsName = dsf_createDsRow("ds_cond"
  673. ,[{col: "clamym", val: clamym}
  674. , {col: "ioflag", val: group4.rdo_ioflag.value}]);
  675. var oParam = {};
  676. oParam.id = "TRPID20407";
  677. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  678. oParam.method = "reqGetClamdg";
  679. oParam.inds = "req="+sInDsName;
  680. oParam.outds = "DS_INIT_clamdgto=clamdg";
  681. oParam.async = false;
  682. tranf_submit(oParam);
  683. frmf_addComboItem("group4.cmb_clamdgfrom", "전체", "");
  684. frmf_addComboItem("group4.cmb_clamdgto" , "전체", "");
  685. group4.cmb_clamdgfrom.index = 0;
  686. group4.cmb_clamdgto.index = 0;
  687. }
  688. }
  689. // 진료과 리스트 가져오기
  690. function fGetOrdDept()
  691. {
  692. var sInDsName = dsf_createDsRow("ds_cond", [{col: "ioflag", val: group4.rdo_ioflag.value}]);
  693. var oParam = {};
  694. oParam.id = "TRPID20309";
  695. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  696. oParam.method = "reqGetDeptCDDrID";
  697. oParam.inds = "req="+sInDsName;
  698. oParam.outds = "DS_INIT_combo2=orddeptcd DS_INIT_cmb_orddrid=orddrid";
  699. oParam.async = false;
  700. tranf_submit(oParam);
  701. DS_INIT_combo2.addColumn("cdid_cdnm", "STRING");
  702. for(i = 0 ; i < DS_INIT_combo2.rowcount ; i++ ){
  703. DS_INIT_combo2.setColumn(i, "cdid_cdnm", "["+DS_INIT_combo2.getColumn(i, "cd")+"] "+DS_INIT_combo2.getColumn(i, "nm"));
  704. }
  705. group4.combo2.datacolumn = "cdid_cdnm";
  706. group4.combo2.value = "-";
  707. }
  708. // 청구과 함수
  709. function fGetClamDept()
  710. {
  711. var sInDsName = dsf_createDsRow("ds_cond", [{col: "ioflag", val: ""}]);
  712. var oParam = {};
  713. oParam.id = "TRPID20201";
  714. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  715. oParam.method = "reqGetInitComCd";
  716. oParam.inds = "req="+sInDsName;
  717. oParam.outds = "DS_INIT_cmb_clamdept=clamdept";
  718. oParam.async = false;
  719. tranf_submit(oParam);
  720. }
  721. // 환자단위 조회
  722. function fPatSrch()
  723. {
  724. var ipt_pid = group4.cp_patientInfo00.edt_pid.value;
  725. if (ipt_pid) {
  726. if (!isNaN(ipt_pid))
  727. {
  728. frmf_setParameter("srchcond", "1");// 검색조건 : 등록번호로 설정
  729. frmf_setParameter("pid", ipt_pid);
  730. }
  731. else
  732. {
  733. frmf_setParameter("srchcond", "2");// 검색조건 : 등록번호로 설정
  734. frmf_setParameter("pid", ipt_pid);
  735. }
  736. }
  737. // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
  738. frmf_modal("SPPMC02500", "SPPMC02500");
  739. /*
  740. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  741. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  742. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  743. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  744. model.setValue("/root/send/patunitsrch", srch_pid);
  745. }
  746. model.refresh();
  747. */
  748. }
  749. // 수가코드 조회
  750. function fGetSnglcalcscorcd()
  751. {
  752. ds_cond_smpic00200.clearData();
  753. ds_cond_smpic00200.addRow();
  754. // 처방시작일을 수가조회 기준일자로 설정
  755. ds_cond_smpic00200.setColumn(0, "con1_dd", group4.cp_monthCal01.cal_Month.value);
  756. // 싱글수가코드
  757. ds_cond_smpic00200.setColumn(0, "con2_gsflag", "S");
  758. ds_cond_smpic00200.setColumn(0, "con3_search1", "calcscorcd");
  759. ds_cond_smpic00200.setColumn(0, "con4_search2", "");
  760. ds_cond_smpic00200.setColumn(0, "con5_insu", "insu");
  761. // SMPIC00200_수가코드조회
  762. frmf_setParameter("openflag" , "calcscorcd");
  763. frmf_setParameter("calcscorcd_cd" , group4.ipt_code.value);
  764. frmf_setParameter("con1_dd" , group4.cp_monthCal01.cal_Month.value);
  765. var objRetVal = frmf_modal("SMPIC00200", "SMPIC00200", {oP_ds_temp:ds_cond_smpic00200}, "", "", "", "", "", "", "", "", "", "M");
  766. if( !utlf_isNull(objRetVal) )
  767. {
  768. group4.ipt_code.value = ds_temp_picmmech.getColumn(0, "picmmech_calcscorcd");
  769. }
  770. else {
  771. sysf_messageBox("수가조회 화면에서 선택한 결과가", "I004") ; //없습니다.
  772. }
  773. }
  774. // 청구년월 차수 기간 체크
  775. function fChkClamym()
  776. {
  777. var fromym = group4.cp_monthCal01.cal_Month.value;
  778. var toym = group4.cp_monthCal02.cal_Month.value;
  779. if ( fromym != toym ){
  780. //group4.cmb_clamdgfrom.value = "";
  781. //group4.cmb_clamdgto.value = "";
  782. group4.cmb_clamdgfrom.enable = false;
  783. group4.cmb_clamdgto.enable = false;
  784. } else {
  785. group4.cmb_clamdgfrom.enable = true;
  786. group4.cmb_clamdgto.enable = true;
  787. group4.cmb_clamdgfrom.index = 0;
  788. group4.cmb_clamdgto.index = 0;
  789. }
  790. group4.cmb_clamdgfrom.updateToDataset();
  791. group4.cmb_clamdgto.updateToDataset();
  792. }
  793. // 조회
  794. function fSearch()
  795. {
  796. var chk_clamymfrom = group4.cp_monthCal01.cal_Month.value;
  797. var chk_clamymto = group4.cp_monthCal02.cal_Month.value;
  798. var ipt_patunitsrch = group4.cp_patientInfo00.edt_pid.value;
  799. var ipt_code = group4.ipt_code.value;
  800. if ( utlf_isNull(chk_clamymfrom) || utlf_isNull(chk_clamymto))
  801. {
  802. sysf_messageBox("청구년월은 ", "I003");
  803. group4.cp_monthCal01.cal_Month.setFocus();
  804. return;
  805. }
  806. else if ( utlf_isNull(ipt_patunitsrch) && utlf_isNull(ipt_code))
  807. {
  808. if (utlf_isNull(group4.rdo_searchcond.value)) {
  809. group4.rdo_searchcond.value = "calc";
  810. }
  811. if( group4.rdo_searchcond.value == "calc")
  812. {
  813. if(vtrustinstcd == "N")
  814. {
  815. sysf_messageBox("수가코드는 ", "I003");
  816. group4.ipt_code.setFocus();
  817. return;
  818. }
  819. }
  820. }
  821. DS_GRID_grd_outjudg.clearData();
  822. var Monthfrom = group4.cp_monthCal01.cal_Month.value;
  823. var clamymfrom = Monthfrom.toFormatString("%Y%m");
  824. var Monthto = group4.cp_monthCal02.cal_Month.value;
  825. var clamymto = Monthto.toFormatString("%Y%m");
  826. if ( vtrustinstcd == "N")
  827. {
  828. trustinstcd = "N";
  829. } else {
  830. trustinstcd = group4.combo3.value;
  831. }
  832. if (group4.cmb_insukind.value == "-" || utlf_isNull(group4.cmb_insukind.value)) {
  833. group4.cmb_insukind.value = "";
  834. }
  835. if (group4.cmb_clamflag.value == "-" || utlf_isNull(group4.cmb_clamflag.value)) {
  836. group4.cmb_clamflag.value = "";
  837. }
  838. var sInDsName = dsf_createDsRow("ds_cond"
  839. , [{col: "clamflag" , val: group4.cmb_clamflag.value} //청구구분
  840. , {col: "clamymfrom" , val: clamymfrom} //청구년월from
  841. , {col: "clamymto" , val: clamymto} //청구년월to
  842. , {col: "clamdgfrom" , val: group4.cmb_clamdgfrom.value} //청구차수from
  843. , {col: "clamdgto" , val: group4.cmb_clamdgto.value} //청구차수to
  844. , {col: "insukind" , val: group4.cmb_insukind.value} //보험유형
  845. , {col: "ioflag" , val: group4.rdo_ioflag.value} //내원유형
  846. //, {col: "clamdeptid", val: group4.cmb_clamdept.value} //청구과
  847. , {col: "orddeptcd" , val: group4.combo2.value} //진료과
  848. , {col: "orddrid" , val: group4.cmb_orddrid.value} //진료의
  849. , {col: "code" , val: group4.ipt_code.value} //코드값
  850. , {col: "edicd" , val: group4.ipt_edicd.value} //EDI코드
  851. , {col: "pid" , val: group4.cp_patientInfo00.edt_pid.value} //환자번호
  852. , {col: "judgrid" , val: String(group4.combo1.value).trim()} //심사자
  853. , {col: "codecond" , val: group4.rdo_searchcond.value} //검색조건
  854. , {col: "cancer" , val: group4.rdo_cancer.value} //항암제
  855. , {col: "large" , val: group4.cmb_large.value} //대분류
  856. , {col: "middle" , val: group4.cmb_middle.value} //중분류
  857. , {col: "small" , val: group4.cmb_small.value} //소분류
  858. , {col: "cutonly" , val: group4.bool1.value} //삭감처방만
  859. , {col: "trustinstcd" , val: trustinstcd} //위탁기관코드
  860. ]);
  861. var oParam = {};
  862. oParam.id = "TRPIS00600";
  863. oParam.service = "aftjudgstatapp.CalcOrderList";
  864. oParam.method = "reqGetClamCutList";
  865. oParam.inds = "req=ds_cond";
  866. oParam.outds = "DS_GRID_grd_outjudg=clamcutlist";
  867. oParam.async = false;
  868. tranf_submit(oParam);
  869. }
  870. // EDI코드 조회
  871. function fGetEdicd()
  872. {
  873. ds_cond_smpic00200.clearData();
  874. ds_cond_smpic00200.addRow();
  875. // 처방시작일을 수가조회 기준일자로 설정
  876. ds_cond_smpic00200.setColumn(0, "con1_dd", group4.cp_monthCal01.cal_Month.value);
  877. // 싱글수가코드
  878. ds_cond_smpic00200.setColumn(0, "con2_gsflag", "S");
  879. ds_cond_smpic00200.setColumn(0, "con3_search1", "edicd");
  880. ds_cond_smpic00200.setColumn(0, "con4_search2", "");
  881. ds_cond_smpic00200.setColumn(0, "con5_insu", "insu");
  882. // SMPIC00200_수가코드조회
  883. frmf_setParameter("openflag" , "edicd");
  884. frmf_setParameter("calcscorcd_cd" , group4.ipt_edicd.value);
  885. frmf_setParameter("con1_dd" , group4.cp_monthCal01.cal_Month.value);
  886. var objRetVal = frmf_modal("SMPIC00200", "SMPIC00200", {oP_ds_temp:ds_cond_smpic00200}, "", "", "", "", "", "", "", "", "", "M");
  887. trace(ds_temp_picmmech.saveXML());
  888. if( !utlf_isNull(objRetVal) )
  889. {
  890. group4.ipt_edicd.value = ds_temp_picmmech.getColumn(0, "picmmech_calcscorcd");
  891. }
  892. else {
  893. sysf_messageBox("수가조회 화면에서 선택한 결과가", "I004") ; //없습니다.
  894. }
  895. }
  896. function fn_Cal()
  897. {
  898. group4.cp_monthCal02.cal_Month.value = group4.cp_monthCal01.cal_Month.value;
  899. pidfGetClamdgfrom(); // 청구년월 함수
  900. fChkClamym(); // 청구년월 차수 기간 체크
  901. }
  902. function fn_Cal1()
  903. {
  904. pidfGetClamdgto(); // 청구년월 함수
  905. fChkClamym(); // 청구년월 차수 기간 체크
  906. }
  907. //=======================================================================================
  908. // Event
  909. //---------------------------------------------------------------------------------------
  910. // 화면 loading
  911. function SMPIS00600_onload(obj:Form, e:LoadEventInfo)
  912. {
  913. // 화면공통
  914. frmf_initForm(obj);
  915. // 환자등록번호
  916. group4.cp_patientInfo00.lf_setDataSearchPatInfo("","0");
  917. group4.cp_patientInfo00.att_setControlWidth("98","0");
  918. group4.cp_patientInfo00.att_setVisible("3|4|",false);
  919. // 월달력 이벤트 호출
  920. group4.cp_monthCal01.setCallEvent("fn_Cal");
  921. group4.cp_monthCal02.setCallEvent("fn_Cal1");
  922. // 화면 초기화
  923. fInitialize();
  924. }
  925. // 처방대분류 값 변할 때
  926. function cmb_large_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  927. {
  928. var earncls1 = group4.cmb_large.value;
  929. DS_INIT_cmb_middle.filterstr = "earncls1 =='"+earncls1+"' && step =='M'";
  930. }
  931. // 처방중분류 값 변할 때
  932. function cmb_middle_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  933. {
  934. var earncls1 = group4.cmb_large.value;
  935. var earncls2 = group4.cmb_middle.value;
  936. DS_INIT_cmb_small.filterstr = "earncls1 =='"+earncls1+"' && earncls2 =='"+earncls2+"' && step =='S'";
  937. }
  938. // 환자단위 조회
  939. function button61_onclick(obj:Button, e:ClickEventInfo)
  940. {
  941. fPatSrch();
  942. }
  943. // 조회버튼 onclick event
  944. function button1_onclick(obj:Button, e:ClickEventInfo)
  945. {
  946. fSearch();
  947. }
  948. // 엑셀저장버튼 onclick event
  949. function button2_onclick(obj:Button, e:ClickEventInfo)
  950. {
  951. var vFile = fld_input.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", "청구삭감환자리스트.xlsx");
  952. ExtObj.exporttype = ExportTypes.EXCEL;
  953. ExtObj.exportfilename = vFile.fullpath;
  954. ExtObj.exportactivemode = "noactive";
  955. ExtObj.exportsavemode = "save";
  956. ExtObj.addExportItem(ExportItemTypes.GRID, grd_outjudg, "Sheet1!A1" );
  957. ExtObj.export();
  958. }
  959. // 수가코드조회버튼 onclick event
  960. function button00_onclick(obj:Button, e:ClickEventInfo)
  961. {
  962. fGetSnglcalcscorcd();
  963. }
  964. // EDI코드조회버튼 onclick event
  965. function button02_onclick(obj:Button, e:ClickEventInfo)
  966. {
  967. fGetEdicd();
  968. }
  969. // 청구차수콤보 onitemchanged
  970. function cmb_clamdgfrom_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  971. {
  972. group4.cmb_clamdgto.value = group4.cmb_clamdgfrom.value;
  973. //group4.cmb_clamdgfrom.updateToDataset();
  974. }
  975. function cmb_clamdgto_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  976. {
  977. group4.cmb_clamdgfrom.value = group4.cmb_clamdgto.value;
  978. //group4.cmb_clamdgto.updateToDataset();
  979. }
  980. //진료과콤보 onitemchanged
  981. function combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  982. {
  983. var orddeptcd = group4.combo2.value;
  984. if ( orddeptcd )
  985. {
  986. DS_INIT_cmb_orddrid.filterstr = "dp =='"+orddeptcd+"'";
  987. group4.cmb_orddrid.enable = true;
  988. frmf_addComboItem("group4.cmb_orddrid", "전체" , "");
  989. group4.cmb_orddrid.value = "";
  990. } else {
  991. group4.cmb_orddrid.enable = false;
  992. }
  993. // group4.cmb_orddrid.value = "";
  994. // group4.cmb_orddrid.updateToDataset();
  995. }
  996. function rdo_ioflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  997. {
  998. fGetOrdDept(); // 진료과,진료의 콤보 리스트
  999. fGetClamDept(); // 청구과 콤보 리스트
  1000. }
  1001. function ipt_patunitsrch_onkeydown(obj:Edit, e:KeyEventInfo)
  1002. {
  1003. if(e.keycode == 13)
  1004. {
  1005. if( group4.ipt_patunitsrch.getLength() > 1)
  1006. {
  1007. // setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영 추가 변환 필요
  1008. if (isNaN(group4.ipt_patunitsrch.value))
  1009. {
  1010. fPatSrch();
  1011. } else {
  1012. fSearch();
  1013. }
  1014. }
  1015. }
  1016. }
  1017. function rdo_searchcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  1018. {
  1019. group4.ipt_code.value = "";
  1020. group4.rdo_cancer.value = "";
  1021. var choice = group4.rdo_searchcond.value;
  1022. if ( choice == "calc")
  1023. {
  1024. group4.cp_code.enable = true;
  1025. group4.ipt_code.enable = true;
  1026. group4.cp_edicd.enable = true;
  1027. group4.ipt_edicd.enable = true;
  1028. group4.rdo_cancer.enable = false;
  1029. group4.cp_large.enable = false;
  1030. group4.cp_middle.enable = false;
  1031. group4.cp_small.enable = false;
  1032. group4.cmb_large.enable = false;
  1033. group4.cmb_middle.enable = false;
  1034. group4.cmb_small.enable = false;
  1035. } else if ( choice == "cancer"){
  1036. group4.rdo_cancer.index = 0;
  1037. group4.cp_code.enable = false;
  1038. group4.ipt_code.enable = false;
  1039. group4.cp_edicd.enable = false;
  1040. group4.ipt_edicd.enable = false;
  1041. group4.rdo_cancer.enable = true;
  1042. group4.cp_large.enable = false;
  1043. group4.cp_middle.enable = false;
  1044. group4.cp_small.enable = false;
  1045. group4.cmb_large.enable = false;
  1046. group4.cmb_middle.enable = false;
  1047. group4.cmb_small.enable = false;
  1048. } else if ( choice == "kind"){
  1049. group4.cp_code.enable = false;
  1050. group4.ipt_code.enable = false;
  1051. group4.cp_edicd.enable = false;
  1052. group4.ipt_edicd.enable = false;
  1053. group4.rdo_cancer.enable = false;
  1054. group4.cp_large.enable = true;
  1055. group4.cp_middle.enable = true;
  1056. group4.cp_small.enable = true;
  1057. group4.cmb_large.enable = true;
  1058. group4.cmb_middle.enable = true;
  1059. group4.cmb_small.enable = true;
  1060. }
  1061. }
  1062. function ipt_edicd_ontextchanged(obj:Edit, e:TextChangedEventInfo)
  1063. {
  1064. //group4.ipt_edicd.value = '':
  1065. }
  1066. function rdo_year_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  1067. {
  1068. var choice = group4.rdo_year.value;
  1069. var curDate = new Date();
  1070. var fromDate
  1071. var currentym = curDate.toFormatString("%Y%m");
  1072. if ( choice == "sixm" )
  1073. {
  1074. fromDate = curDate.addMonth(-6);
  1075. } else if ( choice == "oney" ){
  1076. fromDate = curDate.addMonth(-12);
  1077. } else if ( choice == "twoy" ){
  1078. fromDate = curDate.addMonth(-24);
  1079. } else if ( choice == "threey" ){
  1080. fromDate = curDate.addMonth(-36);
  1081. }
  1082. fromDate = curDate.toFormatString("%Y%m");
  1083. group4.cp_monthCal01.cal_Month.value = fromDate;
  1084. group4.cp_monthCal02.cal_Month.value = currentym;
  1085. group4.cp_monthCal01.cal_Month.updateToDataset();
  1086. group4.cp_monthCal02.cal_Month.updateToDataset();
  1087. }
  1088. function group4_cmb_insukind_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1089. {
  1090. group4.opt_insukind.value = group4.cmb_insukind.value;
  1091. }
  1092. function group4_ipt_code_onkeydown(obj:Edit, e:KeyEventInfo)
  1093. {
  1094. if( e.keycode == 13 )
  1095. {
  1096. // 수가코드 조회
  1097. fGetSnglcalcscorcd();
  1098. }
  1099. }
  1100. function group4_ipt_edicd_onkeydown(obj:Edit, e:KeyEventInfo)
  1101. {
  1102. if( e.keycode == 13 )
  1103. {
  1104. // EDI코드 조회
  1105. fGetEdicd();
  1106. }
  1107. }
  1108. ]]></Script>
  1109. </Form>
  1110. </FDL>